Skip to content

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): void

Parameters:

ParameterTypeDescription
viewEditorViewThe CodeMirror editor view.
elHTMLElementElement to create the action bar in.

Returns: void