Ken ,
You need to call editor cut function to remove the highlighted text first.
<script language="JavaScript" type="text/javascript" >
function CutandInsertHTML(editorID,value)
{
EditorID = editorID+"_editBox";
var editor = document.getElementById(EditorID);
// call editor cut function to remove the highlighted text first
_Format(editorID,'Cut');
editor.focus();
var sel = editor.document.selection.createRange();
// don't try to insert HTML into a control selection (ie. image or table)
if (editor.document.selection.type == 'Control') {
return;
}
sel.pasteHTML(value);
}
</
script>
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