Search code examples
javascriptckeditor

CKEditor: with widget as first element, select all not working in Chrome


If you add a widget as first element, Ctrl+A will not work in Chrome. If some text is added before, the "select all" works perfectly.

Any workaround?

i'am using ckeditor 4.5.5.

try on Widget Demo.

NB: in Firefox the Ctrl+A works, but a tag <br type="_moz"></br> is added in the first widget.


Solution

  • A problem with selecting content in Blink or WebKit browsers when the widget is the first or last element in the editable area is a known issue and has been reported here: https://dev.ckeditor.com/ticket/11180. As you can see in the ticket report, we were also able to reproduce this problem in native contenteditable elements what indicates a browser bug. Unfortunately we weren't able to find any workaround for this problem and browser vendors haven't provided a fix yet.


    NOTES: