Skip to content

EditorHandle

Defined in: editor-handle.ts:21

PropertyModifierTypeDefined in
actionsreadonlyActionDescriptor[]editor-handle.ts:36
blocksreadonlyBlockDescriptor[]editor-handle.ts:34
historyreadonlyHistoryeditor-handle.ts:33
isReadyreadonlybooleaneditor-handle.ts:23
marksreadonlyMarkDescriptor[]editor-handle.ts:35
plimreadonlyPlimDrivereditor-handle.ts:22
createTransaction(): Transaction;

Defined in: editor-handle.ts:27

Transaction


dispatch(tx): void;

Defined in: editor-handle.ts:26

ParameterType
txTransaction

void


getState(): EditorState;

Defined in: editor-handle.ts:24

EditorState


onAsyncEvent<T>(name, handler): () => void;

Defined in: editor-handle.ts:29

Type ParameterDefault type
Tunknown
ParameterType
namestring
handlerAsyncEventHandler<T>

() => void


onTransaction(cb): () => void;

Defined in: editor-handle.ts:28

ParameterType
cb(tx, state) => void

() => void


restoreSnapshot(snap): void;

Defined in: editor-handle.ts:32

ParameterType
snapSnapshot

void


setState(s): void;

Defined in: editor-handle.ts:25

ParameterType
sEditorState

void


supportsDecoration(blockType): boolean;

Defined in: editor-handle.ts:37

ParameterType
blockTypestring

boolean


triggerAsyncEvent<T>(name, payload?): Promise<T>;

Defined in: editor-handle.ts:30

Type ParameterDefault type
Tunknown
ParameterType
namestring
payload?unknown

Promise<T>


whenReady(cb): void;

Defined in: editor-handle.ts:31

ParameterType
cb() => void

void