Vue
A v-model component for Vue 3.3+. Safe for server-side rendering.
On this page
Install
Usage
Good to know
optionstakes everythingcreateEditor()accepts exceptelement. Callbacks and runtime options follow changes; the rest is read at mount, so remount with a new:key.- The editor starts in
onMounted, so it works in Nuxt and Vite SSR without<ClientOnly>. - Events:
update:modelValue(HTML) andready(the editor). A template ref exposeseditor.
Always sanitize on the server
The editor sanitizes what it loads and produces, but that is not a security boundary: anyone can post any string to your API. Sanitize the HTML again with a library you trust before you store it or render it for other users.