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

+ к предыдущей заливке

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60117 954022d7-b5bf-4e40-9824-e11837661b57
parent 12d5298e
......@@ -404,9 +404,12 @@ function Editor_Copy_Event(e, ElemToSelect)
var oCopyProcessor = new CopyProcessor(api, ElemToSelect);
var sBase64 = oCopyProcessor.Start();
e.clipboardData.setData("text/x-custom", sBase64);
e.clipboardData.setData("text/html", ElemToSelect.innerHTML);
e.preventDefault();
if(sBase64 !== false || g_bIsDocumentCopyPaste)
{
e.clipboardData.setData("text/x-custom", sBase64);
e.clipboardData.setData("text/html", ElemToSelect.innerHTML);
e.preventDefault();
}
}
function CopyProcessor(api, ElemToSelect, onlyBinaryCopy)
{
......@@ -1808,7 +1811,10 @@ CopyProcessor.prototype =
var presentation = editor.WordControl.m_oLogicDocument;
var selectedContent = oDocument.Get_SelectedContent();
if(!selectedContent.DocContent && (!selectedContent.Drawings || (selectedContent.Drawings && !selectedContent.Drawings.length)) && (!selectedContent.SlideObjects || (selectedContent.SlideObjects && !selectedContent.SlideObjects.length)))
return false;
this.CopyDocument2(this.ElemToSelect, oDocument, false, selectedContent);
var sBase64 = this.oPresentationWriter.GetBase64Memory();
......
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