Check migration with OnlyOffice tables

pull/1/head
yflory 3 years ago
parent 93f7afe88c
commit 5e56bbaf94

@ -1651,13 +1651,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); }

Loading…
Cancel
Save