Props
v-model:content
Type:
Delta | StringDefault:
{}Return:
DeltaTwo-way binding editor content, can be
Deltaobject, plaintext, orhtmlstring, see Quill Delta docs for more details.WARNING
Your content and content type must match, if you want to use
htmlas your content you must set yourcontentTypetohtml, as well astext.
content
Type:
Delta | StringDefault:
{}Contents for the editor, can be
Deltaobject, plaintext, orhtmlstring, see Quill Delta docs for more details.
contentType
Type:
"delta" | "html" | "text"Default:
deltaVueQuill supports three content type
delta,html, andtext, and make sure to set contentType if you want to usehtmlor plaintextas your content.TIP
Use
delta(default value) content type to prevent issues and is the best practice.
enable
Type:
BooleanDefault:
trueSet ability for user to edit, via input devices like the mouse or keyboard.
readOnly
Type:
BooleanDefault:
falseIf true, the editor won't allow changing its contents. Wraps the Quill
disableAPI.
placeholder
Type:
StringThe attribute to specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format).
theme
Type:
"snow" | "bubble" | ""Default:
"snow"The name of the theme to apply to the editor, Quill features two officially supported themes:
snowandbubble. Pass""to use the minimal core theme. See the docs on themes for more information on including the required stylesheets.
toolbar
Type:
String | Array | ObjectToolbar options to configure the default toolbar icons using an array of format names, see Toolbar section for more details.
modules
Type:
Object | Object[]Options to register modules, see Modules section for more details.
options
Type:
ObjectOptions to configure Quill, see the docs options for more details
globalOptions
Type:
ObjectGlobal Options to configure Quill, see the docs options for more details
WARNING
Only use
globalOptionswhen you register QuillEditor component globallyUsage:
jsimport { createApp } from 'vue' import { QuillEditor } from '@vueup/vue-quill' const app = createApp() // define your options const globalOptions = { debug: 'info', modules: { toolbar: 'minimal' }, placeholder: 'Compose an epic...', readOnly: true, theme: 'snow' } // set default globalOptions prop QuillEditor.props.globalOptions.default = () => globalOptions // register QuillEditor component app.component('QuillEditor', QuillEditor)