Skip to content
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

Editor crashes when pasting across document title and body #5614

Closed
oleq opened this issue Oct 17, 2019 · 2 comments
Closed

Editor crashes when pasting across document title and body #5614

oleq opened this issue Oct 17, 2019 · 2 comments
Labels
package:heading resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@oleq
Copy link
Member

oleq commented Oct 17, 2019

πŸ“ Provide detailed reproduction steps (if any)

  1. Copy some paragraph from the guide.
  2. Open title feature guide
  3. Type "foo" in the title and "bar" in the body
  4. Select [foo bar].
  5. Paste

image

βœ”οΈ Expected result

Content is pasted.

❌ Actual result

Error is thrown and the editor stops working

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"}}

πŸ“ƒ Other details

  • master,
  • cross-browser

If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

@oleq oleq added type:bug This issue reports a buggy (incorrect) behavior. package:heading labels Oct 17, 2019
@pomek
Copy link
Member

pomek commented Oct 17, 2019

Source of the issue: #1921 (or more precise: #4506).

@oleq
Copy link
Member Author

oleq commented Oct 17, 2019

A good catch. Closing as a dup of #1921.

@oleq oleq closed this as completed Oct 17, 2019
@oleq oleq added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:heading resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

2 participants