How to reset Codemirror editor? -


i reset contents of codemirror editor. ideally, should clear textarea, remove marks , clear history.

what's best way achieve this?

cm.setvalue(""); cm.clearhistory(); // cm.cleargutter("gutterid"); if have gutters 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -