We have a very unique need, where we need to add the unit 'px' to the font size output
FCKConfig.CoreStyles.Size =
{
Element : 'font',
Attributes : { 'size' : '#("Size")' }, //<-- WE NEED TO SPECIFY PX HERE!
Styles : { 'font-size' : '#("Size","fontSize")' }
} ;
I have tried everything I could think of and cannot figure out how to do so... I've tried using '#("Size","fontSize") .... adding in #("Size"px)' .... and I'm out of Ideas.
Thanks!
FCKConfig.CoreStyles.Size =
{
Element : 'font',
Attributes : { 'size' : '#("Size")' }, //<-- WE NEED TO SPECIFY PX HERE!
Styles : { 'font-size' : '#("Size","fontSize")' }
} ;
I have tried everything I could think of and cannot figure out how to do so... I've tried using '#("Size","fontSize") .... adding in #("Size"px)' .... and I'm out of Ideas.
Thanks!
Re: FCKEditor not adding unit to font size
i have the same problem
. if i found the solution i will post it here.
Re: FCKEditor not adding unit to font size
Do you really want to use the so hated and deprecated <font> tag there?!?! Why not the default <span> settings?
Anyway, the "size" attribute does not accept specific size units. Thats per W3C definition.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: FCKEditor not adding unit to font size
Re: FCKEditor not adding unit to font size
FCKConfig.FontSizes = '1+/8px; 2+/9px; 3+/10px; 4+/12px; 5+/14px; 6+/20px; 7+/24px';
in your config file where it states the size... I know it looks crazy, but just give it a shot. The only problem is on the Flex Side; my textarea is showing the font incredibly small, but on the reporting side it works perfect.