@edifice.io/tiptap-extensions
Version:
Edifice Rich Text Editor Extensions
14 lines (13 loc) • 418 B
TypeScript
import { Node } from '@tiptap/core';
export interface AttachmentOptions {
HTMLAttributes: Record<string, string>;
}
declare module '@tiptap/core' {
interface Commands<ReturnType> {
attachment: {
setAttachment: (attachment: any) => ReturnType;
unsetAttachment: (documentId: string) => ReturnType;
};
}
}
export declare const Attachment: Node<AttachmentOptions, any>;