Support » Fixing WordPress » Trigger when a block is duplicated
5 months ago
Gutenberg editor question. When a block is duplicated, is there a trigger that allows me to modify the copied instance of the block such as the attributes?
I appreciate any advice!
Are you talking about when you are editing blocks in the block editor, or duplicating a block some other way.
When you duplicate a block in the block editor, you can manually edit block content/attributes, so I’m wondering if there is some other way you are duplicating the block?
when a block is duplicated through the editor, I wonder if there is a way to modify the attributes of the copy on the fly? As example: set the value for an attribute as empty ”
However, diving into that topic would be outside of the scope of this support forum.
2 weeks, 4 days ago
@htmgarcia any luck? Could you find a way?