Export as Word file without pictures #35
Closed
condorheroblog
started this conversation in
General
Replies: 2 comments 2 replies
-
@condorheroblog oh look so great! |
Beta Was this translation helpful? Give feedback.
0 replies
-
@condorheroblog can you create PR? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When rich text editor export to Word uses
prosemirror-docx
repository, which is a server-side open source repository and cannot be run in the browser.Here is the reason:
prosemirror-docx
uses thesizeOf
API ofbuffer-image-size
to measure the width and height of the image when exporting images.buffer-image-size
directly uses theBuffer
object, which belongs toNode.js
and does not exist in the browser.Look this picture, it's good.
How to fix this bug? Use the browser API to implement it. I recommended image-dimensions.
https://www.npmjs.com/package/image-dimensions
What's your opinion?👋
Beta Was this translation helpful? Give feedback.
All reactions