Skip to main content

Editor42 in a Vue app

When to use

When the editor belongs to a Vue 3 app and its content is just another reactive value in your component.

How it works

The component from @editor42/editor42-vue, bound with v-model: type in the editor and the HTML below follows. A real app writes it as a single-file component; this demo has no build step, so it mounts the same component through createApp. Everything inside :init is a plain Editor42 option.

How to start using

Install the component with npm install @editor42/editor42-vue and use <Editor v-model="content"> in your template. With no extra props it loads the editor from cdn.editor42.com — no account, no key.

See the Vue install page for self-hosting and the move from @tinymce/tinymce-vue.