Skip to content

CodeMirrorEditor.operation method

CodeMirrorEditor › operation

Unofficial

Execute a function as a single operation, batching view updates.

Signature:

operation(fn: () => T): T

Parameters:

Parameter Type Description
fn () => T The function to execute.

Returns: TThe return value of the function.