Skip to content

Commit b6ceba6

Browse files
committed
Prevent font parsing for editor if in node
1 parent 17a3633 commit b6ceba6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/super-editor/src/core/DocxZipper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class DocxZipper {
6868
const imageUrl = URL.createObjectURL(file);
6969
this.media[zipEntry.name] = imageUrl;
7070
}
71-
} else if (zipEntry.name.startsWith('word/fonts') && zipEntry.name !== 'word/fonts/') {
71+
} else if (!isNode && zipEntry.name.startsWith('word/fonts') && zipEntry.name !== 'word/fonts/') {
7272
const arraybuffer = await zipEntry.async('arraybuffer');
7373
this.fonts[zipEntry.name] = arraybuffer;
7474
}

0 commit comments

Comments
 (0)