diff --git a/core/multi_line_edit_text_view2.js b/core/multi_line_edit_text_view2.js index 3a16bc8e..16720933 100644 --- a/core/multi_line_edit_text_view2.js +++ b/core/multi_line_edit_text_view2.js @@ -232,6 +232,7 @@ function MultiLineEditTextView2(options) { self.textLines[index].text, col, c); }; + /* this.editTextAtPosition = function(editAction, text, index, col) { switch(editAction) { case 'insert' : @@ -248,6 +249,13 @@ function MultiLineEditTextView2(options) { break; } }; + */ + + this.removeCharactersInText = function(count, index, col) { + self.textLines[index].text = + self.textLines[index].text.slice(col, count) + + self.textLines[index].text.slice(col + count); + }; this.insertCharactersInText = function(c, index, col) { self.textLines[index].text = [ @@ -269,7 +277,7 @@ function MultiLineEditTextView2(options) { // formatted array. // var nextEolIndex = self.getNextEndOfLineIndex(index); - var wrapped = self.wordWrapSingleLine(self.getContiguousText(index, nextEolIndex), 'tabsIntact') + var wrapped = self.wordWrapSingleLine(self.getContiguousText(index, nextEolIndex), 'tabsIntact'); var newLines = wrapped.wrapped; /*