@ckeditor/ckeditor5-link 36.0.1 → 37.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,25 @@
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/linkimage
7
+ */
8
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
9
+ import '../theme/linkimage.css';
10
+ /**
11
+ * The `LinkImage` plugin.
12
+ *
13
+ * This is a "glue" plugin that loads the {@link module:link/linkimageediting~LinkImageEditing link image editing feature}
14
+ * and {@link module:link/linkimageui~LinkImageUI link image UI feature}.
15
+ */
16
+ export default class LinkImage extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get requires(): PluginDependencies;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): 'LinkImage';
25
+ }
package/src/linkimage.js CHANGED
@@ -2,37 +2,30 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
-
6
5
  /**
7
6
  * @module link/linkimage
8
7
  */
9
-
10
8
  import { Plugin } from 'ckeditor5/src/core';
11
9
  import LinkImageEditing from './linkimageediting';
12
10
  import LinkImageUI from './linkimageui';
13
-
14
11
  import '../theme/linkimage.css';
15
-
16
12
  /**
17
13
  * The `LinkImage` plugin.
18
14
  *
19
15
  * This is a "glue" plugin that loads the {@link module:link/linkimageediting~LinkImageEditing link image editing feature}
20
16
  * and {@link module:link/linkimageui~LinkImageUI link image UI feature}.
21
- *
22
- * @extends module:core/plugin~Plugin
23
17
  */
24
18
  export default class LinkImage extends Plugin {
25
- /**
26
- * @inheritDoc
27
- */
28
- static get requires() {
29
- return [ LinkImageEditing, LinkImageUI ];
30
- }
31
-
32
- /**
33
- * @inheritDoc
34
- */
35
- static get pluginName() {
36
- return 'LinkImage';
37
- }
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get requires() {
23
+ return [LinkImageEditing, LinkImageUI];
24
+ }
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get pluginName() {
29
+ return 'LinkImage';
30
+ }
38
31
  }
@@ -0,0 +1,38 @@
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
+ */
8
+ import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
9
+ /**
10
+ * The link image engine feature.
11
+ *
12
+ * It accepts the `linkHref="url"` attribute in the model for the {@link module:image/image~Image `<imageBlock>`} element
13
+ * which allows linking images.
14
+ */
15
+ export default class LinkImageEditing extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get requires(): PluginDependencies;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get pluginName(): 'LinkImageEditing';
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ init(): void;
28
+ /**
29
+ * Processes {@link module:link/linkconfig~LinkDecoratorAutomaticDefinition automatic decorators} definitions and
30
+ * attaches proper converters that will work when linking an image.`
31
+ */
32
+ private _enableAutomaticDecorators;
33
+ /**
34
+ * Processes transformed {@link module:link/utils/manualdecorator~ManualDecorator} instances and attaches proper converters
35
+ * that will work when linking an image.
36
+ */
37
+ private _enableManualDecorators;
38
+ }