I am trying to integrate the Wiris MathType editor into Froala (v3.2.6), which is embeded in a Vue project. After following the instructions from the official documentation (https://www.npmjs.com/package/@wiris/mathtype-froala3), I keep getting this error in the browser:
“Uncaught SyntaxError: Unexpected token ‘<‘ at wiris.js:1” even though everything seems to be fine in the public/index.html where the module is loaded (via script tag).
Then, tried to do it differently and import the module in main.js instead of loading it in index.html, but then I got a different error, saying:
Uncaught ReferenceError: FroalaEditor is not defined
at Module.eval (wiris.js?3c99:3)
Any idea how to solve this? Did someone manage to load the module the way the documentation describes it?