Javascript 克莱特。删除实例的方法是什么?

Javascript 克莱特。删除实例的方法是什么?,javascript,jquery,Javascript,Jquery,我在1.4.4版本中找到了这个问题的解决方案,但该代码在编辑器的最后一个版本中不起作用 //... var lastChapter = textarea.cleditor({ bodyStyle: "margin:4px; font:16px Arial,Verdana; cursor:text;", docCSSFile: "/css/cleditor.editor.css" })[0]; lastChapter.$area.insertBefore(lastChapt

我在1.4.4版本中找到了这个问题的解决方案,但该代码在编辑器的最后一个版本中不起作用

//...

var lastChapter = textarea.cleditor({
     bodyStyle: "margin:4px; font:16px Arial,Verdana; cursor:text;",
     docCSSFile: "/css/cleditor.editor.css"
})[0];

lastChapter.$area.insertBefore(lastChapter[1].$main);
lastChapter.$area.removeData('cleditor');
lastChapter.$main.remove();

我会很感激的

这不是一个解决方案。我已经解决了这个问题,但这不在编辑器中。这种方法仍然非常有效。
document.getElementById("my-element").remove();