Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No more compatible with docx since v8.5.0 #21

Closed
jlchereau opened this issue May 9, 2024 · 2 comments
Closed

No more compatible with docx since v8.5.0 #21

jlchereau opened this issue May 9, 2024 · 2 comments

Comments

@jlchereau
Copy link

jlchereau commented May 9, 2024

This now fails (used to work fine with versions 8.4.0 and prior):

import { defaultDocxSerializer } from 'prosemirror-docx';
import { Packer } from 'docx';
import { saveAs } from 'file-saver';

const input = proseMirrorElement.current.value();
const wordDocument = defaultDocxSerializer.serialize(input, {});
const blob = await Packer.toBlob(wordDocument);
saveAs(blob, 'whatever.docx');

Issue seems to be related to missing FontTable after dolanmiu/docx#2174

@dan-cooke
Copy link
Collaborator

dan-cooke commented Jul 4, 2024

Checkout our fork https://github.com/templi-ai/prosemirror-docx - we have bumped docx to version 8.5.0

@jlchereau
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants