-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CKEditor 4 - Selecting whole content by pressing Control + A & press Delete on Keyboard doesn’t erase all bullet points On first try #4931
Comments
Hi, @sridharravva Could you give more information? like: |
I have tried with the CKEditor 4.16.1 Standard package with above bulleted content on Windows 10 machine and Chrome browser. |
Hi, @sridharravva I can confirm this issue.
Screen.Recording.2021-10-16.mov |
Probably fixed in #4943 - to verify |
Unfortunately, #4943 didn't fix it. |
For now - it looks like a selection problem (not a problem with deleting list items) - only when the last element in list is empty. Reproducible even with small source sample: <ol>
<li>1</li>
<li> </li>
</ol> If you put anything instead of nbsp - the selection looks fine. But with the nbsp - it 'skips' the last element 🤔 The selection is fine if I use the "Select all" plugin - so the entire list is deleted. If I remove
With |
Also, we have a comment: ckeditor4/plugins/widgetselection/plugin.js Lines 7 to 10 in 3238b84
And then, this method behaves differently on Win10: ckeditor4/plugins/widgetselection/plugin.js Line 212 in 3238b84
ckeditor4/plugins/widgetselection/plugin.js Line 225 in 3238b84
The editor behaves differently on debugger than in casual... |
I switched to testing this behavior with logs - since debugging step-by-step produce unpredictable results 🤔 Method mentioned before ckeditor4/plugins/widgetselection/plugin.js Line 212 in 3238b84
returns ckeditor4/plugins/widgetselection/plugin.js Line 125 in 3238b84
on macOS the functions early return false, because the range is collapsed: ckeditor4/plugins/widgetselection/plugin.js Lines 217 to 218 in 3238b84
but on Win10 the range is not collapsed - so the functions go to the big return statement which evaluates to ckeditor4/plugins/widgetselection/plugin.js Lines 224 to 226 in 3238b84
According to spec the collapsed value is based on the selection The |
All unit tests are passing on Chrome Win10 under tags:
|
Closed in #5291 |
Hi,
I have tried this using CKEditor 4 - Standard Package Version 4.16.1 and Standard Package Version 4.16.2 and found this bug on Chrome browser. Basically, under Chrome browser, when I am selecting whole content in CKEditor by pressing Control + A & press Delete on Keyboard then it doesn’t erase all bullet points On first try. We could delete whole content present on CKEditor in multiple attempts and not in one single attempt. It looks like there is some bug with this CKEditor control only in Chrome browser since it works fine on Firefox browser, no issue with that FF browser.
Can someone please advice how to resolve this issue on Chrome browser? Thanks!
Here it is sample content that I tried erasing it on CKEditor 4 control by pressing Control + A and then Press Delete button on Keyboard
The text was updated successfully, but these errors were encountered: