From 4b372b67ad96f04021acb9d6a30a3a51a5334bc1 Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 31 Oct 2012 17:39:48 +0400 Subject: [PATCH] keep execCommand --- lib/ace/editor.js | 5 +++++ 1 file changed, 5 insertions(+) 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