Displaying preview panel automatically in markitup! editor

后端 未结 5 1338
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:33

    Just in case anybody else is following the accepted answer and runs into problems:

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

    worked for me (while 'mouseup' didn't). Maybe they changed the behaviour in the newest version of markItUp! (v1.1.7)?

提交回复
热议问题