ckeditor.js:21 [CKEDITOR]错误代码:angular2

时间:2017-05-22 13:33:30

标签: angular ckeditor

我使用了角4和ckeditor 4.6.2。 如果我转到下一个组件显示此错误: -

[CKEDITOR] Error code: editor-destroy-iframe. 
[CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-editor-destroy-iframe

Component.ts: -

ckeConfig = "";
this.ckeConfig = {
   height: 500,
   width: '60%',
   allowedContent: false,
   fullPage : true,
   toolbar: [
       { name: "styles", items: ['Format', 'Font', 'FontSize', "-", "TextColor", "BGColor"] },
       { name: "basicstyles", items: ["Bold", "Italic", "Underline", "RemoveFormat"] },
       "/",
       { name: "justify", items: ["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"] },
       { name: "paragraph", items: ["NumberedList", "BulletedList", "-", "Outdent", "Indent", "-", "Blockquote"] },
       { name: "links", items: ["Link", "Unlink"] },
       { name: "insert", items: ["Image", "Table", "HorizontalRule", "Smiley","SpecialChar"] },
       { name: "document", items: ["Source"] },
   ]
 };

Component.html: -

<ckeditor
  [config]="ckeConfig"
  [(ngModel)] = "content"
  debounce="1000"
  >
  <button  md-raised-button type="button" routerLink= "/all" routerLinkAction="active" color="primary">Cancel</button>

如果单击取消按钮转到下一个组件,则在控制台中显示此错误。告诉我们如何解决这个错误?

1 个答案:

答案 0 :(得分:0)

  

需要使用divarea plugininline mode

参考:https://github.com/chymz/ng2-ckeditor/issues/24