Displaying preview panel automatically in markitup! editor

后端 未结 5 1384
Happy的楠姐
Happy的楠姐 2021-02-06 06:04

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 t

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-06 06:39

    I have no experience with this editor but

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

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

提交回复
热议问题