Skip to content

Conversation

Mati365
Copy link
Member

@Mati365 Mati365 commented Aug 13, 2025

🚀 Summary

No longer crash the editor when a selection change occurs within a detached element and during rendering of the editing.


📌 Related issues


💡 Additional information

Occasionally, such as when removing markers during a focus change, the selection may end up inside a view element whose parent has already been detached from the DOM but is still present in the view DOM mappings. In most cases this is harmless, but if the selectionchange event fires before the view is fully synchronized with the DOM converter, some elements in the selection may become orphans.
For example:

obraz

The comment marker has been removed from the view, but it's still present in DOM converter mappings.

@Mati365
Copy link
Member Author

Mati365 commented Aug 18, 2025

I disabled MapperCache. It looks like it's not causing the issue.

@Mati365 Mati365 requested a review from niegowski August 20, 2025 06:10
@Mati365 Mati365 merged commit 41359f7 into master Aug 25, 2025
9 checks passed
@Mati365 Mati365 deleted the ck/1889 branch August 25, 2025 08:45
@rutek
Copy link

rutek commented Sep 2, 2025

Hello, can I know what the schedule is for releasing this fix? It happens for my client all the time. It looks like if there are many marker changes, it happens almost every time. Thank you!

@Mati365
Copy link
Member Author

Mati365 commented Sep 2, 2025

@rutek Hi! We don't have an ETA for the fix at the moment, but you can check if the issue is resolved in the latest nightly build.

@Witoso
Copy link
Member

Witoso commented Sep 2, 2025

We do actually, as this was already merged it waits for the next release. If everything goes smoothly, it should land next week.

@rutek
Copy link

rutek commented Sep 2, 2025

Thanks for the quick response! 💪 We use CDN-hosted CKEditor (we use premium plugins), so I guess we cannot use nightly build using the useCKEditorCloud helper, so we just need to wait for next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

view.TreeWalker may try to create positions "after root" in some specific scenarios
5 participants