reactjs-tiptap-editor
Version:
A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React
19 lines (18 loc) • 568 B
TypeScript
import { Node } from '@tiptap/core';
import { GeneralOptions } from '../../types';
declare module '@tiptap/core' {
interface Commands<ReturnType> {
callout: {
setCallout: (attrs?: {
type?: string;
title?: string;
body?: string;
}) => ReturnType;
};
}
}
export interface CalloutOptions extends GeneralOptions<CalloutOptions> {
HTMLAttributes: Record<string, any>;
}
export * from './components/RichTextCallout';
export declare const Callout: Node<CalloutOptions, any>;