@sqx717/element-tiptap-vue3-fixed
Version:
🌸A modern WYSIWYG rich-text editor using tiptap and Element Plus for Vue3
21 lines (20 loc) • 544 B
TypeScript
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;