@edifice.io/tiptap-extensions
Version:
Edifice Rich Text Editor Extensions
13 lines (12 loc) • 364 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;
};
}
}
export declare const AttachmentTransformer: Node<AttachmentOptions, any>;