如何调整大小/压缩或设置图像的默认高度宽度/样式表类由 django Ckeditor 上传

问题描述

我将 Django-Ckeditor 用于 RichTextUploadField,但是,有些图像非常大,我需要在将其发送到服务器之前调整大小/压缩

enter image description here

或者如果我可以设置认宽度和高度或样式表类

enter image description here

enter image description here

我试过了,但没有运气:

CKEDITOR_CONfigS = {
'default': {
    'stylesSet': [
        {
            'name': 'Image-Fluid','element': 'img','attributes': {'class': 'img-fluid'},},],

}

需要您的帮助社区。任何想法如何使这成为可能。 我的 CKeditor 配置:gist

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)