Parent is null error when using Backspace/Del on changed font
📝 Reproduction steps
- Build editor from source with both the classic and decoupled editor with the font plugin (i.e. npm install --save @ckeditor/ckeditor5-font)
- Change the font (i.e. font color, font background, font size, font type) of a word or words in ckeditor
- Backspace or delete one letter in the word(s) with the changed font
- Backspace or delete another letter
UPDATE: This error occurs also when I use the default decoupled editor with only adding the font plugin. Something is messed up with the font plugin when deleting twice.
✔️ Expected result
The expected result is that it will just continue deleting the text rather than throwing the below error.
❌ Actual result
The word(s) with the font that isn't default (i.e. font color, font background, font size, font type) are removed and the editor no longer works as expected. Here is the error.
Uncaught TypeError: Cannot read property 'parent' of null
at er._updateDomSelection (renderer.js:763)
at er._updateSelection (renderer.js:697)
at er.render (renderer.js:234)
at bs._render (view.js:691)
at bs.
📃 Other details
- Browser: Edge (Chromium Version)
- OS: Windows 10
- First affected CKEditor version: Using the latest version, not sure about earlier versions.
- Installed CKEditor plugins: font
Disregard this. The issue is with other code I have that is getting in the way of ckeditor.