jquerymarkupmarkitup

Displaying preview panel automatically in markitup! editor


I'm using the markitup! as a markdown editor (example).

Currently, I need to press the preview button (green tick) to display the preview panel.

I would like the preview to be displayed automatically - how can I achieve this?


Solution

  • I have no experience with this editor but

    $('a[title="Preview"]').trigger('mouseup');
    

    called after the editor loads seems to do what you want.