Skip to main content
Events let you respond to editor lifecycle and content changes.

Lifecycle

onBeforeCreate

Called before the editor view is created.

onCreate

Called when editor is fully initialized and ready.

onDestroy

Called when editor is being destroyed. Clean up resources here.

onFirstRender

Called after the first render completes.

Content

onUpdate

Called when document content changes.

onContentError

Called when content processing fails.

Selection

onSelectionUpdate

Called when selection changes (cursor movement).

onFocus

Called when editor gains focus.

onBlur

Called when editor loses focus.

Features

onCommentsUpdate

onCommentsLoaded

onTrackedChangesUpdate

onCollaborationReady