ObsidianWidgetType.addEditButton method
ObsidianWidgetType › addEditButton
Unofficial
Add the standard edit button, which selects the widget's source range when clicked.Signature:
addEditButton(view: EditorView, el: HTMLElement): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| view | EditorView | The CodeMirror editor view. |
| el | HTMLElement | Element to create the action bar in. |
Returns: void