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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When rich text editor export to Word uses
prosemirror-docxrepository, which is a server-side open source repository and cannot be run in the browser.Here is the reason:
prosemirror-docxuses thesizeOfAPI ofbuffer-image-sizeto measure the width and height of the image when exporting images.buffer-image-sizedirectly uses theBufferobject, which belongs toNode.jsand 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