fix for when window.getComputedStyle(context.element.wysiwyg) does not contain style tag
I have a .docx file that contains an element with a style tag mso-element that does not exist in the getComputedStyle resulting in
this.wwComputedStyle[k] being undefined and calling replace on it breaks the editor content. My users were saving a react-hook-form and the editor contents were always empty.
I have attached the word document that breaks the editor. Try to Ctr + A and Ctrl + C, paste the contents in the editor and see the console.
fix for when window.getComputedStyle(context.element.wysiwyg) does not contain style tag
I have a .docx file that contains an element with a style tag mso-element that does not exist in the getComputedStyle resulting in this.wwComputedStyle[k] being undefined and calling replace on it breaks the editor content. My users were saving a react-hook-form and the editor contents were always empty.
I have attached the word document that breaks the editor. Try to Ctr + A and Ctrl + C, paste the contents in the editor and see the console.
v2.46.4