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…

Choosing, licensing and deploying an editor

What is a WYSIWYG HTML editor? A complete guide for developers

A WYSIWYG HTML editor is an interface component that lets users create and format content much as they would in a word processor, without typing HTML tags by hand. The user sees headings, lists, links, tables and images while working, and the application stores the result as HTML. In CMS and SaaS…

Integrations and media

How to add a WYSIWYG editor to Laravel: a practical integration plan

A WYSIWYG editor in a Laravel application is more than a form field with a toolbar. You have to install it, configure it, put it in a view and – above all – save what the editor sends correctly. This article walks through the whole process using the veditor/laravel package as an example – from co…

AI in the content editor

AI assistant in a CMS — how does it work and what is it for?

An AI assistant in a CMS is a set of features built into the content editor that, at the editor’s request, send a piece of text to a language model and show a proposed change: shorter, corrected, translated or supplemented with metadata. A well-designed assistant works through the application ser…

Clean HTML, accessibility and SEO

How to paste from Word into a CMS and get clean HTML

To paste text from Word into a CMS without unnecessary code, you need to keep the document’s structure – headings, lists, tables, links and emphasis – and remove everything Word adds for its own layout: Mso classes, mso- styles, fonts, colours and empty tags. This is best done by an editor that c…

HTML security

How to secure HTML from a WYSIWYG editor in PHP

You secure HTML from a WYSIWYG editor on the server: before every save, you pass it through a sanitizer built on a parser and an allowlist of tags, attributes, classes and URLs. On top of that come supporting layers – displaying content in the right context, a Content Security Policy header, safe…

Choosing, licensing and deploying an editor

How to choose a WYSIWYG HTML editor for a web application

In a web application, a rich text editor becomes part of the publishing process. It may handle product descriptions, blog posts, company pages, instructions, user notes or message templates. Components that look similar differ in how they represent the document and what happens to its HTML after…

RSS feed