easy-markdown-editor icon indicating copy to clipboard operation
easy-markdown-editor copied to clipboard

Is it possible to toggle preview mode by default?

Open ali-ahnaf opened this issue 4 years ago • 6 comments

I'm trying to find a way to enable the preview mode by default and disable the user interaction with the toolbar

ali-ahnaf avatar Aug 04 '21 08:08 ali-ahnaf

You can hide the toolbar in the options and call the preview method after initialisation.

Ionaru avatar Aug 04 '21 10:08 Ionaru

@Ionaru how do you know when the editor finished initializing? is there like onInit method/event to hook into?

artknight avatar Aug 05 '21 15:08 artknight

After ... = new EasyMDE(...);

Ionaru avatar Aug 05 '21 19:08 Ionaru

After ... = new EasyMDE(...);

but that takes time to instantiate.. so prob a setTimeout should be used?

artknight avatar Aug 05 '21 19:08 artknight

And then what do I call on the instance to programmatically turn on preview mode?

amcsi avatar Jun 17 '22 14:06 amcsi