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

Docx | Docx Import Via Mamoth.js #20

Open
jordanparker6 opened this issue Oct 30, 2024 · 3 comments
Open

Docx | Docx Import Via Mamoth.js #20

jordanparker6 opened this issue Oct 30, 2024 · 3 comments

Comments

@jordanparker6
Copy link

Importing via mamoth.js is going to always have issues as many of the docx styles and blocks are not supported.

See https://github.com/mwilliamson/mammoth.js/

Unfortunately, something more complex is going to be required for this feature to work for production use cases.

Happy to lend a hand if anyone wants to team up on this as having the import feature support the full set of default blocks and marks of thecanvas-editor would be amazing.

@jordanparker6
Copy link
Author

jordanparker6 commented Oct 30, 2024

For the export, going to pandoc JSON as an intermediately could be a good approach to export to multiple formats

https://discuss.prosemirror.net/t/pandoc-export/6452/2

@jordanparker6
Copy link
Author

jordanparker6 commented Nov 1, 2024

@Boxser567
Copy link

@jordanparker6
I have used Mammoth.js, but it failed because the DOCX content contains a lot of unusual formatting, which is hard to control.
maybe you can provide a plugin of DOCX.

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