Sometimes, we want to stop CKEditor from automatically stripping classes from div with JavaScript
In this article, we’ll look at how to stop CKEditor from automatically stripping classes from div with JavaScript.
How to stop CKEditor from automatically stripping classes from div with JavaScript?
To stop CKEditor from automatically stripping classes from div with JavaScript, we set the allowedContent
property to true
.
For instance, we write
config.allowedContent = true;
to set config.allowedContent
to true
to stop CKEditor from automatically stripping classes from div.
Conclusion
To stop CKEditor from automatically stripping classes from div with JavaScript, we set the allowedContent
property to true
.