UNPKG

1.29 kBTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, 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 link/linkimageediting
7 */
8import { Plugin } from 'ckeditor5/src/core';
9import LinkEditing from './linkediting';
10/**
11 * The link image engine feature.
12 *
13 * It accepts the `linkHref="url"` attribute in the model for the {@link module:image/image~Image `<imageBlock>`} element
14 * which allows linking images.
15 */
16export default class LinkImageEditing extends Plugin {
17 /**
18 * @inheritDoc
19 */
20 static get requires(): readonly ["ImageEditing", "ImageUtils", typeof LinkEditing];
21 /**
22 * @inheritDoc
23 */
24 static get pluginName(): "LinkImageEditing";
25 /**
26 * @inheritDoc
27 */
28 init(): void;
29 /**
30 * Processes {@link module:link/linkconfig~LinkDecoratorAutomaticDefinition automatic decorators} definitions and
31 * attaches proper converters that will work when linking an image.`
32 */
33 private _enableAutomaticDecorators;
34 /**
35 * Processes transformed {@link module:link/utils/manualdecorator~ManualDecorator} instances and attaches proper converters
36 * that will work when linking an image.
37 */
38 private _enableManualDecorators;
39}