简体   繁体   English

无法按空格键CKEDITOR内联

[英]Can not press space key CKEDITOR inline

I have an issue when using ckeditor 4 ( inline mode). 使用ckeditor 4(串联模式)时出现问题。 I can click a div and edit it, but I cant press space key. 我可以单击一个div并进行编辑,但不能按空格键。 Please tell me how to fix this. 请告诉我如何解决此问题。 在此处输入图片说明

Here is my code 这是我的代码

<div id="editor1" contenteditable="true">
    <h1>Inline Editing in Action!</h1>
    <p>The "div" element that contains this text is now editable.
</div>
<script>
    // Turn off automatic editor creation first.
    CKEDITOR.disableAutoInline = true;
    CKEDITOR.inline( 'editor1' );
</script>

I had same issue, after hours of research figured out that jquery.hotkeys.js is causing the issue. 经过数小时的研究发现, jquery.hotkeys.js引起了问题,我遇到了同样的问题。

Try removing any reference to jquery hot keys and see if it works, 尝试删除对jquery热键的任何引用,看看是否可行,

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

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