Skip to content

CodeMirrorEditor.on method

CodeMirrorEditor › on

Unofficial

Add an event listener to the editor.

Signature:

on(event: string, listener: EventListenerOrEventListenerObject): void

Parameters:

ParameterTypeDescription
eventstringThe event name.
listenerEventListenerOrEventListenerObjectThe event listener to add.

Returns: void