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

[Bug] The browser environment cannot generate images #34

Open
condorheroblog opened this issue Aug 24, 2024 · 0 comments · May be fixed by #35
Open

[Bug] The browser environment cannot generate images #34

condorheroblog opened this issue Aug 24, 2024 · 0 comments · May be fixed by #35

Comments

@condorheroblog
Copy link

condorheroblog commented Aug 24, 2024

Hi, Nice to see you.

reactjs-tiptap-editor uses prosemirror-docx to generate Word files, but cannot generate images. The reason is that prosemirror-docx uses buffer-image-size when measuring the image size. This library uses Buffer API but it does not exist in the browser.

The error:

image

Some detailed information: hunghg255/reactjs-tiptap-editor#35 (comment)

Related issue: #4 (comment)


I recommend using image-dimensions which is a cross-platform solution

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

Successfully merging a pull request may close this issue.

1 participant