IonicaBizau/medium-editor-markdown

Initially load markdown into editor

Closed this issue · 3 comments

Great extension! 💯

I was wondering if I can load markdown into the editor initially.
For example if I fetch markdown from my server and want to edit an existing text.

Is that possible? Didn't find anything in the docs.

Thanks

Any updates? @IonicaBizau

Hey @zigapk,

back then, I got it working by converting the markdown to HTML and setting the editor content like this editor.setContent("<h1>your html</h1>", 0).

Hope that helps.

Ronald

Hi @rbluethl,

thanks for your suggestion. Seems to work great!

Thank you,
Ziga