@ckeditor/ckeditor5-image 40.2.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/LICENSE.md +1 -1
- package/build/image.js +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 +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 +6 -6
- package/src/imageblock.js +6 -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 +1 -1
- package/src/imageconfig.js +1 -1
- package/src/imageinline.d.ts +6 -6
- package/src/imageinline.js +6 -6
- package/src/imageinsert/imageinsertui.d.ts +5 -5
- package/src/imageinsert/imageinsertui.js +6 -6
- package/src/imageinsert/imageinsertviaurlui.d.ts +3 -3
- package/src/imageinsert/imageinsertviaurlui.js +5 -5
- package/src/imageinsert/ui/imageinsertformview.d.ts +5 -5
- package/src/imageinsert/ui/imageinsertformview.js +3 -3
- package/src/imageinsert/ui/imageinserturlview.d.ts +3 -3
- package/src/imageinsert/ui/imageinserturlview.js +4 -4
- package/src/imageinsert.d.ts +5 -5
- package/src/imageinsert.js +5 -5
- package/src/imageinsertviaurl.d.ts +4 -4
- package/src/imageinsertviaurl.js +4 -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 +4 -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 +4 -4
- 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 +1 -1
- 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
|
@@ -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/imageinsert/ui/imageinsertformview
|
|
7
7
|
*/
|
|
8
|
-
import { View, ViewCollection, FocusCycler } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View, ViewCollection, FocusCycler, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../../theme/imageinsert.css';
|
|
11
11
|
/**
|
|
12
12
|
* The view displayed in the insert image dropdown.
|
|
@@ -25,7 +25,7 @@ export default class ImageInsertFormView extends View {
|
|
|
25
25
|
/**
|
|
26
26
|
* A collection of views that can be focused in the form.
|
|
27
27
|
*/
|
|
28
|
-
protected readonly _focusables: ViewCollection
|
|
28
|
+
protected readonly _focusables: ViewCollection<FocusableView>;
|
|
29
29
|
/**
|
|
30
30
|
* Helps cycling over {@link #_focusables} in the form.
|
|
31
31
|
*/
|
|
@@ -40,7 +40,7 @@ export default class ImageInsertFormView extends View {
|
|
|
40
40
|
* @param locale The localization services instance.
|
|
41
41
|
* @param integrations An integrations object that contains components (or tokens for components) to be shown in the panel view.
|
|
42
42
|
*/
|
|
43
|
-
constructor(locale: Locale, integrations?: Array<
|
|
43
|
+
constructor(locale: Locale, integrations?: Array<FocusableView>);
|
|
44
44
|
/**
|
|
45
45
|
* @inheritDoc
|
|
46
46
|
*/
|
|
@@ -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/imageinsert/ui/imageinsertformview
|
|
7
7
|
*/
|
|
8
|
-
import { View, ViewCollection, submitHandler, FocusCycler, CollapsibleView } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
|
|
8
|
+
import { View, ViewCollection, submitHandler, FocusCycler, CollapsibleView } from 'ckeditor5/src/ui.js';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import '../../../theme/imageinsert.css';
|
|
11
11
|
/**
|
|
12
12
|
* The view displayed in the insert image dropdown.
|
|
@@ -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 { ButtonView, View, FocusCycler, LabeledFieldView, type InputTextView } from 'ckeditor5/src/ui';
|
|
6
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
5
|
+
import { ButtonView, View, FocusCycler, LabeledFieldView, type InputTextView } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
7
7
|
/**
|
|
8
8
|
* The insert an image via URL view.
|
|
9
9
|
*
|
|
@@ -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/imageinsert/ui/imageinserturlview
|
|
7
7
|
*/
|
|
8
|
-
import { icons } from 'ckeditor5/src/core';
|
|
9
|
-
import { ButtonView, View, ViewCollection, FocusCycler, LabeledFieldView, createLabeledInputText } from 'ckeditor5/src/ui';
|
|
10
|
-
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils';
|
|
8
|
+
import { icons } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ButtonView, View, ViewCollection, FocusCycler, LabeledFieldView, createLabeledInputText } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
11
11
|
/**
|
|
12
12
|
* The insert an image via URL view.
|
|
13
13
|
*
|
package/src/imageinsert.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/imageinsert
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageUpload from './imageupload';
|
|
10
|
-
import ImageInsertViaUrl from './imageinsertviaurl';
|
|
11
|
-
import ImageInsertUI from './imageinsert/imageinsertui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageUpload from './imageupload.js';
|
|
10
|
+
import ImageInsertViaUrl from './imageinsertviaurl.js';
|
|
11
|
+
import ImageInsertUI from './imageinsert/imageinsertui.js';
|
|
12
12
|
/**
|
|
13
13
|
* The image insert plugin.
|
|
14
14
|
*
|
package/src/imageinsert.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/imageinsert
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageUpload from './imageupload';
|
|
10
|
-
import ImageInsertViaUrl from './imageinsertviaurl';
|
|
11
|
-
import ImageInsertUI from './imageinsert/imageinsertui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageUpload from './imageupload.js';
|
|
10
|
+
import ImageInsertViaUrl from './imageinsertviaurl.js';
|
|
11
|
+
import ImageInsertUI from './imageinsert/imageinsertui.js';
|
|
12
12
|
/**
|
|
13
13
|
* The image insert plugin.
|
|
14
14
|
*
|
|
@@ -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/imageinsertviaurl
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageInsertUI from './imageinsert/imageinsertui';
|
|
10
|
-
import ImageInsertViaUrlUI from './imageinsert/imageinsertviaurlui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageInsertUI from './imageinsert/imageinsertui.js';
|
|
10
|
+
import ImageInsertViaUrlUI from './imageinsert/imageinsertviaurlui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image insert via URL plugin.
|
|
13
13
|
*
|
package/src/imageinsertviaurl.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/imageinsertviaurl
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageInsertUI from './imageinsert/imageinsertui';
|
|
10
|
-
import ImageInsertViaUrlUI from './imageinsert/imageinsertviaurlui';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageInsertUI from './imageinsert/imageinsertui.js';
|
|
10
|
+
import ImageInsertViaUrlUI from './imageinsert/imageinsertviaurlui.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image insert via URL 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/imageresize/imageresizebuttons
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageResizeEditing from './imageresizeediting';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageResizeEditing from './imageresizeediting.js';
|
|
10
10
|
/**
|
|
11
11
|
* The image resize buttons 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/imageresize/imageresizebuttons
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, icons } from 'ckeditor5/src/core';
|
|
9
|
-
import { ButtonView, DropdownButtonView,
|
|
10
|
-
import { CKEditorError, Collection } from 'ckeditor5/src/utils';
|
|
11
|
-
import ImageResizeEditing from './imageresizeediting';
|
|
8
|
+
import { Plugin, icons } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { ButtonView, DropdownButtonView, ViewModel, createDropdown, addListToDropdown } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { CKEditorError, Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import ImageResizeEditing from './imageresizeediting.js';
|
|
12
12
|
const RESIZE_ICONS = {
|
|
13
13
|
small: icons.objectSizeSmall,
|
|
14
14
|
medium: icons.objectSizeMedium,
|
|
@@ -188,7 +188,7 @@ export default class ImageResizeButtons extends Plugin {
|
|
|
188
188
|
const optionValueWithUnit = option.value ? option.value + this._resizeUnit : null;
|
|
189
189
|
const definition = {
|
|
190
190
|
type: 'button',
|
|
191
|
-
model: new
|
|
191
|
+
model: new ViewModel({
|
|
192
192
|
commandName: 'resizeImage',
|
|
193
193
|
commandValue: optionValueWithUnit,
|
|
194
194
|
label: this._getOptionLabelValue(option),
|
|
@@ -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 { type Editor, Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
import ImageUtils from '../imageutils';
|
|
5
|
+
import { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import ImageUtils from '../imageutils.js';
|
|
7
7
|
/**
|
|
8
8
|
* The image resize editing feature.
|
|
9
9
|
*
|
|
@@ -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 ImageUtils from '../imageutils';
|
|
7
|
-
import ResizeImageCommand from './resizeimagecommand';
|
|
8
|
-
import { widthAndHeightStylesAreBothSet } from '../image/utils';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import ImageUtils from '../imageutils.js';
|
|
7
|
+
import ResizeImageCommand from './resizeimagecommand.js';
|
|
8
|
+
import { widthAndHeightStylesAreBothSet } from '../image/utils.js';
|
|
9
9
|
/**
|
|
10
10
|
* The image resize editing feature.
|
|
11
11
|
*
|
|
@@ -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 } from 'ckeditor5/src/core';
|
|
6
|
-
import { WidgetResize } from 'ckeditor5/src/widget';
|
|
7
|
-
import ImageUtils from '../imageutils';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { WidgetResize } from 'ckeditor5/src/widget.js';
|
|
7
|
+
import ImageUtils from '../imageutils.js';
|
|
8
8
|
/**
|
|
9
9
|
* The image resize by handles feature.
|
|
10
10
|
*
|
|
@@ -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 { WidgetResize } from 'ckeditor5/src/widget';
|
|
7
|
-
import ImageUtils from '../imageutils';
|
|
8
|
-
import ImageLoadObserver from '../image/imageloadobserver';
|
|
5
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
+
import { WidgetResize } from 'ckeditor5/src/widget.js';
|
|
7
|
+
import ImageUtils from '../imageutils.js';
|
|
8
|
+
import ImageLoadObserver from '../image/imageloadobserver.js';
|
|
9
9
|
const RESIZABLE_IMAGES_CSS_SELECTOR = 'figure.image.ck-widget > img,' +
|
|
10
10
|
'figure.image.ck-widget > picture > img,' +
|
|
11
11
|
'figure.image.ck-widget > a > img,' +
|
|
@@ -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/imageresize/resizeimagecommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core';
|
|
8
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* The resize image command. Currently, it only supports the width attribute.
|
|
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/imageresize/resizeimagecommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5/src/core';
|
|
8
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* The resize image command. Currently, it only supports the width attribute.
|
|
11
11
|
*/
|
package/src/imageresize.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/imageresize
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageResizeButtons from './imageresize/imageresizebuttons';
|
|
10
|
-
import ImageResizeEditing from './imageresize/imageresizeediting';
|
|
11
|
-
import ImageResizeHandles from './imageresize/imageresizehandles';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageResizeButtons from './imageresize/imageresizebuttons.js';
|
|
10
|
+
import ImageResizeEditing from './imageresize/imageresizeediting.js';
|
|
11
|
+
import ImageResizeHandles from './imageresize/imageresizehandles.js';
|
|
12
12
|
import '../theme/imageresize.css';
|
|
13
13
|
/**
|
|
14
14
|
* The image resize plugin.
|
package/src/imageresize.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/imageresize
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageResizeButtons from './imageresize/imageresizebuttons';
|
|
10
|
-
import ImageResizeEditing from './imageresize/imageresizeediting';
|
|
11
|
-
import ImageResizeHandles from './imageresize/imageresizehandles';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageResizeButtons from './imageresize/imageresizebuttons.js';
|
|
10
|
+
import ImageResizeEditing from './imageresize/imageresizeediting.js';
|
|
11
|
+
import ImageResizeHandles from './imageresize/imageresizehandles.js';
|
|
12
12
|
import '../theme/imageresize.css';
|
|
13
13
|
/**
|
|
14
14
|
* The image resize 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/imagesizeattributes
|
|
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
|
* This plugin enables `width` and `height` attributes in inline and block image elements.
|
|
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/imagesizeattributes
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageUtils from './imageutils';
|
|
10
|
-
import { widthAndHeightStylesAreBothSet, getSizeValueIfInPx } from './image/utils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageUtils from './imageutils.js';
|
|
10
|
+
import { widthAndHeightStylesAreBothSet, getSizeValueIfInPx } from './image/utils.js';
|
|
11
11
|
/**
|
|
12
12
|
* This plugin enables `width` and `height` attributes in inline and block image elements.
|
|
13
13
|
*/
|
|
@@ -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 type { DowncastAttributeEvent, UpcastElementEvent } from 'ckeditor5/src/engine';
|
|
6
|
-
import { type GetCallback } from 'ckeditor5/src/utils';
|
|
7
|
-
import type { ImageStyleOptionDefinition } from '../imageconfig';
|
|
5
|
+
import type { DowncastAttributeEvent, UpcastElementEvent } from 'ckeditor5/src/engine.js';
|
|
6
|
+
import { type GetCallback } from 'ckeditor5/src/utils.js';
|
|
7
|
+
import type { ImageStyleOptionDefinition } from '../imageconfig.js';
|
|
8
8
|
/**
|
|
9
9
|
* @module image/imagestyle/converters
|
|
10
10
|
*/
|
|
@@ -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 { first } from 'ckeditor5/src/utils';
|
|
5
|
+
import { first } from 'ckeditor5/src/utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* @module image/imagestyle/converters
|
|
8
8
|
*/
|
|
@@ -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/imagestylecommand
|
|
7
7
|
*/
|
|
8
|
-
import type { Element } from 'ckeditor5/src/engine';
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import type { ImageStyleOptionDefinition } from '../imageconfig';
|
|
8
|
+
import type { Element } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type { ImageStyleOptionDefinition } from '../imageconfig.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image style command. It is used to apply {@link module:image/imageconfig~ImageStyleConfig#options image style option}
|
|
13
13
|
* to a selected image.
|
|
@@ -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 { Command } from 'ckeditor5/src/core';
|
|
5
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
6
6
|
/**
|
|
7
7
|
* The image style command. It is used to apply {@link module:image/imageconfig~ImageStyleConfig#options image style option}
|
|
8
8
|
* to a selected image.
|
|
@@ -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/imagestyleediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import ImageUtils from '../imageutils';
|
|
10
|
-
import type { ImageStyleOptionDefinition } from '../imageconfig';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import ImageUtils from '../imageutils.js';
|
|
10
|
+
import type { ImageStyleOptionDefinition } from '../imageconfig.js';
|
|
11
11
|
/**
|
|
12
12
|
* The image style engine plugin. It sets the default configuration, creates converters and registers
|
|
13
13
|
* {@link module:image/imagestyle/imagestylecommand~ImageStyleCommand ImageStyleCommand}.
|
|
@@ -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
|
*/
|