Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Once you call destroy and recreate the editor, when trying to change font or fontsize you get the following error:
Uncaught TypeError: Cannot read properties of null (reading 'getRanges') at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:875:311) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:207:171) at c.execCommand (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:276:251) at a.onClick (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:878:103) at r._onClick (version.js:1:1) at Object.u (version.js:1:1) at h (version.js:1:1) at m (version.js:1:1) at x (version.js:1:1) at R (version.js:1:1)
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Create the editor by pressing Create/Destroy button and change fontsize by selecting a text, everything works perfectly.
Destroy and recreate the editor, try to change fontsize again, you will get the above error.
What is the expected behavior?
You can use CKEditor plugins after you destroy and recreate the editor.
Which versions of alloy-editor, and which browser / OS are affected by this issue? Did this work in previous versions?
This is affected by all browsers, and previous versions didn't work either.
Do you want to request a feature or report a bug? Bug
What is the current behavior?
Once you call destroy and recreate the editor, when trying to change font or fontsize you get the following error:
Uncaught TypeError: Cannot read properties of null (reading 'getRanges') at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:875:311) at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:207:171) at c.execCommand (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:276:251) at a.onClick (ckeditor.js?browserId=chrome&minifierType=js&languageId=en_US&t=1655312240360:878:103) at r._onClick (version.js:1:1) at Object.u (version.js:1:1) at h (version.js:1:1) at m (version.js:1:1) at x (version.js:1:1) at R (version.js:1:1)
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Use this POC sample code to reproduce the issue:
Steps:
Create the editor by pressing Create/Destroy button and change fontsize by selecting a text, everything works perfectly.
Destroy and recreate the editor, try to change fontsize again, you will get the above error.
What is the expected behavior? You can use CKEditor plugins after you destroy and recreate the editor.
Which versions of alloy-editor, and which browser / OS are affected by this issue? Did this work in previous versions? This is affected by all browsers, and previous versions didn't work either.