imzbf / md-editor-extension

Common extensions for md-editor-v3 and md-editor-rt.
MIT License
30 stars 14 forks source link

Manually trigger exportPDF without adding to toolbar #41

Closed DerSimeon closed 13 hours ago

DerSimeon commented 5 days ago

Hello, is it possible to manually trigger a PDF Export via the editorRef without adding the exportPDF toolbar component? If not could you tell me a workaround on how to do it anyway?

imzbf commented 5 days ago

I will find time to see if I can expose a trigger

DerSimeon commented 2 days ago

Hey @imzbf is there an update to this?

imzbf commented 1 day ago

It's available in version 2.1.0. https://github.com/imzbf/md-editor-extension/tree/develop/packages/v3/components/ExportPDF#expose

DerSimeon commented 1 day ago

Thank you! Could you tell me what the type for the pdfRef should be? For Example its ExposeParam for MdEditor

imzbf commented 13 hours ago

I haven't finalized how to export the types for individual components yet.