Closed pankaj5080 closed 1 year ago
It looks similar to #4390. Such an issue could be resolved by using the delayed editor creation. Could you check if it fixes your issue?
It's been a while since we last heard from you. We are marking this issue as stale due to inactivity. Please provide the requested feedback or the issue will be closed after next 7 days.
There was no activity regarding this issue in the last 14 days. We're closing it for now. Still, feel free to provide us with requested feedback so that we can reopen it.
Type of report
Bug
Provide detailed reproduction steps (if any)
When CKEDITOR.replace method is called some times it is giving null exception for calling unselectable method.
Please find below error: ckeditor.js?v=xxxxxx:372 Uncaught TypeError: Cannot read properties of null (reading 'unselectable') at b (ckeditor.js?v=xxxxxx:372:391) at a. (ckeditor.js?v=xxxxxx:368:471)
at a.r (ckeditor.js?v=xxxxxx:10:246)
at a. (ckeditor.js?v=xxxxxx:12:91)
at a.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js?v=xxxxxx:13:286)
at a.fireOnce (ckeditor.js?v=xxxxxx:12:251)
at a.CKEDITOR.editor.CKEDITOR.editor.fireOnce (ckeditor.js?v=xxxxxx:13:442)
at Object. (ckeditor.js?v=xxxxxx:283:139)
at w (ckeditor.js?v=xxxxxx:261:193)
at Object.load (ckeditor.js?v=xxxxxx:261:216)
In some system this is frequent issue 1 time out of 4 attempts while other systems it is reproducing rarely like 1 time out of 50 attempts.
Expected result
There should a null check in method b before calling unselectable method
Actual result
If the element does not found then calling unselectable on null throws exception in console.
Other details