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

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

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

2,压缩静态文件

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

3, 测试效果,成功

posted @ 2021-07-27 17:47  SonnyZhang  阅读(106)  评论(0编辑  收藏  举报