mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-09 17:32:19 +02:00
Rename option defaultValue > initialValue
This commit is contained in:
parent
214045165c
commit
00fa95823e
|
@ -473,10 +473,10 @@ function SimpleMDE(options) {
|
|||
this.render();
|
||||
|
||||
// The codemirror component is only available after rendering
|
||||
// so, the setter for the defaultValue can only run after
|
||||
// so, the setter for the initialValue can only run after
|
||||
// the element has been rendered
|
||||
if (options.defaultValue) {
|
||||
this.value(options.defaultValue);
|
||||
if (options.initialValue) {
|
||||
this.value(options.initialValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue