mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-07 01:54:27 -06:00
Fix two inconsistencies with the documentation
This commit is contained in:
parent
d11ecf7eb0
commit
aeb86dd418
@ -445,7 +445,7 @@ function SimpleMDE(options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(options.toolbar === false)
|
if(options.toolbar === false)
|
||||||
options.toolbar = [];
|
options.toolbar = false;
|
||||||
else
|
else
|
||||||
options.toolbar = options.toolbar || SimpleMDE.toolbar;
|
options.toolbar = options.toolbar || SimpleMDE.toolbar;
|
||||||
// you can customize toolbar with object
|
// you can customize toolbar with object
|
||||||
@ -458,10 +458,8 @@ function SimpleMDE(options) {
|
|||||||
this.options = options;
|
this.options = options;
|
||||||
|
|
||||||
// If user has passed an element, it should auto rendered
|
// If user has passed an element, it should auto rendered
|
||||||
if (this.element) {
|
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default toolbar elements.
|
* Default toolbar elements.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user