dispatchToAllMarkdownEditorViews
Dispatches the given transaction specs to the editor of every open Markdown view, in every window.
Each editor receives its own transaction built from the same specs, so a spec must not carry positions that only make sense in one document. Annotations and state effects (such as a compartment reconfigure) are the intended payload.
Import:
import { dispatchToAllMarkdownEditorViews } from '@mnaoumov/obsidian-lib/codemirror/markdown-editor-views';Signature:
function dispatchToAllMarkdownEditorViews(app: App, specs: TransactionSpec[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
app |
App | The Obsidian app instance. |
specs |
TransactionSpec[] | The transaction specs to dispatch to every editor. |
Returns: void