cleanup (broken files)
This commit is contained in:
@@ -42,11 +42,11 @@ export const ImageUpload = Extension.create({
|
||||
})(),
|
||||
{
|
||||
loading: "Processing & uploading image...",
|
||||
success: (url) => {
|
||||
success: ({ url, filename }) => {
|
||||
// Insert image
|
||||
editor.chain()
|
||||
.focus()
|
||||
.setImage({ src: url })
|
||||
.setImage({ src: url, filename })
|
||||
.run();
|
||||
|
||||
// Manually force a new paragraph at the end so the user can keep typing
|
||||
|
||||
Reference in New Issue
Block a user