Hi
i am writting Wysawyg editor and i have a problem with table.
If i select an element i obtain the text of selection with
select_doc= iframe[window.opener.iframen].contentWindow.getSelection();
i obtain the text of selection alert(select_doc.toString())
and usually with range=select_doc.getRangeAt(0);alert(htmlText(range));
i get markup selection.
function htmlText(rangetmp)
{
var div;
div=document.createElement("span")
div.appendChild(rangetmp.cloneContents());
return div.innerHTML;
}
BUT if i select only table i get text of selection but I don't get
markup Selection!!!!
Can you help me?
I hope that you understand my problem.
Thanks Stefano
_______________________________________________
mozilla-editor mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-editor