-
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
Cutting the widget scrolls editor to the end (with t/468) #1160
Comments
Looks like the breaking commit is the first one: 5571884. Not sure why ATM. |
The exact line is https://github.com/ckeditor/ckeditor-dev/blob/2bcbf1ffd39e4bb897c9c1b1930337214da83136/plugins/clipboard/plugin.js#L526 while the previous flow doesn't executed this code (due to When this line is skipped, on widget cut editor content does not jump (which happens on |
This issue is caused by the fact that when copying/cutting widgets, is called on copy/cut here: Initially I thought scrolling is caused by container holding real selection, but the cause here is The quick workaround for the issue is to fix
to:
which brings the same behaviour as on the Is
|
Extracted #1169. |
Closed in #1170. |
Are you reporting a feature request or a bug?
Bug
Provide detailed reproduction steps (if any)
Expected result
Editor scrolls to the end.
Actual result
Editor does not scroll at all or scroll position is restored.
Other details
major
with Support for Clipboard API in Edge #468clipboard
The text was updated successfully, but these errors were encountered: