javascript_howto thread: use execCommand() for Including stylesheets
Hi I am trying to use execCommand() to design a WYSIWYG editor. I am trying to include support for user defined stylesheets. The user should be able to just select the particular tag from a drop down menu which corresponds to the particular style tag in stylesheet. It seems that if there is some method using which one can wrap the selected text with the <div class="myStyle"></div> tag or something like like that. Please suggest .. Thanks in advance -- Anurag
|





