|
|
@ -14724,7 +14724,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
return this.editor.getValue(true, function (line) { |
|
|
|
return this.editor.getValue(true, function (line) { |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
value.text = rawText; |
|
|
|
value.text = rawText; |
|
|
|
var markedSpans = _.clone(line.markedSpans); |
|
|
|
var markedSpans = _.clone(line.markedSpans) || []; |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
return a.from > b.from; |
|
|
|
return a.from > b.from; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -14750,7 +14750,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
var v = this.editor.getValue("\n", function (line) { |
|
|
|
var v = this.editor.getValue("\n", function (line) { |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
var rawText = line.text, value = line.text, num = 0; |
|
|
|
value.text = rawText; |
|
|
|
value.text = rawText; |
|
|
|
var markedSpans = _.clone(line.markedSpans); |
|
|
|
var markedSpans = _.clone(line.markedSpans) || []; |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
markedSpans.sort(function (a, b) { |
|
|
|
return a.from > b.from; |
|
|
|
return a.from > b.from; |
|
|
|
}); |
|
|
|
}); |
|
|
|