Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

codemirror set value

var textArea = document.getElementById('myScript');
var editor = CodeMirror.fromTextArea(textArea);
editor.getDoc().setValue('var msg = "Hi";');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #codemirror #set
ADD COMMENT
Topic
Name
5+3 =