diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 306b166dd..288e47774 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -1638,13 +1638,15 @@ define([ var d, hasChart; if (app === 'doc') { d = getEditor().GetDocument(); - hasChart = d.GetAllCharts().length; + hasChart = d.GetAllCharts().length || d.Document.Content.some(function (obj) { + return obj instanceof AscCommonWord.CTable; + }); if (hasChart) { Feedback.send('OO_DOC_CHART', true); } } else if (app === 'presentation') { d = getEditor().GetPresentation().Presentation; hasChart = d.Slides.some(function (slide) { return slide.getDrawingObjects().some(function (obj) { - return obj instanceof getWindow().AscFormat.CChartSpace; + return obj instanceof getWindow().AscFormat.CChartSpace || obj instanceof getWindow().AscFormat.CGraphicFrame; }); }); if (hasChart) { Feedback.send('OO_SLIDE_CHART', true); }