A。提供详细的复制步骤(如果有)1.写一些文字2.选择全部并设置居中对齐/右对齐/对齐
B。预期结果在文本末尾返回焦点
C。实际结果将光标置于文本的结尾或其他位置时,光标再次返回第一行,无法设置焦点。除了我们将第一行设置为向左对齐之外,编辑器将再次正常显示
Uncaught TypeError: Cannot read property 'clientTop' of undefined
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.element.getDocumentPosition (ckeditor.js:114)
at z (ckeditor.js:1018)
at y (ckeditor.js:1020)
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.element.mouseNear (ckeditor.js:1007)
at ckeditor.js:1025
在这里[ckeditor问题https://github.com/ckeditor/ckeditor4/issues/3635
此问题,因为我设置了更改某些内容后从ckeditor获取新值的时间间隔,这是错误的方式。 ckeditor有自己的onChange处理程序