Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

code mirror detect change

let editor=CodeMirror.fromTextArea(textArea);                                                                     

//listen for CodeMirror changes
editor.on('change', function(editor){                                   
      let text = editor.doc.getValue()                                        
      console.log(text);                                                      
}); 
 
PREVIOUS NEXT
Tagged: #code #mirror #detect #change
ADD COMMENT
Topic
Name
5+7 =