|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
Hi, it may be a trivial question, but I went through the documentation and could not find the answer. The HTML editor has a "font name" dropdown list in one of the toolbars - how do I set the list of the allowed fonts? Additionally, how do I set a default value that's selected when the Editor is loaded?
Thanks,
Dmitriy
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You would set Editor.FontNames property for font list. I do not believe you can set the default value though.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
Thank you, FontNames property works. Even though the default selected value cannot be set in that dropdown list, one must be able to set the default font for the edit area, is that not correct?
I tried the obvious css style, and that doesn't seem to work (Times New Roman is the default font):
<EditAreaStyle CssText="border-bottom-color:gray;border-bottom-style:solid;border-bottom-width:1px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-right-color:gray;border-right-style:solid;border-right-width:1px;border-top-color:gray;border-top-style:solid;border-top-width:1px;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px; font-family: Verdana; font-size: small;" />
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will need to use TextAreaCssFile. TextAreaStyle is just for the frame that contains the text area. Everything inside the editing area belongs to a different document thus does not share any styles in your hosting page. So it can only use CSS file.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/26/2010 Posts: 26
|
That did it, thanks!
|
|