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

getSelectedBinary(+ возвращает заселекченые картинки)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65001 954022d7-b5bf-4e40-9824-e11837661b57
parent 68bd3d96
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
} }
}, },
getSelectedBinary: function () { getSelectedBinary: function (isCut) {
var api = window["Asc"]["editor"]; var api = window["Asc"]["editor"];
if(!api || !api.wb) if(!api || !api.wb)
return false; return false;
...@@ -335,7 +335,25 @@ ...@@ -335,7 +335,25 @@
sBase64 = this._getBinaryForCopy(worksheetView); sBase64 = this._getBinaryForCopy(worksheetView);
History.TurnOn(); History.TurnOn();
return {sBase64: sBase64, html: html, text: this.lStorageText}; var objectRender = worksheetView.objectRender;
var selectedImages = objectRender.getSelectedGraphicObjects();
var drawingUrls = [];
if(selectedImages && selectedImages.length)
{
var url, correctUrl, graphicObj;
for(var i = 0; i < selectedImages.length; i++)
{
graphicObj = selectedImages[i];
if(graphicObj.isImage())
{
url = graphicObj;
drawingUrls[i] = graphicObj.getBase64Img();
}
}
}
return {sBase64: sBase64, html: html, text: this.lStorageText, drawingUrls: drawingUrls};
}, },
_getHtmlBase64: function(range, worksheet, isCut) _getHtmlBase64: function(range, worksheet, isCut)
......
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