@ckeditor/ckeditor5-image 37.0.0-alpha.1 → 37.0.0-alpha.3
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.
- package/ckeditor5-metadata.json +2 -2
- package/package.json +31 -31
- package/src/autoimage.d.ts +6 -2
- package/src/image/imageblockediting.d.ts +5 -2
- package/src/image/imageediting.d.ts +3 -2
- package/src/image/imageinlineediting.d.ts +5 -2
- package/src/image.d.ts +4 -2
- package/src/imageblock.d.ts +5 -2
- package/src/imagecaption/imagecaptionediting.d.ts +4 -2
- package/src/imagecaption/imagecaptionui.d.ts +3 -2
- package/src/imagecaption/imagecaptionutils.d.ts +3 -2
- package/src/imagecaption.d.ts +4 -2
- package/src/imageinline.d.ts +5 -2
- package/src/imageinsert.d.ts +5 -2
- package/src/imageinsertviaurl.d.ts +3 -2
- package/src/imageresize/imageresizebuttons.d.ts +3 -2
- package/src/imageresize/imageresizeediting.d.ts +3 -2
- package/src/imageresize/imageresizehandles.d.ts +3 -2
- package/src/imageresize.d.ts +5 -2
- package/src/imagestyle/imagestyleediting.d.ts +3 -2
- package/src/imagestyle/imagestyleui.d.ts +3 -2
- package/src/imagestyle.d.ts +4 -2
- package/src/imagetextalternative/imagetextalternativeediting.d.ts +3 -2
- package/src/imagetextalternative/imagetextalternativeui.d.ts +3 -2
- package/src/imagetextalternative.d.ts +4 -2
- package/src/imagetoolbar.d.ts +4 -2
- package/src/imageupload/imageuploadediting.d.ts +6 -3
- package/src/imageupload.d.ts +5 -2
- package/src/pictureediting.d.ts +4 -2
package/ckeditor5-metadata.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "Auto image",
|
|
5
5
|
"className": "AutoImage",
|
|
6
6
|
"description": "Allows for inserting images simply by pasting a URL of the image into the content. It turns the pasted URL into an image on the go.",
|
|
7
|
-
"docs": "features/images/
|
|
7
|
+
"docs": "features/images/images-inserting.html#inserting-images-via-pasting-a-url-into-the-editor",
|
|
8
8
|
"path": "src/autoimage.js",
|
|
9
9
|
"requires": [
|
|
10
10
|
[
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"name": "Image insert",
|
|
228
228
|
"className": "ImageInsert",
|
|
229
229
|
"description": "Allows for inserting images via source URL",
|
|
230
|
-
"docs": "features/images/
|
|
230
|
+
"docs": "features/images/images-inserting.html#inserting-images-via-a-source-url",
|
|
231
231
|
"path": "src/imageinsert.js",
|
|
232
232
|
"requires": [
|
|
233
233
|
"ImageUpload"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-image",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.3",
|
|
4
4
|
"description": "Image feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,40 +12,40 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
|
16
|
-
"ckeditor5": "^37.0.0-alpha.
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.3",
|
|
16
|
+
"ckeditor5": "^37.0.0-alpha.3",
|
|
17
17
|
"lodash-es": "^4.17.15"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ckeditor/ckeditor5-adapter-ckfinder": "^37.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-ckfinder": "^37.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
|
20
|
+
"@ckeditor/ckeditor5-adapter-ckfinder": "^37.0.0-alpha.3",
|
|
21
|
+
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.3",
|
|
22
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.3",
|
|
23
|
+
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.3",
|
|
24
|
+
"@ckeditor/ckeditor5-ckfinder": "^37.0.0-alpha.3",
|
|
25
|
+
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.3",
|
|
26
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.3",
|
|
27
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.3",
|
|
28
28
|
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
29
|
-
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.
|
|
44
|
-
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.
|
|
45
|
-
"@ckeditor/ckeditor5-upload": "^37.0.0-alpha.
|
|
46
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
|
47
|
-
"@ckeditor/ckeditor5-watchdog": "^37.0.0-alpha.
|
|
48
|
-
"@ckeditor/ckeditor5-widget": "^37.0.0-alpha.
|
|
29
|
+
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.3",
|
|
31
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.3",
|
|
32
|
+
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.3",
|
|
33
|
+
"@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.3",
|
|
34
|
+
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.3",
|
|
35
|
+
"@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.3",
|
|
36
|
+
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.3",
|
|
37
|
+
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.3",
|
|
38
|
+
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.3",
|
|
39
|
+
"@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.3",
|
|
40
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.3",
|
|
41
|
+
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.3",
|
|
42
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.3",
|
|
43
|
+
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.3",
|
|
44
|
+
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.3",
|
|
45
|
+
"@ckeditor/ckeditor5-upload": "^37.0.0-alpha.3",
|
|
46
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.3",
|
|
47
|
+
"@ckeditor/ckeditor5-watchdog": "^37.0.0-alpha.3",
|
|
48
|
+
"@ckeditor/ckeditor5-widget": "^37.0.0-alpha.3",
|
|
49
49
|
"typescript": "^4.8.4",
|
|
50
50
|
"webpack": "^5.58.1",
|
|
51
51
|
"webpack-cli": "^4.9.0"
|
package/src/autoimage.d.ts
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/autoimage
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import { Clipboard } from 'ckeditor5/src/clipboard';
|
|
10
|
+
import { Undo } from 'ckeditor5/src/undo';
|
|
11
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
12
|
+
import ImageUtils from './imageutils';
|
|
9
13
|
/**
|
|
10
14
|
* The auto-image plugin. It recognizes image links in the pasted content and embeds
|
|
11
15
|
* them shortly after they are injected into the document.
|
|
@@ -14,7 +18,7 @@ export default class AutoImage extends Plugin {
|
|
|
14
18
|
/**
|
|
15
19
|
* @inheritDoc
|
|
16
20
|
*/
|
|
17
|
-
static get requires():
|
|
21
|
+
static get requires(): readonly [typeof Clipboard, typeof ImageUtils, typeof Undo, typeof Delete];
|
|
18
22
|
/**
|
|
19
23
|
* @inheritDoc
|
|
20
24
|
*/
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/image/imageblockediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
|
|
10
|
+
import ImageEditing from './imageediting';
|
|
11
|
+
import ImageUtils from '../imageutils';
|
|
9
12
|
/**
|
|
10
13
|
* The image block plugin.
|
|
11
14
|
*
|
|
@@ -20,7 +23,7 @@ export default class ImageBlockEditing extends Plugin {
|
|
|
20
23
|
/**
|
|
21
24
|
* @inheritDoc
|
|
22
25
|
*/
|
|
23
|
-
static get requires():
|
|
26
|
+
static get requires(): readonly [typeof ImageEditing, typeof ImageUtils, typeof ClipboardPipeline];
|
|
24
27
|
/**
|
|
25
28
|
* @inheritDoc
|
|
26
29
|
*/
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/image/imageediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageUtils from '../imageutils';
|
|
9
10
|
/**
|
|
10
11
|
* The image engine plugin. This module loads common code shared between
|
|
11
12
|
* {@link module:image/image/imageinlineediting~ImageInlineEditing} and
|
|
@@ -17,7 +18,7 @@ export default class ImageEditing extends Plugin {
|
|
|
17
18
|
/**
|
|
18
19
|
* @inheritDoc
|
|
19
20
|
*/
|
|
20
|
-
static get requires():
|
|
21
|
+
static get requires(): readonly [typeof ImageUtils];
|
|
21
22
|
/**
|
|
22
23
|
* @inheritDoc
|
|
23
24
|
*/
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/image/imageinlineediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
|
|
10
|
+
import ImageEditing from './imageediting';
|
|
11
|
+
import ImageUtils from '../imageutils';
|
|
9
12
|
/**
|
|
10
13
|
* The image inline plugin.
|
|
11
14
|
*
|
|
@@ -20,7 +23,7 @@ export default class ImageInlineEditing extends Plugin {
|
|
|
20
23
|
/**
|
|
21
24
|
* @inheritDoc
|
|
22
25
|
*/
|
|
23
|
-
static get requires():
|
|
26
|
+
static get requires(): readonly [typeof ImageEditing, typeof ImageUtils, typeof ClipboardPipeline];
|
|
24
27
|
/**
|
|
25
28
|
* @inheritDoc
|
|
26
29
|
*/
|
package/src/image.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/image
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageBlock from './imageblock';
|
|
10
|
+
import ImageInline from './imageinline';
|
|
9
11
|
import '../theme/image.css';
|
|
10
12
|
/**
|
|
11
13
|
* The image plugin.
|
|
@@ -24,7 +26,7 @@ export default class Image extends Plugin {
|
|
|
24
26
|
/**
|
|
25
27
|
* @inheritDoc
|
|
26
28
|
*/
|
|
27
|
-
static get requires():
|
|
29
|
+
static get requires(): readonly [typeof ImageBlock, typeof ImageInline];
|
|
28
30
|
/**
|
|
29
31
|
* @inheritDoc
|
|
30
32
|
*/
|
package/src/imageblock.d.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageblock
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Widget } from 'ckeditor5/src/widget';
|
|
10
|
+
import ImageTextAlternative from './imagetextalternative';
|
|
11
|
+
import ImageBlockEditing from './image/imageblockediting';
|
|
9
12
|
import '../theme/image.css';
|
|
10
13
|
/**
|
|
11
14
|
* The image block plugin.
|
|
@@ -22,7 +25,7 @@ export default class ImageBlock extends Plugin {
|
|
|
22
25
|
/**
|
|
23
26
|
* @inheritDoc
|
|
24
27
|
*/
|
|
25
|
-
static get requires():
|
|
28
|
+
static get requires(): readonly [typeof ImageBlockEditing, typeof Widget, typeof ImageTextAlternative];
|
|
26
29
|
/**
|
|
27
30
|
* @inheritDoc
|
|
28
31
|
*/
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagecaption/imagecaptionediting
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor, Plugin
|
|
8
|
+
import { type Editor, Plugin } from 'ckeditor5/src/core';
|
|
9
9
|
import { Element } from 'ckeditor5/src/engine';
|
|
10
|
+
import ImageUtils from '../imageutils';
|
|
11
|
+
import ImageCaptionUtils from './imagecaptionutils';
|
|
10
12
|
/**
|
|
11
13
|
* The image caption engine plugin. It is responsible for:
|
|
12
14
|
*
|
|
@@ -18,7 +20,7 @@ export default class ImageCaptionEditing extends Plugin {
|
|
|
18
20
|
/**
|
|
19
21
|
* @inheritDoc
|
|
20
22
|
*/
|
|
21
|
-
static get requires():
|
|
23
|
+
static get requires(): readonly [typeof ImageUtils, typeof ImageCaptionUtils];
|
|
22
24
|
/**
|
|
23
25
|
* @inheritDoc
|
|
24
26
|
*/
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagecaption/imagecaptionui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageCaptionUtils from './imagecaptionutils';
|
|
9
10
|
/**
|
|
10
11
|
* The image caption UI plugin. It introduces the `'toggleImageCaption'` UI button.
|
|
11
12
|
*/
|
|
@@ -13,7 +14,7 @@ export default class ImageCaptionUI extends Plugin {
|
|
|
13
14
|
/**
|
|
14
15
|
* @inheritDoc
|
|
15
16
|
*/
|
|
16
|
-
static get requires():
|
|
17
|
+
static get requires(): readonly [typeof ImageCaptionUtils];
|
|
17
18
|
/**
|
|
18
19
|
* @inheritDoc
|
|
19
20
|
*/
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* @module image/imagecaption/imagecaptionutils
|
|
7
7
|
*/
|
|
8
8
|
import type { DocumentSelection, Element, Selection, ViewElement, Match } from 'ckeditor5/src/engine';
|
|
9
|
-
import { Plugin
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import ImageUtils from '../imageutils';
|
|
10
11
|
/**
|
|
11
12
|
* The image caption utilities plugin.
|
|
12
13
|
*/
|
|
@@ -18,7 +19,7 @@ export default class ImageCaptionUtils extends Plugin {
|
|
|
18
19
|
/**
|
|
19
20
|
* @inheritDoc
|
|
20
21
|
*/
|
|
21
|
-
static get requires():
|
|
22
|
+
static get requires(): readonly [typeof ImageUtils];
|
|
22
23
|
/**
|
|
23
24
|
* Returns the caption model element from a given image element. Returns `null` if no caption is found.
|
|
24
25
|
*/
|
package/src/imagecaption.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagecaption
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageCaptionEditing from './imagecaption/imagecaptionediting';
|
|
10
|
+
import ImageCaptionUI from './imagecaption/imagecaptionui';
|
|
9
11
|
import '../theme/imagecaption.css';
|
|
10
12
|
/**
|
|
11
13
|
* The image caption plugin.
|
|
@@ -16,7 +18,7 @@ export default class ImageCaption extends Plugin {
|
|
|
16
18
|
/**
|
|
17
19
|
* @inheritDoc
|
|
18
20
|
*/
|
|
19
|
-
static get requires():
|
|
21
|
+
static get requires(): readonly [typeof ImageCaptionEditing, typeof ImageCaptionUI];
|
|
20
22
|
/**
|
|
21
23
|
* @inheritDoc
|
|
22
24
|
*/
|
package/src/imageinline.d.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageinline
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Widget } from 'ckeditor5/src/widget';
|
|
10
|
+
import ImageTextAlternative from './imagetextalternative';
|
|
11
|
+
import ImageInlineEditing from './image/imageinlineediting';
|
|
9
12
|
import '../theme/image.css';
|
|
10
13
|
/**
|
|
11
14
|
* The image inline plugin.
|
|
@@ -22,7 +25,7 @@ export default class ImageInline extends Plugin {
|
|
|
22
25
|
/**
|
|
23
26
|
* @inheritDoc
|
|
24
27
|
*/
|
|
25
|
-
static get requires():
|
|
28
|
+
static get requires(): readonly [typeof ImageInlineEditing, typeof Widget, typeof ImageTextAlternative];
|
|
26
29
|
/**
|
|
27
30
|
* @inheritDoc
|
|
28
31
|
*/
|
package/src/imageinsert.d.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageinsert
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageUpload from './imageupload';
|
|
10
|
+
import ImageInsertViaUrl from './imageinsertviaurl';
|
|
11
|
+
import ImageInsertUI from './imageinsert/imageinsertui';
|
|
9
12
|
/**
|
|
10
13
|
* The image insert plugin.
|
|
11
14
|
*
|
|
@@ -26,5 +29,5 @@ export default class ImageInsert extends Plugin {
|
|
|
26
29
|
/**
|
|
27
30
|
* @inheritDoc
|
|
28
31
|
*/
|
|
29
|
-
static get requires():
|
|
32
|
+
static get requires(): readonly [typeof ImageUpload, typeof ImageInsertViaUrl, typeof ImageInsertUI];
|
|
30
33
|
}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageinsertviaurl
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageInsertUI from './imageinsert/imageinsertui';
|
|
9
10
|
/**
|
|
10
11
|
* The image insert via URL plugin.
|
|
11
12
|
*
|
|
@@ -25,5 +26,5 @@ export default class ImageInsertViaUrl extends Plugin {
|
|
|
25
26
|
/**
|
|
26
27
|
* @inheritDoc
|
|
27
28
|
*/
|
|
28
|
-
static get requires():
|
|
29
|
+
static get requires(): readonly [typeof ImageInsertUI];
|
|
29
30
|
}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageresize/imageresizebuttons
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageResizeEditing from './imageresizeediting';
|
|
9
10
|
/**
|
|
10
11
|
* The image resize buttons plugin.
|
|
11
12
|
*
|
|
@@ -15,7 +16,7 @@ export default class ImageResizeButtons extends Plugin {
|
|
|
15
16
|
/**
|
|
16
17
|
* @inheritDoc
|
|
17
18
|
*/
|
|
18
|
-
static get requires():
|
|
19
|
+
static get requires(): readonly [typeof ImageResizeEditing];
|
|
19
20
|
/**
|
|
20
21
|
* @inheritDoc
|
|
21
22
|
*/
|
|
@@ -2,7 +2,8 @@
|
|
|
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
|
-
import { type Editor, Plugin
|
|
5
|
+
import { type Editor, Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
import ImageUtils from '../imageutils';
|
|
6
7
|
/**
|
|
7
8
|
* The image resize editing feature.
|
|
8
9
|
*
|
|
@@ -13,7 +14,7 @@ export default class ImageResizeEditing extends Plugin {
|
|
|
13
14
|
/**
|
|
14
15
|
* @inheritDoc
|
|
15
16
|
*/
|
|
16
|
-
static get requires():
|
|
17
|
+
static get requires(): readonly [typeof ImageUtils];
|
|
17
18
|
/**
|
|
18
19
|
* @inheritDoc
|
|
19
20
|
*/
|
|
@@ -2,7 +2,8 @@
|
|
|
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
|
-
import { Plugin
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
import { WidgetResize } from 'ckeditor5/src/widget';
|
|
6
7
|
/**
|
|
7
8
|
* The image resize by handles feature.
|
|
8
9
|
*
|
|
@@ -13,7 +14,7 @@ export default class ImageResizeHandles extends Plugin {
|
|
|
13
14
|
/**
|
|
14
15
|
* @inheritDoc
|
|
15
16
|
*/
|
|
16
|
-
static get requires():
|
|
17
|
+
static get requires(): readonly [typeof WidgetResize];
|
|
17
18
|
/**
|
|
18
19
|
* @inheritDoc
|
|
19
20
|
*/
|
package/src/imageresize.d.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageresize
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageResizeButtons from './imageresize/imageresizebuttons';
|
|
10
|
+
import ImageResizeEditing from './imageresize/imageresizeediting';
|
|
11
|
+
import ImageResizeHandles from './imageresize/imageresizehandles';
|
|
9
12
|
import '../theme/imageresize.css';
|
|
10
13
|
/**
|
|
11
14
|
* The image resize plugin.
|
|
@@ -16,7 +19,7 @@ export default class ImageResize extends Plugin {
|
|
|
16
19
|
/**
|
|
17
20
|
* @inheritDoc
|
|
18
21
|
*/
|
|
19
|
-
static get requires():
|
|
22
|
+
static get requires(): readonly [typeof ImageResizeEditing, typeof ImageResizeHandles, typeof ImageResizeButtons];
|
|
20
23
|
/**
|
|
21
24
|
* @inheritDoc
|
|
22
25
|
*/
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagestyle/imagestyleediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageUtils from '../imageutils';
|
|
9
10
|
import type { ImageStyleOptionDefinition } from '../imageconfig';
|
|
10
11
|
/**
|
|
11
12
|
* The image style engine plugin. It sets the default configuration, creates converters and registers
|
|
@@ -19,7 +20,7 @@ export default class ImageStyleEditing extends Plugin {
|
|
|
19
20
|
/**
|
|
20
21
|
* @inheritDoc
|
|
21
22
|
*/
|
|
22
|
-
static get requires():
|
|
23
|
+
static get requires(): readonly [typeof ImageUtils];
|
|
23
24
|
/**
|
|
24
25
|
* It contains a list of the normalized and validated style options.
|
|
25
26
|
*
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagestyle/imagestyleui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageStyleEditing from './imagestyleediting';
|
|
9
10
|
import '../../theme/imagestyle.css';
|
|
10
11
|
/**
|
|
11
12
|
* The image style UI plugin.
|
|
@@ -18,7 +19,7 @@ export default class ImageStyleUI extends Plugin {
|
|
|
18
19
|
/**
|
|
19
20
|
* @inheritDoc
|
|
20
21
|
*/
|
|
21
|
-
static get requires():
|
|
22
|
+
static get requires(): readonly [typeof ImageStyleEditing];
|
|
22
23
|
/**
|
|
23
24
|
* @inheritDoc
|
|
24
25
|
*/
|
package/src/imagestyle.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagestyle
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageStyleEditing from './imagestyle/imagestyleediting';
|
|
10
|
+
import ImageStyleUI from './imagestyle/imagestyleui';
|
|
9
11
|
/**
|
|
10
12
|
* The image style plugin.
|
|
11
13
|
*
|
|
@@ -22,7 +24,7 @@ export default class ImageStyle extends Plugin {
|
|
|
22
24
|
/**
|
|
23
25
|
* @inheritDoc
|
|
24
26
|
*/
|
|
25
|
-
static get requires():
|
|
27
|
+
static get requires(): readonly [typeof ImageStyleEditing, typeof ImageStyleUI];
|
|
26
28
|
/**
|
|
27
29
|
* @inheritDoc
|
|
28
30
|
*/
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/imagetextalternativeediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageUtils from '../imageutils';
|
|
9
10
|
/**
|
|
10
11
|
* The image text alternative editing plugin.
|
|
11
12
|
*
|
|
@@ -15,7 +16,7 @@ export default class ImageTextAlternativeEditing extends Plugin {
|
|
|
15
16
|
/**
|
|
16
17
|
* @inheritDoc
|
|
17
18
|
*/
|
|
18
|
-
static get requires():
|
|
19
|
+
static get requires(): readonly [typeof ImageUtils];
|
|
19
20
|
/**
|
|
20
21
|
* @inheritDoc
|
|
21
22
|
*/
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/imagetextalternativeui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui';
|
|
9
10
|
/**
|
|
10
11
|
* The image text alternative UI plugin.
|
|
11
12
|
*
|
|
@@ -23,7 +24,7 @@ export default class ImageTextAlternativeUI extends Plugin {
|
|
|
23
24
|
/**
|
|
24
25
|
* @inheritDoc
|
|
25
26
|
*/
|
|
26
|
-
static get requires():
|
|
27
|
+
static get requires(): readonly [typeof ContextualBalloon];
|
|
27
28
|
/**
|
|
28
29
|
* @inheritDoc
|
|
29
30
|
*/
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting';
|
|
10
|
+
import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui';
|
|
9
11
|
/**
|
|
10
12
|
* The image text alternative plugin.
|
|
11
13
|
*
|
|
@@ -19,7 +21,7 @@ export default class ImageTextAlternative extends Plugin {
|
|
|
19
21
|
/**
|
|
20
22
|
* @inheritDoc
|
|
21
23
|
*/
|
|
22
|
-
static get requires():
|
|
24
|
+
static get requires(): readonly [typeof ImageTextAlternativeEditing, typeof ImageTextAlternativeUI];
|
|
23
25
|
/**
|
|
24
26
|
* @inheritDoc
|
|
25
27
|
*/
|
package/src/imagetoolbar.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetoolbar
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
|
|
10
|
+
import ImageUtils from './imageutils';
|
|
9
11
|
/**
|
|
10
12
|
* The image toolbar plugin. It creates and manages the image toolbar (the toolbar displayed when an image is selected).
|
|
11
13
|
*
|
|
@@ -21,7 +23,7 @@ export default class ImageToolbar extends Plugin {
|
|
|
21
23
|
/**
|
|
22
24
|
* @inheritDoc
|
|
23
25
|
*/
|
|
24
|
-
static get requires():
|
|
26
|
+
static get requires(): readonly [typeof WidgetToolbarRepository, typeof ImageUtils];
|
|
25
27
|
/**
|
|
26
28
|
* @inheritDoc
|
|
27
29
|
*/
|
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageupload/imageuploadediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
9
|
import { type Element, type Writer, type DataTransfer } from 'ckeditor5/src/engine';
|
|
10
|
-
import {
|
|
10
|
+
import { Notification } from 'ckeditor5/src/ui';
|
|
11
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
|
|
12
|
+
import { FileRepository, type UploadResponse, type FileLoader } from 'ckeditor5/src/upload';
|
|
13
|
+
import ImageUtils from '../imageutils';
|
|
11
14
|
/**
|
|
12
15
|
* The editing part of the image upload feature. It registers the `'uploadImage'` command
|
|
13
16
|
* and the `imageUpload` command as an aliased name.
|
|
@@ -19,7 +22,7 @@ export default class ImageUploadEditing extends Plugin {
|
|
|
19
22
|
/**
|
|
20
23
|
* @inheritDoc
|
|
21
24
|
*/
|
|
22
|
-
static get requires():
|
|
25
|
+
static get requires(): readonly [typeof FileRepository, typeof Notification, typeof ClipboardPipeline, typeof ImageUtils];
|
|
23
26
|
static get pluginName(): 'ImageUploadEditing';
|
|
24
27
|
/**
|
|
25
28
|
* An internal mapping of {@link module:upload/filerepository~FileLoader#id file loader UIDs} and
|
package/src/imageupload.d.ts
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageupload
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageUploadUI from './imageupload/imageuploadui';
|
|
10
|
+
import ImageUploadProgress from './imageupload/imageuploadprogress';
|
|
11
|
+
import ImageUploadEditing from './imageupload/imageuploadediting';
|
|
9
12
|
/**
|
|
10
13
|
* The image upload plugin.
|
|
11
14
|
*
|
|
@@ -25,5 +28,5 @@ export default class ImageUpload extends Plugin {
|
|
|
25
28
|
/**
|
|
26
29
|
* @inheritDoc
|
|
27
30
|
*/
|
|
28
|
-
static get requires():
|
|
31
|
+
static get requires(): readonly [typeof ImageUploadEditing, typeof ImageUploadUI, typeof ImageUploadProgress];
|
|
29
32
|
}
|
package/src/pictureediting.d.ts
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/pictureediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import ImageEditing from './image/imageediting';
|
|
10
|
+
import ImageUtils from './imageutils';
|
|
9
11
|
/**
|
|
10
12
|
* This plugin enables the [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) element support in the editor.
|
|
11
13
|
*
|
|
@@ -63,7 +65,7 @@ export default class PictureEditing extends Plugin {
|
|
|
63
65
|
/**
|
|
64
66
|
* @inheritDoc
|
|
65
67
|
*/
|
|
66
|
-
static get requires():
|
|
68
|
+
static get requires(): readonly [typeof ImageEditing, typeof ImageUtils];
|
|
67
69
|
/**
|
|
68
70
|
* @inheritDoc
|
|
69
71
|
*/
|