UNPKG

element-tiptap-vue3-niyuta

Version:

Rich-text editor build by baidu api and tiptap

21 lines (20 loc) 544 B
import { Extension } from '@tiptap/core'; export type FontFamilyOptions = { types: string[]; }; declare module '@tiptap/core' { interface Commands<ReturnType> { fontFamily: { /** * Set the font family */ setFontFamily: (fontFamily: string) => ReturnType; /** * Unset the font family */ unsetFontFamily: () => ReturnType; }; } } declare const FontFamily: Extension<FontFamilyOptions, any>; export default FontFamily;