Improved <a> and <button> tag control

Currently, when activating a link on a block (where applicable), additional stuff, like the href attribute, is being added.
That makes sense and is the expected behavior when using the default <a> tag.

However, this makes it impossible to create elements from scratch.

For instance, I can’t create a link with the div or button block and set my own URL within the block attributes options.
Attributes will interfere.
On the other side, I can’t just select the <a> tag, since it’s not available with the Div block, when the link wrapper is not active.

For the button block, the ability to set an <a> or <button> tag should be available, even if the link isn’t set to active state, even though the <button> tag would act the same way in both scenarios.

1 Like

Hi @Marius,

Indeed, one was able to apply the <button> tag to a div but not a <a>, which doesn’t make sense.
This has been added in

As for the Button block, we can definitely do the same, and it makes sense. I have to go through a few more checks to make sure that it doesn’t cause any issues on the way.

Thanks for bringing this up.


Thank you for the quick and positive feedback @Louis, as well as for the div related part addition already - I really do appreciate.
I thought to point it out, because it got me stuck for a couple of times already.

Looking forward to the button block implementation, hopefully trouble-free for you :hand_with_index_finger_and_thumb_crossed: