# image/image/ui/utils

module

<a id="functions">

## Functions

<a id="function-getBalloonPositionData">

### `getBalloonPositionData( editor ) → Partial<DomOptimalPositionOptions>` _(internal)_

Returns the positioning options that control the geometry of the [contextual balloon](module_ui_panel_balloon_contextualballoon-ContextualBalloon.md) with respect to the selected element in the editor content.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/image/ui/utils.ts#L43)

#### Parameters

* `editor: Editor`

  The editor instance.

#### Returns

* `Partial<DomOptimalPositionOptions>`

<a id="function-repositionContextualBalloon">

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

A helper utility that positions the [contextual balloon](module_ui_panel_balloon_contextualballoon-ContextualBalloon.md) instance with respect to the image in the editor content, if one is selected.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/image/ui/utils.ts#L24)

#### Parameters

* `editor: Editor`

  The editor instance.

#### Returns

* `void`

---

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