Variable: createActiveEditorSubscription$

const createActiveEditorSubscription$: NodeRef<EditorSubscription | EditorSubscription[]>

An input signal that lets you register a new EditorSubscription for the active editor. The subscriptions are automatically cleaned up and re-bound when the active editor changes.

Example

realm.pub(createActiveEditorSubscription$, (theEditor) => {
 return theEditor.registerUpdateListener(() => { ... })
 // or a command
 // return theEditor.registerCommand('my-command', () => { ... })
})