API reference: @salmonui/rich-text
RichTextExtensionContextinterface
import type { RichTextExtensionContext } from '@salmonui/rich-text';interface RichTextExtensionContext {
readonly schema: Schema;
getState(): EditorState;
getView(): EditorView | null;
}
What an extension's plugin factory receives.
| Name | Signature | Description |
|---|---|---|
schema | readonly schema: Schema; | |
getState | getState(): EditorState; | The engine's current state (after mount the view's state). |
getView | getView(): EditorView | null; | The view once mounted. |