From ca47093bc8aa1e32a17af2760d8e71bcca350d0c Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 15 Oct 2013 20:43:32 +0400 Subject: [PATCH] restore textInput.setReadOnly call needed for disabling contextmenu items --- lib/ace/editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ace/editor.js b/lib/ace/editor.js index c098e792..4ff568c9 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -2367,7 +2367,10 @@ config.defineOptions(Editor.prototype, "editor", { initialValue: true }, readOnly: { - set: function(readOnly) { this.$resetCursorStyle(); }, + set: function(readOnly) { + this.textInput.setReadOnly(readOnly); + this.$resetCursorStyle(); + }, initialValue: false }, cursorStyle: {