ObsidianWidgetType.hookClickHandler method
ObsidianWidgetType › hookClickHandler
Unofficial
Make clicks on the element select the widget's source range, unless they land inside a nested editor.Signature:
hookClickHandler(view: EditorView, el: HTMLElement): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| view | EditorView | The CodeMirror editor view. |
| el | HTMLElement | The element to hook. |
Returns: void