Answers for "code mirros apply to all textareas"

0

code mirros apply to all textareas

var textareas = document.querySelectorAll(".textarea-class");
for (var i = 0; i < textareas.length; i++) {
    CodeMirror.fromTextArea(textareas[i], {
        lineWrapping: true,
        mode: "javascript",
        theme: "neat",
        lineNumbers: true
     });
}
Posted by: Guest on October-21-2020

Code answers related to "code mirros apply to all textareas"

Code answers related to "Javascript"

Browse Popular Code Answers by Language