Self-hosted · Zero dependencies · Perpetual licence

A WYSIWYG HTML editor whose output your server can trust.

Rich text editing for your CMS or app, with no npm packages, no CDN and no cloud. The PHP sanitizer knows the same content model as the editor, so clean content passes unchanged and everything else is removed.

  • Zero dependencies
  • PHP HTML sanitizer
  • Paste from Word
  • AI on your own key
VEditor with an article: toolbar on several rows, a table with a caption, an image with a caption and the word count on the status bar

Works with your stack

Names and trademarks belong to their owners. Their use does not imply partnership.

Why VEditor

An editor is the place where users put HTML into your database. VEditor was built so that the browser and the server agree on what that HTML may contain.

One content model, two sanitizers

The editor and the PHP sanitizer use the same whitelist of tags, attributes, classes and styles. Valid content comes back byte for byte.

Zero dependencies

No npm packages, no CDN, no Composer libraries, no build step. Native ES modules and PHP 8.1+, all code written in-house and shipped as source.

Accessible editing and content

Keyboard-first toolbar, labelled dialogs and shortcuts, plus checks that flag missing alt text, skipped headings and vague links.

Perpetual licence

Pay once. 12 months of updates included. Nothing stops working if you do not renew.

Features in action

What editors do every day: write, format, paste from Word, insert images and tables. Without surprises in the HTML.

01 · Writing

Everything a modern editor should do

The features people know from TinyMCE and CKEditor 5, written from scratch on DOM ranges instead of the deprecated execCommand.

  • Tables with merged cells, header rows and columns, captions and column widths
  • Images with captions, alignment, resizing, alt text and srcset; YouTube, Vimeo, video and audio
  • Markdown shortcuts, typographic quotes, find and replace, source view, autosave
  • Code blocks, accordions, task lists, table of contents, templates, emoji
VEditor with a table, an image with a caption and the toolbar wrapping onto several rows

02 · Clean HTML

Paste from Word and Google Docs, keep clean HTML

Word lists become real lists, office styles become plain tags and everything outside the whitelist disappears before it reaches the content.

  • Word and Docs lists, bold, italics, tables and headings without office markup
  • Styles from your own CSS in a “Style” list, allowed by the sanitizer from the same array
  • Dangerous URLs, event handlers and unknown embeds never make it to the output
  • The PHP sanitizer returns the editor’s HTML unchanged, so you can check it on every save
How VEditor keeps HTML clean
A Word document pasted into VEditor: numbered and bulleted lists, bold text and a table, without office formatting

03 · AI

AI edition

An AI assistant on your own API key

Improve, shorten, translate or rewrite with a prompt, chat about the document and get a review of spelling and style. You always see the result before it replaces anything.

  • Quick actions, tone changes and translation, streamed as the model writes
  • AI chat in a side panel and a review with “Apply” and “Skip” for each remark
  • Alt text for images, summary, SEO description, titles and slug
  • OpenAI, Anthropic or an OpenAI-compatible service, with no middleman
How AI works in VEditor
AI assistant menu over a selected paragraph and a preview of the shortened text with Replace and Insert below buttons

04 · Frameworks

One line in a Laravel, Symfony or Yii2 form

A Blade directive, a Twig function or a Yii2 component renders the editor, serves its files from the package and connects the AI endpoint. In React and Vue it is a component with value and v-model.

  • Editor files served from the package, versioned and cached
  • The same styles in the editor and in `sanitize()` before saving
  • Your own file manager or upload endpoint through two options
All integrations
A Laravel form with VEditor rendered by the @veditor Blade directive

How we keep content safe

Rich text is a classic XSS vector: users submit HTML that other users will see. Cleaning it in the browser is a convenience; the PHP sanitizer is the security boundary.

Security in detail
  • Same whitelist in JS and PHPTags, attributes, classes and CSS properties are allowed by the same rules on both sides.
  • Checked URLsEvery link, image, srcset and media address is checked; javascript: and data: links are removed.
  • Prefixed idsOnly ve- ids are allowed, so content cannot clobber your page’s DOM.
  • Embeds from a whitelistOnly YouTube (no-cookie) and Vimeo, always with sandbox and referrer policy.
  • Size limit, linear timeDocuments over the limit are rejected, and large inputs are processed without quadratic loops.
  • Strict CSP friendlyNo eval and no inline handlers; the integrations pass a nonce to the editor script.

Integration in 3 steps

Install, put the editor in a form and sanitize on save.

Laravel

1 · Install
composer require veditor/laravel
2 · Add to the form
<form method="post">
    @csrf
    @veditor('content', $article->body)
</form>
3 · Sanitize on save
$article->body = $veditor->sanitize(
    $request->input('content')
);

React

1 · Install
npm install @veditor.eu/react
2 · Import
import { VEditor }
  from '@veditor.eu/react';
3 · Use
<VEditor name="content"
  value={html}
  onChange={setHtml} />

PHP

1 · Install
composer require veditor/veditor
2 · Add to the form
echo VEditor\Widget::render([
    'name' => 'content',
    'value' => $html,
    'assetsUrl' => '/veditor',
]);
3 · Sanitize on save
$clean = (new HtmlSanitizer())
    ->sanitize($_POST['content']);

Other technologies: Symfony, Yii2, Vue and your file manager.

Pricing at a glance

A perpetual licence per domain, subdomains included. Unlimited users. Local and staging environments need no licence.

Pro

All editor features, the PHP sanitizer and every integration.

from$79

See options

Stripe, as the seller, shows the tax for your country at checkout. Full pricing

Frequently asked questions

No. It is a perpetual licence: the version you buy works forever, and 12 months of updates are included. Renewal is optional.

No. The editor is a set of native ES modules loaded by the browser, and the PHP part needs only the dom, libxml and mbstring extensions.

No. Local and test addresses (localhost, *.test, staging. and similar) work without a licence. AI features there need a free trial key, which also lets you install VEditor with Composer on your machine.

Yes. Everything except AI works without a licence; the editor only shows a note that no licence is installed.

No. The licence is verified locally and the editor sends nothing to the vendor.

AI features run on your own OpenAI or Anthropic account. You pay the provider directly for usage, with no involvement from us.

From the blog

All posts

AI in the content editor

How to integrate OpenAI with a WYSIWYG editor?

To integrate OpenAI with a WYSIWYG editor, you need an endpoint on your own server that accepts an action name and text from the editor, checks permissions, adds the API key and sends a cleaned result back to the preview. The OpenAI key never reaches the browser, and you treat the model’s respons…

Clean HTML, accessibility and SEO

How to clean HTML copied from Google Docs

HTML copied from Google Docs contains a style on almost every fragment of text, a <b id="docs-internal-guid-…"> wrapper around the whole thing, and dir, role and aria-level attributes. Cleaning it means removing that wrapper, turning styled span elements into strong and em, keeping headings, list…

HTML security

Why filtering HTML in the browser is not enough

Because the server does not know whether a request came from your editor. Anyone who can save content can also send arbitrary HTML with their own HTTP client, a modified form or another endpoint – and then the JavaScript filter never runs at all. Cleaning in the browser improves convenience and c…

Try it in your browser

The demo has the full toolbar and shows what the PHP sanitizer returns for your content.