Error with using divarea plugin combined with material2 number input
See original GitHub issueRecently I changed my ng2-ckeditor to use the divarea plugin, as I want to be able to destroy ckeditors when they are no longer needed. Now I have this strange bug in Firefox, that when I try to use a number field, the following error pops up:
Error: Permission denied to access property "nodeType"
This is the complete error message:
columnNumber: 31
fileName: "http://localhost:4200/assets/js/ckeditor/ckeditor.js"
lineNumber: 70
message: "Permission denied to access property \"nodeType\""
stack: "CKEDITOR.dom.node@http://localhost:4200/assets/js/ckeditor/ckeditor.js:70:31\nCKEDITOR.dom.selection@http://localhost:4200/assets/js/ckeditor/ckeditor.js:448:355\nCKEDITOR.editor.prototype.getSelection@http://localhost:4200/assets/js/ckeditor/ckeditor.js:446:45\nq@http://localhost:4200/assets/js/ckeditor/ckeditor.js:684:326\nt@http://localhost:4200/assets/js/ckeditor/ckeditor.js:684:98\nb/</d<@http://localhost:4200/assets/js/ckeditor/ckeditor.js:675:80\n./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invokeTask@http://localhost:4200/polyfills.js:2737:17\nonInvokeTask@http://localhost:4200/vendor.js:58949:24\n./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invokeTask@http://localhost:4200/polyfills.js:2736:17\n./node_modules/zone.js/dist/zone.js/</Zone.prototype.runTask@http://localhost:4200/polyfills.js:2504:28\n./node_modules/zone.js/dist/zone.js/</ZoneTask.invokeTask@http://localhost:4200/polyfills.js:2812:24\nZoneTask/this.invoke@http://localhost:4200/polyfills.js:2801:28\ntimer@http://localhost:4200/polyfills.js:4370:17\n"
If anyone has any idea how to prevent this error, that would be great. Reverting back to the ckeditor without the divarea plugin is no option. As it will cause a different error: https://github.com/chymz/ng2-ckeditor/issues/212.
Also worth noting only the number field is giving problems, other input fields work fine. And the error doesn’t pop up in Chrome. It seems to be a Firefox only bug.
versions used
Angular 6 Material2 6 Latest ng2-ckeditor Ckeditor 4.9.2 custom build, I also tried other versions but that did not seem to help
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top GitHub Comments
I’ve created an issue in the ckeditor issue tracker: https://github.com/ckeditor/ckeditor-dev/issues/2216
Closing this issue as it should be fixed in the
ckeditor
package itself.