CKEditor.replace,CKEditor给出错误Uncaught(在promise中)TypeError:无法读取未定义的属性'getSelection'

时间:2017-08-15 22:49:12

标签: javascript ckeditor

CKEditor在调用如下CKEDITOR.inline时工作正常。由于工具栏未与可编辑区域正确对齐,因此将调用更改为CKEDITOR.replace。这会在浏览器上显示CKEDITOR,但不允许编辑。工具栏上的按钮是可选的。

对于inlinereplace我正在使用id标记的TextArea。我得到的错误是

  

未捕获(承诺)TypeError:无法读取属性'getSelection'   未定义的       在CKEDITOR.dom.selection.getNative(ckeditor.js:427)       在CKEDITOR.dom.selection(ckeditor.js:425)       at a.CKEDITOR.editor.getSelection(ckeditor.js:423)       在CKEDITOR.plugins.undo.Image(ckeditor.js:1111)       在CKEDITOR.plugins.undo.UndoManager.save(ckeditor.js:1106)       在... (ckeditor.js:1102)       at a.m(ckeditor.js:10)       at a.CKEDITOR.event.CKEDITOR.event.fire(ckeditor.js:12)       at a.CKEDITOR.editor.CKEDITOR.editor.fire(ckeditor.js:13)       在a.setData(ckeditor.js:260)

0 个答案:

没有答案