Extending Gutenberg’s link options(toggle class)
-
Links in Gutenberg have a toggle for “Open in new tab”. Preferably I would add an extra toggle below this one with, for basic example, “Style as button” which just sets a class or custom attribute that I require.
Problem is, I have no clue where to start. I can’t find related hooks or ways to extend this feature. It makes sense if it’s possible but the documentation is just too vast.Alternatively it’s also acceptable if the toggle sits next to make a link in the toolbar. But the button should only be enabled for anchors, but whenever I try to only target anchors the original Link button gets removed.
Any idea where to start or maybe someone has already created something similar?
Thanks.
- The topic ‘Extending Gutenberg’s link options(toggle class)’ is closed to new replies.