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
the selected content is removed (the entire blockquote) and then new content is inserted at the selection position. The problem is the selection position does not change after deleting content and still refers to the removed place in the document (path [0,0,0] or [ '$root', 'blockQuote', 'paragraph' ]). When comes to insertion there is an explosion because insert position does not exist.
We should manually fix selection between deleting and inserting content. Model selection post-fixer could be extracted to som util (or maybe it is already) and called manually.
ckeditorerror.js:66 Uncaught CKEditorError: model-position-path-incorrect: The position's path is incorrect. Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-model-position-path-incorrect
{"position":{"root":"main","path":[0,0,0],"stickiness":"toNext"}}
at Position.get parent [as parent] (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:59068:11)
at new Insertion (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:65021:48)
at Object.callback (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:64941:21)
at Model._runPendingChanges (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:53260:58)
at Model.change (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:52682:16)
at insertContent (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:64924:15)
at Model.insertContent (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:52869:79)
at Model.<anonymous> (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:113897:32)
at Model.fire (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:111772:29)
at Model.<computed> [as insertContent] (http://localhost:8125/ckeditor5-block-quote/tests/manual/blockquote.js:113901:16)
The text was updated successfully, but these errors were encountered:
When pasting content to the document where the selection starts at the beginning of the nested element and ends in the next block
the selected content is removed (the entire blockquote) and then new content is inserted at the selection position. The problem is the selection position does not change after deleting content and still refers to the removed place in the document (path
[0,0,0]
or[ '$root', 'blockQuote', 'paragraph' ]
). When comes to insertion there is an explosion because insert position does not exist.We should manually fix selection between deleting and inserting content. Model selection post-fixer could be extracted to som util (or maybe it is already) and called manually.
The text was updated successfully, but these errors were encountered: