UNPKG

@guestbell/react-page-plugins

Version:

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

17 lines (16 loc) 1.05 kB
import { Editor } from 'slate'; import { ElementType } from '../../../declarations/slate'; import { omitFirstArg } from '../../types/omitFirstArg'; export declare const isQuoteActive: (editor: Editor) => boolean; declare const toggleQuote: (editor: Editor) => void; export interface QuotesPluginConfig { defaultBlockType: ElementType; } export declare const defaultConfig: QuotesPluginConfig; export interface QuotesEditor { quotesConfig: QuotesPluginConfig; toggleQuote: omitFirstArg<typeof toggleQuote>; isQuoteActive: omitFirstArg<typeof isQuoteActive>; } export declare const withQuotes: (config?: QuotesPluginConfig) => (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 & import("../fontSize").FontSizeEditor & import("../lists").ListsEditor & QuotesEditor; export {};