#10945 closed Bug (fixed)
Click with mouse inside editor does not show the caret, but user is able to enter text
Reported by: | ctrl | Owned by: | Piotr Jasiun |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.2.2 |
Component: | General | Version: | 4.0 Beta |
Keywords: | Chrome | Cc: |
Description
It seems there is a bug, which appears in Chrome.
How to reproduce:
- Load CKEditor WITHOUT any text in Chrome (tested with 30.0.1599.66)
- Click with the mouse in the middle of the textarea. It seems by default CKEditor creates an paragraph with br element inside. If you click with the mouse inside, it will work.
Result - the caret does not show, but user is able to enter text.
The same works fine with all other browsers.
See the attached file for more information.
Attachments (1)
Change History (10)
Changed 11 years ago by
Attachment: | bug_report.gif added |
---|
comment:1 Changed 11 years ago by
Keywords: | Chrome added; chrome caret removed |
---|---|
Status: | new → confirmed |
Version: | 4.2.1 → 4.0 Beta |
comment:2 Changed 11 years ago by
Milestone: | → CKEditor 4.2.2 |
---|
This is annoying. Let's see if we're able to fit it in the 4.2.2 in the short time we have for it.
comment:3 Changed 11 years ago by
I'm playing with this and cursor doesn't appears when you click outside paragraph. You may have a content in an editor but if you click below last paragraph cursor may not appear.
comment:4 Changed 11 years ago by
- First bad commit: git:11f44945970634fc51aa0699f7bd732769315ef8 Fixed editor tab index.
- Last good commit: git:2db2670806f71cb20149f88e09a4f135c68f61bf Merge branch 'fix-separators'
comment:5 Changed 11 years ago by
Owner: | set to Piotr Jasiun |
---|---|
Status: | confirmed → assigned |
comment:6 Changed 11 years ago by
So it's very likely that setting contenteditable="true" on HTML element will help:
- else if ( CKEDITOR.env.webkit ) - doc.body.parentNode.contentEditable = editable;
But it can break tab key then ;/ And even if not I'd try to not start code branching there (in wysiwygarea), because it may have huge impact on other things.
comment:7 Changed 11 years ago by
Status: | assigned → review |
---|
Fixed in branch t/10945. If user click on html
element I set focus on editable
. There are no tests.
comment:8 Changed 11 years ago by
Status: | review → review_passed |
---|
I pushed one commit to rebased t/10945. This small hack works perfectly.
comment:9 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Problem can be reproduced on Chrome (version 30 at the time of writing) only from CKEditor 4.0 beta.
This issue was also mentioned on SO: http://stackoverflow.com/questions/19179167/ckeditor-cursor-does-not-displayed-on-focus/19181205