How to set the default font in Google Closure Library rich text editor

Krosterolent

New Member
Google Closure Library editor: demo, documentation.The editable area is an iframe. How can I set the default font of the editable area? Now it is the default font of the browser. I prefer not to put a font tag around the content in the editable area**. That way, I can change the font of my website in the future, without the need to modify every HTML-content written in the editor.** What I mean by that is something like this:\[code\]<font size="2" face="georgia, serif"><b>content</b></font>\[/code\]I would prefer just this:\[code\]<b>content</b>\[/code\]... and then style the editable area of the editor with the georgia font using CSS. That way, the HTML-content (produced by the editor) in my database wouldn't contain a hard-coded font, so I could change the font in the future.Edit: maybe I should use a \[code\]SeamlessField\[/code\] instead of a \[code\]Field\[/code\] for the editable area?
 
Back
Top