Last active
February 23, 2018 22:09
-
-
Save dhollenbeck/71f0d0e102b27a24f4d15453c29a85fc to your computer and use it in GitHub Desktop.
codemirror clear
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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