htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: WYSIWYG Forums: WYSIWYG Editor Discussion:
Default font


 


freddiee
New User

Aug 13, 2005, 5:21 PM

Post #1 of 5 (86025 views)
Shortcut
Default font Can't Post

Please help me.. I'm trying to change default textarea font... I don't want Times new roman 12pt, but Verdana 8pt. I've tried to remove all fonts from the option menu but it didn't work... Please help me... Thx :)


freddiee
New User

Aug 13, 2005, 5:27 PM

Post #2 of 5 (86009 views)
Shortcut
Re: [freddiee] Default font [In reply to] Can't Post

I've also tried

Code
<textarea id="editor" style="width: 500 px; font-family: Verdana; font-size: 8pt;" rows="15" cols="90"></textarea>

, but it didn't work.. please help.........


scottntn
New User

Dec 14, 2005, 8:08 AM

Post #3 of 5 (84197 views)
Shortcut
Re: [freddiee] Default font [In reply to] Can't Post

I know this posting "question" is old.

But I have recently started using HTMLAREA and have had the same questions many people in the past have had.

I haven't found a crystal clear answer so far for the following question:

How do you set the default font type and size?

The Answer is ----------------

In htmlarea.js file , search for:

this.pageStyle = "";

I changed it to

this.pageStyle = "body { font-family: arial; font-size: 10pt;} ";

Now the default font is Arial and the size is 10pt.

Hope this useful to any newbies out there like I am.


Theo
Project Manager / Moderator


Dec 14, 2005, 11:19 AM

Post #4 of 5 (84193 views)
Shortcut
Re: [scottntn] Default font [In reply to] Can't Post

Thanks for chipping in, scottntn. :)


Theo Wiersma
Project Manager

interactivetools.com, inc.
Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455
Software for your Website - http://www.interactivetools.com/


freddiee
New User

Dec 14, 2005, 1:41 PM

Post #5 of 5 (84191 views)
Shortcut
Re: [scottntn] Default font [In reply to] Can't Post

Tahnks.. But I'm not sure that it will also select the font Arial and size 10pt in the select popup menu. That's what I need. I could change the default font in the textarea, but I couldn't change it as default in the select popup menu. Any idea, how this can be changed? Thanx a lot.

 
 
 


Search for (options)