UNPKG

@guestbell/react-page-plugins

Version:

Plugins we use in GuestBell for working with amazing react-page package

17 lines (16 loc) 1.23 kB
import { Editor } from 'slate'; import { omitFirstArg } from '../../types/omitFirstArg'; import { FontSizePluginConfig } from './fontSizeConfig'; export declare const getActiveFontSizes: (editor: Editor) => number[]; export declare const isFontSizeActive: (editor: Editor, fontSize: number) => boolean; declare const changeFontSize: (editor: Editor, fontSize: number) => void; declare const clearFontSize: (editor: Editor) => void; export interface FontSizeEditor { fontSizeConfig: FontSizePluginConfig; changeFontSize: omitFirstArg<typeof changeFontSize>; clearFontSize: omitFirstArg<typeof clearFontSize>; isFontSizeActive: omitFirstArg<typeof isFontSizeActive>; getActiveFontSizes: omitFirstArg<typeof getActiveFontSizes>; } export declare const withFontSizes: (options?: FontSizePluginConfig) => (editor: Editor) => import("slate").BaseEditor & import("slate-react").ReactEditor & import("slate-history").HistoryEditor & import("../emphasize").EmphasizeEditor & import("../links").LinksEditor & import("../color").ColorEditor & import("../alignment").AlignmentEditor & import("../heading").HeadingsEditor & FontSizeEditor & import("../lists").ListsEditor & import("../quote").QuotesEditor; export {};