mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 14:22:03 +08:00
[se] Removing redundant editing function for object, change DE to getApplication()
This commit is contained in:
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user