mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-05 09:04:28 -06:00
Improve status bar logic
This commit is contained in:
parent
d607dc4a15
commit
6c66b54e2a
@ -1540,10 +1540,10 @@ function EasyMDE(options) {
|
||||
|
||||
// Handle status bar
|
||||
if (!Object.prototype.hasOwnProperty.call(options, 'status')) {
|
||||
if (options.uploadImage) {
|
||||
options.status = ['upload-image', 'autosave', 'lines', 'words', 'cursor'];
|
||||
} else {
|
||||
options.status = ['autosave', 'lines', 'words', 'cursor'];
|
||||
|
||||
if (options.uploadImage) {
|
||||
options.status.unshift('upload-image');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user