CKEditor 5自定义构建工具栏未显示



我已经处理了好几天了,但每次我开始尝试在这里的代码中添加一个simpleuploadadapter时,工具栏就会消失,即删除行插件:[simpleuploadadapter,…],一切都很好。

我是CKEDitor的新手,确实发现新用户的文档有点缺乏

这是我的代码ClassicEditor.create(document.querySelector('#editor'({plugins:[SimpleUploadAdapter,…],//删除此行,工具栏出现!

toolbar: {

items: [
'heading',
'|',
'bold',
'italic',
'link',
'underline',
'horizontalLine',
'fontBackgroundColor',
'fontColor',
'fontFamily',
'alignment',
'bulletedList',
'numberedList',
'|',
'indent',
'outdent',
'|',
'imageUpload',
'blockQuote',
'insertTable',
'mediaEmbed',
'undo',
'redo',
'highlight',
'specialCharacters']
},language: 'en',image: {toolbar: ['imageTextAlternative','imageStyle:full','imageStyle:side']},
table: {
contentToolbar: [
'tableColumn',
'tableRow',
'mergeTableCells',
'tableCellProperties'
]
},
licenseKey: '',

} )
.then( editor => {
window.editor = editor;
} )




.catch( error => {
console.error( 'Oops, something went wrong!' );
console.error( 'Please, report the following error on https://github.com/ckeditor/ckeditor5/issues with the build id and the error stack trace:' );
console.warn( 'Build id: 2s2liiisdwtn-fs46wvie39gh' );
console.error( error );
} );

您的安装是否是自定义的?如果没有,你是否尝试创建一个自定义的安装程序,包括该插件,然后尝试加载其示例文件进行检查?它将帮助我们消除页面设计中任何其他内容可能干扰的可能性。你能说清楚一点吗?

问候。。。

最新更新