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/imageinsert/imageinsertviaurlui
|
7 | */
|
8 | import { Plugin } from 'ckeditor5/src/core.js';
|
9 | import ImageInsertUI from './imageinsertui.js';
|
10 | /**
|
11 | * The image insert via URL plugin (UI part).
|
12 | *
|
13 | * For a detailed overview, check the {@glink features/images/images-inserting
|
14 | * Insert images via source URL} documentation.
|
15 | *
|
16 | * This plugin registers the {@link module:image/imageinsert/imageinsertui~ImageInsertUI} integration for `url`.
|
17 | */
|
18 | export default class ImageInsertViaUrlUI extends Plugin {
|
19 | private _imageInsertUI;
|
20 | /**
|
21 | * @inheritDoc
|
22 | */
|
23 | static get pluginName(): "ImageInsertViaUrlUI";
|
24 | /**
|
25 | * @inheritDoc
|
26 | */
|
27 | static get requires(): readonly [typeof ImageInsertUI];
|
28 | /**
|
29 | * @inheritDoc
|
30 | */
|
31 | afterInit(): void;
|
32 | /**
|
33 | * Creates the view displayed in the dropdown.
|
34 | */
|
35 | private _createInsertUrlView;
|
36 | /**
|
37 | * Creates the toolbar button.
|
38 | */
|
39 | private _createInsertUrlButton;
|
40 | /**
|
41 | * Closes the dropdown.
|
42 | */
|
43 | private _closePanel;
|
44 | }
|