# LinkDecoratorManualDefinition

interface

Describes a manual [link decorator](module_link_linkconfig-LinkConfig.md#member-decorators). This decorator type is represented in the link feature's [user interface](module_link_linkui.md) 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:

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

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-link/src/linkconfig.ts#L312)

<a id="properties">

## Properties

<a id="member-attributes">

### `attributes?: Record<string, string>`

Key-value pairs used as link attributes added to the output during the [downcasting](../framework/architecture/editing-engine.md#conversion). Attributes should follow the [`ViewElementDefinition`](module_engine_view_elementdefinition-ViewElementDefinition.md) syntax.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-link/src/linkconfig.ts#L329)

<a id="member-classes">

### `classes?: ArrayOrItem<string>`

Class names used as link classes added to the output during the [downcasting](../framework/architecture/editing-engine.md#conversion). Classes should follow the [`ViewElementDefinition`](module_engine_view_elementdefinition-ViewElementDefinition.md) syntax.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-link/src/linkconfig.ts#L343)

<a id="member-defaultValue">

### `defaultValue?: boolean`

Controls whether the decorator is "on" by default.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-link/src/linkconfig.ts#L348)

<a id="member-label">

### `label: string`

The label of the UI button that the user can use to control the presence of link attributes.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-link/src/linkconfig.ts#L322)

<a id="member-mode">

### `mode: 'manual'`

Link decorator type. It is `'manual'` for all manual decorators.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-link/src/linkconfig.ts#L317)

<a id="member-styles">

### `styles?: Record<string, string>`

Key-value pairs used as link styles added to the output during the [downcasting](../framework/architecture/editing-engine.md#conversion). Styles should follow the [`ViewElementDefinition`](module_engine_view_elementdefinition-ViewElementDefinition.md) syntax.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-link/src/linkconfig.ts#L336)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
