output
 
dja" /> output
 
dja" /> output
 
dja"/>

how can i do "removeEmptyTag:False" in django-ckeditor in settings.py

123 Views Asked by At

source

<div class="icon-lg text-white m-b15"><i class="flaticon-fuel-station"></i></div>

output

<div class="icon-lg text-white m-b15">&nbsp;</div>

django-ckeditor automatic remove tag :{

1

There are 1 best solutions below

1
ilyasbbu On

There is this issue on github, it is actually not a bug, it is a feature.

To disable this feature add this to your config:

'allowedContent': True, 'extraAllowedContent': '*(*)',

Optional - customizing CKEditor editor