Created
December 22, 2020 13:00
-
-
Save madhur/f70b44d2d8bcf62318f958859b82c55a to your computer and use it in GitHub Desktop.
codemirror.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("load", startLoading, false); | |
let codeMirror = null; | |
function startLoading() { | |
codemirror = document.querySelector(".CodeMirror").CodeMirror; | |
// console.log(codemirror); | |
//codeMirror = CodeMirror(document.body); | |
console.log(codeMirror); | |
codeMirror.execCommand("selectAll"); | |
} | |
setInterval(startLoading, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment