How do I disable CKeditor removing tags like <div>
because it deems it not needed but I need it?
Thanks.
Assume that you have defined your editor like this:
var editor = CKEDITOR.replace( 'editor1' );
then add this configuration:
editor.config.allowedContent = true;
OR
in config.js
, just add this
config.allowedContent = true;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.