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,14 +1698,18 @@ function Editor_Paste_Button(api) ...@@ -1698,14 +1698,18 @@ function Editor_Paste_Button(api)
document.body.style["user-select"] = "none"; document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none"; document.body.style["-webkit-user-select"] = "none";
History.Create_NewPoint();
Editor_Paste(api, false); Editor_Paste(api, false);
return true; return true;
} }
else else
{ {
var ElemToSelect = document.getElementById( COPY_ELEMENT_ID ); var ElemToSelect = document.getElementById( COPY_ELEMENT_ID );
if(ElemToSelect) if(ElemToSelect)
Editor_Paste_Exec(api, ElemToSelect); {
History.Create_NewPoint();
Editor_Paste_Exec(api, ElemToSelect);
}
return true; return true;
} }
return false; return false;
...@@ -2204,7 +2208,8 @@ PasteProcessor.prototype = ...@@ -2204,7 +2208,8 @@ PasteProcessor.prototype =
//����� ��������� �������� //����� ��������� ��������
var oSourceFirstPar = Item; var oSourceFirstPar = Item;
var oSourceLastPar = new Paragraph(oDoc.DrawingDocument, oDoc, 0, 50, 50, X_Right_Field, Y_Bottom_Field ); var oSourceLastPar = new Paragraph(oDoc.DrawingDocument, oDoc, 0, 50, 50, X_Right_Field, Y_Bottom_Field );
oSourceFirstPar.Split(oSourceLastPar); if(true !== oSourceFirstPar.Cursor_IsEnd())
oSourceFirstPar.Split(oSourceLastPar);
var oInsFirstPar = aNewContent[0]; var oInsFirstPar = aNewContent[0];
var oInsLastPar = null; var oInsLastPar = null;
if(nNewContentLength > 1) if(nNewContentLength > 1)
......
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