Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return the data (or id atleast) of the new block created upon using insertBlocks #410

Closed
zeus-12 opened this issue Nov 14, 2023 · 0 comments · Fixed by #458
Closed

Return the data (or id atleast) of the new block created upon using insertBlocks #410

zeus-12 opened this issue Nov 14, 2023 · 0 comments · Fixed by #458
Labels
enhancement New feature or request prio:high High priority

Comments

@zeus-12
Copy link

zeus-12 commented Nov 14, 2023

Is your feature request related to a problem? Please describe.
i have this use-case where i have the base64 of an image, and wanna insert it (say on click of a button).
But uploading to s3, then adding to the note doesn't seem ideal, cause of the delay(poor ux).

So i was thinking of creating a custom component, which inserts the base64 at first, then updates the url of the image once the file upload is done.

Describe the solution you'd like
Return either just the id or the whole data of the new block created on using insertBlocks.

Describe alternatives you've considered
Uploading to storage, then adding to the editor seems to be the best alternative option, but like i said thats bad ux.

Additional context
None

@zeus-12 zeus-12 added the enhancement New feature or request label Nov 14, 2023
@matthewlipski matthewlipski added the prio:mid Medium priority label Nov 14, 2023
@matthewlipski matthewlipski added prio:high High priority and removed prio:mid Medium priority labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio:high High priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants