【问题标题】:how can i do "removeEmptyTag:False" in django-ckeditor in settings.pyhow can i do \"removeEmptyTag:False\" in django-ckeditor in settings.py
【发布时间】:2022-12-01 14:48:42
【问题描述】:
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"> </div>
django-ckeditor automatic remove tag :{
【问题讨论】:
标签:
python
django
django-ckeditor
【解决方案1】:
There is this issue on github, it is actually not a bug, it is a feature.
To disable thisfeatureadd this to your config:
'allowedContent': True, 'extraAllowedContent': '*(*)',
Optional - customizing CKEditor editor