-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 Pasting Crashes after Certain Sequence of Actions #3858
Comments
I can reproduce the issue. It seems to be connected with The whole error stack: Uncaught TypeError: Cannot read property 'getParents' of null
at d (ckeditor.js:149)
at CKEDITOR.dom.range.extractContents (ckeditor.js:154)
at CKEDITOR.dom.range.splitElement (ckeditor.js:180)
at ckeditor.js:410
at $.insertHtml (ckeditor.js:374)
at $.<anonymous> (ckeditor.js:384)
at a.n (ckeditor.js:10)
at a.<anonymous> (ckeditor.js:12)
at a.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13)
at a.insertHtml (ckeditor.js:286) |
I've seen a lot of |
We have another user who is affected by this bug. It would be great if it could be looked into. |
Have there been any updates to this issue? I'm seeing a lot of these errors in our Sentry logs but I've only managed to reproduce this issue following steps posted here. I can't seem to reproduce the issue on an older CKEditor 4 version, such as 4.2. The one we're currently using is on 4.16. |
Closed in #4895 |
Type of report
Bug
Provide detailed reproduction steps (if any)
{ enterMode: CKEDITOR.ENTER_BR, shiftEnterMode: CKEDITOR.ENTER_BR }
(standard p mode does not have this issue)<p>a</p><p>b</p>
(if you copy this from an editor, make sure you copy it with p-tags and not a br as the br will work fine)a
(or any other letter), then a backspace to delete the letter you just typed (this is important to do otherwise the issue does not manifest itself)So again: paste, enter twice, any letter, delete letter, paste again.
Here's a code pen with CKEditor 4 and text ready to copy:
https://codepen.io/scottfr/pen/WNvQgwp
Expected result
The editor's content is:
Actual result
The editor's content is:
The javascript console has the error:
ckeditor.js:155 Uncaught TypeError: Cannot read property 'getParents' of null at d (ckeditor.js:155)
Other details
The text was updated successfully, but these errors were encountered: