Files
docmost_custom/packages/editor-ext/src/lib/media-utils.ts
T
2024-06-22 03:33:54 +01:00

14 lines
291 B
TypeScript

import type { EditorView } from "@tiptap/pm/view";
export type UploadFn = (
file: File,
view: EditorView,
pos: number,
pageId: string,
) => void;
export interface MediaUploadOptions {
validateFn?: (file: File) => void;
onUpload: (file: File, pageId: string) => Promise<any>;
}