From d2c180c91bf1bccb80b8762940c9708a275fbf51 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Mon, 9 Apr 2012 16:22:09 +0200 Subject: [PATCH] Bugfix for this being wrong in editorInfo.ace_performDocumentApplyAttributesToRange --- src/static/js/ace2_inner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 4dcd5edcc..aa9f4aace 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -5389,7 +5389,9 @@ function Ace2Inner(){ // Init documentAttributeManager documentAttributeManager = new AttributeManager(rep, performDocumentApplyChangeset); - editorInfo.ace_performDocumentApplyAttributesToRange = documentAttributeManager.setAttributesOnRange; + editorInfo.ace_performDocumentApplyAttributesToRange = function () { + return documentAttributeManager.setAttributesOnRange.apply(documentAttributeManager, arguments); + }; $(document).ready(function(){ doc = document; // defined as a var in scope outside