UNPKG

tiptap-fs

Version:

Font size extension for Tiptap editor

19 lines (16 loc) 448 B
import { Extension } from '@tiptap/core'; declare module '@tiptap/core' { interface Commands<ReturnType> { fontSize: { /** * Set the font size */ setFontSize: (fontSize: string) => ReturnType; }; } } interface FontSizeOptions { types: string[]; } declare const FontSize: Extension<FontSizeOptions, any>; export { FontSize, type FontSizeOptions, FontSize as default };