Skip to content

obsidian/constructors/get-dom-events-handlers-constructor

This module extracts the DomEventsHandlersConstructor from Obsidian’s runtime by temporarily opening a markdown file in preview mode and intercepting the constructor passed to MarkdownPreviewRenderer.registerDomEvents.

FunctionDescription
getDomEventsHandlersConstructorExtracts the DomEventsHandlersConstructor from Obsidian’s runtime. Opens a temporary markdown file in preview mode and intercepts the constructor passed to MarkdownPreviewRenderer.registerDomEvents.