-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Clicking content that has a comment causes content data change (resulting with extra autosave) #9901
Comments
What needs to be done:
Bonus: talk about this on architect guild. |
Related: #5796. |
Related: #10643. |
After having an internal discussion, we come up with following conclusions:
We should fix this straight in So, the goal of this issue is to change Other than that, two followups. |
Will this be fixed in this ticket? |
Yes, that's the goal of this ticket. |
Fix (engine): Setting a marker to the same range it was will not trigger the `change:data` event. This will prevent unnecessary autosave callbacks. Closes #9901.
📝 Provide detailed reproduction steps (if any)
document.querySelectorAll( '.ck-editor__editable' )[ 0 ].ckeditorInstance.model.document.on( 'change:data', console.log )
✔️ Expected result
Moving the selection from comment to a regular place should not trigger
change:data
event.❌ Actual result
It triggers change data event. In turn there can be autosave calls, undo snapshots created etc.
❓ Possible solution
Initial words from @scofalik
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: