UNPKG

@lobehub/editor

Version:

A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.

9 lines (8 loc) 464 B
import { HistoryState, HistoryStateEntry } from '@lexical/history'; import { LexicalEditor } from 'lexical'; import { MarkdownShortCutService } from '../service/shortcut'; export declare const INSERT_MARKDOWN_COMMAND: import("lexical").LexicalCommand<{ historyState: HistoryStateEntry | null; markdown: string; }>; export declare function registerMarkdownCommand(editor: LexicalEditor, service: MarkdownShortCutService, history: HistoryState): () => void;