Commit a99e630f authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent e5cfa693
...@@ -14828,9 +14828,9 @@ CopyProcessor.prototype = ...@@ -14828,9 +14828,9 @@ CopyProcessor.prototype =
if(graphicObj.isImage()) if(graphicObj.isImage())
{ {
url = graphicObj.getImageUrl(); url = graphicObj.getImageUrl();
if(window.NativeCorrectImageUrlOnCopy) if(window["NativeCorrectImageUrlOnCopy"])
{ {
correctUrl = window.NativeCorrectImageUrlOnCopy(url); correctUrl = window["NativeCorrectImageUrlOnCopy"](url);
drawingUrls[i] = correctUrl; drawingUrls[i] = correctUrl;
} }
...@@ -14847,6 +14847,8 @@ CopyProcessor.prototype = ...@@ -14847,6 +14847,8 @@ CopyProcessor.prototype =
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
var text = ""; var text = "";
if (oDocument.Get_SelectedText)
text = oDocument.Get_SelectedText();
return {sBase64: sBase64, text: text, drawingUrls: drawingUrls}; return {sBase64: sBase64, text: text, drawingUrls: drawingUrls};
} }
...@@ -371072,7 +371074,7 @@ asc_docs_api.prototype.Call_Menu_Context_Copy = function() ...@@ -371072,7 +371074,7 @@ asc_docs_api.prototype.Call_Menu_Context_Copy = function()
if (null != _binary_data.drawingUrls && _binary_data.drawingUrls.length > 0) if (null != _binary_data.drawingUrls && _binary_data.drawingUrls.length > 0)
{ {
_stream["WriteByte"](1); _stream["WriteByte"](1);
_stream["WriteString2"](_binary_data.drawingUrls[0]); _stream["WriteStringA"](_binary_data.drawingUrls[0]);
} }
// owner format // owner format
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