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
// 不給圖片img添加style屬性
config.disallowedContent='img{width,height};img[width,height]';
python manage.py collectstatic --noinput
python manage.py compress --force