Undoing pasting the same content with list multiple times throws error #1385
Closed
Description
Is this a bug report or feature request? (choose one)
🐞 Bug report
💻 Version of CKEditor
latest master @ Chrome
📋 Steps to reproduce
- Select some content that contains a list
- Paste it ctrl + v
- Select all content ctrl + a and paste the content again ctrl + v
- Place caret somewhere in the content and paste again ctrl + v
- Undo
- Undo
✅ Expected result
The undo is applied.
❎ Actual result
Error in the console.
📃 Other details that might be useful
Stack trace:
ckeditorerror.js:46 Uncaught CKEditorError: move-operation-nodes-do-not-exist: The nodes which should be moved do not exist. Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-move-operation-nodes-do-not-exist
at MoveOperation._validate (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:53117:10)
at Model.on (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:50565:14)
at Model.fire (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:109249:29)
at Model.(anonymous function) [as applyOperation] (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:111194:16)
at UndoCommand._undo (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:104349:11)
at Object.editor.model.enqueueChange [as callback] (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:104636:9)
at Model._runPendingChanges (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:51185:58)
at Model.enqueueChange (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:50687:9)
at UndoCommand.execute (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:104635:21)
at UndoCommand.on (https://a2ee7d01.ngrok.io/ckeditor5/build/docs/ckeditor5/latest/snippets/features/ui-language/snippet.js:111190:32)