Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.98k stars 609 forks source link

Problem on es6 import #1348

Closed WebCimes closed 1 year ago

WebCimes commented 1 year ago

Hi,

I just need to include trumbowyg in a script.js (with type="module"), so I import simply like this : import "../node_modules/trumbowyg/dist/trumbowyg.min.js" But I have two problem, the first is that a function of jquery is deprecated $.isArray at line 804, so I reccomand you to change with this : Array.isArray and the second problem is about svg button who doesn't appear when I use "import" : image image

If you have an idea of the problem ?

Edit : It's work when I precise the option "svgPath"

Thanks

Alex-D commented 1 year ago

I've created an issue for the isArray upgrade, Thanks :)