You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quick observation: when removing, always the last letter is removed, unless the first letter is removed. When typing, the typing itself is fine but undo fails.
This is a bug in Differ. A quite serious one, it is funny that it didn't come up earlier but I guess we never had a scenario where a word changed an attribute and also got something removed/added.
Okaaay, so ckeditor/ckeditor5-engine#1705 this fixes the issue with Differ. Attribute change was incorrectly stored if there was a remove change with intersecting range.
However, this does not fix not-bolding on undo. In fact, everything works correctly. The bold is applied, but since also there is a letter inserted (or removed) during the undo, the bold is immediately taken off.
So the post-fixer like this for mentions is not correct.
Fix: Attribute and remove change on intersecting ranges done in the same change block will be correctly saved in `Differ` and downcasted. Closesckeditor/ckeditor5#1645.
Is this a bug report or feature request? (choose one)
🐞 Bug report
💻 Version of CKEditor
latest master
📋 Steps to reproduce
bold
l
(forward or backward delete)<paragraph><$text bold="true">bo[]d</$text></paragraph>
<p>bo[]l</p>
✅ Expected result
The text after deletion is
bod
in the view.The text after undo id
bold
in the view.The text after undo has
bold
attribute in the model.❎ Actual result
The text after deletion in the editing area is
bol
.The text after undo id
boll
in the view.The text after undo doesn't have
bold
attribute.📃 Other details that might be useful
Screen cast:
The text was updated successfully, but these errors were encountered: