From 683f21cf1a9a4b6bd3c3c55fae17f8a2df9e76d5 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 15 Jun 2015 15:54:33 -0600 Subject: [PATCH] * Some thoughts --- core/multi_line_edit_text_view2.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; /*