@edifice.io/tiptap-extensions
Version:
Edifice Rich Text Editor Extensions
20 lines (19 loc) • 506 B
TypeScript
import { Extension } from '@tiptap/core';
export type FontSizeOptions = {
types: string[];
};
declare module '@tiptap/core' {
interface Commands<ReturnType> {
fontSize: {
/**
* Set the font size
*/
setFontSize: (fontSize: string) => ReturnType;
/**
* Unset the font size
*/
unsetFontSize: () => ReturnType;
};
}
}
export declare const FontSize: Extension<FontSizeOptions, any>;