How to set CodeMirror editor value in javascript?

How to set value of CodeMirror editor with javascript command? I just need to set the text for it. But how? .. Thank you very much for your help!

+4
source share
1 answer

This is explained in manual , in the programming API section:

setValue(string) : set the contents of the editor.

+10
source

Source: https://habr.com/ru/post/1384615/


All Articles