GrantDB,
Yes, the above code example only works for IE. For firefox you need to write different code to get HTML code from the current selection.
For example:
var sel=editor1.getSelection();
if(sel.rangeCount > 0)
{
var r=sel.getRangeAt(0);
var clonedSelection = r.cloneContents();
var div = document.createElement('div');
div.appendChild(clonedSelection);
// r.collapse(true);
return div.innerHTML;
}
else
return "";
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx