wysiwyg-editor
wysiwyg-editor copied to clipboard
Can't getPDF to work in React
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.
npm i html2pdf.js
or suposably more stable
npm i [email protected]
and enable in froala config.
import html2pdf from 'html2pdf.js';
// ....
const froalaConfig = {
html2pdf: html2pdf,
}