UNPKG

@guestbell/react-page-plugins

Version:

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

15 lines (14 loc) 994 B
import { Editor } from 'slate'; import { AlignmentTypes } from './alignmentTypes'; import { omitFirstArg } from '../../types/omitFirstArg'; export declare const AlignmentCommands: { ToggleAlignment: string; }; export declare const isAlignmentActive: (editor: Editor, alignment: AlignmentTypes) => boolean; declare const toggleAlignment: (editor: Editor, alignment: AlignmentTypes) => void; export interface AlignmentEditor { isAlignmentActive: omitFirstArg<typeof isAlignmentActive>; toggleAlignment: omitFirstArg<typeof toggleAlignment>; } export declare const withAlignments: (editor: Editor) => import("slate").BaseEditor & import("slate-react").ReactEditor & import("slate-history").HistoryEditor & import("../emphasize").EmphasizeEditor & import("../links").LinksEditor & import("../color").ColorEditor & AlignmentEditor & import("../heading").HeadingsEditor & import("../fontSize").FontSizeEditor & import("../lists").ListsEditor & import("../quote").QuotesEditor; export {};