wangeditor限制图片大小
时间: 2023-08-20 16:04:32 浏览: 235
图片控制大小
5星 · 资源好评率100%
根据引用\[2\]中的配置信息,可以通过设置`uploadImgMaxSize`来限制wangeditor中上传的图片大小。默认情况下,图片大小限制为5M。你可以根据需要修改这个值来限制图片的大小。例如,如果你想将图片大小限制为2M,可以将`uploadImgMaxSize`设置为`2 * 1024 * 1024`。这样,用户在上传图片时,如果图片大小超过了2M,将无法上传成功。
#### 引用[.reference_title]
- *1* [vue 项目中使用wangEditor上传图片视频到oos](https://blog.csdn.net/weixin_45455422/article/details/99062009)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [wangEditor(4x) 上传图片功能及自定义上传图片功能](https://blog.csdn.net/llllllol/article/details/126968549)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [WangEditor 使用与配置 整理记录](https://blog.csdn.net/qq_36230380/article/details/102785379)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文