Commit 086caa35 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@64501 954022d7-b5bf-4e40-9824-e11837661b57
parent 3cb7332a
......@@ -314,6 +314,28 @@
}
},
getSelectedBinary: function () {
var api = window["Asc"]["editor"];
if(!api || !api.wb)
return false;
var worksheetView = api.wb.getWorksheet();
var activeRange = worksheetView.getSelectedRange();
var objectRender = worksheetView.objectRender;
var isIntoShape = objectRender.controller.getTargetDocContent();
var text = this._makeTableNode(activeRange, worksheetView, isCut, isIntoShape);
History.TurnOff();
var sBase64 = null;
if(!isIntoShape)
sBase64 = this._getBinaryForCopy(worksheetView);
History.TurnOn();
return {sBase64: sBase64, text: text};
},
_getHtmlBase64: function(range, worksheet, isCut)
{
var t = this;
......
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