You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
Misc
see latest version of blocknote the implementation of UploadTab
Describe the bug
So in the block image, when I upload the image via the UploadTab, the
uploadFile
blockId is undefined. Also in theeditor.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 theblockId
?To Reproduce
image block
uploadFile function uploadFile = (file: File, blockId?: string | undefined): Promise<string | Record<string, any>>
Upload File
in theUploadTab
.blockId
is undefinedUploadTab
does not pass theblockId
Misc
UploadTab
BlockNote/packages/react/src/components/FilePanel/DefaultTabs/UploadTab.tsx
Line 53 in 3ef7218
The text was updated successfully, but these errors were encountered: