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)

ck_bug.png (3.6 KB) - added by adamfronczak 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by adamfronczak

Attachment: ck_bug.png added

comment:1 Changed 12 years ago by adamfronczak

Occurs only in Chrome browser.

comment:2 Changed 12 years ago by Jakub Ś

Keywords: Webkit CantFix VendorFix added
Status: newconfirmed
Version: 4.0.1
  1. Create sample HTML5 page.
  2. 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>
    
  3. 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 Wiktor Walc

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,

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy