Hello Javascripters! I am new to this forum but I have something which
keeps my mind buggin.. If you change FontSize in javascript by a fairly simple command:
‘ActiveDocument.execCommand “fontsize”, False, “7”‘
everything works great but the code created in each browser is slightly diffrent even if CSS is standard enabled.
Firefox
<font size=”7″>text</font>
(is deprecated no?)
Chrome
<span class=”Apple-style-span” style=”font-size: -webkit-xxx-large;”>text</span>
So here is my question how can I get in all browsers something like?
<span style=”font-size: 24px;”>Text</span>
I have notitced yahoo editor works like that but I can’t figure out where the hot potato is.
[url]http://developer.yahoo.com/yui/examples/editor/simple_adv_editor.html