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

objective c - Can't build GCM with Protobuf in Xcode -

embed HTML within ASP.net -

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