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.89k stars 1.12k forks source link

To be able to insert, in the editor. #572

Open teury opened 7 years ago

teury commented 7 years ago

To be able to insert, in the editor.

I have a code that inserts content in the old editor, that I had my web.

Now I do not know what I have to do, to be able to insert content in the editor of simplemde

BrunoMoreira99 commented 7 years ago

https://github.com/NextStepWebs/simplemde-markdown-editor#getset-the-content

simplemde.value("This text will appear in the editor");
teury commented 7 years ago

@BrunoMoreira991

It has not worked for me.

I used a function to insert text, and it works in any "textarea" but not in this editor.

ucev commented 7 years ago

https://codemirror.net/doc/manual.html#api_content