UNPKG

fantasy-editor

Version:

A React Rich Text Editor Based On Slate

8 lines (7 loc) 543 B
import { Editor } from 'slate'; export declare const isMarkActive: (editor: Editor, type: string) => boolean; export declare const isBlockActive: (editor: Editor, format: string) => boolean; export declare const isBlockActiveList: (editor: Editor, formats: string[]) => boolean; export declare const findBlockActive: (editor: Editor, formats: string[]) => any; export declare const toggleMark: (editor: Editor, key: string, clear?: string | string[]) => void; export declare const toggleBlock: (editor: Editor, format: string) => void;