0

How to make a downloading text in codemirror textarea?

1 Answers1

1

CodeMirror is a custom component, so you'll have to go through its interface, rather than the DOM interface, to interact with it. If you save the object that you get when you create your editor instance, you can do editor.execCommand("selectAll") to select the whole editor, or .getValue() to get the content, etcetera.

Marijn
  • 8,691
  • 2
  • 34
  • 37