We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice if you could supply a file path when registering an icon instead of having to cram the SVG markup into a Javascript variable.
The text was updated successfully, but these errors were encountered:
I have a working version of this in a custom plugin. Here is the idea I'm playing with:
mytheme/assets/icons
mytheme/assets/icons/icon1.svg mytheme/assets/icons/some_dir/icon2.svg mytheme/assets/icons/some_dir/some_subdir/icon3.svg
On local, it's take ~600ms to load 4354 icons from FontAwesome and Heroicons. Not sure how it would handle a large icon set on a real server.
Loading 1 Heroicons set (324 icons) takes ~150ms.
I'd love to have this filter only run when initiating the icon block, right now it runs immediately when the editor is loaded.
Anyone care to play with this code? Should we get it into a PR?
Sorry, something went wrong.
No branches or pull requests
It would be nice if you could supply a file path when registering an icon instead of having to cram the SVG markup into a Javascript variable.
The text was updated successfully, but these errors were encountered: