CKEDITOR Error code: editor-destroy-iframe in Angular 2

前端 未结 1 837
无人及你
无人及你 2020-12-22 02:33

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] Er

相关标签:
1条回答
  • Try adding the typescript definition file for CKEditor in package.json under devDependencies ("@types/ckeditor": "^0.0.34"):

    "devDependencies": {
        "@angular/compiler-cli": "~2.4.0",
        "@angular/platform-server": "~2.4.0",
        "@types/ckeditor": "^0.0.34"
    }
    

    Then run npm update to download the types. An alternate solution is to declare CKEditor in your file:

    declare const CKEDITOR: any;
    
    0 讨论(0)
提交回复
热议问题