VEditor for Vue
A Vue 3 component with `v-model` and a `ready` event, without a build step.
- Tested: 3.5
- Compatible code: 3.2+
- PHP 8.1+
Installation in 3 steps
-
Install
Vue 3.2+ is a peer dependency. The package contains no licence logic.
terminalnpm install @veditor.eu/vue -
Import
The editor itself is loaded from your server (
assets-url, by default the route of the Laravel or Symfony integration).JavaScriptimport { VEditor } from '@veditor.eu/vue'; -
Use
Options as in the plain editor;
@readygives you the editor API.Vue<VEditor v-model="html" name="content" :options="{ licenseKey: 'VED1.…' }" @ready="editor => …" />
What you get
Integration features for Vue 3, where you would expect them.
- v-modelTwo-way binding of the HTML content; external changes replace the content.
- Loaded onceThe editor modules and styles load on first use, once per page.
- Editor APIThe
readyevent and an exposededitor()method. - Strict CSPWorks with render functions and
.vuefiles withoutunsafe-eval. - TypeScriptType declarations for the props, options and the editor instance.
Try it in your browser
The demo has the full toolbar and shows what the PHP sanitizer returns for your content.
All integrations
-
Laravel
Composer package Tested: 12 Compatible code: 11–13 -
Symfony
Symfony bundle Tested: 7.4 LTS Compatible code: 6.4–8 -
Yii2
Code to copy Tested: 2.0.55 -
PHP
Without a framework PHP 8.1+ -
React
npm package Tested: 18 Compatible code: 17+ -
Vue 3
npm package Tested: 3.5 Compatible code: 3.2+ -
Your file manager
Editor hooks
Names and trademarks belong to their owners. Their use does not imply partnership.