V
V
vdm_mar2018-10-13 07:11:30
Django
vdm_mar, 2018-10-13 07:11:30

How to disable removeEmpty formatting of empty tags in django in CKEditor, for example, for div?

CKEditor removes empty tags. This line <div class="class"></div> is removed completely. But <div class="class">123</div>it doesn't touch.
Tried different ACF settings in config.js like "CKEDITOR.dtd.$removeEmpty['div'] = false;", "config.templates_replaceContent = false;" Restarting and deleting the cache didn't help.
Maybe there is some easy way to remove this deletion in django settings?
There is already
'removePlugins': 'stylesheetparser',
'allowedContent': True
'templates_replaceContent': False
But it doesn't help.
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question