diff --git a/src/ace/Document.js b/src/ace/Document.js index b0edb4eb..83b5f173 100644 --- a/src/ace/Document.js +++ b/src/ace/Document.js @@ -315,7 +315,7 @@ ace.Document = function(text, mode) { if (!fromUndo && this.$undoManager) { var nl = this.$getNewLineCharacter(); this.$deltas.push({ - type: "insert", + action: "insertText", range: new ace.Range(row, 0, row + lines.length, 0), text: lines.join(nl) + nl }); @@ -375,7 +375,7 @@ ace.Document = function(text, mode) { if (!fromUndo && this.$undoManager) { var nl = this.$getNewLineCharacter(); this.$deltas.push({ - type: "insert", + action: "insertText", range: ace.Range.fromPoints(position, end), text: text }); @@ -409,7 +409,7 @@ ace.Document = function(text, mode) { if (!fromUndo && this.$undoManager) { var nl = this.$getNewLineCharacter(); this.$deltas.push({ - type: "remove", + action: "removeText", range: range.clone(), text: this.getTextRange(range) }); @@ -434,9 +434,8 @@ ace.Document = function(text, mode) { this.selection.clearSelection(); for (var i=0; i