EmbedDialog

EmbedDialog — modal for generating a "Live Quote" embed from a transcript selection. Two-column layout: Left: scrollable segment list with include/exclude toggles + options form Right: live preview that mirrors the final embed widget exactly, using the project's audio + peaks as stand-ins for the not-yet-generated clip.

Constructor

new EmbedDialog(selTarget, project, optionsopt)

Parameters:
NameTypeAttributesDescription
selTargetobjectSelection target describing which segments to embed.
projectobjectThe active project.
optionsobject<optional>
Optional configuration.
Properties
NameTypeAttributesDescription
getTokenfunction<optional>
Async function returning the current auth token, or null.
wavesurferobject<optional>
WaveSurfer instance for preview playback.
Example
new EmbedDialog(selTarget, project, { getToken });

Classes

EmbedDialog

Methods

close()

Detaches WaveSurfer event listeners and removes the dialog from the DOM.