I use CodeMirror(5.58.2) for edited text.
new_cm = CodeMirror.fromTextArea(textarea_obj, param);
But in the textarea, I can easy replace text, just do this obj.value = obj.value.replace( /123/g, 3210 );
What can I do smth like that in CodeMirror?
Without any interface requests for user. Just a simple "Make Replace" button and code with a regexp pattern.