Skip to content

@jsvision/ui / MemoOptions

Interface: MemoOptions

Defined in: ui/src/editor/memo.ts:9

Options for Memo.

Extends

Properties

autoIndent?

optional autoIndent?: boolean

Defined in: ui/src/editor/editor-types.ts:35

Copy the previous line's leading whitespace when pressing Enter (default false).

Inherited from

EditorOptions.autoIndent


clipboard?

optional clipboard?: Editor

Defined in: ui/src/editor/editor-types.ts:29

The shared clipboard editor. There is no implicit default: without one, in-app Cut/Copy/Paste between editors is a no-op. Pass the same Editor instance to every editor that should share a clipboard (typically a single hidden editor).

Inherited from

EditorOptions.clipboard


commands?

optional commands?: EditorCommandSeam

Defined in: ui/src/editor/editor-types.ts:39

Hook for greying out editing commands as selection/undo state changes (default: none).

Inherited from

EditorOptions.commands


editorDialog?

optional editorDialog?: EditorDialogHandler

Defined in: ui/src/editor/editor-types.ts:31

Handler for find/replace/save prompts. Defaults to a handler that cancels every prompt.

Inherited from

EditorOptions.editorDialog


keyBindings?

optional keyBindings?: EditorKeyBindings

Defined in: ui/src/editor/editor-types.ts:41

Editor key set — 'modern' (default) overlays Ctrl+X/C/V/A; 'wordstar' = the classic WordStar layout.

Inherited from

EditorOptions.keyBindings


overwrite?

optional overwrite?: boolean

Defined in: ui/src/editor/editor-types.ts:37

Start in overwrite mode; Insert toggles it (default false = insert mode).

Inherited from

EditorOptions.overwrite


undoDepth?

optional undoDepth?: number

Defined in: ui/src/editor/editor-types.ts:33

Maximum retained undo steps (default 1000).

Inherited from

EditorOptions.undoDepth


value

value: Signal<string>

Defined in: ui/src/editor/memo.ts:11

The two-way bound content: edits write it; writing it from outside replaces the buffer.