hunghg255 / reactjs-tiptap-editor

A modern WYSIWYG rich text editor based on tiptap and shadcn ui for Reactjs
https://reactjs-tiptap-editor.vercel.app/
MIT License
203 stars 37 forks source link

feat: export pdf #23

Closed hunghg255 closed 3 months ago

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reactjs-tiptap-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 3:24pm
github-actions[bot] commented 3 months ago
Name
🎊 Status :recycle: Destroyed
💬 Latest commit 83109c8a38d2ad10a1e482c2386167b84b4ae53c
🔍 Latest deploy log https://github.com/hunghg255/reactjs-tiptap-editor/runs/29121029485
⌛ Build time ...
🚀 Deploy Preview https://hunghg255-reactjs-tiptap-editor-preview-playground-pr-23.surge.sh
📱 Preview on mobile
Click me

Use your smartphone camera to open QR code link.

Mobile

🤖 Contribute at surge-preview

hunghg255 commented 3 months ago

@condorheroblog I'm trying to use to iframe to export pdf

condorheroblog commented 3 months ago

I think it is also good. I used this open source project - light-print before.

I want to find a way to click the export button and download directly, but currently the best way to export is through the browser. The user need to click again, but I think it is acceptable.

condorheroblog commented 3 months ago
  1. Saving PDF through browser printing is great, you can merge the code into the main branch

  2. Regarding downloading PDF directly, we can get JSON for rich text editor, we should be able to use the open source library for making PDFs, and then download it after making it, For example: https://github.com/giosifelis/proseMirror-pdfMake

It would be great if this open source repository could be used for free https://github.com/OnedocLabs/react-print-pdf