【发布时间】:2020-12-15 14:57:18
【问题描述】:
我已经搞砸了好几天了,但是每次我开始尝试在此处的代码中添加一个 simpleuploadadapter 时,工具栏都会消失,即删除行插件:[ SimpleUploadAdapter,...],一切都很好。
我是 CKEDitor 的新手,发现文档对于新用户来说有点欠缺
这是我的代码 经典编辑器 .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 );
} );
【问题讨论】:
标签: ckeditor5