Usage
tsx
import { ImageUpload } from 'reactjs-tiptap-editor';
const extensions = [
...,
// Import Extensions Here
ImageUpload.configure({
upload: (files: File) => {
return new Promise((resolve) => {
setTimeout(() => {
resolve(URL.createObjectURL(files))
}, 500)
})
},
}),
];