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
Post a Comment