我在我的Angular2
項目中使用ng2-ckeditor
。它工作正常,但是當我繼續使用另一個組件時,它會顯示警告消息[CKEDITOR] Error code: editor-destroy-iframe
。
我谷歌的解決方案和解決方案如下發現:CKEDITOR錯誤代碼:Angular 2中的editor-destroy-iframe
for (name in CKEDITOR.instances) {
CKEDITOR.instances[name].destroy(true);
}
但是從哪裏得到CKEDITOR
。在ng2-ckeditor
包中,我只能看到2個庫CKEditorModule, CKEditorComponent
。
請幫我解決這個問題。
我有主編破壞的iframe,凡在你的代碼,你把那個片段破壞編輯器類似的問題?我試圖放入ngOnDestroy,但它不工作。 – Konst