8
Von dem, was ich über CodeMirror gelesen habe, sollte ich onBlur
in mein Konsolenprotokoll geschrieben haben, wenn ich den Textbereich verwische. Nichts wird widerhallen.CodeMirror onBlur Ereignis und console.log()
var textarea = document.getElementById('block');
var editor = CodeMirror.fromTextArea(textarea, {
lineNumbers: false,
content: textarea.value,
onBlur: function() {
console.log("onBlur");
}
});
Habe ich überhaupt etwas verpasst?
Dank, fand ich es hier https://github.com/marijnh/CodeMirror/issues/818 zu – ngplayground
@DonaldSutherland, Groß. Ich habe die Dokumentation gelesen – Alexander