I hope I can have different state for advance Block like Image/File #2445
Replies: 3 comments
-
|
I think this is already partially documented with the |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
I see, that makes sense - I suppose this is more of a UX issue in that case since the work is mostly just in showing a loader or placeholder when the image is being uploaded on paste. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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 💖
Beta Was this translation helpful? Give feedback.
All reactions