Clearing overridden table cells using script causes losing paragraph styles in indesign 2025 (20.5.1) & 2026 (21.0)
Hi,
var myTables = myDoc.stories.everyItem().tables.everyItem().getElements()
for (var j = 0; j < myTables.length; j++) {
var myTable = myTables[j];
var cells = myTable.cells.everyItem().getElements();
for (var c = 0; c < cells.length; c++) {
try {
cells[c].clearCellStyleOverrides(true);
} catch (e) { }
}
}
While trying to clear the cell overrides across the tables, the paragraph styles are lost and applied as [Basic Paragraph] style.
I’m currently using the indesign 2025 (20.5.1) & 2026 (21.0). Any suggestions?
Thanks in Advance!
Ashrafali R.
