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

http://bugzserver/show_bug.cgi?id=30456 - [TextArt][CoEdit] Заблокировать...

http://bugzserver/show_bug.cgi?id=30456 - [TextArt][CoEdit] Заблокировать вставку текста в залоченный textart

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64982 954022d7-b5bf-4e40-9824-e11837661b57
parent 54d05b45
......@@ -2022,10 +2022,11 @@
newFonts = this._convertFonts(oPasteProcessor.oFonts);
History.Create_NewPoint();
History.StartTransaction();
oPasteProcessor._Execute(node, {}, true, true, false);
if(!oPasteProcessor.aContent || !oPasteProcessor.aContent.length) {
window.GlobalPasteFlag = false;
window.GlobalPasteFlagCounter = 0;
History.EndTransaction();
return false;
}
......@@ -2106,10 +2107,19 @@
var isIntoShape = worksheet.objectRender.controller.getTargetDocContent();
if(isIntoShape)
{
var resultPasteInShape = this._pasteInShape(worksheet, node, onlyFromLocalStorage, isIntoShape);
if(resultPasteInShape == true)
return;
var callback = function(isSuccess)
{
if(isSuccess)
t._pasteInShape(worksheet, node, onlyFromLocalStorage, isIntoShape);
else
{
window.GlobalPasteFlag = false;
window.GlobalPasteFlagCounter = 0;
}
};
worksheet.objectRender.controller.checkSelectedObjectsAndCallback2(callback);
return;
}
//****binary****
......@@ -4688,8 +4698,8 @@
//this.ElemToSelect = ElemToSelect;
this.Ul = document.createElement( "ul" );
this.Ol = document.createElement( "ol" );
this.Para;
this.bOccurEndPar;
this.Para = null;
this.bOccurEndPar = null;
this.oCurHyperlink = null;
this.oCurHyperlinkElem = null;
this.oPresentationWriter = new CBinaryFileWriter();
......
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