Trigger an event when specific block is duplicated
-
Im developing a block for WordPress block editor [Gutenberg] for every block I am using a randomly generated ID and it just creates at the first time insert and saves in an attribute.
So when I duplicate the block this ID is also duplicated attribute and this brings bugs to my block now I wanna change the newly duplicated block ID attribute and I need to trigger an event when the block is duplicated. Is it possible?
- The topic ‘Trigger an event when specific block is duplicated’ is closed to new replies.