@ckeditor/ckeditor5-image
Version:
Image feature for CKEditor 5.
25 lines (24 loc) • 748 B
TypeScript
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module image/imageresize/utils/getselectedimageeditornodes
*/
import type { ViewElement, Element } from 'ckeditor5/src/engine.js';
import type { Editor } from 'ckeditor5/src/core.js';
/**
* Finds model, view and DOM element for selected image element. Returns `null` if there is no image selected.
*
* @param editor Editor instance.
*/
export declare function getSelectedImageEditorNodes(editor: Editor): ImageEditorNodes | null;
/**
* @internal;
*/
type ImageEditorNodes = {
model: Element;
view: ViewElement;
dom: HTMLElement;
};
export {};