When registering the QuillEditor component locally, use the options prop to pass a configuration object. This object allows you to customize the editor's behavior, modules, and appearance for that specific instance.
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
export default {
components: {
QuillEditor
},
data() {
return {
options: {
debug: 'info',
modules: {
toolbar: ['bold', 'italic', 'underline']
},
placeholder: 'Compose an epic...',
readOnly: true,
theme: 'snow'
}
}
},
}
In your template, bind the object to the component:
<template>
<QuillEditor :options="options" />
</template>
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
export default {
components: {
QuillEditor
},
data() {
return {
options: {
debug: 'info',
modules: {
toolbar: ['bold', 'italic', 'underline']
},
placeholder: 'Compose an epic...',
readOnly: true,
theme: 'snow'
}
}
},
}
// In template:
// <QuillEditor :options="options" />