How can I reference to the editor and make Codemirror commands, like for example: CodeMirror.commands["selectAll"](?)