@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
|
@@ -1,15 +1,15 @@
|
|
|
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/imagestyle/imagestyleediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageStyleCommand from './imagestylecommand';
|
|
10
|
-
import ImageUtils from '../imageutils';
|
|
11
|
-
import utils from './utils';
|
|
12
|
-
import { viewToModelStyleAttribute, modelToViewStyleAttribute } from './converters';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageStyleCommand from './imagestylecommand.js';
|
|
10
|
+
import ImageUtils from '../imageutils.js';
|
|
11
|
+
import utils from './utils.js';
|
|
12
|
+
import { viewToModelStyleAttribute, modelToViewStyleAttribute } from './converters.js';
|
|
13
13
|
/**
|
|
14
14
|
* The image style engine plugin. It sets the default configuration, creates converters and registers
|
|
15
15
|
* {@link module:image/imagestyle/imagestylecommand~ImageStyleCommand ImageStyleCommand}.
|
|
@@ -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/imagestyle/imagestyleui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageStyleEditing from './imagestyleediting';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageStyleEditing from './imagestyleediting.js';
|
|
10
10
|
import '../../theme/imagestyle.css';
|
|
11
11
|
/**
|
|
12
12
|
* The image style UI plugin.
|
|
@@ -1,15 +1,15 @@
|
|
|
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/imagestyle/imagestyleui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { ButtonView, createDropdown, addToolbarToDropdown, SplitButtonView } from 'ckeditor5/src/ui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ButtonView, createDropdown, addToolbarToDropdown, SplitButtonView } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import { isObject, identity } from 'lodash-es';
|
|
11
|
-
import ImageStyleEditing from './imagestyleediting';
|
|
12
|
-
import utils from './utils';
|
|
11
|
+
import ImageStyleEditing from './imagestyleediting.js';
|
|
12
|
+
import utils from './utils.js';
|
|
13
13
|
import '../../theme/imagestyle.css';
|
|
14
14
|
/**
|
|
15
15
|
* The image style UI plugin.
|
|
@@ -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/imagestyle/utils
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor, type PluginCollection } from 'ckeditor5/src/core';
|
|
9
|
-
import type { ImageStyleConfig, ImageStyleDropdownDefinition, ImageStyleOptionDefinition } from '../imageconfig';
|
|
8
|
+
import { type Editor, type PluginCollection } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { ImageStyleConfig, ImageStyleDropdownDefinition, ImageStyleOptionDefinition } from '../imageconfig.js';
|
|
10
10
|
/**
|
|
11
11
|
* Default image style options provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#styles}
|
|
12
12
|
* configuration.
|
package/src/imagestyle/utils.js
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/imagestyle/utils
|
|
7
7
|
*/
|
|
8
|
-
import { icons } from 'ckeditor5/src/core';
|
|
9
|
-
import { logWarning } from 'ckeditor5/src/utils';
|
|
8
|
+
import { icons } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { logWarning } from 'ckeditor5/src/utils.js';
|
|
10
10
|
const { objectFullWidth, objectInline, objectLeft, objectRight, objectCenter, objectBlockLeft, objectBlockRight } = icons;
|
|
11
11
|
/**
|
|
12
12
|
* Default image style options provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#styles}
|
package/src/imagestyle.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/imagestyle
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageStyleEditing from './imagestyle/imagestyleediting';
|
|
10
|
-
import ImageStyleUI from './imagestyle/imagestyleui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageStyleEditing from './imagestyle/imagestyleediting.js';
|
|
10
|
+
import ImageStyleUI from './imagestyle/imagestyleui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image style plugin.
|
|
13
13
|
*
|
package/src/imagestyle.js
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/imagestyle
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageStyleEditing from './imagestyle/imagestyleediting';
|
|
10
|
-
import ImageStyleUI from './imagestyle/imagestyleui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageStyleEditing from './imagestyle/imagestyleediting.js';
|
|
10
|
+
import ImageStyleUI from './imagestyle/imagestyleui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image style plugin.
|
|
13
13
|
*
|
|
@@ -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
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/imagetextalternativecommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core';
|
|
8
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* The image text alternative command. It is used to change the `alt` attribute of `<imageBlock>` and `<imageInline>` model elements.
|
|
11
11
|
*/
|
|
@@ -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
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/imagetextalternativecommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core';
|
|
8
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* The image text alternative command. It is used to change the `alt` attribute of `<imageBlock>` and `<imageInline>` model elements.
|
|
11
11
|
*/
|
|
@@ -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/imagetextalternative/imagetextalternativeediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageUtils from '../imageutils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageUtils from '../imageutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* The image text alternative editing plugin.
|
|
12
12
|
*
|
|
@@ -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/imagetextalternative/imagetextalternativeediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageTextAlternativeCommand from './imagetextalternativecommand';
|
|
10
|
-
import ImageUtils from '../imageutils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageTextAlternativeCommand from './imagetextalternativecommand.js';
|
|
10
|
+
import ImageUtils from '../imageutils.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image text alternative editing plugin.
|
|
13
13
|
*
|
|
@@ -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/imagetextalternative/imagetextalternativeui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { ContextualBalloon } from 'ckeditor5/src/ui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui.js';
|
|
10
10
|
/**
|
|
11
11
|
* The image text alternative UI plugin.
|
|
12
12
|
*
|
|
@@ -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/imagetextalternative/imagetextalternativeui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, icons } from 'ckeditor5/src/core';
|
|
9
|
-
import { ButtonView, ContextualBalloon, clickOutsideHandler, CssTransitionDisablerMixin } from 'ckeditor5/src/ui';
|
|
10
|
-
import TextAlternativeFormView from './ui/textalternativeformview';
|
|
11
|
-
import { repositionContextualBalloon, getBalloonPositionData } from '../image/ui/utils';
|
|
8
|
+
import { Plugin, icons } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ButtonView, ContextualBalloon, clickOutsideHandler, CssTransitionDisablerMixin } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import TextAlternativeFormView from './ui/textalternativeformview.js';
|
|
11
|
+
import { repositionContextualBalloon, getBalloonPositionData } from '../image/ui/utils.js';
|
|
12
12
|
/**
|
|
13
13
|
* The image text alternative UI plugin.
|
|
14
14
|
*
|
|
@@ -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/imagetextalternative/ui/textalternativeformview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type InputView } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type InputView, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../../theme/textalternativeform.css';
|
|
11
11
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
12
12
|
/**
|
|
@@ -36,7 +36,7 @@ export default class TextAlternativeFormView extends View {
|
|
|
36
36
|
/**
|
|
37
37
|
* A collection of views which can be focused in the form.
|
|
38
38
|
*/
|
|
39
|
-
protected readonly _focusables: ViewCollection
|
|
39
|
+
protected readonly _focusables: ViewCollection<FocusableView>;
|
|
40
40
|
/**
|
|
41
41
|
* Helps cycling over {@link #_focusables} in the form.
|
|
42
42
|
*/
|
|
@@ -70,3 +70,21 @@ export default class TextAlternativeFormView extends View {
|
|
|
70
70
|
*/
|
|
71
71
|
private _createLabeledInputView;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Fired when the form view is submitted.
|
|
75
|
+
*
|
|
76
|
+
* @eventName ~TextAlternativeFormView#submit
|
|
77
|
+
*/
|
|
78
|
+
export type TextAlternativeFormViewSubmitEvent = {
|
|
79
|
+
name: 'submit';
|
|
80
|
+
args: [];
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Fired when the form view is canceled.
|
|
84
|
+
*
|
|
85
|
+
* @eventName ~TextAlternativeFormView#cancel
|
|
86
|
+
*/
|
|
87
|
+
export type TextAlternativeFormViewCancelEvent = {
|
|
88
|
+
name: 'cancel';
|
|
89
|
+
args: [];
|
|
90
|
+
};
|
|
@@ -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/imagetextalternative/ui/textalternativeformview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, createLabeledInputText, submitHandler } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
|
|
10
|
-
import { icons } from 'ckeditor5/src/core';
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, createLabeledInputText, submitHandler } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { icons } from 'ckeditor5/src/core.js';
|
|
11
11
|
import '../../../theme/textalternativeform.css';
|
|
12
12
|
// See: #8833.
|
|
13
13
|
// eslint-disable-next-line ckeditor5-rules/ckeditor-imports
|
|
@@ -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/imagetextalternative
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting';
|
|
10
|
-
import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting.js';
|
|
10
|
+
import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image text alternative plugin.
|
|
13
13
|
*
|
|
@@ -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/imagetextalternative
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting';
|
|
10
|
-
import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageTextAlternativeEditing from './imagetextalternative/imagetextalternativeediting.js';
|
|
10
|
+
import ImageTextAlternativeUI from './imagetextalternative/imagetextalternativeui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image text alternative plugin.
|
|
13
13
|
*
|
package/src/imagetoolbar.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/imagetoolbar
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
|
|
10
|
-
import ImageUtils from './imageutils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
10
|
+
import ImageUtils from './imageutils.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image toolbar plugin. It creates and manages the image toolbar (the toolbar displayed when an image is selected).
|
|
13
13
|
*
|
package/src/imagetoolbar.js
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/imagetoolbar
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { WidgetToolbarRepository } from 'ckeditor5/src/widget';
|
|
10
|
-
import ImageUtils from './imageutils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
10
|
+
import ImageUtils from './imageutils.js';
|
|
11
11
|
import { isObject } from 'lodash-es';
|
|
12
12
|
/**
|
|
13
13
|
* The image toolbar plugin. It creates and manages the image toolbar (the toolbar displayed when an image is selected).
|
|
@@ -1,16 +1,16 @@
|
|
|
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/imageuploadediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import { type Element, type Writer, type DataTransfer } from 'ckeditor5/src/engine';
|
|
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';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { type Element, type Writer, type DataTransfer } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
|
|
12
|
+
import { FileRepository, type UploadResponse, type FileLoader } from 'ckeditor5/src/upload.js';
|
|
13
|
+
import ImageUtils from '../imageutils.js';
|
|
14
14
|
/**
|
|
15
15
|
* The editing part of the image upload feature. It registers the `'uploadImage'` command
|
|
16
16
|
* and the `imageUpload` command as an aliased name.
|
|
@@ -1,20 +1,20 @@
|
|
|
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/imageuploadediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { UpcastWriter } from 'ckeditor5/src/engine';
|
|
10
|
-
import { Notification } from 'ckeditor5/src/ui';
|
|
11
|
-
import { ClipboardPipeline } from 'ckeditor5/src/clipboard';
|
|
12
|
-
import { FileRepository } from 'ckeditor5/src/upload';
|
|
13
|
-
import { env } from 'ckeditor5/src/utils';
|
|
14
|
-
import ImageUtils from '../imageutils';
|
|
15
|
-
import UploadImageCommand from './uploadimagecommand';
|
|
16
|
-
import { fetchLocalImage, isLocalImage } from '../../src/imageupload/utils';
|
|
17
|
-
import { createImageTypeRegExp } from './utils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { UpcastWriter } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { ClipboardPipeline } from 'ckeditor5/src/clipboard.js';
|
|
12
|
+
import { FileRepository } from 'ckeditor5/src/upload.js';
|
|
13
|
+
import { env } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import ImageUtils from '../imageutils.js';
|
|
15
|
+
import UploadImageCommand from './uploadimagecommand.js';
|
|
16
|
+
import { fetchLocalImage, isLocalImage } from '../../src/imageupload/utils.js';
|
|
17
|
+
import { createImageTypeRegExp } from './utils.js';
|
|
18
18
|
/**
|
|
19
19
|
* The editing part of the image upload feature. It registers the `'uploadImage'` command
|
|
20
20
|
* and the `imageUpload` command as an aliased name.
|
|
@@ -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
5
|
/**
|
|
6
6
|
* @module image/imageupload/imageuploadprogress
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor, Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import '../../theme/imageuploadprogress.css';
|
|
10
10
|
import '../../theme/imageuploadicon.css';
|
|
11
11
|
import '../../theme/imageuploadloader.css';
|
|
@@ -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/imageupload/imageuploadprogress
|
|
7
7
|
*/
|
|
8
8
|
/* globals setTimeout */
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import { FileRepository } from 'ckeditor5/src/upload';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { FileRepository } from 'ckeditor5/src/upload.js';
|
|
11
11
|
import '../../theme/imageuploadprogress.css';
|
|
12
12
|
import '../../theme/imageuploadicon.css';
|
|
13
13
|
import '../../theme/imageuploadloader.css';
|
|
@@ -1,8 +1,8 @@
|
|
|
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';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
6
|
/**
|
|
7
7
|
* The image upload button plugin.
|
|
8
8
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
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, icons } from 'ckeditor5/src/core';
|
|
6
|
-
import { FileDialogButtonView } from 'ckeditor5/src/upload';
|
|
7
|
-
import { createImageTypeRegExp } from './utils';
|
|
5
|
+
import { Plugin, icons } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { FileDialogButtonView } from 'ckeditor5/src/upload.js';
|
|
7
|
+
import { createImageTypeRegExp } from './utils.js';
|
|
8
8
|
/**
|
|
9
9
|
* The image upload button plugin.
|
|
10
10
|
*
|
|
@@ -33,14 +33,12 @@ export default class ImageUploadUI extends Plugin {
|
|
|
33
33
|
const imageTypesRegExp = createImageTypeRegExp(imageTypes);
|
|
34
34
|
view.set({
|
|
35
35
|
acceptedType: imageTypes.map(type => `image/${type}`).join(','),
|
|
36
|
-
allowMultipleFiles: true
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
label: t('Insert image'),
|
|
40
|
-
icon: icons.image,
|
|
36
|
+
allowMultipleFiles: true,
|
|
37
|
+
label: t('Upload image from computer'),
|
|
38
|
+
icon: icons.imageUpload,
|
|
41
39
|
tooltip: true
|
|
42
40
|
});
|
|
43
|
-
view.
|
|
41
|
+
view.bind('isEnabled').to(command);
|
|
44
42
|
view.on('done', (evt, files) => {
|
|
45
43
|
const imagesToUpload = Array.from(files).filter(file => imageTypesRegExp.test(file.type));
|
|
46
44
|
if (imagesToUpload.length) {
|
|
@@ -53,5 +51,31 @@ export default class ImageUploadUI extends Plugin {
|
|
|
53
51
|
// Setup `uploadImage` button and add `imageUpload` button as an alias for backward compatibility.
|
|
54
52
|
editor.ui.componentFactory.add('uploadImage', componentCreator);
|
|
55
53
|
editor.ui.componentFactory.add('imageUpload', componentCreator);
|
|
54
|
+
if (editor.plugins.has('ImageInsertUI')) {
|
|
55
|
+
const imageInsertUI = editor.plugins.get('ImageInsertUI');
|
|
56
|
+
const command = editor.commands.get('uploadImage');
|
|
57
|
+
imageInsertUI.registerIntegration({
|
|
58
|
+
name: 'upload',
|
|
59
|
+
observable: command,
|
|
60
|
+
buttonViewCreator: () => {
|
|
61
|
+
const uploadImageButton = editor.ui.componentFactory.create('uploadImage');
|
|
62
|
+
uploadImageButton.bind('label').to(imageInsertUI, 'isImageSelected', isImageSelected => isImageSelected ?
|
|
63
|
+
t('Replace image from computer') :
|
|
64
|
+
t('Upload image from computer'));
|
|
65
|
+
return uploadImageButton;
|
|
66
|
+
},
|
|
67
|
+
formViewCreator: () => {
|
|
68
|
+
const uploadImageButton = editor.ui.componentFactory.create('uploadImage');
|
|
69
|
+
uploadImageButton.withText = true;
|
|
70
|
+
uploadImageButton.bind('label').to(imageInsertUI, 'isImageSelected', isImageSelected => isImageSelected ?
|
|
71
|
+
t('Replace from computer') :
|
|
72
|
+
t('Upload from computer'));
|
|
73
|
+
uploadImageButton.on('execute', () => {
|
|
74
|
+
imageInsertUI.dropdownView.isOpen = false;
|
|
75
|
+
});
|
|
76
|
+
return uploadImageButton;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
56
80
|
}
|
|
57
81
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { Command } from 'ckeditor5/src/core';
|
|
6
|
-
import { type ArrayOrItem } from 'ckeditor5/src/utils';
|
|
5
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { type ArrayOrItem } from 'ckeditor5/src/utils.js';
|
|
7
7
|
/**
|
|
8
8
|
* @module image/imageupload/uploadimagecommand
|
|
9
9
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { FileRepository } from 'ckeditor5/src/upload';
|
|
6
|
-
import { Command } from 'ckeditor5/src/core';
|
|
7
|
-
import { toArray } from 'ckeditor5/src/utils';
|
|
5
|
+
import { FileRepository } from 'ckeditor5/src/upload.js';
|
|
6
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
7
|
+
import { toArray } from 'ckeditor5/src/utils.js';
|
|
8
8
|
/**
|
|
9
9
|
* @module image/imageupload/uploadimagecommand
|
|
10
10
|
*/
|
|
@@ -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/imageupload/utils
|
|
7
7
|
*/
|
|
8
|
-
import type { ViewElement } from 'ckeditor5/src/engine';
|
|
9
|
-
import type ImageUtils from '../imageutils';
|
|
8
|
+
import type { ViewElement } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import type ImageUtils from '../imageutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* Creates a regular expression used to test for image files.
|
|
12
12
|
*
|
package/src/imageupload/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 { global } from 'ckeditor5/src/utils';
|
|
5
|
+
import { global } from 'ckeditor5/src/utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* Creates a regular expression used to test for image files.
|
|
8
8
|
*
|
package/src/imageupload.d.ts
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
|
*
|