CKEditor需要时间来加载

时间:2019-02-22 06:46:25

标签: reactjs ckeditor

我在我的ReactJS应用程序中使用CKEditor。有时CKEditor需要花费几秒钟来进行渲染。我在控制台中发现以下错误

CKEditor not found 
value @ 1.b8480af1.chunk.js:sourcemap:1

如何解决此问题?我使用了 react-ckeditor-component 。我的 .js 代码如下:

var removeBtn = "Cut,Copy,Paste,Source,Styles,Format,Maximize,Image,Table,Blockquote,RemoveFormat,Link,SpecialChar,Anchor,Subscript,Superscript,PasteFromWord,PasteText,About";
 <CKEditor
    activeClass="p10"
    content={this.state.content}
    events={{
       "change": this.onContentChange
    }}
    config={{
        removeButtons: removeBtn,
        removePlugins: 'resize'
    }} 
/>

0 个答案:

没有答案