Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/super-editor/src/core/DocxZipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as xmljs from 'xml-js';
import JSZip from 'jszip';
import { getContentTypesFromXml } from './super-converter/helpers.js';
import { ensureXmlString, isXmlLike } from './encoding-helpers.js';
import { DOCX } from '@superdoc/common';

/**
* Class to handle unzipping and zipping of docx files
Expand Down Expand Up @@ -274,7 +275,7 @@ class DocxZipper {

// If we are headless we don't have 'blob' support, so export as 'nodebuffer'
const exportType = isHeadless ? 'nodebuffer' : 'blob';
return await zip.generateAsync({ type: exportType });
return await zip.generateAsync({ type: exportType, mimeType: DOCX });
}

/**
Expand Down
Loading