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'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.