Alex-D / Trumbowyg

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

New plugin icon not showing #1250

Closed antoniofalcone89 closed 3 years ago

antoniofalcone89 commented 3 years ago

Hi, i'm developing a new plugin, this is the folder structure (taken from docs):

plugins └── internalLink ├── ui │ ├── icons │ │ └── internalLink.svg └── trumbowyg.internalLink.js

There's no sass folder because i don't need any style customization. Icon is not showing in the editor:

image

Can you give me support? Thank you

Alex-D commented 3 years ago

If you are building a custom version of Trumbowyg with this plugin, you can follow instructions from README to rebuild the projet. Check the gulp task code here: https://github.com/Alex-D/Trumbowyg/blob/fd304a39433b5918291824bfe961bb54d60bfc29/gulpfile.js#L100-L106

If you just want to add this icon, you can inject your icon as a SVG sprite into your HTML.

antoniofalcone89 commented 3 years ago

Solved by adding with my custom plugin id in icons.svg. Thank you for your quick reply!