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.
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:
br's
you mention are inserted by Firefox. There is nothing to worry about as they will be filtered out once you obtain the data from the editor using the editor.getData
method. Here is a good general explanation of how it works: Want to remove the <br type="_moz"> tag in CKEDITOR 4.2.0