admin管理员组文章数量:1287489
Only on Chrome on Mac and Chrome canary on Windows (Chrome > 30).
When there is nothing in CKEditor (newly created with blank data) or all the text is removed from CKeditor, clicking on upper part of editor works but if I click lower part of editor, editor would not get focus - cursor would not appear in editor.(Though you can still type.)
It can be reproduced on demo of CKEditor itself. go to . Empty the editor then click outside the editor, when you try to click inside editor on upper part. It won't get focused.
Posted the ticket in CKEditor forum, too. But need quick answer so posting here.
Only on Chrome on Mac and Chrome canary on Windows (Chrome > 30).
When there is nothing in CKEditor (newly created with blank data) or all the text is removed from CKeditor, clicking on upper part of editor works but if I click lower part of editor, editor would not get focus - cursor would not appear in editor.(Though you can still type.)
It can be reproduced on demo of CKEditor itself. go to http://ckeditor./demo. Empty the editor then click outside the editor, when you try to click inside editor on upper part. It won't get focused.
Posted the ticket in CKEditor forum, too. But need quick answer so posting here.
Share Improve this question edited Oct 4, 2013 at 13:20 Akshay asked Oct 4, 2013 at 10:36 AkshayAkshay 3,8664 gold badges49 silver badges84 bronze badges3 Answers
Reset to default 10This problem is because of small height of html and body tag of inner ckeditor iframe.
Red line on your picture is just on it's bottom border, inspect your editor by chrome.
To fix it i added this lines to contents.css
html{
height:100%;
}
body
{
height:100%;
}
Always visible vertical scrollbar is acceptable price for me.
It's a browser-related issue. Event though the caret is invisible you can still type and once you start, the caret is back again.
Edit: There's a ticket for it.
Open ckeditor/content.css file, find class .cke_editable
and change it as below css:
.cke_editable {
font-size: 13px;
line-height: 1.6em;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
本文标签: javascriptCKEditor cursor does not displayed on focusStack Overflow
版权声明:本文标题:javascript - CKEditor: cursor does not displayed on focus - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741282050a2370062.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论