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
Is your feature request related to a problem? Please describe.
When pasting or uploading a file, I hope I can return the dataurl/URL.createObjectUrl to user after they paste, then uploading to server in the background, after uploaded I can give the real url to image/file.
This may introduce the pending state to editor, e.g. notify user there are background running process, they should not just submit the form & exit.
Describe the solution you'd like
Maybe expose current ImageBlock to extension, I don't want to build this from ground, but this require the builtin blocks has the extendibility.
Describe alternatives you've considered
Replace the block ?
Additional context
Bonus
[ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖
The text was updated successfully, but these errors were encountered:
I think this is already partially documented with the resolveFileUrl editor option, which lets you use the string that you have stored on the file block's url prop as an identifier to fetch the file URL async from a backend on render. However, the documentation for this is missing atm so we definitely need to fix that.
resolveFileUrl solve the paste url problem, but seems unable to solve the pending load problem. e.g. the upload need seconds, the image block is unable to notify the user they already pasted the image.
Is your feature request related to a problem? Please describe.
When pasting or uploading a file, I hope I can return the dataurl/URL.createObjectUrl to user after they paste, then uploading to server in the background, after uploaded I can give the real url to image/file.
This may introduce the pending state to editor, e.g. notify user there are background running process, they should not just submit the form & exit.
Describe the solution you'd like
Maybe expose current ImageBlock to extension, I don't want to build this from ground, but this require the builtin blocks has the extendibility.
Describe alternatives you've considered
Replace the block ?
Additional context
Bonus
[ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖
The text was updated successfully, but these errors were encountered: