Open
Description
Currently image uploading by URL in editor works only from current domain. Will be good to allow uploading from any web source
uploadByUrl: (url: string) => {
if (url.startsWith(window.location.origin)) {
return new Promise<any>(done => done({
success: 1,
file: {
url,
}
}));
} else {
toast.error('Please upload image via File manage')
return new Promise<any>(done => done({
success: 0,
}));
}
}
Metadata
Metadata
Assignees
Labels
No labels