Get index of Gutenberg block
-
I’m trying to develop a custom Gutenberg block, and since it’s likely to insert several of these blocks in the same page which perform different tasks saving different values, I need too get the index of each block in the page. I’ve tried to get it with js, but since scripts are loaded befor the block, the result is null, undefined or error. Is there a way to get this index?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get index of Gutenberg block’ is closed to new replies.