Commit f31c9ab3 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

add _pasteTextOnSheet()

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67970 954022d7-b5bf-4e40-9824-e11837661b57
parent 43aca9b9
...@@ -2262,6 +2262,27 @@ ...@@ -2262,6 +2262,27 @@
} }
}, },
_pasteTextOnSheet: function(text, worksheet)
{
//TODO сделать вставку текста всегда через эту функцию
this.activeRange = worksheet.activeRange.clone(true);
var aResult = [];
aResult[this.activeRange.r1] = [];
var oNewItem = [];
oNewItem[0] = this._getDefaultCell();
aResult[this.activeRange.r1][this.activeRange.c1] = oNewItem;
oNewItem[0][0].text = text;
aResult.fontsNew = [];
aResult.rowSpanSpCount = 0;
aResult.cellCount = 1;
aResult._images = undefined;
aResult._aPastedImages = undefined;
this._pasteResult(aResult, worksheet);
},
_getImageFromHtml: function(html, isGetUrlsArray) _getImageFromHtml: function(html, isGetUrlsArray)
{ {
var res = null; var res = null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment