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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -