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

добавил проверку на лок(событие oncut)

http://bugzserver/show_bug.cgi?id=27500 -  [CoEdit][Copy&Paste] JS ошибка после того как один юзер лочит диаграмму, а второй вырезает её вместе с параграфом

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59592 954022d7-b5bf-4e40-9824-e11837661b57
parent 435c536e
......@@ -6794,11 +6794,14 @@ function Editor_CopyPaste_Create(api)
}
ElemToSelect.oncut = function(e){
ElemToSelect.innerHTML = "";
Editor_Copy_Event(e, ElemToSelect);
api.WordControl.m_oLogicDocument.Remove(1, true, true);
api.WordControl.m_oLogicDocument.Document_UpdateSelectionState();
if(false === api.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_Paragraph_Content))
{
ElemToSelect.innerHTML = "";
Editor_Copy_Event(e, ElemToSelect);
api.WordControl.m_oLogicDocument.Remove(1, true, true);
api.WordControl.m_oLogicDocument.Document_UpdateSelectionState();
}
}
ElemToSelect["onbeforecut"] = function(e){
......
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