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 @@ ...@@ -2022,10 +2022,11 @@
newFonts = this._convertFonts(oPasteProcessor.oFonts); newFonts = this._convertFonts(oPasteProcessor.oFonts);
History.Create_NewPoint();
History.StartTransaction(); History.StartTransaction();
oPasteProcessor._Execute(node, {}, true, true, false); oPasteProcessor._Execute(node, {}, true, true, false);
if(!oPasteProcessor.aContent || !oPasteProcessor.aContent.length) { if(!oPasteProcessor.aContent || !oPasteProcessor.aContent.length) {
window.GlobalPasteFlag = false;
window.GlobalPasteFlagCounter = 0;
History.EndTransaction(); History.EndTransaction();
return false; return false;
} }
...@@ -2106,10 +2107,19 @@ ...@@ -2106,10 +2107,19 @@
var isIntoShape = worksheet.objectRender.controller.getTargetDocContent(); var isIntoShape = worksheet.objectRender.controller.getTargetDocContent();
if(isIntoShape) if(isIntoShape)
{ {
var callback = function(isSuccess)
var resultPasteInShape = this._pasteInShape(worksheet, node, onlyFromLocalStorage, isIntoShape); {
if(resultPasteInShape == true) if(isSuccess)
return; t._pasteInShape(worksheet, node, onlyFromLocalStorage, isIntoShape);
else
{
window.GlobalPasteFlag = false;
window.GlobalPasteFlagCounter = 0;
}
};
worksheet.objectRender.controller.checkSelectedObjectsAndCallback2(callback);
return;
} }
//****binary**** //****binary****
...@@ -4688,8 +4698,8 @@ ...@@ -4688,8 +4698,8 @@
//this.ElemToSelect = ElemToSelect; //this.ElemToSelect = ElemToSelect;
this.Ul = document.createElement( "ul" ); this.Ul = document.createElement( "ul" );
this.Ol = document.createElement( "ol" ); this.Ol = document.createElement( "ol" );
this.Para; this.Para = null;
this.bOccurEndPar; this.bOccurEndPar = null;
this.oCurHyperlink = null; this.oCurHyperlink = null;
this.oCurHyperlinkElem = null; this.oCurHyperlinkElem = null;
this.oPresentationWriter = new CBinaryFileWriter(); 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