Open dmt0 opened 2 years ago
The only doc that I found is this: https://froala.com/wysiwyg-editor/examples/export-pdf/
It suggests to import a lib through a script tag. Would be great if I could just import it as an NPM dependency.
script
npm i html2pdf.js or suposably more stable npm i html2pdf.js@0.9.0
npm i html2pdf.js
npm i html2pdf.js@0.9.0
and enable in froala config.
import html2pdf from 'html2pdf.js'; // .... const froalaConfig = { html2pdf: html2pdf, }
The only doc that I found is this: https://froala.com/wysiwyg-editor/examples/export-pdf/
It suggests to import a lib through a
script
tag. Would be great if I could just import it as an NPM dependency.