【发布时间】:2015-10-22 10:26:32
【问题描述】:
我在我的应用程序中使用 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>
【问题讨论】: