If a nested entry is removed in a CKEditor field, and then re-added via undo, the re-inserted nested entry card displays "Invalid entry ID". This only happens if the provisional draft has time to auto-save in between the nested entry being removed, and the undo action (i.e. if the author undoes really fast, before the auto-save has time to kick in, the nested card comes back as normal).
Refreshing the edit page in the browser displays the nested entry card restored to its former glory.
Description
If a nested entry is removed in a CKEditor field, and then re-added via undo, the re-inserted nested entry card displays "Invalid entry ID". This only happens if the provisional draft has time to auto-save in between the nested entry being removed, and the undo action (i.e. if the author undoes really fast, before the auto-save has time to kick in, the nested card comes back as normal).
Refreshing the edit page in the browser displays the nested entry card restored to its former glory.
https://github.com/craftcms/ckeditor/assets/298510/efa81d1a-6d1e-4a34-87d9-ec7f0c47df3b
Steps to reproduce
Additional info