Skip to content

CodeMirrorEditor.on method

CodeMirrorEditor › on

Unofficial

Add an event listener to the editor.

Signature:

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

Parameters:

Parameter Type Description
event string The event name.
listener EventListenerOrEventListenerObject The event listener to add.

Returns: void