Commit a9a7134d authored by Sergey Luzyanin's avatar Sergey Luzyanin

turn off adding and editing ole-objects in viewers. update interface after editing comments

parent bb04e27a
...@@ -806,6 +806,9 @@ ...@@ -806,6 +806,9 @@
baseEditorsApi.prototype.asc_addOleObject = function(oPluginData) baseEditorsApi.prototype.asc_addOleObject = function(oPluginData)
{ {
if(this.isViewMode){
return;
}
Asc.CPluginData_wrap(oPluginData); Asc.CPluginData_wrap(oPluginData);
var oThis = this; var oThis = this;
var sImgSrc = oPluginData.getAttribute("imgSrc"); var sImgSrc = oPluginData.getAttribute("imgSrc");
...@@ -829,6 +832,9 @@ ...@@ -829,6 +832,9 @@
baseEditorsApi.prototype.asc_editOleObject = function(oPluginData) baseEditorsApi.prototype.asc_editOleObject = function(oPluginData)
{ {
if(this.isViewMode){
return;
}
Asc.CPluginData_wrap(oPluginData); Asc.CPluginData_wrap(oPluginData);
var oThis = this; var oThis = this;
var bResize = oPluginData.getAttribute("resize"); var bResize = oPluginData.getAttribute("resize");
......
...@@ -5100,6 +5100,7 @@ CPresentation.prototype = ...@@ -5100,6 +5100,7 @@ CPresentation.prototype =
return true; return true;
} }
} }
this.Document_UpdateInterfaceState();
} }
}, },
......
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