We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e944d2 commit 24c4e3eCopy full SHA for 24c4e3e
1 file changed
packages/super-editor/src/core/super-converter/exporter.js
@@ -2283,7 +2283,10 @@ export class DocxExporter {
2283
if (elements) {
2284
if (name === 'w:instrText') {
2285
tags.push(elements[0].text);
2286
- } else if (name === 'w:t' || name === 'w:delText' || name === 'wp:posOffset') {
+ } else if (
2287
+ (name === 'w:t' || name === 'w:delText' || name === 'wp:posOffset') &&
2288
+ typeof elements[0].text === 'string'
2289
+ ) {
2290
const text = this.#replaceSpecialCharacters(elements[0].text);
2291
tags.push(text);
2292
} else {
0 commit comments