我在我的应用程序中使用tinymce来获得丰富的文本框体验,在Mozilla中使用它时我遇到了这个奇怪的问题。第一次使用时它工作得很好,但是如果我第二次加载相同的tinymce实例,它会在控制台屏幕中给出以下错误。
NS_ERROR_UNEXPECTED
如果有的话请提出解决方案,下面是我正在使用的代码:
<script type="javascript">
tinymce.remove();
jQuery('#tinymce').tinymce({
height: 250,
width: 750,
entity_encoding: "raw",
encoding: "xml",
force_br_newlines: false,
force_p_newlines: false,
forced_root_block: 'div',
statusbar: false,
theme: 'modern',
menubar: false,
plugins: "mention " + plugins,
toolbar1: toolbar1,
toolbar2: toolbar2
});
</script>
Run Code Online (Sandbox Code Playgroud)