Skip to content

Instantly share code, notes, and snippets.

@dhollenbeck
Last active February 23, 2018 22:09
Show Gist options
  • Save dhollenbeck/71f0d0e102b27a24f4d15453c29a85fc to your computer and use it in GitHub Desktop.
Save dhollenbeck/71f0d0e102b27a24f4d15453c29a85fc to your computer and use it in GitHub Desktop.
codemirror clear
var el = $('.CodeMirror');
var editor = var editor = el[0].CodeMirror;
var value = '';
editor.setValue(value);
editor.save();
var div = editor.getWrapperElement()
div.hide();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment