privateOmega/html-to-docx

Reference error : ReferenceError: HTMLToDOCX is not defined.

Opened this issue · 0 comments

I am using <script src="https://cdn.jsdelivr.net/npm/html-to-docx@1.8.0/dist/html-to-docx.umd.min.js"></script> and my function is defined as
`async function getHtml() {
const data = editor.getData();

        const fileBuffer = HTMLToDOCX(data, null, {
            table: { row: { cantSplit: true } },
            footer: true,
            pageNumber: fileBuffer,
        });
    }` 

But wehenever I am calling this function I am getting reference error