@beincomm/draft-js-plugins-list
Version:
Better lists for Draft.js
5 lines • 430 B
TypeScript
import { ContentState, DraftBlockType, EditorState } from "draft-js";
export declare function shouldEnterOl(text: string, olRegex: RegExp): boolean;
export declare function shouldEnterUl(text: string, ulChars: string[]): boolean;
export declare function startList(editorState: EditorState, content: ContentState, blockKey: string, firstSpacePos: number, blockType: DraftBlockType): EditorState;
//# sourceMappingURL=lists.d.ts.map