BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Feature Request: pass the block ID generator function via options

Open horacioh opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Not a problem, but at my company we need our blockIDs to be small because we already have a unique identifier for the whole document.

Describe the solution you'd like add a new option to useBlockNote so it can accept the function that needs to call to create block IDs (currently is using uuid)

Describe alternatives you've considered none, if uuid works for most people then that's fine!

Additional context I can contribute with this to the codebase if it feels relevant

horacioh avatar Jan 25 '24 15:01 horacioh

Seems like a solid idea and shouldn't be too much of an issue to implement, though I don't think there's a huge demand for that in the community atm so not sure we will work on it too soon. Do you wanna maybe give the implementation a go?

matthewlipski avatar Jan 31 '24 02:01 matthewlipski