Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.39k stars 316 forks source link

Programatically set preview #56

Open jp3492 opened 5 years ago

jp3492 commented 5 years ago

I'm submitting a...

Version information

Browser type and version: EasyMDE version: 4

Im curios how i can set the editor to render in preview mode? I only want the editor to be editable when the admin is using it, other users should only see the preview

Ionaru commented 5 years ago

EasyMDE version 4?

The editor is supposed to be what it is, an editor. What you can do is get the rendered markdown and display that in place of the editor.