Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Discussion:
CSS Font size



Gideon
New User

Nov 26, 2004, 9:50 AM


Views: 32175
CSS Font size

Hi,

it is possible to use the CSS Font size instead of the font tag and size attribute?

i have added this to the Code at execCommand():


Code
case "fontsize": 
ins = this._getSelection();
elem = '<span style="font-size:'+param+'pt">'+ins+'</span>';
this.insertHTML(elem);
break;


with this, I can use CSS font size for a selection, but every time a new span tag will be added, thats not good.
I don't know alout about JS.

Can someone help me please?

Thank you.

mfg Gideon


tt4cms
New User

Feb 18, 2005, 9:47 AM


Views: 31910
Re: [Gideon] CSS Font size

yes, an answer to this would be great ... !