PDA

View Full Version : HtmlEditor - Set default font & font size



Pacos
10 Jan 2012, 12:56 AM
Hi,
Is there any way of setting a default font & font size in the htmlEditor ? Basically I'd like the selected font to be Arial and the size 8 when the component is initally shown. I didn't find anything in the documentation, neither on the forum.
Thanks !

mitchellsimoens
10 Jan 2012, 7:14 AM
It's not documented but there is a config 'defaultFont' that you can set. By default it is 'tahoma'

Pacos
10 Jan 2012, 8:14 AM
Thanks !
Concerning the font size, is there also a 'defaultFontSize' ?

mitchellsimoens
10 Jan 2012, 8:42 AM
I would like to invite you to look at the source for HtmlEditor. There is not a defaultfontsize config but you can execute the command to change the font size.