UNPKG

edit-on-slate

Version:

Slate 기반의 직관적이고 강력한 리액트 텍스트 에디터 라이브러리

11 lines (10 loc) 886 B
import { Text } from 'slate'; import { CustomEditor, CustomElement } from './types'; export declare const toggleMark: (editor: CustomEditor, format: keyof Omit<Text, 'text'>) => void; export declare const isMarkActive: (editor: CustomEditor, format: keyof Omit<Text, 'text'>) => boolean; export declare const toggleBlock: (editor: CustomEditor, format: CustomElement['type']) => void; export declare const isBlockActive: (editor: CustomEditor, format: CustomElement['type']) => boolean; export declare const toggleFontFamily: (editor: CustomEditor, fontFamily: string) => void; export declare const toggleTextAlign: (editor: CustomEditor, align: 'center' | 'right' | 'justify') => void; export declare const isTextAlignActive: (editor: CustomEditor, align: 'center' | 'right' | 'justify') => boolean; export declare const toggleFontColor: (editor: CustomEditor, color: string) => void;