Opened 12 years ago
Last modified 10 years ago
#10114 confirmed Bug
Invalid cursor position for non-editable element
Reported by: | adamfronczak | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Webkit CantFix VendorFix | Cc: |
Description
When non-editable element is the last one in the paragraph and cursor is right after this non-editable element, the cursor is aligned to the right edge of the editor, instead of beeing just after the last word.
Sample content for editor:
<p>editable
<span contenteditable="false">non editable</span>
</p>
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | ck_bug.png added |
---|
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Keywords: | Webkit CantFix VendorFix added |
---|---|
Status: | new → confirmed |
Version: | 4.0.1 |
- Create sample HTML5 page.
- Put below code there:
<div contenteditable="true" style="margin-top:10px;border:1px solid black; width:200px; height:200px;"> <p>editable <span contenteditable="false">non editable</span></p> </div>
- Notice that browser is doing this by default without any editor logic.
There is nothing we can do here.
Webkit bug with workaround: http://code.google.com/p/chromium/issues/detail?id=71598
@adamfronczak instead of
<p>editable<span contenteditable="false">non editable</span></p>
use
<p>editable<span contenteditable="false">non editable</span> </p>
comment:3 Changed 10 years ago by
The same issue is covered in #11923. It was reported for widgets and this ticket is about a simple <span>
element with contenteditable="false"
so I'm leaving it opened just in case we managed to find some workaround that would work only for widgets,
Occurs only in Chrome browser.