【问题标题】: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">&nbsp;</i></div>

output

<div class="icon-lg text-white m-b15">&nbsp;</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

    【讨论】:

      猜你喜欢
      • 2022-11-20
      • 2022-01-04
      • 2022-12-01
      • 2022-12-27
      • 2022-12-27
      • 2022-12-01
      • 2022-12-01
      • 2022-12-27
      • 2022-12-02
      相关资源
      最近更新 更多