easy-markdown-editor
easy-markdown-editor copied to clipboard
Is it possible to toggle preview mode by default?
I'm trying to find a way to enable the preview mode by default and disable the user interaction with the toolbar
You can hide the toolbar in the options and call the preview method after initialisation.
@Ionaru how do you know when the editor finished initializing? is there like onInit method/event to hook into?
After ... = new EasyMDE(...);
After
... = new EasyMDE(...);
but that takes time to instantiate.. so prob a setTimeout should be used?
And then what do I call on the instance to programmatically turn on preview mode?