Recent searches

in

link_options

On this page

Configure the controls to edit hyperlinks around selected text.

Appears in#

├── _inputs
│   └── *
│       └── Rich Text Input
│           └── options
│               └── link_options
└── _editables
    ├── content
    │   └── link_options
    ├── block
    │   └── link_options
    └── text
        └── link_options

Type#

Object

Properties#

href — Object#

This key defines the input for the destination URL of a hyperlink.

Appears in: link_options, image_options, _inputs.*.

Show examplesHide examples

In this example, we have configured the href input with a custom label, comment, and a hidden link option.

Copied to clipboard
_editables:
  content:
    link_options:
      href:
        type: url
        label: Link URL
        comment: The destination this link points to
        options:
          hide_link_to_email_address: true
{
  "_editables": {
    "content": {
      "link_options": {
        "href": {
          "type": "url",
          "label": "Link URL",
          "comment": "The destination this link points to",
          "options": {
            "hide_link_to_email_address": true
          }
        }
      }
    }
  }
}
is_target_blank — Object#

This key defines the input for toggling whether a hyperlink opens in a new browser tab.

Appears in: _inputs.*, link_options, image_options.

Show examplesHide examples

In this example, we have configured the is_target_blank input with a custom label and comment.

Copied to clipboard
_editables:
  content:
    link_options:
      is_target_blank:
        type: switch
        label: Open in new tab
        comment: Open this link in a new browser tab
{
  "_editables": {
    "content": {
      "link_options": {
        "is_target_blank": {
          "type": "switch",
          "label": "Open in new tab",
          "comment": "Open this link in a new browser tab"
        }
      }
    }
  }
}
rel_nofollow — Object#

This key defines the input for toggling whether rel="nofollow" is added to a hyperlink.

Appears in: _inputs.*, link_options, image_options.

Show examplesHide examples

In this example, we have configured the rel_nofollow input with a custom label and comment.

Copied to clipboard
_editables:
  content:
    link_options:
      rel_nofollow:
        type: switch
        label: Add nofollow
        comment: Add rel="nofollow" to this link
{
  "_editables": {
    "content": {
      "link_options": {
        "rel_nofollow": {
          "type": "switch",
          "label": "Add nofollow",
          "comment": "Add rel=\"nofollow\" to this link"
        }
      }
    }
  }
}
rel_noreferrer — Object#

This key defines the input for toggling whether rel="noreferrer" is added to a hyperlink.

Appears in: _inputs.*, link_options, image_options.

Show examplesHide examples

In this example, we have configured the rel_noreferrer input with a custom label and comment.

Copied to clipboard
_editables:
  content:
    link_options:
      rel_noreferrer:
        type: switch
        label: Add noreferrer
        comment: Add rel="noreferrer" to this link
{
  "_editables": {
    "content": {
      "link_options": {
        "rel_noreferrer": {
          "type": "switch",
          "label": "Add noreferrer",
          "comment": "Add rel=\"noreferrer\" to this link"
        }
      }
    }
  }
}
title — Object#

This key defines the input for a hyperlink's title text.

Appears in: _inputs.*, link_options, image_options.

Show examplesHide examples

In this example, we have configured the title input with a custom label, comment, and placeholder.

Copied to clipboard
_editables:
  content:
    link_options:
      title:
        type: text
        label: Title
        comment: Tooltip text shown when hovering the link
        options:
          placeholder: Add a tooltip for this link
{
  "_editables": {
    "content": {
      "link_options": {
        "title": {
          "type": "text",
          "label": "Title",
          "comment": "Tooltip text shown when hovering the link",
          "options": {
            "placeholder": "Add a tooltip for this link"
          }
        }
      }
    }
  }
}
Open in a new tab