1,修改ckeditor的源码cofig.js文件

// 不给图片img添加style属性
config.disallowedContent='img{width,height};img[width,height]';

docker-ckeditor图片img标签style属性自适应

2,压缩静态文件

python manage.py collectstatic --noinput
python manage.py compress --force

3, 测试效果,成功

docker-ckeditor图片img标签style属性自适应

相关文章:

  • 2022-03-09
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-08-19
  • 2021-11-21
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-10-11
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案