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:
ADdition to HTML area


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.

 


jeanne
Novice

Dec 16, 2004, 10:31 AM

Post #1 of 2 (1373 views)
Shortcut
ADdition to HTML area Can't Post

I would love to have an otion in the html area that gives a pull down of the styles available so that users can apply existing styles. Is this too complicated?


jonnyl
Novice

Dec 18, 2004, 5:11 AM

Post #2 of 2 (1350 views)
Shortcut
Re: [jeanne] ADdition to HTML area [In reply to] Can't Post

You can either define font-styles in editor.js or as a config object upon loading htmlArea.


Code
config.fontstyles = [    
{ name: "Header 1", className: "headline", classStyle: "" },
{ name: "Header 2", className: "headline2", classStyle: "" },
{ name: "Header 3", className: "headline3", classStyle: "" }
];


classStyle attribute is for normal css-formatting. However you do not have to define formatting here if that is already done for the corresponding classes in the css that you implement.

 
 
 


Search for (options)