|
|
@ -471,6 +471,13 @@ function SimpleMDE(options) {
|
|
|
|
|
|
|
|
|
|
|
|
// If user has passed an element, it should auto rendered
|
|
|
|
// If user has passed an element, it should auto rendered
|
|
|
|
this.render();
|
|
|
|
this.render();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The codemirror component is only available after rendering
|
|
|
|
|
|
|
|
// so, the setter for the defaultValue can only run after
|
|
|
|
|
|
|
|
// the element has been rendered
|
|
|
|
|
|
|
|
if (options.defaultValue) {
|
|
|
|
|
|
|
|
this.value(options.defaultValue);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|