Skip to content

Instantly share code, notes, and snippets.

@madhur
Created December 22, 2020 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madhur/f70b44d2d8bcf62318f958859b82c55a to your computer and use it in GitHub Desktop.
Save madhur/f70b44d2d8bcf62318f958859b82c55a to your computer and use it in GitHub Desktop.
codemirror.js
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