From what I read about CodeMirror, I had to write onBlur to my console log when I blur the text box. Nothing gets an echo.
var textarea = document.getElementById('block'); var editor = CodeMirror.fromTextArea(textarea, { lineNumbers: false, content: textarea.value, onBlur: function () { console.log("onBlur"); } });
Did I miss something?
javascript jquery codemirror
ngplayground
source share