Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/EditorToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export default class EditorToolbar extends Component {
let removeLinkConfig = config.removeLink || {};
let linkLabel = linkConfig.label || 'Link';
let removeLinkLabel = removeLinkConfig.label || 'Remove Link';
let linkHideCheckOptions = linkConfig.hideCheckOptions || false;
let targetBlank = (entity && isCursorOnLink) ? entity.getData().target === '_blank' : false;
let noFollow = (entity && isCursorOnLink) ? entity.getData().rel === 'nofollow' : false;

Expand All @@ -245,7 +246,7 @@ export default class EditorToolbar extends Component {
onTogglePopover={this._toggleShowLinkInput}
defaultValue={defaultValue}
onSubmit={this._setLink}
checkOptions={{
checkOptions={!linkHideCheckOptions && {
targetBlank: {label: 'Open link in new tab', defaultValue: targetBlank},
noFollow: {label: 'No follow', defaultValue: noFollow},
}}
Expand Down