editor.js
editor.js copied to clipboard
💡Include the ID for each block to enable auto-scroll by anchor
-
Describe a problem. If a search functionality is implemented (For example) to search blocks across many editors, it would be useful to be able to send a user straight to the right editor and block for a search item.
-
Describe the solution you'd like. Mockups are welcome. I think it would be easy - add the ID of the block as the ID of the parent HTML tag by default.
-
Are there any alternatives? Possibly? I can't think of any more straight forward ones. It seems unnecessary to, for example, do this programmatically or as part of the API. Saved blocks all have IDs that get reused - so lets just use them?
I think this will be useful for comment by line feature