UNPKG

1.03 kBTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module image/image/ui/utils
7 */
8import type { PositionOptions } from 'ckeditor5/src/utils.js';
9import type { Editor } from 'ckeditor5/src/core.js';
10/**
11 * A helper utility that positions the
12 * {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} instance
13 * with respect to the image in the editor content, if one is selected.
14 *
15 * @param editor The editor instance.
16 */
17export declare function repositionContextualBalloon(editor: Editor): void;
18/**
19 * Returns the positioning options that control the geometry of the
20 * {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon contextual balloon} with respect
21 * to the selected element in the editor content.
22 *
23 * @param editor The editor instance.
24 */
25export declare function getBalloonPositionData(editor: Editor): Partial<PositionOptions>;