* Some thoughts
This commit is contained in:
parent
81dab54f78
commit
683f21cf1a
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue