mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-16 14:34:28 -06:00
Better element option behavior according to #79
This commit is contained in:
parent
8218391cfd
commit
afa0101e68
@ -721,6 +721,11 @@ function SimpleMDE(options) {
|
|||||||
if(options.element) {
|
if(options.element) {
|
||||||
this.element = options.element;
|
this.element = options.element;
|
||||||
}
|
}
|
||||||
|
else if(options.element === null) {
|
||||||
|
// This means that the element option was specified, but no element was found
|
||||||
|
console.log("SimpleMDE: Error. No element was found.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(options.toolbar !== false)
|
if(options.toolbar !== false)
|
||||||
options.toolbar = options.toolbar || SimpleMDE.toolbar;
|
options.toolbar = options.toolbar || SimpleMDE.toolbar;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user