I know what you are using
editor.setValue("");
to set a single value, but how to add to CodeMirror?
IE:
editor.appendText();?
Use replaceRange . For example editor.replaceRange(myString, CodeMirror.Pos(editor.lastLine()) . editor.replaceRange(myString, CodeMirror.Pos(editor.lastLine()) entire editor is useless expensive.
replaceRange
editor.replaceRange(myString, CodeMirror.Pos(editor.lastLine())
Source: https://habr.com/ru/post/954362/More articles:Is it possible to make Scala JSON.parseFull () not treat integers as decimal numbers? - jsonPipeline Provider Problem - .netrun one test by name from a single nodeunit file - nodeunitRails 4 - syntax error, unexpected tIDENTIFIER awaiting input completion - ruby | fooobar.com-Error reading string characters - c ++UIPopoverController backgroundColor causing flash when displayed - ios7CSS multiple nth-child without template in one selector - jqueryAzure Web Sites connection string for EF not matched - asp.netNginx + php-fpm on Amazon Linux = exited signal 11 - phpMagento 502 Bad gateway, only for custom products - error-handlingAll Articles