diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 9f9aee0c..65d31201 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -652,6 +652,11 @@ var Editor = function(renderer, session) { this.insert(text); }; + + this.execCommand = function(command, args) { + this.commands.exec(command, this, args); + }; + /** * Editor.insert(text) * - text (String): The new text to add