anybody know why if I call deleteContents() in below code, it will have error msg "object doesn't support this property or method" ???
Code:
function do_header() {
DHTMLSafe.focus();
var txt = "[header]" + DHTMLSafe.DOM.selection.createRange().htmlText + "[/header]";
var range = DHTMLSafe.DOM.selection.createRange();
range.deleteContents();
}