繁体   English   中英

CKEditor.replace,CKEditor给出错误未捕获(在承诺中)TypeError:无法读取未定义的属性“ getSelection”

[英]CKEditor.replace, CKEditor gives the error Uncaught (in promise) TypeError: Cannot read property 'getSelection' of undefined

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

对于inlinereplace我使用的是TextArea标签的id 我得到的错误是

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM