Commit 3b5c7bab authored by Oleg Korshul's avatar Oleg Korshul

copy text in cell and paste by button

parent e355e0c7
......@@ -847,13 +847,18 @@
if (!_ret && null != this.LastCopyBinary)
{
var _data = null;
var _isInternal = false;
for (var i = 0; i < this.LastCopyBinary.length; i++)
{
if (c_oAscClipboardDataFormat.Internal == this.LastCopyBinary[i].type)
{
this.Api.asc_PasteData(AscCommon.c_oAscClipboardDataFormat.Internal, this.LastCopyBinary[i].data);
_isInternal = true;
}
}
if (!_isInternal && this.LastCopyBinary.length > 0)
this.Api.asc_PasteData(this.LastCopyBinary[0].type, this.LastCopyBinary[0].data);
}
return _ret;
}
......
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