sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

Initial value only if editor is empty #792

Open xfoscarz opened 4 years ago

xfoscarz commented 4 years ago

I need to be able to load text into the editor but the initial value will just replace the content. I want to make it so that if the textcontent of the textarea is empty, then it will use the initial value. But if the textcontent is not empty, then it will not use the initial value.