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.

18 lines (17 loc) 707 B
import { LexicalEditor } from 'lexical'; export declare const CustomShikiTokenizer: { $tokenize: (codeNode: import("@lexical/code").CodeNode, language?: string | undefined) => import("lexical").LexicalNode[]; $tokenizeSerialized: (code: string, language?: string | undefined, theme?: string | { dark: string; light: string; } | undefined) => import("lexical").SerializedLexicalNode[]; defaultLanguage: string; defaultTheme: string | { dark: string; light: string; }; }; export declare const UPDATE_CODEBLOCK_LANG: import("lexical").LexicalCommand<{ lang: string; }>; export declare function registerCodeCommand(editor: LexicalEditor): () => void;