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_optionsType#
Object
Properties#
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.
_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
}
}
}
}
}
}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.
_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"
}
}
}
}
}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.
_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"
}
}
}
}
}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.
_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"
}
}
}
}
}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.
_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"
}
}
}
}
}
}