我想将CKeditor工具栏中的bulletedList设置为默认值,因此,当用户输入textarea项目符号点时必须显示为默认配置,我该如何配置呢?
这是我的vue组件中的Javascript
<template>
<div class="app">
<h3>CKeditor</h3>
<ckeditor :editor="editor" v-model="editorData" :config="editorConfig"></ckeditor>
</div>
</template>
<script>
import CKEditor from '@ckeditor/ckeditor5-vue';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
Vue.use( CKEditor );
export default {
name: 'app',
data() {
return {
editor: ClassicEditor,
editorData: '<p><span>•</span> </p>',
editorConfig: {
toolbar: {
items: [
'bold',
'italic',
'bulletedList'
]
}
}
};
},
};
</script>