-
-
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
Crash when unlinking a linked image #8401
Comments
Related to manual decorators. |
ckeditor5/packages/ckeditor5-link/src/linkimageediting.js Lines 209 to 222 in dec11ed
In TC described in the issue, |
While investigating this bug, I have found that Unlink command removes the link first, then removes decorator attributes: eb16078/packages/ckeditor5-link/src/unlinkcommand.js#L71 By the time the |
More details regarding the Unlink command behavior:
This becomes a problem if we look at the downcast converter for It actually removes the link, leaving nothing for Seems like the reason for that particular order is tied with the order in which attributes are applied to the element. The Would be great to prevent this kind of conflicting changes. For now, I'll try to add tests checking the execution order of downcaster converters to prevent regression. |
Fix (link): Removing a link from an image no longer throws an error when link decorators are also present. Closes #8401.
π Provide detailed reproduction steps (if any)
βοΈ Expected result
All works fine.
β Actual result
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: