Usage
tsx
import { VideoUpload } from 'reactjs-tiptap-editor';
const extensions = [
...,
// Import Extensions Here
VideoUpload.configure({
upload: (files: File[]) => {
const f = files.map(file => ({
src: URL.createObjectURL(file),
alt: file.name,
}))
return Promise.resolve(f)
},
}),
];