# link/utils/conflictingdecorators

module

<a id="functions">

## Functions

<a id="function-areDecoratorsConflicting">

### `areDecoratorsConflicting( a, b ) → boolean` _(internal)_

Checks if two decorators conflict with each other.

Decorators conflict when they share the same HTML attribute names (excluding mergeable attributes) or style properties.

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

#### Parameters

* `a: DecoratorLike`

  The first decorator.

* `b: DecoratorLike`

  The second decorator.

#### Returns

* `boolean`

<a id="function-resolveConflictingDecorators">

### `resolveConflictingDecorators( options = { options.allDecorators, options.decoratorStates } ) → Record<string, boolean>` _(internal)_

Resolves conflicting manual decorators by automatically disabling decorators that share the same HTML attributes with newly enabled decorators.

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

#### Parameters

* `options: object`

  Configuration object.

  Properties

  * `options.allDecorators: Array<DecoratorLike & object>`

    Collection of all manual decorators.

  * `options.decoratorStates: Record<string, boolean>`

    Initial decorator states.

#### Returns

* `Record<string, boolean>`

  Updated decorator states with conflicts resolved.

---

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