Skip to content

CodeMirrorEditor.setOption method

CodeMirrorEditor › setOption

Unofficial

Set the value of an editor option.

Signature:

setOption(option: string, value: unknown): void

Parameters:

ParameterTypeDescription
optionstringThe name of the option to set.
valueunknownThe value to set.

Returns: void