Robert Velnic
Mar 14, 2023
(2 votes)

Toggling content validation on TinyMCE

Recently, we received a request from one of our clients to add a feature to the TinyMCE editor that would allow them to disable or enable any validations being run on the content written into the editor. We are happy to announce that this feature is now available in version 4.1.0


The basic editor currently only runs a simple alt-text validation which checks whether or not the image inserted into the editor contains any alternative text used for accessibility. With this new feature, users can now choose whether or not they want to disable validation from happening.

As it stands, when validation runs on the editor, warnings will become visible while publishing a page and they might feel as if they are unnecessary or distracting.


By default, validation on the editor will run as-is without any prior configuration. To disable it we have provided two methods:

Through an extension method on IServiceCollection

The method takes an optional bool parameter. If it is set to true, validation will not run (this is the default). If it is set to false it will run.


By disabling directly through TinyMceConfiguration

The usage is same as above, except the bool parameter is required.

services.Configure<TinyMceConfiguration>(config => {

Disabling the validation on the editor no longer runs any checks on the content, and as such, no warnings will be shown.

Mar 14, 2023


Please login to comment.
Latest blogs
Content Graph - Letting GraphQL do all the hard work for you

Background As we have seen before, setting up Content Graph on the CMS side is pretty easy. However, when it comes to the “head” part of the setup,...

| May 26, 2023 | Syndicated blog

Improved headless functionality in Customized Commerce

Did you know that with the release of Content Delivery Commerce API 3.7 we have massively improved the out of the box headless capabilities of...

Marcus Hoffmann | May 25, 2023

Boost Your Productivity with the AI Assistant Addon for Optimizely Content Cloud

In today's fast-paced digital world, efficiency and convenience are paramount. That's why we're excited to introduce the Optimizely AI-Assistant...

Luc Gosso (MVP) | May 25, 2023 | Syndicated blog

Swapcode.Optimizely.AuditLog updated to v1.4.1

If you are using my audit log add-on Swapcode.Optimizely.AuditLog then I suggest that you update it in your solution. I've been waiting now for few...

Antti Alasvuo | May 20, 2023