Welcome Guest Search | Active Topics | Sign In | Register

HTML Editor dropdown list set a default font... Options
Erni
Posted: Thursday, March 5, 2015 11:19:54 AM
Rank: Member
Groups: Member

Joined: 5/19/2010
Posts: 22

The HTML editor has a "font name" dropdown list - how do I set the list to a pre-selectet value / font?

I found in Editor the field "TextAreaCSSFile" but I think this will not set the value of the Dropdown list self... hm???

Thanks for any example.

eo_support
Posted: Thursday, March 5, 2015 8:36:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You would use this property to specify the font list:

http://www.essentialobjects.com/doc/1/eo.web.editor.fontnames.aspx

Thanks!
Erni
Posted: Sunday, March 8, 2015 4:23:35 AM
Rank: Member
Groups: Member

Joined: 5/19/2010
Posts: 22
FontNames - perfekt. This is running now.

So my next question is how I can pre-select one of my Fonts / or set a Default.
Thanks again.
eo_support
Posted: Monday, March 9, 2015 8:44:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You would just set the font in your HTML. For example, you can set the Editor's HTML to "<p style='font-family: Arial'>&nbsp;</p>", then when user moves cursor inside that block, the "Arial" font will be automatically selected from the font list (if it is included in the font list). There is no "default font" because it automatically select whatever font the current location uses.

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.