- Forums - Reply - Statistics - Sign Up - Search -

The Wyzz WYSIWYG Editor / Coding Discussion / change default font in editor
Author Message
Claudio
Member
# Posted: 7 Aug 2009 17:11


Hello
Can anybody tell me how to change the defualt font on the editor?
Thanks
Claudio

pietro
Member
# Posted: 8 Aug 2009 17:43 - Edited by: pietro


You should edit the file wyzzstyles/editarea.css: on the line 6 there's this code:
font-family: Verdana, Arial, Helvetica, sans-serif;

I don't know if you understand css; a little guide: the font-family property has as value a comma-separated list of fonts; if the browser doesn't find the first, uses the second and so on (sans-serif is not a font, is the font category the browser will use if it can't find other fonts).

So you should replace (for example if you want a serif style), 'Verdana, Arial, Helvetica, sans-serif' with '"Times new Roman", "Palatino Linotype", serif' (or every other font you like).

Remember that these changes are visible in the edit area, so if you want the result in your page to be identical to the edit area, you should use the editarea.css style sheet in your page too.

Was this your problem?

PS The code to link the css to your page, if you don't know it, is:
<link rel="stylesheet" type="text/css" href="wyzzstyles/editarea.css" />

Your answer

Bold Style  Italic Style  Underlined Style  Image Link  URL Link  Disable BB codes *What's that?

 » Name  » Password 
 Only registered users can post here. Enter your login/password correctly before posting a message, or register first.
 

Powered by miniBB forum software © 2001-2010