yii2-codemirror
yii2-codemirror copied to clipboard
codefold
how can i do the equivalent of the follwing: window.editor_markdown = CodeMirror.fromTextArea(te_markdown, { mode: "markdown", lineNumbers: true, lineWrapping: true, extraKeys: {"Ctrl-Q": function(cm){ cm.foldCode(cm.getCursor()); }}, foldGutter: true, gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"] });