@ckeditor/ckeditor5-image 40.1.0 → 41.0.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/CHANGELOG.md +25 -25
- package/LICENSE.md +1 -1
- package/build/image.js +3 -3
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +3 -3
- package/lang/contexts.json +5 -0
- package/lang/translations/ar.po +21 -1
- package/lang/translations/ast.po +21 -1
- package/lang/translations/az.po +21 -1
- package/lang/translations/bg.po +21 -1
- package/lang/translations/bn.po +21 -1
- package/lang/translations/bs.po +21 -1
- package/lang/translations/ca.po +21 -1
- package/lang/translations/cs.po +21 -1
- package/lang/translations/da.po +21 -1
- package/lang/translations/de-ch.po +21 -1
- package/lang/translations/de.po +21 -1
- package/lang/translations/el.po +21 -1
- package/lang/translations/en-au.po +21 -1
- package/lang/translations/en-gb.po +21 -1
- package/lang/translations/en.po +21 -1
- package/lang/translations/eo.po +21 -1
- package/lang/translations/es.po +21 -1
- package/lang/translations/et.po +21 -1
- package/lang/translations/eu.po +21 -1
- package/lang/translations/fa.po +21 -1
- package/lang/translations/fi.po +21 -1
- package/lang/translations/fr.po +21 -1
- package/lang/translations/gl.po +21 -1
- package/lang/translations/he.po +21 -1
- package/lang/translations/hi.po +21 -1
- package/lang/translations/hr.po +21 -1
- package/lang/translations/hu.po +21 -1
- package/lang/translations/id.po +21 -1
- package/lang/translations/it.po +21 -1
- package/lang/translations/ja.po +21 -1
- package/lang/translations/jv.po +21 -1
- package/lang/translations/km.po +21 -1
- package/lang/translations/kn.po +21 -1
- package/lang/translations/ko.po +21 -1
- package/lang/translations/ku.po +21 -1
- package/lang/translations/lt.po +21 -1
- package/lang/translations/lv.po +21 -1
- package/lang/translations/ms.po +21 -1
- package/lang/translations/nb.po +21 -1
- package/lang/translations/ne.po +21 -1
- package/lang/translations/nl.po +21 -1
- package/lang/translations/no.po +21 -1
- package/lang/translations/pl.po +21 -1
- package/lang/translations/pt-br.po +21 -1
- package/lang/translations/pt.po +21 -1
- package/lang/translations/ro.po +21 -1
- package/lang/translations/ru.po +21 -1
- package/lang/translations/si.po +21 -1
- package/lang/translations/sk.po +21 -1
- package/lang/translations/sq.po +21 -1
- package/lang/translations/sr-latn.po +21 -1
- package/lang/translations/sr.po +21 -1
- package/lang/translations/sv.po +21 -1
- package/lang/translations/th.po +21 -1
- package/lang/translations/tk.po +21 -1
- package/lang/translations/tr.po +21 -1
- package/lang/translations/tt.po +21 -1
- package/lang/translations/ug.po +22 -2
- package/lang/translations/uk.po +21 -1
- package/lang/translations/ur.po +21 -1
- package/lang/translations/uz.po +21 -1
- package/lang/translations/vi.po +21 -1
- package/lang/translations/zh-cn.po +21 -1
- package/lang/translations/zh.po +21 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/autoimage.d.ts +6 -6
- package/src/autoimage.js +8 -8
- package/src/image/converters.d.ts +3 -3
- package/src/image/converters.js +2 -2
- package/src/image/imageblockediting.d.ts +7 -7
- package/src/image/imageblockediting.js +11 -11
- package/src/image/imageediting.d.ts +3 -3
- package/src/image/imageediting.js +6 -6
- package/src/image/imageinlineediting.d.ts +7 -7
- package/src/image/imageinlineediting.js +11 -11
- package/src/image/imageloadobserver.d.ts +2 -2
- package/src/image/imageloadobserver.js +2 -2
- package/src/image/imageplaceholder.d.ts +3 -3
- package/src/image/imageplaceholder.js +4 -4
- package/src/image/imagetypecommand.d.ts +3 -3
- package/src/image/imagetypecommand.js +2 -2
- package/src/image/insertimagecommand.d.ts +3 -3
- package/src/image/insertimagecommand.js +3 -3
- package/src/image/replaceimagesourcecommand.d.ts +3 -3
- package/src/image/replaceimagesourcecommand.js +2 -2
- package/src/image/ui/utils.d.ts +3 -3
- package/src/image/ui/utils.js +2 -2
- package/src/image/utils.d.ts +3 -3
- package/src/image/utils.js +2 -2
- package/src/image.d.ts +4 -4
- package/src/image.js +4 -4
- package/src/imageblock.d.ts +7 -6
- package/src/imageblock.js +7 -6
- package/src/imagecaption/imagecaptionediting.d.ts +5 -5
- package/src/imagecaption/imagecaptionediting.js +7 -7
- package/src/imagecaption/imagecaptionui.d.ts +3 -3
- package/src/imagecaption/imagecaptionui.js +4 -4
- package/src/imagecaption/imagecaptionutils.d.ts +4 -4
- package/src/imagecaption/imagecaptionutils.js +3 -3
- package/src/imagecaption/toggleimagecaptioncommand.d.ts +2 -2
- package/src/imagecaption/toggleimagecaptioncommand.js +3 -3
- package/src/imagecaption.d.ts +4 -4
- package/src/imagecaption.js +4 -4
- package/src/imageconfig.d.ts +10 -14
- package/src/imageconfig.js +1 -1
- package/src/imageinline.d.ts +7 -6
- package/src/imageinline.js +7 -6
- package/src/imageinsert/imageinsertui.d.ts +39 -11
- package/src/imageinsert/imageinsertui.js +127 -94
- package/src/imageinsert/imageinsertviaurlui.d.ts +44 -0
- package/src/imageinsert/imageinsertviaurlui.js +122 -0
- package/src/imageinsert/ui/imageinsertformview.d.ts +56 -0
- package/src/imageinsert/ui/imageinsertformview.js +112 -0
- package/src/imageinsert/ui/imageinserturlview.d.ts +107 -0
- package/src/imageinsert/ui/imageinserturlview.js +156 -0
- package/src/imageinsert.d.ts +5 -5
- package/src/imageinsert.js +5 -5
- package/src/imageinsertviaurl.d.ts +5 -4
- package/src/imageinsertviaurl.js +5 -4
- package/src/imageresize/imageresizebuttons.d.ts +3 -3
- package/src/imageresize/imageresizebuttons.js +6 -6
- package/src/imageresize/imageresizeediting.d.ts +3 -3
- package/src/imageresize/imageresizeediting.js +5 -5
- package/src/imageresize/imageresizehandles.d.ts +4 -4
- package/src/imageresize/imageresizehandles.js +5 -5
- package/src/imageresize/resizeimagecommand.d.ts +2 -2
- package/src/imageresize/resizeimagecommand.js +2 -2
- package/src/imageresize.d.ts +5 -5
- package/src/imageresize.js +5 -5
- package/src/imagesizeattributes.d.ts +3 -3
- package/src/imagesizeattributes.js +4 -4
- package/src/imagestyle/converters.d.ts +4 -4
- package/src/imagestyle/converters.js +2 -2
- package/src/imagestyle/imagestylecommand.d.ts +4 -4
- package/src/imagestyle/imagestylecommand.js +2 -2
- package/src/imagestyle/imagestyleediting.d.ts +4 -4
- package/src/imagestyle/imagestyleediting.js +6 -6
- package/src/imagestyle/imagestyleui.d.ts +3 -3
- package/src/imagestyle/imagestyleui.js +5 -5
- package/src/imagestyle/utils.d.ts +3 -3
- package/src/imagestyle/utils.js +3 -3
- package/src/imagestyle.d.ts +4 -4
- package/src/imagestyle.js +4 -4
- package/src/imagetextalternative/imagetextalternativecommand.d.ts +2 -2
- package/src/imagetextalternative/imagetextalternativecommand.js +2 -2
- package/src/imagetextalternative/imagetextalternativeediting.d.ts +3 -3
- package/src/imagetextalternative/imagetextalternativeediting.js +4 -4
- package/src/imagetextalternative/imagetextalternativeui.d.ts +3 -3
- package/src/imagetextalternative/imagetextalternativeui.js +5 -5
- package/src/imagetextalternative/ui/textalternativeformview.d.ts +22 -4
- package/src/imagetextalternative/ui/textalternativeformview.js +4 -4
- package/src/imagetextalternative.d.ts +4 -4
- package/src/imagetextalternative.js +4 -4
- package/src/imagetoolbar.d.ts +4 -4
- package/src/imagetoolbar.js +4 -4
- package/src/imageupload/imageuploadediting.d.ts +7 -7
- package/src/imageupload/imageuploadediting.js +11 -11
- package/src/imageupload/imageuploadprogress.d.ts +2 -2
- package/src/imageupload/imageuploadprogress.js +3 -3
- package/src/imageupload/imageuploadui.d.ts +2 -2
- package/src/imageupload/imageuploadui.js +34 -10
- package/src/imageupload/uploadimagecommand.d.ts +3 -3
- package/src/imageupload/uploadimagecommand.js +4 -4
- package/src/imageupload/utils.d.ts +3 -3
- package/src/imageupload/utils.js +2 -2
- package/src/imageupload.d.ts +5 -5
- package/src/imageupload.js +5 -5
- package/src/imageutils.d.ts +3 -3
- package/src/imageutils.js +5 -5
- package/src/index.d.ts +42 -42
- package/src/index.js +33 -33
- package/src/pictureediting.d.ts +4 -4
- package/src/pictureediting.js +5 -5
- package/theme/image.css +1 -1
- package/theme/imagecaption.css +1 -1
- package/theme/imageinsert.css +6 -18
- package/theme/imageplaceholder.css +1 -1
- package/theme/imageresize.css +1 -1
- package/theme/imagestyle.css +1 -1
- package/theme/imageuploadicon.css +1 -1
- package/theme/imageuploadloader.css +1 -1
- package/theme/imageuploadprogress.css +1 -1
- package/theme/textalternativeform.css +1 -1
- package/src/imageinsert/ui/imageinsertformrowview.d.ts +0 -61
- package/src/imageinsert/ui/imageinsertformrowview.js +0 -54
- package/src/imageinsert/ui/imageinsertpanelview.d.ts +0 -106
- package/src/imageinsert/ui/imageinsertpanelview.js +0 -161
- package/src/imageinsert/utils.d.ts +0 -25
- package/src/imageinsert/utils.js +0 -58
- package/theme/imageinsertformrowview.css +0 -36
package/src/imageupload.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module image/imageupload
|
|
7
7
|
*/
|
|
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';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageUploadUI from './imageupload/imageuploadui.js';
|
|
10
|
+
import ImageUploadProgress from './imageupload/imageuploadprogress.js';
|
|
11
|
+
import ImageUploadEditing from './imageupload/imageuploadediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* The image upload plugin.
|
|
14
14
|
*
|
package/src/imageutils.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module image/imageutils
|
|
7
7
|
*/
|
|
8
|
-
import type { Element, ViewElement, DocumentSelection, ViewDocumentSelection, Selection, ViewSelection, DowncastWriter, Position, ViewContainerElement } from 'ckeditor5/src/engine';
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import type { Element, ViewElement, DocumentSelection, ViewDocumentSelection, Selection, ViewSelection, DowncastWriter, Position, ViewContainerElement } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* A set of helpers related to images.
|
|
12
12
|
*/
|
package/src/imageutils.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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 } from 'ckeditor5/src/core';
|
|
6
|
-
import { findOptimalInsertionRange, isWidget, toWidget } from 'ckeditor5/src/widget';
|
|
7
|
-
import { determineImageTypeForInsertionAtSelection } from './image/utils';
|
|
8
|
-
import { DomEmitterMixin, global } from 'ckeditor5/src/utils';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { findOptimalInsertionRange, isWidget, toWidget } from 'ckeditor5/src/widget.js';
|
|
7
|
+
import { determineImageTypeForInsertionAtSelection } from './image/utils.js';
|
|
8
|
+
import { DomEmitterMixin, global } from 'ckeditor5/src/utils.js';
|
|
9
9
|
const IMAGE_WIDGETS_CLASSES_MATCH_REGEXP = /^(image|image-inline)$/;
|
|
10
10
|
/**
|
|
11
11
|
* A set of helpers related to images.
|
package/src/index.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module image
|
|
7
7
|
*/
|
|
8
|
-
export { default as AutoImage } from './autoimage';
|
|
9
|
-
export { default as Image } from './image';
|
|
10
|
-
export { default as ImageEditing } from './image/imageediting';
|
|
11
|
-
export { default as ImageCaptionUtils } from './imagecaption/imagecaptionutils';
|
|
12
|
-
export { default as ImageCaption } from './imagecaption';
|
|
13
|
-
export { default as ImageCaptionEditing } from './imagecaption/imagecaptionediting';
|
|
14
|
-
export { default as ImageInsert } from './imageinsert';
|
|
15
|
-
export { default as ImageInsertUI } from './imageinsert/imageinsertui';
|
|
16
|
-
export { default as ImageResize } from './imageresize';
|
|
17
|
-
export { default as ImageResizeButtons } from './imageresize/imageresizebuttons';
|
|
18
|
-
export { default as ImageResizeEditing } from './imageresize/imageresizeediting';
|
|
19
|
-
export { default as ImageResizeHandles } from './imageresize/imageresizehandles';
|
|
20
|
-
export { default as ImageSizeAttributes } from './imagesizeattributes';
|
|
21
|
-
export { default as ImageStyle } from './imagestyle';
|
|
22
|
-
export { default as ImageStyleEditing } from './imagestyle/imagestyleediting';
|
|
23
|
-
export { default as ImageStyleUI } from './imagestyle/imagestyleui';
|
|
24
|
-
export { default as ImageTextAlternative } from './imagetextalternative';
|
|
25
|
-
export { default as ImageTextAlternativeEditing } from './imagetextalternative/imagetextalternativeediting';
|
|
26
|
-
export { default as ImageTextAlternativeUI } from './imagetextalternative/imagetextalternativeui';
|
|
27
|
-
export { default as ImageToolbar } from './imagetoolbar';
|
|
28
|
-
export { default as ImageUpload } from './imageupload';
|
|
29
|
-
export { default as ImageUploadEditing, type ImageUploadCompleteEvent } from './imageupload/imageuploadediting';
|
|
30
|
-
export { default as ImageUploadProgress } from './imageupload/imageuploadprogress';
|
|
31
|
-
export { default as ImageUploadUI } from './imageupload/imageuploadui';
|
|
32
|
-
export { default as PictureEditing } from './pictureediting';
|
|
33
|
-
export { default as ImageBlock } from './imageblock';
|
|
34
|
-
export { default as ImageInline } from './imageinline';
|
|
35
|
-
export { default as ImageInsertViaUrl } from './imageinsertviaurl';
|
|
36
|
-
export { default as ImageUtils } from './imageutils';
|
|
37
|
-
export { default as ImageBlockEditing } from './image/imageblockediting';
|
|
38
|
-
export { default as ImageCaptionUI } from './imagecaption/imagecaptionui';
|
|
39
|
-
export type { ImageConfig } from './imageconfig';
|
|
40
|
-
export type { default as ImageTypeCommand } from './image/imagetypecommand';
|
|
41
|
-
export type { default as InsertImageCommand } from './image/insertimagecommand';
|
|
42
|
-
export type { default as ReplaceImageSourceCommand } from './image/replaceimagesourcecommand';
|
|
43
|
-
export type { default as ToggleImageCaptionCommand } from './imagecaption/toggleimagecaptioncommand';
|
|
44
|
-
export type { default as ResizeImageCommand } from './imageresize/resizeimagecommand';
|
|
45
|
-
export type { default as ImageStyleCommand } from './imagestyle/imagestylecommand';
|
|
46
|
-
export type { default as ImageTextAlternativeCommand } from './imagetextalternative/imagetextalternativecommand';
|
|
47
|
-
export type { default as UploadImageCommand } from './imageupload/uploadimagecommand';
|
|
48
|
-
import './augmentation';
|
|
8
|
+
export { default as AutoImage } from './autoimage.js';
|
|
9
|
+
export { default as Image } from './image.js';
|
|
10
|
+
export { default as ImageEditing } from './image/imageediting.js';
|
|
11
|
+
export { default as ImageCaptionUtils } from './imagecaption/imagecaptionutils.js';
|
|
12
|
+
export { default as ImageCaption } from './imagecaption.js';
|
|
13
|
+
export { default as ImageCaptionEditing } from './imagecaption/imagecaptionediting.js';
|
|
14
|
+
export { default as ImageInsert } from './imageinsert.js';
|
|
15
|
+
export { default as ImageInsertUI } from './imageinsert/imageinsertui.js';
|
|
16
|
+
export { default as ImageResize } from './imageresize.js';
|
|
17
|
+
export { default as ImageResizeButtons } from './imageresize/imageresizebuttons.js';
|
|
18
|
+
export { default as ImageResizeEditing } from './imageresize/imageresizeediting.js';
|
|
19
|
+
export { default as ImageResizeHandles } from './imageresize/imageresizehandles.js';
|
|
20
|
+
export { default as ImageSizeAttributes } from './imagesizeattributes.js';
|
|
21
|
+
export { default as ImageStyle } from './imagestyle.js';
|
|
22
|
+
export { default as ImageStyleEditing } from './imagestyle/imagestyleediting.js';
|
|
23
|
+
export { default as ImageStyleUI } from './imagestyle/imagestyleui.js';
|
|
24
|
+
export { default as ImageTextAlternative } from './imagetextalternative.js';
|
|
25
|
+
export { default as ImageTextAlternativeEditing } from './imagetextalternative/imagetextalternativeediting.js';
|
|
26
|
+
export { default as ImageTextAlternativeUI } from './imagetextalternative/imagetextalternativeui.js';
|
|
27
|
+
export { default as ImageToolbar } from './imagetoolbar.js';
|
|
28
|
+
export { default as ImageUpload } from './imageupload.js';
|
|
29
|
+
export { default as ImageUploadEditing, type ImageUploadCompleteEvent } from './imageupload/imageuploadediting.js';
|
|
30
|
+
export { default as ImageUploadProgress } from './imageupload/imageuploadprogress.js';
|
|
31
|
+
export { default as ImageUploadUI } from './imageupload/imageuploadui.js';
|
|
32
|
+
export { default as PictureEditing } from './pictureediting.js';
|
|
33
|
+
export { default as ImageBlock } from './imageblock.js';
|
|
34
|
+
export { default as ImageInline } from './imageinline.js';
|
|
35
|
+
export { default as ImageInsertViaUrl } from './imageinsertviaurl.js';
|
|
36
|
+
export { default as ImageUtils } from './imageutils.js';
|
|
37
|
+
export { default as ImageBlockEditing } from './image/imageblockediting.js';
|
|
38
|
+
export { default as ImageCaptionUI } from './imagecaption/imagecaptionui.js';
|
|
39
|
+
export type { ImageConfig } from './imageconfig.js';
|
|
40
|
+
export type { default as ImageTypeCommand } from './image/imagetypecommand.js';
|
|
41
|
+
export type { default as InsertImageCommand } from './image/insertimagecommand.js';
|
|
42
|
+
export type { default as ReplaceImageSourceCommand } from './image/replaceimagesourcecommand.js';
|
|
43
|
+
export type { default as ToggleImageCaptionCommand } from './imagecaption/toggleimagecaptioncommand.js';
|
|
44
|
+
export type { default as ResizeImageCommand } from './imageresize/resizeimagecommand.js';
|
|
45
|
+
export type { default as ImageStyleCommand } from './imagestyle/imagestylecommand.js';
|
|
46
|
+
export type { default as ImageTextAlternativeCommand } from './imagetextalternative/imagetextalternativecommand.js';
|
|
47
|
+
export type { default as UploadImageCommand } from './imageupload/uploadimagecommand.js';
|
|
48
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module image
|
|
7
7
|
*/
|
|
8
|
-
export { default as AutoImage } from './autoimage';
|
|
9
|
-
export { default as Image } from './image';
|
|
10
|
-
export { default as ImageEditing } from './image/imageediting';
|
|
11
|
-
export { default as ImageCaptionUtils } from './imagecaption/imagecaptionutils';
|
|
12
|
-
export { default as ImageCaption } from './imagecaption';
|
|
13
|
-
export { default as ImageCaptionEditing } from './imagecaption/imagecaptionediting';
|
|
14
|
-
export { default as ImageInsert } from './imageinsert';
|
|
15
|
-
export { default as ImageInsertUI } from './imageinsert/imageinsertui';
|
|
16
|
-
export { default as ImageResize } from './imageresize';
|
|
17
|
-
export { default as ImageResizeButtons } from './imageresize/imageresizebuttons';
|
|
18
|
-
export { default as ImageResizeEditing } from './imageresize/imageresizeediting';
|
|
19
|
-
export { default as ImageResizeHandles } from './imageresize/imageresizehandles';
|
|
20
|
-
export { default as ImageSizeAttributes } from './imagesizeattributes';
|
|
21
|
-
export { default as ImageStyle } from './imagestyle';
|
|
22
|
-
export { default as ImageStyleEditing } from './imagestyle/imagestyleediting';
|
|
23
|
-
export { default as ImageStyleUI } from './imagestyle/imagestyleui';
|
|
24
|
-
export { default as ImageTextAlternative } from './imagetextalternative';
|
|
25
|
-
export { default as ImageTextAlternativeEditing } from './imagetextalternative/imagetextalternativeediting';
|
|
26
|
-
export { default as ImageTextAlternativeUI } from './imagetextalternative/imagetextalternativeui';
|
|
27
|
-
export { default as ImageToolbar } from './imagetoolbar';
|
|
28
|
-
export { default as ImageUpload } from './imageupload';
|
|
29
|
-
export { default as ImageUploadEditing } from './imageupload/imageuploadediting';
|
|
30
|
-
export { default as ImageUploadProgress } from './imageupload/imageuploadprogress';
|
|
31
|
-
export { default as ImageUploadUI } from './imageupload/imageuploadui';
|
|
32
|
-
export { default as PictureEditing } from './pictureediting';
|
|
33
|
-
export { default as ImageBlock } from './imageblock';
|
|
34
|
-
export { default as ImageInline } from './imageinline';
|
|
35
|
-
export { default as ImageInsertViaUrl } from './imageinsertviaurl';
|
|
36
|
-
export { default as ImageUtils } from './imageutils';
|
|
37
|
-
export { default as ImageBlockEditing } from './image/imageblockediting';
|
|
38
|
-
export { default as ImageCaptionUI } from './imagecaption/imagecaptionui';
|
|
39
|
-
import './augmentation';
|
|
8
|
+
export { default as AutoImage } from './autoimage.js';
|
|
9
|
+
export { default as Image } from './image.js';
|
|
10
|
+
export { default as ImageEditing } from './image/imageediting.js';
|
|
11
|
+
export { default as ImageCaptionUtils } from './imagecaption/imagecaptionutils.js';
|
|
12
|
+
export { default as ImageCaption } from './imagecaption.js';
|
|
13
|
+
export { default as ImageCaptionEditing } from './imagecaption/imagecaptionediting.js';
|
|
14
|
+
export { default as ImageInsert } from './imageinsert.js';
|
|
15
|
+
export { default as ImageInsertUI } from './imageinsert/imageinsertui.js';
|
|
16
|
+
export { default as ImageResize } from './imageresize.js';
|
|
17
|
+
export { default as ImageResizeButtons } from './imageresize/imageresizebuttons.js';
|
|
18
|
+
export { default as ImageResizeEditing } from './imageresize/imageresizeediting.js';
|
|
19
|
+
export { default as ImageResizeHandles } from './imageresize/imageresizehandles.js';
|
|
20
|
+
export { default as ImageSizeAttributes } from './imagesizeattributes.js';
|
|
21
|
+
export { default as ImageStyle } from './imagestyle.js';
|
|
22
|
+
export { default as ImageStyleEditing } from './imagestyle/imagestyleediting.js';
|
|
23
|
+
export { default as ImageStyleUI } from './imagestyle/imagestyleui.js';
|
|
24
|
+
export { default as ImageTextAlternative } from './imagetextalternative.js';
|
|
25
|
+
export { default as ImageTextAlternativeEditing } from './imagetextalternative/imagetextalternativeediting.js';
|
|
26
|
+
export { default as ImageTextAlternativeUI } from './imagetextalternative/imagetextalternativeui.js';
|
|
27
|
+
export { default as ImageToolbar } from './imagetoolbar.js';
|
|
28
|
+
export { default as ImageUpload } from './imageupload.js';
|
|
29
|
+
export { default as ImageUploadEditing } from './imageupload/imageuploadediting.js';
|
|
30
|
+
export { default as ImageUploadProgress } from './imageupload/imageuploadprogress.js';
|
|
31
|
+
export { default as ImageUploadUI } from './imageupload/imageuploadui.js';
|
|
32
|
+
export { default as PictureEditing } from './pictureediting.js';
|
|
33
|
+
export { default as ImageBlock } from './imageblock.js';
|
|
34
|
+
export { default as ImageInline } from './imageinline.js';
|
|
35
|
+
export { default as ImageInsertViaUrl } from './imageinsertviaurl.js';
|
|
36
|
+
export { default as ImageUtils } from './imageutils.js';
|
|
37
|
+
export { default as ImageBlockEditing } from './image/imageblockediting.js';
|
|
38
|
+
export { default as ImageCaptionUI } from './imagecaption/imagecaptionui.js';
|
|
39
|
+
import './augmentation.js';
|
package/src/pictureediting.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module image/pictureediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageEditing from './image/imageediting';
|
|
10
|
-
import ImageUtils from './imageutils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageEditing from './image/imageediting.js';
|
|
10
|
+
import ImageUtils from './imageutils.js';
|
|
11
11
|
/**
|
|
12
12
|
* This plugin enables the [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) element support in the editor.
|
|
13
13
|
*
|
package/src/pictureediting.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
5
|
/**
|
|
6
6
|
* @module image/pictureediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageEditing from './image/imageediting';
|
|
10
|
-
import ImageUtils from './imageutils';
|
|
11
|
-
import { downcastSourcesAttribute, upcastPicture } from './image/converters';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageEditing from './image/imageediting.js';
|
|
10
|
+
import ImageUtils from './imageutils.js';
|
|
11
|
+
import { downcastSourcesAttribute, upcastPicture } from './image/converters.js';
|
|
12
12
|
/**
|
|
13
13
|
* This plugin enables the [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) element support in the editor.
|
|
14
14
|
*
|
package/theme/image.css
CHANGED
package/theme/imagecaption.css
CHANGED
package/theme/imageinsert.css
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, 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
5
|
|
|
6
|
-
.ck.ck-image-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
display: block;
|
|
12
|
-
width: 100%;
|
|
13
|
-
margin: var(--ck-spacing-standard) auto;
|
|
14
|
-
border: 1px solid hsl(0, 0%, 80%);
|
|
15
|
-
border-radius: var(--ck-border-radius);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* https://github.com/ckeditor/ckeditor5/issues/7986 */
|
|
19
|
-
.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {
|
|
20
|
-
padding: 0;
|
|
21
|
-
margin: 0;
|
|
22
|
-
border: none;
|
|
6
|
+
.ck.ck-image-insert-url {
|
|
7
|
+
& .ck-image-insert-url__action-row {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: repeat(2, 1fr);
|
|
10
|
+
}
|
|
23
11
|
}
|
package/theme/imageresize.css
CHANGED
package/theme/imagestyle.css
CHANGED
|
@@ -1,61 +0,0 @@
|
|
|
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 image/imageinsert/ui/imageinsertformrowview
|
|
7
|
-
*/
|
|
8
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
import { View, type ViewCollection, type LabelView } from 'ckeditor5/src/ui';
|
|
10
|
-
import '../../../theme/imageinsertformrowview.css';
|
|
11
|
-
/**
|
|
12
|
-
* The class representing a single row in a complex form,
|
|
13
|
-
* used by {@link module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView}.
|
|
14
|
-
*
|
|
15
|
-
* **Note**: For now this class is private. When more use cases appear (beyond `ckeditor5-table` and `ckeditor5-image`),
|
|
16
|
-
* it will become a component in `ckeditor5-ui`.
|
|
17
|
-
*
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
export default class ImageUploadFormRowView extends View {
|
|
21
|
-
/**
|
|
22
|
-
* An additional CSS class added to the {@link #element}.
|
|
23
|
-
*
|
|
24
|
-
* @observable
|
|
25
|
-
*/
|
|
26
|
-
class: string | null;
|
|
27
|
-
/**
|
|
28
|
-
* A collection of row items (buttons, dropdowns, etc.).
|
|
29
|
-
*/
|
|
30
|
-
readonly children: ViewCollection;
|
|
31
|
-
/**
|
|
32
|
-
* The role property reflected by the `role` DOM attribute of the {@link #element}.
|
|
33
|
-
*
|
|
34
|
-
* **Note**: Used only when a `labelView` is passed to constructor `options`.
|
|
35
|
-
*
|
|
36
|
-
* @observable
|
|
37
|
-
* @private
|
|
38
|
-
*/
|
|
39
|
-
_role: string | null;
|
|
40
|
-
/**
|
|
41
|
-
* The ARIA property reflected by the `aria-labelledby` DOM attribute of the {@link #element}.
|
|
42
|
-
*
|
|
43
|
-
* **Note**: Used only when a `labelView` is passed to constructor `options`.
|
|
44
|
-
*
|
|
45
|
-
* @observable
|
|
46
|
-
* @private
|
|
47
|
-
*/
|
|
48
|
-
_ariaLabelledBy: string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Creates an instance of the form row class.
|
|
51
|
-
*
|
|
52
|
-
* @param locale The locale instance.
|
|
53
|
-
* @param options.labelView When passed, the row gets the `group` and `aria-labelledby`
|
|
54
|
-
* DOM attributes and gets described by the label.
|
|
55
|
-
*/
|
|
56
|
-
constructor(locale: Locale, options?: {
|
|
57
|
-
children?: Array<View>;
|
|
58
|
-
class?: string;
|
|
59
|
-
labelView?: LabelView;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
import { View } from 'ckeditor5/src/ui';
|
|
6
|
-
import '../../../theme/imageinsertformrowview.css';
|
|
7
|
-
/**
|
|
8
|
-
* The class representing a single row in a complex form,
|
|
9
|
-
* used by {@link module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView}.
|
|
10
|
-
*
|
|
11
|
-
* **Note**: For now this class is private. When more use cases appear (beyond `ckeditor5-table` and `ckeditor5-image`),
|
|
12
|
-
* it will become a component in `ckeditor5-ui`.
|
|
13
|
-
*
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
export default class ImageUploadFormRowView extends View {
|
|
17
|
-
/**
|
|
18
|
-
* Creates an instance of the form row class.
|
|
19
|
-
*
|
|
20
|
-
* @param locale The locale instance.
|
|
21
|
-
* @param options.labelView When passed, the row gets the `group` and `aria-labelledby`
|
|
22
|
-
* DOM attributes and gets described by the label.
|
|
23
|
-
*/
|
|
24
|
-
constructor(locale, options = {}) {
|
|
25
|
-
super(locale);
|
|
26
|
-
const bind = this.bindTemplate;
|
|
27
|
-
this.set('class', options.class || null);
|
|
28
|
-
this.children = this.createCollection();
|
|
29
|
-
if (options.children) {
|
|
30
|
-
options.children.forEach(child => this.children.add(child));
|
|
31
|
-
}
|
|
32
|
-
this.set('_role', null);
|
|
33
|
-
this.set('_ariaLabelledBy', null);
|
|
34
|
-
if (options.labelView) {
|
|
35
|
-
this.set({
|
|
36
|
-
_role: 'group',
|
|
37
|
-
_ariaLabelledBy: options.labelView.id
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
this.setTemplate({
|
|
41
|
-
tag: 'div',
|
|
42
|
-
attributes: {
|
|
43
|
-
class: [
|
|
44
|
-
'ck',
|
|
45
|
-
'ck-form__row',
|
|
46
|
-
bind.to('class')
|
|
47
|
-
],
|
|
48
|
-
role: bind.to('_role'),
|
|
49
|
-
'aria-labelledby': bind.to('_ariaLabelledBy')
|
|
50
|
-
},
|
|
51
|
-
children: this.children
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
import { ButtonView, View, ViewCollection, FocusCycler } from 'ckeditor5/src/ui';
|
|
6
|
-
import { Collection, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
7
|
-
import '../../../theme/imageinsert.css';
|
|
8
|
-
export type ViewWithName = View & {
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* The insert an image via URL view controller class.
|
|
13
|
-
*
|
|
14
|
-
* See {@link module:image/imageinsert/ui/imageinsertpanelview~ImageInsertPanelView}.
|
|
15
|
-
*/
|
|
16
|
-
export default class ImageInsertPanelView extends View {
|
|
17
|
-
/**
|
|
18
|
-
* The "insert/update" button view.
|
|
19
|
-
*/
|
|
20
|
-
insertButtonView: ButtonView;
|
|
21
|
-
/**
|
|
22
|
-
* The "cancel" button view.
|
|
23
|
-
*/
|
|
24
|
-
cancelButtonView: ButtonView;
|
|
25
|
-
/**
|
|
26
|
-
* The value of the URL input.
|
|
27
|
-
*
|
|
28
|
-
* @observable
|
|
29
|
-
*/
|
|
30
|
-
imageURLInputValue: string;
|
|
31
|
-
/**
|
|
32
|
-
* Tracks information about DOM focus in the form.
|
|
33
|
-
*/
|
|
34
|
-
readonly focusTracker: FocusTracker;
|
|
35
|
-
/**
|
|
36
|
-
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
37
|
-
*/
|
|
38
|
-
readonly keystrokes: KeystrokeHandler;
|
|
39
|
-
/**
|
|
40
|
-
* A collection of views that can be focused in the form.
|
|
41
|
-
*/
|
|
42
|
-
protected readonly _focusables: ViewCollection;
|
|
43
|
-
/**
|
|
44
|
-
* Helps cycling over {@link #_focusables} in the form.
|
|
45
|
-
*/
|
|
46
|
-
protected readonly _focusCycler: FocusCycler;
|
|
47
|
-
/**
|
|
48
|
-
* A collection of the defined integrations for inserting the images.
|
|
49
|
-
*
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
_integrations: Collection<ViewWithName>;
|
|
53
|
-
/**
|
|
54
|
-
* Creates a view for the dropdown panel of {@link module:image/imageinsert/imageinsertui~ImageInsertUI}.
|
|
55
|
-
*
|
|
56
|
-
* @param locale The localization services instance.
|
|
57
|
-
* @param integrations An integrations object that contains components (or tokens for components) to be shown in the panel view.
|
|
58
|
-
*/
|
|
59
|
-
constructor(locale: Locale, integrations?: Record<string, View>);
|
|
60
|
-
/**
|
|
61
|
-
* @inheritDoc
|
|
62
|
-
*/
|
|
63
|
-
render(): void;
|
|
64
|
-
/**
|
|
65
|
-
* @inheritDoc
|
|
66
|
-
*/
|
|
67
|
-
destroy(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Returns a view of the integration.
|
|
70
|
-
*
|
|
71
|
-
* @param name The name of the integration.
|
|
72
|
-
*/
|
|
73
|
-
getIntegration(name: string): View;
|
|
74
|
-
/**
|
|
75
|
-
* Creates the following form controls:
|
|
76
|
-
*
|
|
77
|
-
* * {@link #insertButtonView},
|
|
78
|
-
* * {@link #cancelButtonView}.
|
|
79
|
-
*
|
|
80
|
-
* @param locale The localization services instance.
|
|
81
|
-
*/
|
|
82
|
-
private _createActionButtons;
|
|
83
|
-
/**
|
|
84
|
-
* Focuses the first {@link #_focusables focusable} in the form.
|
|
85
|
-
*/
|
|
86
|
-
focus(): void;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Fired when the form view is submitted (when one of the children triggered the submit event),
|
|
90
|
-
* e.g. by a click on {@link ~ImageInsertPanelView#insertButtonView}.
|
|
91
|
-
*
|
|
92
|
-
* @eventName ~ImageInsertPanelView#submit
|
|
93
|
-
*/
|
|
94
|
-
export type SubmitEvent = {
|
|
95
|
-
name: 'submit';
|
|
96
|
-
args: [];
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Fired when the form view is canceled, e.g. by a click on {@link ~ImageInsertPanelView#cancelButtonView}.
|
|
100
|
-
*
|
|
101
|
-
* @eventName ~ImageInsertPanelView#cancel
|
|
102
|
-
*/
|
|
103
|
-
export type CancelEvent = {
|
|
104
|
-
name: 'cancel';
|
|
105
|
-
args: [];
|
|
106
|
-
};
|