@vericus/slate-kit-align
Version:
Plugins to provide a way to align blocks on slate
12 lines • 570 B
TypeScript
import { Node, Block, Editor, QueryHooks } from "slate";
import { TypeOptions } from "../options";
export interface AlignUtils extends QueryHooks {
getAlignBlocks: (editor: Editor) => Node[];
getAlignBlocksInBlock: (editor: Editor, node: Node) => Node[];
getAlignment: (editor: Editor, block: Block) => string | undefined;
isAligned: (editor: Editor, alignment: string) => boolean;
isAlignable: (editor: Editor) => boolean;
}
declare function createUtils(opts: TypeOptions): AlignUtils;
export default createUtils;
//# sourceMappingURL=index.d.ts.map