Sign up (with export icon)

LinkDecoratorManualDefinition

Api-interface icon interface

Describes a manual link decorator. This decorator type is represented in the link feature's user interface as a switch that the user can use to control the presence of a predefined set of attributes.

For instance, to allow the users to manually control the presence of the target="_blank" and rel="noopener noreferrer" attributes on specific links, the decorator could look as follows:

{
	mode: 'manual',
	label: 'Open in a new tab',
	defaultValue: true,
	attributes: {
		target: '_blank',
		rel: 'noopener noreferrer'
	}
}
Copy code

Properties