[se] Removing redundant editing function for object, change DE to getApplication()

This commit is contained in:
Konstantin Kireyev
2024-03-22 15:24:29 +05:00
parent d5e30f5c45
commit 8fcf8fe233

View File

@ -437,7 +437,7 @@ define([
if (this.api) {
var oleobj = this.api.asc_canEditTableOleObject(true);
if (oleobj) {
var oleEditor = DE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor');
var oleEditor = this.getApplication().getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor');
if (oleEditor) {
oleEditor.setEditMode(true);
oleEditor.show();
@ -4920,22 +4920,6 @@ define([
}
},
ject: function() {
if (this.api) {
var oleobj = this.api.asc_canEditTableOleObject(true);
if (oleobj) {
var oleEditor = DE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor');
if (oleEditor) {
oleEditor.setEditMode(true);
oleEditor.show();
oleEditor.setOleData(Asc.asc_putBinaryDataToFrameFromTableOleObject(oleobj));
}
} else {
this.api.asc_startEditCurrentOleObject();
}
}
},
onDoubleClickOnTableOleObject: function(obj) {
if (this.permissions.isEdit && !this._isDisabled) {
var oleEditor = SSE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor');