mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[se] Refactoring
Delete redundant check wrap. Check wrap in function _cleanFragments
This commit is contained in:
@ -635,10 +635,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var wrap = fragments.some(function (val) {
|
||||
return -1 !== val.text.indexOf(kNewLine);
|
||||
});
|
||||
|
||||
this._cleanFragments(fragments);
|
||||
|
||||
if (this.selectionBegin !== this.selectionEnd) {
|
||||
@ -651,11 +647,6 @@
|
||||
|
||||
this._addFragments(fragments, this.cursorPos);
|
||||
|
||||
if (wrap) {
|
||||
this._wrapText();
|
||||
this._update();
|
||||
}
|
||||
|
||||
// Сделано только для вставки формулы в ячейку (когда не открыт редактор)
|
||||
if (undefined !== cursorPos) {
|
||||
this._moveCursor(kPosition, cursorPos);
|
||||
|
||||
Reference in New Issue
Block a user