Closed aiavci closed 2 years ago
@aiavci Thank you for your good suggestion. Unfortunately, our job is just to help the editor-js use well in react. Could you create a issue into https://github.com/editor-js/image ?
@aiavci Thank you for your good suggestion. Unfortunately, our job is just to help the editor-js use well in react. Could you create a issue into https://github.com/editor-js/image ?
I just did. Thank you
@Jungwoo- Do you know if its possible to change these to image blobs instead of URLs by any chance?
@aiavci I think you can use https://developer.mozilla.org/ko/docs/Web/API/URL/createObjectURL API.
uploadByFile(file) {
const URL = URL.createObjectURL(file);
return {
success: 1,
file: {
url: URL,
}
};
}
Thank you @Jungwoo-An. And for previewing a saved page, simply looping through and replacing all URLs before rendering?
@aiavci If you want to show saved page, You need image upload server.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It would be great to have support for custom image URL loaders. One example for this user case is if the image is loaded from a protected endpoint.