pasteHTML() for mozilla ?
Iâm working in a rich text editor (RTE) where I place pictures.
(for that i used iframe and for picture upload i call a new window)
with this code I place picture in iframe
<script language="JavaScript" >
window.opener.document.getElementById("Iframemessa ge").contentWindow.focus();
var htmLink = window.opener.document.getElementById("Iframemessa ge").contentWindow.document.selection.createRange( )
htmLink.pasteHTML('<img src=path/pic.jpg >');
window.opener.document.getElementById("Iframemessa ge").contentWindow.document.execCommand('paste', false,'');
window.close();
</script>
In IE 6 that is working fine.
But problem is that my application is not working in mozilla (because it does not support pasteHTML() method)
can you tell me any other method which works for mozilla ?
farooq
:(
azeem
|