ndiego / icon-block

Effortlessly add SVG icons and graphics to your website.
https://nickdiego.com/projects/icon-block/
GNU General Public License v2.0
104 stars 14 forks source link

Allow users to insert custom SVG icons from an "uploaded" .svg file #16

Closed ndiego closed 1 year ago

ndiego commented 1 year ago

Upgrade the placeholder component so that you can drop an .svg file onto the placeholder, and it will automatically insert the custom SVG. This functionality would be similar to the Image block placeholder, but the .svg is not actually uploaded. The SVG is just added to the custom SVG field.

upload

There should also be a way to do this in the custom SVG modal.

nicmare commented 1 year ago

YES!! like requested here https://wordpress.org/support/topic/upload-custom-svg-file-or-pick-on-from-media/ i could share a gist with my php svg validation code if you like