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

upload image via UploadTab does not send blockId #1280

Open
PandasProperty opened this issue Nov 26, 2024 · 0 comments
Open

upload image via UploadTab does not send blockId #1280

PandasProperty opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PandasProperty
Copy link

Describe the bug
So in the block image, when I upload the image via the UploadTab, the uploadFile blockId is undefined. Also in the editor.onUploadEnd. I would want here to process and update more stuff on the block and I need the block id. I see that the block here is the image block. Why don't you pass also the blockId?
Screenshot 2024-11-26 at 15 28 57

To Reproduce

  • having a image block
  • set on the editor a uploadFile function uploadFile = (file: File, blockId?: string | undefined): Promise<string | Record<string, any>>
  • select the Upload File in the UploadTab.
  • the blockId is undefined
  • the UploadTab does not pass the blockId
Screenshot 2024-11-26 at 15 28 57

Misc

@PandasProperty PandasProperty added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant