wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Can't getPDF to work in React

Open dmt0 opened this issue 1 year ago • 1 comments

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.

dmt0 avatar Oct 19 '22 19:10 dmt0

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,
}

doktordirk avatar Apr 17 '24 07:04 doktordirk