import { IEditorPluginConstructor } from "../../../types/kernel.js"; import "../../../types/index.js"; import { PasteHandlerConfig } from "./paste-handler.js"; interface CommonPluginOptions extends PasteHandlerConfig { /** * Give every heading a unique DOM `id` slug derived from its text * @default true */ enableHeadingAnchor?: boolean; 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; }; } declare const CommonPlugin: IEditorPluginConstructor; export { CommonPlugin, CommonPluginOptions };