限制图片大小和类型

限制大小

默认限制图片大小是 5M ,可以自己修改。

editor.config.uploadImgMaxSize = 2 * 1024 * 1024 // 2M

限制类型

editor.config.uploadImgAccept = ['jpg', 'jpeg', 'png', 'gif', 'bmp']
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2021-01-19 08:21:56

results matching ""

    No results matching ""