Commit 344af95d authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 19574 - [Copy&Paste] Ошибки в консоли при копировании таблицы в режиме CoEdit через меню

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48563 954022d7-b5bf-4e40-9824-e11837661b57
parent 124b31b3
......@@ -1698,6 +1698,7 @@ function Editor_Paste_Button(api)
document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none";
History.Create_NewPoint();
Editor_Paste(api, false);
return true;
}
......@@ -1705,7 +1706,10 @@ function Editor_Paste_Button(api)
{
var ElemToSelect = document.getElementById( COPY_ELEMENT_ID );
if(ElemToSelect)
{
History.Create_NewPoint();
Editor_Paste_Exec(api, ElemToSelect);
}
return true;
}
return false;
......@@ -2204,6 +2208,7 @@ PasteProcessor.prototype =
//����� ��������� ��������
var oSourceFirstPar = Item;
var oSourceLastPar = new Paragraph(oDoc.DrawingDocument, oDoc, 0, 50, 50, X_Right_Field, Y_Bottom_Field );
if(true !== oSourceFirstPar.Cursor_IsEnd())
oSourceFirstPar.Split(oSourceLastPar);
var oInsFirstPar = aNewContent[0];
var oInsLastPar = null;
......
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