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
$eventstring
listenerEventListenerOrEventListenerObjectThe event listener to add.

Returns: void