[Webkit-unassigned] [Bug 136911] New: Non-editable blocks at the beginning/end of contenteditable block break the selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 18 01:12:31 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=136911

           Summary: Non-editable blocks at the beginning/end of
                    contenteditable block break the selection
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pkoszulinski at gmail.com


Steps to reproduce the problem:
1. Open the attached sample. It contains editable divs with non-editable block islands at the beginning and the end of them.
2. Try steps explained in the sample - CTRL+A, select all from context menu, CTRL+end/home, setting selection programatically.

What is the expected behavior?
Selection should include all the contents of editable element from the first non-editable block to the last one.

What went wrong?
Selection is either totally lost (first case) or a collapsed selection is set (second case).


I am aware that this is a tricky case but it works fine in all other browsers (except of course Blink). I tested the attached sample on Firefox and IE11 and both - visual part and selection API part - were working all right.

This issue was reported multiple times on CKEditor's bug tracker - http://dev.ckeditor.com/ticket/11064. It is getting more and more important for adoption of CKEditor widgets (wrappers for non-editable content inside editor) which proved to be very useful and many users start using them.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list