在CKEditor中将BulletedList配置为默认值

时间:2019-02-19 15:59:17

标签: vue.js ckeditor

我想将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>&bull;</span> </p>',
                editorConfig: {

                    toolbar: {
                        items: [
                            'bold',
                            'italic',
                            'bulletedList'
                        ]
                    }
                }

            };
        },

    };


</script>

0 个答案:

没有答案