自定一个命令

CodeMirror.commands.runcode = function (cm) {
    // you can do something here.
};CodeMirror.commands.runcode = f