Feature request: Adding attributes to buttons
-
I opened up a topic before about adding an
onclick
attribute to a button, because I wondered if this could be done with the button settings itself.
The answer was that this isn’t possible, and I have to edit the HTML myself, even though this will invalidate the block in the block editor. Another solution was also given.Right now I was trying to add the
download
attribute to a button and found myself in the same situation, and for this project the button is going to be used for a template for a user who might not know HTML well, which makes the process prone to mistakes.The request therefor is if it’s possible to add an ‘Add Attributes’ section in the button section that will add any attribute to it, for example:
download onlick="function()" rtl
Thanks for your time.
- The topic ‘Feature request: Adding attributes to buttons’ is closed to new replies.