# restricted-editing/restrictededitingmode/converters

module

<a id="functions">

## Functions

<a id="function-extendMarkerOnTypingPostFixer">

### `extendMarkerOnTypingPostFixer( editor ) → ModelPostFixer` _(internal)_

A post-fixer that extends a marker when the user types on its boundaries.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-restricted-editing/src/restrictededitingmode/converters.ts#L120)

#### Parameters

* `editor: Editor`

#### Returns

* `ModelPostFixer`

<a id="function-resurrectCollapsedMarkerPostFixer">

### `resurrectCollapsedMarkerPostFixer( editor ) → ModelPostFixer` _(internal)_

A post-fixer that prevents removing a collapsed marker from the document.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-restricted-editing/src/restrictededitingmode/converters.ts#L96)

#### Parameters

* `editor: Editor`

#### Returns

* `ModelPostFixer`

<a id="function-setupExceptionHighlighting">

### `setupExceptionHighlighting( editor ) → void` _(internal)_

Adds a visual highlight style to a restricted editing exception that the selection is anchored to.

The highlight is turned on by adding the `.restricted-editing-exception_selected` class to the exception in the view:

* The class is removed before the conversion starts, as callbacks added with the `'highest'` priority to [`DowncastDispatcher`](module_engine_conversion_downcastdispatcher-DowncastDispatcher.md) events.
* The class is added in the view post-fixer, after other changes in the model tree are converted to the view.

This way, adding and removing the highlight does not interfere with conversion.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-restricted-editing/src/restrictededitingmode/converters.ts#L40)

#### Parameters

* `editor: Editor`

#### Returns

* `void`

<a id="function-upcastHighlightToMarker">

### `upcastHighlightToMarker( config = { config.model, config.useWrapperElement?, config.view } ) → ( dispatcher: UpcastDispatcher ) => void` _(internal)_

A view highlight-to-marker conversion helper.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-restricted-editing/src/restrictededitingmode/converters.ts#L143)

#### Parameters

* `config: object`

  Conversion configuration.

  Properties

  * `config.model: () => string`
  * `config.useWrapperElement?: boolean`
  * `config.view: MatcherPattern`

#### Returns

* `( dispatcher: UpcastDispatcher ) => void`

---

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