# engine/view/uielement

module

<a id="classes">

## Classes

<a id="class-ViewUIElement">

### [ViewUIElement](module_engine_view_uielement-ViewUIElement.md)

<a id="functions">

## Functions

<a id="function-injectUiElementHandling">

### `injectUiElementHandling( view ) → void` _(internal)_

This function injects UI element handling to the given [document](module_engine_view_document-ViewDocument.md).

A callback is added to [document keydown event](module_engine_view_document-ViewDocument.md#event-keydown). The callback handles the situation when right arrow key is pressed and selection is collapsed before a UI element. Without this handler, it would be impossible to "jump over" UI element using right arrow key.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/uielement.ts#L171)

#### Parameters

* `view: EditingView`

  View controller to which the quirks handling will be injected.

#### Returns

* `void`

---

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