mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-02 15:44:28 -06:00
Pre-calculate max file size
This commit is contained in:
parent
f1b6a42561
commit
917ea336c4
@ -1586,7 +1586,7 @@ function EasyMDE(options) {
|
||||
|
||||
// Import-image default configuration
|
||||
options.uploadImage = options.uploadImage || false;
|
||||
options.imageMaxSize = options.imageMaxSize || 1024 * 1024 * 2;
|
||||
options.imageMaxSize = options.imageMaxSize || 2097152; // 1024 * 1024 * 2
|
||||
options.imageAccept = options.imageAccept || 'image/png, image/jpeg';
|
||||
options.imageTexts = extend({}, imageTexts, options.imageTexts || {});
|
||||
options.errorMessages = extend({}, errorMessages, options.errorMessages || {});
|
||||
|
Loading…
x
Reference in New Issue
Block a user