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.

34 lines (33 loc) 1.03 kB
import type { IEditorPluginConstructor } from "../../../types"; export interface CommonPluginOptions { enableHotkey?: boolean; /** * Enable/disable markdown shortcuts * @default true - most formats enabled, but subscript/superscript are disabled by default */ markdownOption?: boolean | { bold?: boolean; code?: boolean; header?: boolean; italic?: boolean; quote?: boolean; strikethrough?: boolean; subscript?: boolean; superscript?: boolean; underline?: boolean; underlineStrikethrough?: boolean; }; theme?: { quote?: string; textBold?: string; textCode?: string; textHighlight?: string; textItalic?: string; textStrikethrough?: string; textSubscript?: string; textSuperscript?: string; textUnderline?: string; textUnderlineStrikethrough?: string; }; } export declare const CommonPlugin: IEditorPluginConstructor<CommonPluginOptions>;