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.

39 lines (38 loc) 1.17 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; }; /** * Force paste as plain text, stripping all rich text formatting * @default false */ pasteAsPlainText?: 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>;