Alex-D / Trumbowyg

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

error on $(ele).trumbowyg(); #286

Closed jeffreybasurto closed 8 years ago

jeffreybasurto commented 8 years ago

Installed, reinstalled, confirmed

I'm using bower. Everything is up to date.

trumbowyg.self-458e258….js?body=1:178 Uncaught TypeError: Cannot read property '1' of null(…)

Any idea what's going on? Confirmed in console that the element being selected exists and is being passed. I've tried it on textarea and on div (documentation is unclear which is the right way) with same error.

jeffreybasurto commented 8 years ago

To answer my own question, this seems to be what happens when the icons.svg asset cannot be found and you need to either disable them or set the path manually. Maybe surface this error?

Alex-D commented 8 years ago

Hi! I think this could be helpful for futur devs: http://alex-d.github.io/Trumbowyg/documentation.html#svg-icons