CKEditor removeAllListener中断会减少缩进功能

时间:2018-10-17 07:04:16

标签: javascript jquery html internet-explorer ckeditor

我正在为我的应用程序使用ckeditor 4x版本。在Internet Explorer中生成编辑器之前,使用以下代码提高性能时,我面临着减少缩进功能的奇怪问题。

 CKEDITOR.removeAllListeners(); // this breaks decrease indent 
 CKEDITOR.replace( 'editor1', {
        extraPlugins: indent,indentblock
    });

在注释了removeAllListeners函数之后,减少缩进按预期方式工作,但再次出现性能问题,并在Internet Explorer中引发“长时间运行的脚本错误”。

当我们使用removeAllListeners()函数时,长时间运行的错误消失了,增大缩进量后减小缩进量无效。我们必须手动按 backspace 来启用缩进缩进图标。

enter image description here

在上面的屏幕上,红色突出显示的框显示了减少缩进后仍未启​​用缩进文本,这是因为在生成编辑器之前使用了removeAllListeners()函数。绿框显示删除它后效果很好,但出现长时间运行错误,导致结果页面冻结。

请告知。

0 个答案:

没有答案
相关问题