@ckeditor/ckeditor5-image 47.6.1 → 48.0.0-alpha.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/ckeditor5-metadata.json +25 -25
- package/{src → dist}/autoimage.d.ts +4 -4
- package/{src → dist}/image/converters.d.ts +1 -1
- package/{src → dist}/image/imageblockediting.d.ts +2 -2
- package/{src → dist}/image/imageediting.d.ts +1 -1
- package/{src → dist}/image/imageinlineediting.d.ts +2 -2
- package/{src → dist}/image/imageloadobserver.d.ts +1 -1
- package/{src → dist}/image/imageplaceholder.d.ts +1 -1
- package/{src → dist}/image/imagetypecommand.d.ts +2 -2
- package/{src → dist}/image/insertimagecommand.d.ts +2 -2
- package/{src → dist}/image/replaceimagesourcecommand.d.ts +2 -2
- package/{src → dist}/image/ui/utils.d.ts +2 -2
- package/{src → dist}/image/utils.d.ts +2 -2
- package/{src → dist}/image.d.ts +1 -1
- package/{src → dist}/imageblock.d.ts +2 -2
- package/{src → dist}/imagecaption/imagecaptionediting.d.ts +2 -2
- package/{src → dist}/imagecaption/imagecaptionui.d.ts +1 -1
- package/{src → dist}/imagecaption/imagecaptionutils.d.ts +2 -2
- package/{src → dist}/imagecaption/toggleimagecaptioncommand.d.ts +1 -1
- package/{src → dist}/imagecaption.d.ts +1 -1
- package/{src → dist}/imageconfig.d.ts +25 -16
- package/{src → dist}/imageinline.d.ts +2 -2
- package/{src → dist}/imageinsert/imageinsertui.d.ts +3 -3
- package/{src → dist}/imageinsert/imageinsertviaurlui.d.ts +2 -2
- package/{src → dist}/imageinsert/ui/imageinsertformview.d.ts +2 -2
- package/{src → dist}/imageinsert/ui/imageinserturlview.d.ts +2 -2
- package/{src → dist}/imageinsert.d.ts +1 -1
- package/{src → dist}/imageinsertviaurl.d.ts +1 -1
- package/{src → dist}/imageresize/imagecustomresizeui.d.ts +2 -2
- package/{src → dist}/imageresize/imageresizebuttons.d.ts +1 -1
- package/{src → dist}/imageresize/imageresizeediting.d.ts +1 -1
- package/{src → dist}/imageresize/imageresizehandles.d.ts +2 -2
- package/{src → dist}/imageresize/resizeimagecommand.d.ts +1 -1
- package/{src → dist}/imageresize/ui/imagecustomresizeformview.d.ts +2 -4
- package/{src → dist}/imageresize/utils/getselectedimageeditornodes.d.ts +2 -2
- package/{src → dist}/imageresize/utils/getselectedimagepossibleresizerange.d.ts +1 -1
- package/{src → dist}/imageresize/utils/getselectedimagewidthinunits.d.ts +1 -1
- package/{src → dist}/imageresize.d.ts +1 -1
- package/{src → dist}/imagesizeattributes.d.ts +1 -1
- package/{src → dist}/imagestyle/converters.d.ts +2 -2
- package/{src → dist}/imagestyle/imagestylecommand.d.ts +2 -2
- package/{src → dist}/imagestyle/imagestyleediting.d.ts +1 -1
- package/{src → dist}/imagestyle/imagestyleui.d.ts +1 -1
- package/{src → dist}/imagestyle/utils.d.ts +1 -1
- package/{src → dist}/imagestyle.d.ts +1 -1
- package/{src → dist}/imagetextalternative/imagetextalternativecommand.d.ts +1 -1
- package/{src → dist}/imagetextalternative/imagetextalternativeediting.d.ts +1 -1
- package/{src → dist}/imagetextalternative/imagetextalternativeui.d.ts +2 -2
- package/{src → dist}/imagetextalternative/ui/textalternativeformview.d.ts +2 -4
- package/{src → dist}/imagetextalternative.d.ts +1 -1
- package/{src → dist}/imagetoolbar.d.ts +2 -2
- package/{src → dist}/imageupload/imageuploadediting.d.ts +5 -5
- package/{src → dist}/imageupload/imageuploadprogress.d.ts +1 -1
- package/{src → dist}/imageupload/imageuploadui.d.ts +1 -1
- package/{src → dist}/imageupload/uploadimagecommand.d.ts +2 -2
- package/{src → dist}/imageupload/utils.d.ts +1 -1
- package/{src → dist}/imageupload.d.ts +1 -1
- package/{src → dist}/imageutils.d.ts +2 -2
- package/dist/index-content.css +97 -100
- package/dist/index-editor.css +313 -190
- package/dist/index.css +388 -458
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/{src → dist}/pictureediting.d.ts +1 -1
- package/package.json +29 -53
- package/build/image.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -48
- package/lang/translations/af.po +0 -196
- package/lang/translations/ar.po +0 -196
- package/lang/translations/ast.po +0 -196
- package/lang/translations/az.po +0 -196
- package/lang/translations/be.po +0 -196
- package/lang/translations/bg.po +0 -196
- package/lang/translations/bn.po +0 -196
- package/lang/translations/bs.po +0 -196
- package/lang/translations/ca.po +0 -196
- package/lang/translations/cs.po +0 -196
- package/lang/translations/da.po +0 -196
- package/lang/translations/de-ch.po +0 -196
- package/lang/translations/de.po +0 -196
- package/lang/translations/el.po +0 -196
- package/lang/translations/en-au.po +0 -196
- package/lang/translations/en-gb.po +0 -196
- package/lang/translations/en.po +0 -196
- package/lang/translations/eo.po +0 -196
- package/lang/translations/es-co.po +0 -196
- package/lang/translations/es.po +0 -196
- package/lang/translations/et.po +0 -196
- package/lang/translations/eu.po +0 -196
- package/lang/translations/fa.po +0 -196
- package/lang/translations/fi.po +0 -196
- package/lang/translations/fr.po +0 -196
- package/lang/translations/gl.po +0 -196
- package/lang/translations/gu.po +0 -196
- package/lang/translations/he.po +0 -196
- package/lang/translations/hi.po +0 -196
- package/lang/translations/hr.po +0 -196
- package/lang/translations/hu.po +0 -196
- package/lang/translations/hy.po +0 -196
- package/lang/translations/id.po +0 -196
- package/lang/translations/it.po +0 -196
- package/lang/translations/ja.po +0 -196
- package/lang/translations/jv.po +0 -196
- package/lang/translations/kk.po +0 -196
- package/lang/translations/km.po +0 -196
- package/lang/translations/kn.po +0 -196
- package/lang/translations/ko.po +0 -196
- package/lang/translations/ku.po +0 -196
- package/lang/translations/lt.po +0 -196
- package/lang/translations/lv.po +0 -196
- package/lang/translations/ms.po +0 -196
- package/lang/translations/nb.po +0 -196
- package/lang/translations/ne.po +0 -196
- package/lang/translations/nl.po +0 -196
- package/lang/translations/no.po +0 -196
- package/lang/translations/oc.po +0 -196
- package/lang/translations/pl.po +0 -196
- package/lang/translations/pt-br.po +0 -196
- package/lang/translations/pt.po +0 -196
- package/lang/translations/ro.po +0 -196
- package/lang/translations/ru.po +0 -196
- package/lang/translations/si.po +0 -196
- package/lang/translations/sk.po +0 -196
- package/lang/translations/sl.po +0 -196
- package/lang/translations/sq.po +0 -196
- package/lang/translations/sr-latn.po +0 -196
- package/lang/translations/sr.po +0 -196
- package/lang/translations/sv.po +0 -196
- package/lang/translations/th.po +0 -196
- package/lang/translations/ti.po +0 -196
- package/lang/translations/tk.po +0 -196
- package/lang/translations/tr.po +0 -196
- package/lang/translations/tt.po +0 -196
- package/lang/translations/ug.po +0 -196
- package/lang/translations/uk.po +0 -196
- package/lang/translations/ur.po +0 -196
- package/lang/translations/uz.po +0 -196
- package/lang/translations/vi.po +0 -196
- package/lang/translations/zh-cn.po +0 -196
- package/lang/translations/zh.po +0 -196
- package/src/augmentation.js +0 -5
- package/src/autoimage.js +0 -148
- package/src/image/converters.js +0 -236
- package/src/image/imageblockediting.js +0 -159
- package/src/image/imageediting.js +0 -69
- package/src/image/imageinlineediting.js +0 -178
- package/src/image/imageloadobserver.js +0 -52
- package/src/image/imageplaceholder.js +0 -119
- package/src/image/imagetypecommand.js +0 -84
- package/src/image/insertimagecommand.js +0 -125
- package/src/image/replaceimagesourcecommand.js +0 -75
- package/src/image/ui/utils.js +0 -46
- package/src/image/utils.js +0 -125
- package/src/image.js +0 -44
- package/src/imageblock.js +0 -44
- package/src/imagecaption/imagecaptionediting.js +0 -238
- package/src/imagecaption/imagecaptionui.js +0 -68
- package/src/imagecaption/imagecaptionutils.js +0 -68
- package/src/imagecaption/toggleimagecaptioncommand.js +0 -138
- package/src/imagecaption.js +0 -36
- package/src/imageconfig.js +0 -5
- package/src/imageinline.js +0 -44
- package/src/imageinsert/imageinsertui.js +0 -216
- package/src/imageinsert/imageinsertviaurlui.js +0 -175
- package/src/imageinsert/ui/imageinsertformview.js +0 -117
- package/src/imageinsert/ui/imageinserturlview.js +0 -102
- package/src/imageinsert.js +0 -43
- package/src/imageinsertviaurl.js +0 -41
- package/src/imageresize/imagecustomresizeui.js +0 -177
- package/src/imageresize/imageresizebuttons.js +0 -303
- package/src/imageresize/imageresizeediting.js +0 -206
- package/src/imageresize/imageresizehandles.js +0 -118
- package/src/imageresize/resizeimagecommand.js +0 -63
- package/src/imageresize/ui/imagecustomresizeformview.js +0 -264
- package/src/imageresize/utils/getselectedimageeditornodes.js +0 -25
- package/src/imageresize/utils/getselectedimagepossibleresizerange.js +0 -33
- package/src/imageresize/utils/getselectedimagewidthinunits.js +0 -42
- package/src/imageresize/utils/tryparsedimensionwithunit.js +0 -58
- package/src/imageresize.js +0 -38
- package/src/imagesizeattributes.js +0 -163
- package/src/imagestyle/converters.js +0 -118
- package/src/imagestyle/imagestylecommand.js +0 -117
- package/src/imagestyle/imagestyleediting.js +0 -127
- package/src/imagestyle/imagestyleui.js +0 -198
- package/src/imagestyle/utils.js +0 -333
- package/src/imagestyle.js +0 -42
- package/src/imagetextalternative/imagetextalternativecommand.js +0 -44
- package/src/imagetextalternative/imagetextalternativeediting.js +0 -41
- package/src/imagetextalternative/imagetextalternativeui.js +0 -183
- package/src/imagetextalternative/ui/textalternativeformview.js +0 -193
- package/src/imagetextalternative.js +0 -39
- package/src/imagetoolbar.js +0 -63
- package/src/imageupload/imageuploadediting.js +0 -482
- package/src/imageupload/imageuploadprogress.js +0 -222
- package/src/imageupload/imageuploadui.js +0 -135
- package/src/imageupload/uploadimagecommand.js +0 -110
- package/src/imageupload/utils.js +0 -114
- package/src/imageupload.js +0 -42
- package/src/imageutils.js +0 -309
- package/src/index.js +0 -67
- package/src/pictureediting.js +0 -136
- package/theme/image.css +0 -143
- package/theme/imagecaption.css +0 -53
- package/theme/imagecustomresizeform.css +0 -4
- package/theme/imageinsert.css +0 -14
- package/theme/imageplaceholder.css +0 -10
- package/theme/imageresize.css +0 -53
- package/theme/imagestyle.css +0 -120
- package/theme/imageuploadicon.css +0 -23
- package/theme/imageuploadloader.css +0 -18
- package/theme/imageuploadprogress.css +0 -19
- package/theme/textalternativeform.css +0 -4
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/imageresize/utils/tryparsedimensionwithunit.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageresize/imageresizebuttons
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
8
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageResizeEditing } from './imageresizeediting.js';
|
|
10
10
|
/**
|
|
11
11
|
* The image resize buttons plugin.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { type Editor, Plugin } from 'ckeditor5
|
|
5
|
+
import { type Editor, Plugin } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
import { ImageUtils } from '../imageutils.js';
|
|
7
7
|
/**
|
|
8
8
|
* The image resize editing feature.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5
|
|
6
|
-
import { WidgetResize } from 'ckeditor5
|
|
5
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
6
|
+
import { WidgetResize } from '@ckeditor/ckeditor5-widget';
|
|
7
7
|
import { ImageUtils } from '../imageutils.js';
|
|
8
8
|
/**
|
|
9
9
|
* The image resize by handles feature.
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageresize/ui/imagecustomresizeformview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type FocusableView, type InputNumberView } from 'ckeditor5
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type FocusableView, type InputNumberView } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import '../../../theme/imagecustomresizeform.css';
|
|
11
|
-
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
12
|
-
import '@ckeditor/ckeditor5-ui/theme/components/form/form.css';
|
|
13
11
|
/**
|
|
14
12
|
* The ImageCustomResizeFormView class.
|
|
15
13
|
*
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageresize/utils/getselectedimageeditornodes
|
|
7
7
|
*/
|
|
8
|
-
import type { ViewElement, ModelElement } from 'ckeditor5
|
|
9
|
-
import type { Editor } from 'ckeditor5
|
|
8
|
+
import type { ViewElement, ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
9
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
/**
|
|
11
11
|
* Finds model, view and DOM element for selected image element. Returns `null` if there is no image selected.
|
|
12
12
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageresize/utils/getselectedimagepossibleresizerange
|
|
7
7
|
*/
|
|
8
|
-
import type { Editor } from 'ckeditor5
|
|
8
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
/**
|
|
10
10
|
* Returns min and max value of resize image in specified unit.
|
|
11
11
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import type { Editor } from 'ckeditor5
|
|
5
|
+
import type { Editor } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
import { type DimensionWithUnit } from './tryparsedimensionwithunit.js';
|
|
7
7
|
/**
|
|
8
8
|
* Returns image width in specified units. It is width of image after resize.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageresize
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageResizeButtons } from './imageresize/imageresizebuttons.js';
|
|
10
10
|
import { ImageResizeEditing } from './imageresize/imageresizeediting.js';
|
|
11
11
|
import { ImageResizeHandles } from './imageresize/imageresizehandles.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagesizeattributes
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageUtils } from './imageutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* This plugin enables `width` and `height` attributes in inline and block image elements.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import type { DowncastAttributeEvent, UpcastElementEvent } from 'ckeditor5
|
|
6
|
-
import { type GetCallback } from 'ckeditor5
|
|
5
|
+
import type { DowncastAttributeEvent, UpcastElementEvent } from '@ckeditor/ckeditor5-engine';
|
|
6
|
+
import { type GetCallback } from '@ckeditor/ckeditor5-utils';
|
|
7
7
|
import type { ImageStyleOptionDefinition } from '../imageconfig.js';
|
|
8
8
|
/**
|
|
9
9
|
* @module image/imagestyle/converters
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagestyle/imagestylecommand
|
|
7
7
|
*/
|
|
8
|
-
import type { ModelElement } from 'ckeditor5
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5
|
|
8
|
+
import type { ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
9
|
+
import { Command, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
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}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagestyle/imagestyleediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageUtils } from '../imageutils.js';
|
|
10
10
|
import type { ImageStyleOptionDefinition } from '../imageconfig.js';
|
|
11
11
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import type { Editor, PluginCollection } from 'ckeditor5
|
|
5
|
+
import type { Editor, PluginCollection } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
import type { ImageStyleConfig, ImageStyleDropdownDefinition, ImageStyleOptionDefinition } from '../imageconfig.js';
|
|
7
7
|
/**
|
|
8
8
|
* Default image style options provided by the plugin that can be referred in the {@link module:image/imageconfig~ImageConfig#styles}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagestyle
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageStyleEditing } from './imagestyle/imagestyleediting.js';
|
|
10
10
|
import { ImageStyleUI } from './imagestyle/imagestyleui.js';
|
|
11
11
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/imagetextalternativecommand
|
|
7
7
|
*/
|
|
8
|
-
import { Command } from 'ckeditor5
|
|
8
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
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
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/imagetextalternativeediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageUtils } from '../imageutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* The image text alternative editing plugin.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/imagetextalternativeui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
-
import { ContextualBalloon } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { ContextualBalloon } from '@ckeditor/ckeditor5-ui';
|
|
10
10
|
/**
|
|
11
11
|
* The image text alternative UI plugin.
|
|
12
12
|
*
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative/ui/textalternativeformview
|
|
7
7
|
*/
|
|
8
|
-
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type InputView, type FocusableView } from 'ckeditor5
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5
|
|
8
|
+
import { ButtonView, FocusCycler, LabeledFieldView, View, ViewCollection, type InputView, type FocusableView } from '@ckeditor/ckeditor5-ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
import '../../../theme/textalternativeform.css';
|
|
11
|
-
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
12
|
-
import '@ckeditor/ckeditor5-ui/theme/components/form/form.css';
|
|
13
11
|
/**
|
|
14
12
|
* The TextAlternativeFormView class.
|
|
15
13
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetextalternative
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageTextAlternativeEditing } from './imagetextalternative/imagetextalternativeediting.js';
|
|
10
10
|
import { ImageTextAlternativeUI } from './imagetextalternative/imagetextalternativeui.js';
|
|
11
11
|
/**
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imagetoolbar
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
-
import { WidgetToolbarRepository } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { WidgetToolbarRepository } from '@ckeditor/ckeditor5-widget';
|
|
10
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).
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageupload/imageuploadediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
9
|
-
import { type ModelElement, type ModelWriter, type ViewDataTransfer } from 'ckeditor5
|
|
10
|
-
import { Notification } from 'ckeditor5
|
|
11
|
-
import { ClipboardPipeline } from 'ckeditor5
|
|
12
|
-
import { FileRepository, type UploadResponse, type FileLoader } from 'ckeditor5
|
|
8
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { type ModelElement, type ModelWriter, type ViewDataTransfer } from '@ckeditor/ckeditor5-engine';
|
|
10
|
+
import { Notification } from '@ckeditor/ckeditor5-ui';
|
|
11
|
+
import { ClipboardPipeline } from '@ckeditor/ckeditor5-clipboard';
|
|
12
|
+
import { FileRepository, type UploadResponse, type FileLoader } from '@ckeditor/ckeditor5-upload';
|
|
13
13
|
import { ImageUtils } from '../imageutils.js';
|
|
14
14
|
/**
|
|
15
15
|
* The editing part of the image upload feature. It registers the `'uploadImage'` command
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageupload/imageuploadprogress
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor, Plugin } from 'ckeditor5
|
|
8
|
+
import { type Editor, Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import '../../theme/imageuploadprogress.css';
|
|
10
10
|
import '../../theme/imageuploadicon.css';
|
|
11
11
|
import '../../theme/imageuploadloader.css';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Command, type Editor } from 'ckeditor5
|
|
6
|
-
import { type ArrayOrItem } from 'ckeditor5
|
|
5
|
+
import { Command, type Editor } from '@ckeditor/ckeditor5-core';
|
|
6
|
+
import { type ArrayOrItem } from '@ckeditor/ckeditor5-utils';
|
|
7
7
|
/**
|
|
8
8
|
* @module image/imageupload/uploadimagecommand
|
|
9
9
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageupload/utils
|
|
7
7
|
*/
|
|
8
|
-
import type { ViewElement } from 'ckeditor5
|
|
8
|
+
import type { ViewElement } from '@ckeditor/ckeditor5-engine';
|
|
9
9
|
import { type ImageUtils } from '../imageutils.js';
|
|
10
10
|
/**
|
|
11
11
|
* Creates a regular expression used to test for image files.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageupload
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import { ImageUploadUI } from './imageupload/imageuploadui.js';
|
|
10
10
|
import { ImageUploadProgress } from './imageupload/imageuploadprogress.js';
|
|
11
11
|
import { ImageUploadEditing } from './imageupload/imageuploadediting.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module image/imageutils
|
|
7
7
|
*/
|
|
8
|
-
import type { ModelElement, ViewElement, ModelDocumentSelection, ViewDocumentSelection, ModelSelection, ViewSelection, ViewDowncastWriter, ModelPosition, ViewContainerElement } from 'ckeditor5
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
8
|
+
import type { ModelElement, ViewElement, ModelDocumentSelection, ViewDocumentSelection, ModelSelection, ViewSelection, ViewDowncastWriter, ModelPosition, ViewContainerElement } from '@ckeditor/ckeditor5-engine';
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
/**
|
|
11
11
|
* A set of helpers related to images.
|
|
12
12
|
*/
|
package/dist/index-content.css
CHANGED
|
@@ -3,150 +3,147 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
:root{
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
--ck-content-color-image-caption-background:#f7f7f7;
|
|
7
|
+
--ck-content-color-image-caption-text:#333;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
.ck-content .image > figcaption{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
caption-side:bottom;
|
|
12
|
+
word-break:normal;
|
|
13
|
+
overflow-wrap:anywhere;
|
|
14
|
+
break-before:avoid;
|
|
15
|
+
color:var(--ck-content-color-image-caption-text);
|
|
16
|
+
background-color:var(--ck-content-color-image-caption-background);
|
|
17
|
+
outline-offset:-1px;
|
|
18
|
+
padding:.6em;
|
|
19
|
+
font-size:.75em;
|
|
20
|
+
display:table-caption;
|
|
20
21
|
}
|
|
22
|
+
|
|
21
23
|
@media (forced-colors: active){
|
|
22
|
-
.ck-content .image > figcaption{
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
.ck-content .image > figcaption{
|
|
25
|
+
background-color:unset;
|
|
26
|
+
color:unset;
|
|
27
|
+
}
|
|
25
28
|
}
|
|
26
|
-
|
|
29
|
+
|
|
27
30
|
.ck-content img.image_resized{
|
|
28
|
-
|
|
31
|
+
height:auto;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
.ck-content .image.image_resized{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
box-sizing:border-box;
|
|
36
|
+
max-width:100%;
|
|
37
|
+
display:block;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
.ck-content .image.image_resized img{
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
width:100%;
|
|
42
|
+
}
|
|
40
43
|
|
|
41
44
|
.ck-content .image.image_resized > figcaption{
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
display:block;
|
|
46
|
+
}
|
|
44
47
|
|
|
45
48
|
:root{
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
--ck-content-image-style-spacing:1.5em;
|
|
50
|
+
--ck-content-inline-image-style-spacing:calc(var(--ck-content-image-style-spacing) / 2);
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
.ck-content .image.image-style-block-align-left,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
53
|
+
.ck-content .image.image-style-block-align-left, .ck-content .image.image-style-block-align-right{
|
|
54
|
+
max-width:calc(100% - var(--ck-content-image-style-spacing));
|
|
55
|
+
}
|
|
54
56
|
|
|
55
|
-
.ck-content .image.image-style-align-left,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
57
|
+
.ck-content .image.image-style-align-left, .ck-content .image.image-style-align-right{
|
|
58
|
+
clear:none;
|
|
59
|
+
}
|
|
59
60
|
|
|
60
61
|
.ck-content .image.image-style-side{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
float:right;
|
|
63
|
+
margin-left:var(--ck-content-image-style-spacing);
|
|
64
|
+
max-width:50%;
|
|
65
|
+
}
|
|
65
66
|
|
|
66
67
|
.ck-content .image.image-style-align-left{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
float:left;
|
|
69
|
+
margin-right:var(--ck-content-image-style-spacing);
|
|
70
|
+
}
|
|
70
71
|
|
|
71
72
|
.ck-content .image.image-style-align-right{
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
float:right;
|
|
74
|
+
margin-left:var(--ck-content-image-style-spacing);
|
|
75
|
+
}
|
|
75
76
|
|
|
76
77
|
.ck-content .image.image-style-block-align-right{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
margin-left:auto;
|
|
79
|
+
margin-right:0;
|
|
80
|
+
}
|
|
80
81
|
|
|
81
82
|
.ck-content .image.image-style-block-align-left{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
margin-left:0;
|
|
84
|
+
margin-right:auto;
|
|
85
|
+
}
|
|
85
86
|
|
|
86
87
|
.ck-content .image-style-align-center{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
margin-left:auto;
|
|
89
|
+
margin-right:auto;
|
|
90
|
+
}
|
|
90
91
|
|
|
91
92
|
.ck-content .image-style-align-left{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
float:left;
|
|
94
|
+
margin-right:var(--ck-content-image-style-spacing);
|
|
95
|
+
}
|
|
95
96
|
|
|
96
97
|
.ck-content .image-style-align-right{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
.ck-content p + .image.image-style-align-left,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
margin-top:var(--ck-content-inline-image-style-spacing);
|
|
110
|
-
margin-bottom:var(--ck-content-inline-image-style-spacing);
|
|
111
|
-
}
|
|
98
|
+
float:right;
|
|
99
|
+
margin-left:var(--ck-content-image-style-spacing);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ck-content p + .image.image-style-align-left, .ck-content p + .image.image-style-align-right, .ck-content p + .image.image-style-side{
|
|
103
|
+
margin-top:0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ck-content .image-inline.image-style-align-left, .ck-content .image-inline.image-style-align-right{
|
|
107
|
+
margin-top:var(--ck-content-inline-image-style-spacing);
|
|
108
|
+
margin-bottom:var(--ck-content-inline-image-style-spacing);
|
|
109
|
+
}
|
|
112
110
|
|
|
113
111
|
.ck-content .image-inline.image-style-align-left{
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
margin-right:var(--ck-content-inline-image-style-spacing);
|
|
113
|
+
}
|
|
116
114
|
|
|
117
115
|
.ck-content .image-inline.image-style-align-right{
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
margin-left:var(--ck-content-inline-image-style-spacing);
|
|
117
|
+
}
|
|
120
118
|
|
|
121
119
|
.ck-content .image{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
clear:both;
|
|
121
|
+
text-align:center;
|
|
122
|
+
min-width:50px;
|
|
123
|
+
margin:.9em auto;
|
|
124
|
+
display:table;
|
|
125
|
+
}
|
|
128
126
|
|
|
129
127
|
.ck-content .image img{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
min-width:100%;
|
|
129
|
+
max-width:100%;
|
|
130
|
+
height:auto;
|
|
131
|
+
margin:0 auto;
|
|
132
|
+
display:block;
|
|
133
|
+
}
|
|
136
134
|
|
|
137
135
|
.ck-content .image-inline{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
align-items:flex-start;
|
|
137
|
+
max-width:100%;
|
|
138
|
+
display:inline-flex;
|
|
139
|
+
}
|
|
142
140
|
|
|
143
141
|
.ck-content .image-inline picture{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
.ck-content .image-inline picture,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
142
|
+
display:flex;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ck-content .image-inline picture, .ck-content .image-inline img{
|
|
146
|
+
flex-grow:1;
|
|
147
|
+
flex-shrink:1;
|
|
148
|
+
max-width:100%;
|
|
149
|
+
}
|