Bugfix for this being wrong in editorInfo.ace_performDocumentApplyAttributesToRange

pull/645/head
Egil Moeller 2012-04-09 16:22:09 +02:00
parent 7cf4510bf5
commit 3a62c6d2ab
1 changed files with 3 additions and 1 deletions

View File

@ -5401,7 +5401,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