CKEeditor 5:Media Embed插件产生错误componentfactory-item-exists:该项目已存在于组件工厂中

时间:2018-12-13 06:04:40

标签: ckeditor5

在添加MediaEmbed插件时,如下所示:

import MediaEmbed from '@ckeditor/ckeditor5-media-embed/src/mediaembed';

ClassicEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [ MediaEmbed, Essentials, Paragraph, Bold, Italic, Underline, Strikethrough, Code, Alignment, BlockToolbar, Heading ],
        toolbar: [ 'mediaEmbed', 'heading', '|', 'bold', 'italic', 'underline', 'strikethrough', 'code', '|', 'undo', 'redo', '|', 'alignment:left', 'alignment:right']
    } )
    .then( ... )
    .catch( ... );

我收到以下错误:

enter image description here

功能按钮在删除Essentials插件(特别是其中的Typing插件)时可见,但这当然不是功能解决方案。

0 个答案:

没有答案