Set to preview by default Markdown Editor

Hi,

I need to set some html code using JS,

like i’ve html in a variable and i m setting in it Markdown editor field type.
but it shows code by default, i want it to show preview by default.

anybody??

Does this help?: Letter Head HTML / Table Setup - #2 by MichaelPinkowski
or this?: Significant Quill WYSIWYG Editor problems (v11) - #17 by MichaelPinkowski