Opened 11 years ago
Last modified 9 years ago
#11687 confirmed Bug
[FF] Caret position reset when clicking editable
Reported by: | Marek Lewandowski | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Widgets | Version: | 4.3 Beta |
Keywords: | Firefox | Cc: |
Description (last modified by )
Clicking text in editable moves caret to very beginning, which is extremely annoying if you want i.e. select something in order to bold it.
- open sample with image2 plugin (/samples/plugins/image2/image2.html)
- put caret at following position
Roll out of |Saturn V on launch pad
in first widget caption
note first selection is OK - move caret to other element (by clicking), i.e. "Apollo 11" headline
- repeat 2nd step
Expected result:
Caret should be placed in of |Saturn
Current result:
Caret is placed at very beginning of the caption.
additional info:
- Bug occurs only if focus is moved from within the editor. That means, if you'll blur editor by i.e. clicking at sample headline "CKEditor Samples » New Image plugin", and then you'll click at editable - bug does not occur.
Change History (4)
comment:1 Changed 11 years ago by
Keywords: | Firefox added |
---|---|
Status: | new → confirmed |
Version: | → 4.3 Beta |
comment:2 Changed 11 years ago by
Description: | modified (diff) |
---|
This issue is caused by browser bug, and is related to nested editable. I reported it here: https://bugzilla.mozilla.org/show_bug.cgi?id=1039217. Another break case desribed below:
Enter
Acutal result
Editor added extra unwanted paragraph.
We can wait until FF guys fix issue on bugzilla or maybe fix broken selection range. This could help: https://developer.mozilla.org/en-US/docs/Web/API/document.caretPositionFromPoint