HyperlinkDialog

Modal dialog for adding or editing a hyperlink on a transcript segment or text selection. Prompts for a URL (required), an optional display name, an optional description, and optional editor notes. When the URL field is filled, the dialog: - Shows a spinner while the server proxy checks the URL - Shows a green check (accessible) or red × (not accessible) after the check - If a page title is found, shows a dismissible suggestion below the URL field - Caches results so re-visiting the same URL is instant

Constructor

new HyperlinkDialog(callbacks)

Parameters:
NameTypeDescription
callbacksobjectCallback functions and initial field values for the dialog.
Properties
NameTypeAttributesDescription
onSavefunction<optional>
Called with {url, name, description, editorNotes}
onDismissfunction<optional>
Called when the dialog is cancelled
fetchTitlefunction<optional>
async (url) => {accessible, title} via server proxy
initialUrlstring<optional>
Pre-fill the URL field (edit mode)
initialNamestring<optional>
Pre-fill the name field (edit mode)
initialDescriptionstring<optional>
Pre-fill the description field (edit mode)
initialEditorNotesstring<optional>
Pre-fill the editor notes field (edit mode)

Classes

HyperlinkDialog