Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: use execCommand() for Including stylesheets


Message #1 by "Anurag" <anurag.jain@c...> on Wed, 6 Nov 2002 22:53:00
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

  Return to Index