我使用了角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>
如果单击取消按钮转到下一个组件,则在控制台中显示此错误。告诉我们如何解决这个错误?
答案 0 :(得分:0)
需要使用
divarea plugin
或inline mode