@ckeditor/ckeditor5-image 37.0.0-alpha.2 → 37.0.0-rc.0
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/build/image.js +1 -1
- package/ckeditor5-metadata.json +2 -2
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +33 -33
- 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/imageloadobserver.d.ts +4 -0
- package/src/image/imageloadobserver.js +6 -0
- 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/imageinsertui.d.ts +1 -1
- package/src/imageinsert/imageinsertui.js +1 -1
- package/src/imageinsert.d.ts +6 -3
- package/src/imageinsert.js +1 -1
- package/src/imageinsertviaurl.d.ts +4 -3
- package/src/imageinsertviaurl.js +1 -1
- 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 +5 -3
- package/src/pictureediting.js +1 -1
package/lang/translations/hr.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/id.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/jv.po
CHANGED
package/lang/translations/km.po
CHANGED
package/lang/translations/kn.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/ku.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nb.po
CHANGED
package/lang/translations/ne.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/si.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sq.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-image",
|
|
3
|
-
"version": "37.0.0-
|
|
3
|
+
"version": "37.0.0-rc.0",
|
|
4
4
|
"description": "Image feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,46 +12,46 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-
|
|
16
|
-
"ckeditor5": "^37.0.0-
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-rc.0",
|
|
16
|
+
"ckeditor5": "^37.0.0-rc.0",
|
|
17
17
|
"lodash-es": "^4.17.15"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ckeditor/ckeditor5-adapter-ckfinder": "^37.0.0-
|
|
21
|
-
"@ckeditor/ckeditor5-autoformat": "^37.0.0-
|
|
22
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-
|
|
23
|
-
"@ckeditor/ckeditor5-block-quote": "^37.0.0-
|
|
24
|
-
"@ckeditor/ckeditor5-ckfinder": "^37.0.0-
|
|
25
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0.0-
|
|
26
|
-
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-
|
|
27
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-
|
|
28
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
29
|
-
"@ckeditor/ckeditor5-easy-image": "^37.0.0-
|
|
30
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-
|
|
31
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-
|
|
32
|
-
"@ckeditor/ckeditor5-enter": "^37.0.0-
|
|
33
|
-
"@ckeditor/ckeditor5-essentials": "^37.0.0-
|
|
34
|
-
"@ckeditor/ckeditor5-heading": "^37.0.0-
|
|
35
|
-
"@ckeditor/ckeditor5-html-embed": "^37.0.0-
|
|
36
|
-
"@ckeditor/ckeditor5-indent": "^37.0.0-
|
|
37
|
-
"@ckeditor/ckeditor5-link": "^37.0.0-
|
|
38
|
-
"@ckeditor/ckeditor5-list": "^37.0.0-
|
|
39
|
-
"@ckeditor/ckeditor5-media-embed": "^37.0.0-
|
|
40
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-
|
|
41
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-
|
|
42
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-
|
|
43
|
-
"@ckeditor/ckeditor5-typing": "^37.0.0-
|
|
44
|
-
"@ckeditor/ckeditor5-undo": "^37.0.0-
|
|
45
|
-
"@ckeditor/ckeditor5-upload": "^37.0.0-
|
|
46
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-
|
|
47
|
-
"@ckeditor/ckeditor5-watchdog": "^37.0.0-
|
|
48
|
-
"@ckeditor/ckeditor5-widget": "^37.0.0-
|
|
20
|
+
"@ckeditor/ckeditor5-adapter-ckfinder": "^37.0.0-rc.0",
|
|
21
|
+
"@ckeditor/ckeditor5-autoformat": "^37.0.0-rc.0",
|
|
22
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-rc.0",
|
|
23
|
+
"@ckeditor/ckeditor5-block-quote": "^37.0.0-rc.0",
|
|
24
|
+
"@ckeditor/ckeditor5-ckfinder": "^37.0.0-rc.0",
|
|
25
|
+
"@ckeditor/ckeditor5-clipboard": "^37.0.0-rc.0",
|
|
26
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-rc.0",
|
|
27
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-rc.0",
|
|
28
|
+
"@ckeditor/ckeditor5-dev-utils": "^36.0.0",
|
|
29
|
+
"@ckeditor/ckeditor5-easy-image": "^37.0.0-rc.0",
|
|
30
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-rc.0",
|
|
31
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-rc.0",
|
|
32
|
+
"@ckeditor/ckeditor5-enter": "^37.0.0-rc.0",
|
|
33
|
+
"@ckeditor/ckeditor5-essentials": "^37.0.0-rc.0",
|
|
34
|
+
"@ckeditor/ckeditor5-heading": "^37.0.0-rc.0",
|
|
35
|
+
"@ckeditor/ckeditor5-html-embed": "^37.0.0-rc.0",
|
|
36
|
+
"@ckeditor/ckeditor5-indent": "^37.0.0-rc.0",
|
|
37
|
+
"@ckeditor/ckeditor5-link": "^37.0.0-rc.0",
|
|
38
|
+
"@ckeditor/ckeditor5-list": "^37.0.0-rc.0",
|
|
39
|
+
"@ckeditor/ckeditor5-media-embed": "^37.0.0-rc.0",
|
|
40
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-rc.0",
|
|
41
|
+
"@ckeditor/ckeditor5-table": "^37.0.0-rc.0",
|
|
42
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-rc.0",
|
|
43
|
+
"@ckeditor/ckeditor5-typing": "^37.0.0-rc.0",
|
|
44
|
+
"@ckeditor/ckeditor5-undo": "^37.0.0-rc.0",
|
|
45
|
+
"@ckeditor/ckeditor5-upload": "^37.0.0-rc.0",
|
|
46
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-rc.0",
|
|
47
|
+
"@ckeditor/ckeditor5-watchdog": "^37.0.0-rc.0",
|
|
48
|
+
"@ckeditor/ckeditor5-widget": "^37.0.0-rc.0",
|
|
49
49
|
"typescript": "^4.8.4",
|
|
50
50
|
"webpack": "^5.58.1",
|
|
51
51
|
"webpack-cli": "^4.9.0"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
54
|
-
"node": ">=
|
|
54
|
+
"node": ">=16.0.0",
|
|
55
55
|
"npm": ">=5.7.1"
|
|
56
56
|
},
|
|
57
57
|
"author": "CKSource (http://cksource.com/)",
|
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
|
*/
|
|
@@ -19,6 +19,10 @@ export default class ImageLoadObserver extends Observer {
|
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
21
21
|
observe(domRoot: HTMLElement): void;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
stopObserving(domRoot: HTMLElement): void;
|
|
22
26
|
/**
|
|
23
27
|
* Fires {@link module:engine/view/document~Document#event:layoutChanged} and
|
|
24
28
|
* {@link module:engine/view/document~Document#event:imageLoaded}
|
|
@@ -30,6 +30,12 @@ export default class ImageLoadObserver extends Observer {
|
|
|
30
30
|
// Use capture phase for better performance (#4504).
|
|
31
31
|
}, { useCapture: true });
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
stopObserving(domRoot) {
|
|
37
|
+
this.stopListening(domRoot);
|
|
38
|
+
}
|
|
33
39
|
/**
|
|
34
40
|
* Fires {@link module:engine/view/document~Document#event:layoutChanged} and
|
|
35
41
|
* {@link module:engine/view/document~Document#event:imageLoaded}
|
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
|
*/
|