VolodymyrBaydalka/docxjs

Uncaught (in promise) ReferenceError: Highlight is not defined

def00111 opened this issue · 0 comments

Describe the bug
The bug will occour when u use docx.renderAsync with the option renderComments set to true.

Document
Attachment D - Instructions.docx

Screenshots
KNqo08HDmN

Maybe you should use typeof to check, if Highlight is defined.

docxjs/dist/docx-preview.js

Lines 2786 to 2788 in 2a42da3

if (this.options.renderComments && Highlight) {
this.commentHighlight = new Highlight();
}