ckeditor5
ckeditor5 copied to clipboard
Unexpected error when resetting the editor
📝 Provide detailed reproduction steps (if any)
In some cases – which are unknown to me – resetting the editor by settings it to an empty string appears to break it. The editor appears to be empty because querying getData() yields nothing.
The artifact ckeditor5.bundle.js can be found at https://raw.githubusercontent.com/WoltLab/WCF/refs/tags/6.2.0_Beta_2/wcfsetup/install/files/js/3rdParty/ckeditor/ckeditor5.bundle.js in order to resolve the offsets in the stack traces.
ckeditor5.bundle.js?t=1763641155:2 Uncaught CKEditorError: unexpected-error
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-unexpected-error
Original error: TypeError: Cannot read properties of null (reading 'is')
at b (ckeditor5.bundle.js?t=1763641155:2:994884)
at V (ckeditor5.bundle.js?t=1763641155:2:458138)
at se.<anonymous> (ckeditor5.bundle.js?t=1763641155:2:454324)
at Object.<anonymous> (ckeditor5.bundle.js?t=1763641155:2:654149)
at Object.fire (ckeditor5.bundle.js?t=1763641155:2:1038457)
at te (ckeditor5.bundle.js?t=1763641155:2:654425)
at se.fire (ckeditor5.bundle.js?t=1763641155:2:653597)
at Zo.fire (ckeditor5.bundle.js?t=1763641155:2:699531)
at Zo.onDomEvent (ckeditor5.bundle.js?t=1763641155:2:916370)
at Te.<anonymous> (ckeditor5.bundle.js?t=1763641155:2:699374)
ckeditor5.bundle.js?t=1763641155:2 Uncaught CKEditorError: unexpected-error
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-unexpected-error
Original error: TypeError: Cannot read properties of null (reading 'parent')
at Bt.findMappedViewAncestor (ckeditor5.bundle.js?t=1763641155:2:738084)
at Bt.<anonymous> (ckeditor5.bundle.js?t=1763641155:2:735381)
at Bt.fire (ckeditor5.bundle.js?t=1763641155:2:1038457)
at Bt.toModelPosition (ckeditor5.bundle.js?t=1763641155:2:737523)
at ht._getModelTableCellFromDomEvent (ckeditor5.bundle.js?t=1763641155:2:122500)
at se.<anonymous> (ckeditor5.bundle.js?t=1763641155:2:121910)
at Object.<anonymous> (ckeditor5.bundle.js?t=1763641155:2:654149)
at Object.fire (ckeditor5.bundle.js?t=1763641155:2:1038457)
at te (ckeditor5.bundle.js?t=1763641155:2:654425)
at se.fire (ckeditor5.bundle.js?t=1763641155:2:653597)
📃 Other details
- Browser: Chrome 142
- OS: macOS 26.1
- First affected CKEditor version: v47.2.0
- Installed CKEditor plugins: n/a
If you'd like to see this fixed sooner, add a 👍 reaction to this post.