CKEDITOR Error code: editor-destroy-iframe in Angular 2
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using ng2-ckeditor in my Angular2 project. It is working fine but when I go on another component, It shows warning message [CKEDITOR] Error code: editor-destroy-iframe . I google for solution and found below solution: for (name in CKEDITOR.instances) { CKEDITOR.instances[name].destroy(true); } But from where to get CKEDITOR . In ng2-ckeditor package, I can see only 2 library CKEditorModule, CKEditorComponent . Please help me to solve this. 回答1: Try adding the typescript definition file for CKEditor in package.json under devDependencies