Make unique block id (not html id) #28137
Open
Labels
Comments
Do you want the comments on the editor, or on the frontend? |
@aristath Yes, i want add comments to frontend. But i need identificate blocks because articles can be edited and blocks can be rearranged, so i need comments to conform own blocks. And is this a problem if blocks will have additional non active attribute? If it Will break editor i can remove it when i disable plugin. And may be i can somehow add metadata to all blocks? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is this about?
Hi! I'm creating plugin which adds comment section to each block of article. So i need a unique id of an each block, stored in a database. How can i achieve this? Maybe i can somehow add extra attribute {"blockId": 1} to each block, but how can i do this, so it would not be deleted by gutenberg? Thanks!
The text was updated successfully, but these errors were encountered: