Files
HRM-System/node_modules/@tiptap/extension-paragraph/dist/paragraph.d.ts
2026-04-13 08:19:53 +08:00

26 lines
720 B
TypeScript

import { Node } from '@tiptap/core';
export interface ParagraphOptions {
/**
* The HTML attributes for a paragraph node.
* @default {}
* @example { class: 'foo' }
*/
HTMLAttributes: Record<string, any>;
}
declare module '@tiptap/core' {
interface Commands<ReturnType> {
paragraph: {
/**
* Toggle a paragraph
* @example editor.commands.toggleParagraph()
*/
setParagraph: () => ReturnType;
};
}
}
/**
* This extension allows you to create paragraphs.
* @see https://www.tiptap.dev/api/nodes/paragraph
*/
export declare const Paragraph: Node<ParagraphOptions, any>;
//# sourceMappingURL=paragraph.d.ts.map