ONLYOFFICE / sdkjs-plugins

The add-ons for ONLYOFFICE Document Server and ONLYOFFICE Desktop Editors.
https://www.onlyoffice.com
Apache License 2.0
136 stars 134 forks source link

GetAllOleObjects returned undefined #183

Open elkon028 opened 1 year ago

elkon028 commented 1 year ago

https://api.onlyoffice.com/plugin/executemethod/text/getalloleobjects

// OR

plugin.init = function () { var plugin = window.Asc.plugin var image = { data: '', imgSrc: 'https://fanyi-cdn.cdn.bcebos.com/static/translation/img/header/logo_e835568.png', guid: plugin.guid, "width": 70, "height": 70, "widthPix": 60 36000, "heightPix": 60 36000 }

plugin.executeMethod('AddOleObject', [image], function () { plugin.executeMethod('GetAllOleObjects', [plugin.guid], function (data) { console.info('GetAllOleObjects', data) // data is undefined }) }) }



**data is undefined, why?**