Search code examples
jquerycodemirrorjquery-events

CodeMirror UnFold using JQuery


Link:

enter image description here

How to click the blue arrow which is a span tag using jquery?

   $('.CodeMirror-foldmarker').click()
   $('.CodeMirror-foldmarker').trigger('click')

Solution

  • $('.CodeMirror')[0].CodeMirror.foldCode(0,null,'unfold')