@ckeditor/ckeditor5-image 47.6.1 → 48.0.0-alpha.1
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
package/theme/imagecaption.css
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";
|
|
7
|
-
|
|
8
|
-
:root {
|
|
9
|
-
--ck-content-color-image-caption-background: hsl(0, 0%, 97%);
|
|
10
|
-
--ck-content-color-image-caption-text: hsl(0, 0%, 20%);
|
|
11
|
-
--ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* Content styles */
|
|
15
|
-
.ck-content .image > figcaption {
|
|
16
|
-
display: table-caption;
|
|
17
|
-
caption-side: bottom;
|
|
18
|
-
word-break: normal;
|
|
19
|
-
overflow-wrap: anywhere;
|
|
20
|
-
break-before: avoid;
|
|
21
|
-
color: var(--ck-content-color-image-caption-text);
|
|
22
|
-
background-color: var(--ck-content-color-image-caption-background);
|
|
23
|
-
padding: .6em;
|
|
24
|
-
font-size: .75em;
|
|
25
|
-
outline-offset: -1px;
|
|
26
|
-
|
|
27
|
-
/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */
|
|
28
|
-
@media (forced-colors: active) {
|
|
29
|
-
background-color: unset;
|
|
30
|
-
color: unset;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Editing styles */
|
|
35
|
-
.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {
|
|
36
|
-
@mixin ck-media-default-colors {
|
|
37
|
-
animation: ck-image-caption-highlight .6s ease-out;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media (prefers-reduced-motion: reduce) {
|
|
41
|
-
animation: none;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@keyframes ck-image-caption-highlight {
|
|
46
|
-
0% {
|
|
47
|
-
background-color: var(--ck-color-image-caption-highlighted-background);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
100% {
|
|
51
|
-
background-color: var(--ck-content-color-image-caption-background);
|
|
52
|
-
}
|
|
53
|
-
}
|
package/theme/imageinsert.css
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.ck.ck-image-insert-url {
|
|
7
|
-
width: 400px;
|
|
8
|
-
padding: var(--ck-spacing-large) var(--ck-spacing-large) 0;
|
|
9
|
-
|
|
10
|
-
& .ck-image-insert-url__action-row {
|
|
11
|
-
display: grid;
|
|
12
|
-
grid-template-columns: repeat(2, 1fr);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.ck.ck-editor__editable {
|
|
7
|
-
& img.image_placeholder {
|
|
8
|
-
background-size: 100% 100%;
|
|
9
|
-
}
|
|
10
|
-
}
|
package/theme/imageresize.css
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* Preserve aspect ratio of the resized image after introducing image height attribute. */
|
|
7
|
-
.ck-content img.image_resized {
|
|
8
|
-
height: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ck-content .image.image_resized {
|
|
12
|
-
max-width: 100%;
|
|
13
|
-
/*
|
|
14
|
-
The `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.
|
|
15
|
-
See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.
|
|
16
|
-
Fortunately, since we control the width, there is no risk that the image will look bad.
|
|
17
|
-
*/
|
|
18
|
-
display: block;
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
|
|
21
|
-
& img {
|
|
22
|
-
/* For resized images it is the `<figure>` element that determines the image width. */
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
& > figcaption {
|
|
27
|
-
/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */
|
|
28
|
-
display: block;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ck.ck-editor__editable {
|
|
33
|
-
/* The resized inline image nested in the table should respect its parent size.
|
|
34
|
-
See https://github.com/ckeditor/ckeditor5/issues/9117. */
|
|
35
|
-
& td,
|
|
36
|
-
& th {
|
|
37
|
-
& .image-inline.image_resized img {
|
|
38
|
-
max-width: 100%;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
|
|
44
|
-
margin-right: var(--ck-spacing-standard);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
|
|
48
|
-
margin-left: var(--ck-spacing-standard);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {
|
|
52
|
-
width: 4em;
|
|
53
|
-
}
|
package/theme/imagestyle.css
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
:root {
|
|
7
|
-
--ck-content-image-style-spacing: 1.5em;
|
|
8
|
-
--ck-content-inline-image-style-spacing: calc(var(--ck-content-image-style-spacing) / 2);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ck-content {
|
|
12
|
-
/* See: https://github.com/ckeditor/ckeditor5/issues/16317 */
|
|
13
|
-
& .image {
|
|
14
|
-
/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback
|
|
15
|
-
confirming successful application of the style if image width exceeds the editor's size.
|
|
16
|
-
See https://github.com/ckeditor/ckeditor5/issues/9342 */
|
|
17
|
-
&.image-style-block-align-left,
|
|
18
|
-
&.image-style-block-align-right {
|
|
19
|
-
max-width: calc(100% - var(--ck-content-image-style-spacing));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* Allows displaying multiple floating images in the same line.
|
|
23
|
-
See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */
|
|
24
|
-
&.image-style-align-left,
|
|
25
|
-
&.image-style-align-right {
|
|
26
|
-
clear: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.image-style-side {
|
|
30
|
-
float: right;
|
|
31
|
-
margin-left: var(--ck-content-image-style-spacing);
|
|
32
|
-
max-width: 50%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&.image-style-align-left {
|
|
36
|
-
float: left;
|
|
37
|
-
margin-right: var(--ck-content-image-style-spacing);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.image-style-align-right {
|
|
41
|
-
float: right;
|
|
42
|
-
margin-left: var(--ck-content-image-style-spacing);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.image-style-block-align-right {
|
|
46
|
-
margin-right: 0;
|
|
47
|
-
margin-left: auto;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&.image-style-block-align-left {
|
|
51
|
-
margin-left: 0;
|
|
52
|
-
margin-right: auto;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& .image-style-align-center {
|
|
57
|
-
margin-left: auto;
|
|
58
|
-
margin-right: auto;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
& .image-style-align-left {
|
|
62
|
-
float: left;
|
|
63
|
-
margin-right: var(--ck-content-image-style-spacing);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
& .image-style-align-right {
|
|
67
|
-
float: right;
|
|
68
|
-
margin-left: var(--ck-content-image-style-spacing);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */
|
|
72
|
-
& p + .image.image-style-align-left,
|
|
73
|
-
& p + .image.image-style-align-right,
|
|
74
|
-
& p + .image.image-style-side {
|
|
75
|
-
margin-top: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
& .image-inline {
|
|
79
|
-
&.image-style-align-left,
|
|
80
|
-
&.image-style-align-right {
|
|
81
|
-
margin-top: var(--ck-content-inline-image-style-spacing);
|
|
82
|
-
margin-bottom: var(--ck-content-inline-image-style-spacing);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.image-style-align-left {
|
|
86
|
-
margin-right: var(--ck-content-inline-image-style-spacing);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&.image-style-align-right {
|
|
90
|
-
margin-left: var(--ck-content-inline-image-style-spacing);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.ck.ck-splitbutton {
|
|
96
|
-
/* The button should display as a regular drop-down if the action button
|
|
97
|
-
is forced to fire the same action as the arrow button. */
|
|
98
|
-
&.ck-splitbutton_flatten {
|
|
99
|
-
&:hover,
|
|
100
|
-
&.ck-splitbutton_open {
|
|
101
|
-
& > .ck-splitbutton__action:not(.ck-disabled),
|
|
102
|
-
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
|
103
|
-
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
|
104
|
-
background-color: var(--ck-color-button-on-background);
|
|
105
|
-
|
|
106
|
-
&::after {
|
|
107
|
-
display: none;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&.ck-splitbutton_open:hover {
|
|
113
|
-
& > .ck-splitbutton__action:not(.ck-disabled),
|
|
114
|
-
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
|
115
|
-
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
|
116
|
-
background-color: var(--ck-color-button-on-hover-background);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.ck-image-upload-complete-icon {
|
|
7
|
-
display: block;
|
|
8
|
-
position: absolute;
|
|
9
|
-
|
|
10
|
-
/*
|
|
11
|
-
* Smaller images should have the icon closer to the border.
|
|
12
|
-
* Match the icon position with the linked image indicator brought by the link image feature.
|
|
13
|
-
*/
|
|
14
|
-
top: min(var(--ck-spacing-medium), 6%);
|
|
15
|
-
right: min(var(--ck-spacing-medium), 6%);
|
|
16
|
-
border-radius: 50%;
|
|
17
|
-
z-index: 1;
|
|
18
|
-
|
|
19
|
-
&::after {
|
|
20
|
-
content: "";
|
|
21
|
-
position: absolute;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.ck .ck-upload-placeholder-loader {
|
|
7
|
-
position: absolute;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
top: 0;
|
|
12
|
-
left: 0;
|
|
13
|
-
|
|
14
|
-
&::before {
|
|
15
|
-
content: '';
|
|
16
|
-
position: relative;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
.ck.ck-editor__editable {
|
|
7
|
-
& .image,
|
|
8
|
-
& .image-inline {
|
|
9
|
-
position: relative;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Upload progress bar. */
|
|
13
|
-
& .image .ck-progress-bar,
|
|
14
|
-
& .image-inline .ck-progress-bar {
|
|
15
|
-
position: absolute;
|
|
16
|
-
top: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/{src → dist}/index.d.ts
RENAMED
|
File without changes
|