insert HTML tag before and after in selected text in iframe
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8739711/wysiwyg-editor-for-ie">WYSIWYG editor for IE</a>  </p>
</blockquote>



<p>I want to make a new WYSIWYG  editor, in which I have used an Iframe with designmode ON, I Want to do something like - when user selects a text and click an image button the image should be in background of the text and the image button should be toggle.</p>
