Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

designMode class

Status
Not open for further replies.

hc98br

ISP
Aug 14, 2003
46
I'm trying to write a rich-text editor using DHTML.

I've got to grips with execCommand, and all that stuff, but can't find the solution for what I would like to do!

I would like a drop down list of styles that the user can choose from, when the style is chosen the selected text needs to be set to that style class (already defined in the CSS).

So something like: execCommand('class', false, 'myStyle');

Except that does not exist.


Any help would be greatly appreciated.


Thanks


Ben.



 
i overcame this by actually wtiting the font tag rather than the CSS...

Known is handfull, Unknown is worldfull
 
i overcame this by actually wtiting the font tag rather than the CSS...

Known is handfull, Unknown is worldfull
 
the <font> tag has many properties...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top