Welcome Guest Search | Active Topics | Sign In | Register

Editor font name toolbar item Options
Abacus Financial Inc.
Posted: Friday, January 6, 2012 11:25:48 PM
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
eo_support
Posted: Saturday, January 7, 2012 8:52:00 AM
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!
Abacus Financial Inc.
Posted: Saturday, January 7, 2012 10:21:26 PM
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;" />
eo_support
Posted: Sunday, January 8, 2012 9:05:49 AM
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!
Abacus Financial Inc.
Posted: Sunday, January 8, 2012 4:09:47 PM
Rank: Member
Groups: Member

Joined: 11/26/2010
Posts: 26
That did it, thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.