htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Fontstyle problem


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


cormacodonnell
New User

Dec 21, 2004, 8:23 AM

Post #1 of 1 (1608 views)
Shortcut
Fontstyle problem Can't Post

Simple problem with a hopeful simple explination....



I have defined three fontstyles and assocciated them with a style sheet, all is working well except for when i mouse down on the text area the fontstlye drop down goes empty, the stlyes are still there, but none selected. And every time i press return key it deselects the fontstyle in use

Could someone please put me out of my misery

Regards,

Cormac O'Donnell

ps. using ver 2.03



here is my code:




Code
  

<TEXTAREA cols="90" name="user" rows=20 ><%= rs0.getString("Content") %></TEXTAREA>
<script language="JavaScript1.2" defer>
var config = new Object(); // create new config object
// Add additional editor config settings here...
config.fontstyles = [{
name: "Headline",
className: "headline",
classStyle: "font-family: arial; font-size: 28px;"
},{
name: "Sub-header",
className: "subheadline",
classStyle: "font-family: arial; font-size: 20px;"
},{
name: "Paragraph text",
className: "paragraph",
classStyle: "font-family: arial; font-size: 12px;"
}];

config.toolbar = [
['fontstyle'],
['bold','italic','underline','separator'],
['justifyleft','justifycenter','justifyright','separator'],
['OrderedList','UnOrderedList','Outdent','Indent','separator'],
['HorizontalRule','Createlink','insertTable','separator']
];


config.stylesheet = "/html/style/main.css";

editor_generate('user',config);
</script>


 
 
 


Search for (options)