Vizel API / core/src / buildVizelLinkEditorSpec
Function: buildVizelLinkEditorSpec()
ts
function buildVizelLinkEditorSpec(
editor,
url,
enableEmbed): VizelLinkEditorSpec;Defined in: packages/core/src/builders/link-editor.ts:81
Compute the link-editor display state from the live editor + URL input.
Parameters
| Parameter | Type | Description |
|---|---|---|
editor | Editor | Current editor instance. |
url | string | Current value of the URL input (may be untrimmed). |
enableEmbed | boolean | Whether the consumer wants the embed toggle. |