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

php - Array to string conversion smarty template -

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

vb.net - Font adding using PDFsharp -