Skip to content

Commit 41b31bf

Browse files
committed
fix(table): remove all remaining text after inserting text into a table cell
1 parent 57fd995 commit 41b31bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modify/modify-table.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ export class ModifyTable {
137137
'a:tcPr': {
138138
...this.setCellStyle(style),
139139
},
140+
'a:r': {
141+
collection: (collection: HTMLCollectionOf<Element>) => {
142+
XmlHelper.sliceCollection(collection, 1);
143+
},
144+
},
140145
};
141146
};
142147

0 commit comments

Comments
 (0)