frist i user GetSelectedOleObjects get all object,then i use forEach like
window.Asc.plugin.executeMethod("GetSelectedOleObjects", [], function (objects) {
const info = window.Asc.plugin.info
if (objects.length === 0) {
....
} else {
objects.forEach(object => {
if (object.guid === info.guid) {
window.Asc.plugin.executeMethod('RemoveOleObject', [object.objectId])
}
})
}
})
to removeOleObject, but the oleObject not be removed, please where is wrong