@ckeditor/ckeditor5-image 28.0.0 → 30.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/README.md +3 -3
- package/build/image.js +1 -1
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +233 -0
- package/lang/contexts.json +3 -0
- package/lang/translations/ar.po +12 -0
- package/lang/translations/ast.po +12 -0
- package/lang/translations/az.po +12 -0
- package/lang/translations/bg.po +12 -0
- package/lang/translations/cs.po +12 -0
- package/lang/translations/da.po +12 -0
- package/lang/translations/de-ch.po +12 -0
- package/lang/translations/de.po +15 -3
- package/lang/translations/el.po +12 -0
- package/lang/translations/en-au.po +12 -0
- package/lang/translations/en-gb.po +12 -0
- package/lang/translations/en.po +12 -0
- package/lang/translations/eo.po +12 -0
- package/lang/translations/es.po +12 -0
- package/lang/translations/et.po +12 -0
- package/lang/translations/eu.po +12 -0
- package/lang/translations/fa.po +12 -0
- package/lang/translations/fi.po +12 -0
- package/lang/translations/fr.po +12 -0
- package/lang/translations/gl.po +12 -0
- package/lang/translations/he.po +12 -0
- package/lang/translations/hi.po +12 -0
- package/lang/translations/hr.po +12 -0
- package/lang/translations/hu.po +13 -1
- package/lang/translations/id.po +21 -9
- package/lang/translations/it.po +12 -0
- package/lang/translations/ja.po +12 -0
- package/lang/translations/km.po +12 -0
- package/lang/translations/kn.po +12 -0
- package/lang/translations/ko.po +12 -0
- package/lang/translations/ku.po +12 -0
- package/lang/translations/lt.po +12 -0
- package/lang/translations/lv.po +12 -0
- package/lang/translations/nb.po +12 -0
- package/lang/translations/ne.po +12 -0
- package/lang/translations/nl.po +14 -2
- package/lang/translations/no.po +12 -0
- package/lang/translations/pl.po +20 -8
- package/lang/translations/pt-br.po +12 -0
- package/lang/translations/pt.po +12 -0
- package/lang/translations/ro.po +21 -9
- package/lang/translations/ru.po +12 -0
- package/lang/translations/si.po +12 -0
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sq.po +12 -0
- package/lang/translations/sr-latn.po +12 -0
- package/lang/translations/sr.po +12 -0
- package/lang/translations/sv.po +12 -0
- package/lang/translations/th.po +12 -0
- package/lang/translations/tk.po +12 -0
- package/lang/translations/tr.po +12 -0
- package/lang/translations/ug.po +12 -0
- package/lang/translations/uk.po +12 -0
- package/lang/translations/vi.po +12 -0
- package/lang/translations/zh-cn.po +12 -0
- package/lang/translations/zh.po +12 -0
- package/package.json +36 -29
- package/src/autoimage.js +9 -4
- package/src/image/converters.js +191 -15
- package/src/image/imageblockediting.js +182 -0
- package/src/image/imageediting.js +13 -70
- package/src/image/imageinlineediting.js +207 -0
- package/src/image/imagetypecommand.js +105 -0
- package/src/image/insertimagecommand.js +77 -10
- package/src/image/ui/utils.js +5 -4
- package/src/image/utils.js +65 -121
- package/src/image.js +7 -19
- package/src/imageblock.js +46 -0
- package/src/imagecaption/imagecaptionediting.js +183 -227
- package/src/imagecaption/imagecaptionui.js +78 -0
- package/src/imagecaption/toggleimagecaptioncommand.js +165 -0
- package/src/imagecaption/utils.js +25 -40
- package/src/imagecaption.js +3 -2
- package/src/imageinline.js +46 -0
- package/src/imageinsert/imageinsertui.js +5 -6
- package/src/imageinsert.js +16 -4
- package/src/imageresize/imageresizebuttons.js +1 -1
- package/src/imageresize/imageresizeediting.js +21 -8
- package/src/imageresize/imageresizehandles.js +30 -8
- package/src/imageresize/resizeimagecommand.js +8 -5
- package/src/imagestyle/converters.js +26 -17
- package/src/imagestyle/imagestylecommand.js +73 -33
- package/src/imagestyle/imagestyleediting.js +113 -52
- package/src/imagestyle/imagestyleui.js +197 -31
- package/src/imagestyle/utils.js +300 -85
- package/src/imagestyle.js +218 -47
- package/src/imagetextalternative/imagetextalternativecommand.js +10 -7
- package/src/imagetextalternative/imagetextalternativeediting.js +9 -1
- package/src/imagetextalternative/imagetextalternativeui.js +2 -2
- package/src/imagetextalternative.js +1 -1
- package/src/imagetoolbar.js +33 -11
- package/src/imageupload/imageuploadediting.js +90 -30
- package/src/imageupload/imageuploadprogress.js +17 -9
- package/src/imageupload/imageuploadui.js +1 -1
- package/src/imageupload/uploadimagecommand.js +50 -24
- package/src/imageupload/utils.js +3 -2
- package/src/imageupload.js +1 -1
- package/src/imageutils.js +342 -0
- package/src/pictureediting.js +149 -0
- package/theme/image.css +101 -21
- package/theme/imagecaption.css +24 -2
- package/theme/imageresize.css +11 -0
- package/theme/imagestyle.css +76 -0
- package/theme/imageuploadicon.css +8 -2
- package/theme/imageuploadprogress.css +12 -8
- package/CHANGELOG.md +0 -423
- package/build/image.js.map +0 -1
package/lang/translations/ro.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "widget imagine"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Imagine laterală"
|
|
@@ -66,36 +78,36 @@ msgstr "Bară imagine"
|
|
|
66
78
|
|
|
67
79
|
msgctxt "The label used for the dropdown in the image toolbar containing defined resize options."
|
|
68
80
|
msgid "Resize image"
|
|
69
|
-
msgstr ""
|
|
81
|
+
msgstr "Redimensionează imaginea"
|
|
70
82
|
|
|
71
83
|
msgctxt "The label used for the standalone resize options buttons in the image toolbar."
|
|
72
84
|
msgid "Resize image to %0"
|
|
73
|
-
msgstr ""
|
|
85
|
+
msgstr "Redimensionează imaginea la %0"
|
|
74
86
|
|
|
75
87
|
msgctxt "The accessibility label of the standalone image resize reset option button in the image toolbar for screen readers."
|
|
76
88
|
msgid "Resize image to the original size"
|
|
77
|
-
msgstr ""
|
|
89
|
+
msgstr "Redimensionează imaginea la mărimea originală"
|
|
78
90
|
|
|
79
91
|
msgctxt "The default label for the resize option that resets the size of the image."
|
|
80
92
|
msgid "Original"
|
|
81
|
-
msgstr ""
|
|
93
|
+
msgstr "Original"
|
|
82
94
|
|
|
83
95
|
msgctxt "The accessibility label of the image resize dropdown for screen readers."
|
|
84
96
|
msgid "Image resize list"
|
|
85
|
-
msgstr ""
|
|
97
|
+
msgstr "Lista cu mărimi de redimensionare"
|
|
86
98
|
|
|
87
99
|
msgctxt "The label of the form submit button if the image source URL input has no value."
|
|
88
100
|
msgid "Insert"
|
|
89
|
-
msgstr ""
|
|
101
|
+
msgstr "Inserează"
|
|
90
102
|
|
|
91
103
|
msgctxt "The label of the form submit button if the image source URL input has a value."
|
|
92
104
|
msgid "Update"
|
|
93
|
-
msgstr ""
|
|
105
|
+
msgstr "Actualizează"
|
|
94
106
|
|
|
95
107
|
msgctxt "The input label for the Insert image via URL form."
|
|
96
108
|
msgid "Insert image via URL"
|
|
97
|
-
msgstr ""
|
|
109
|
+
msgstr "Inserează o imagine via URL"
|
|
98
110
|
|
|
99
111
|
msgctxt "The input label for the Insert image via URL form for a pre-existing image."
|
|
100
112
|
msgid "Update image URL"
|
|
101
|
-
msgstr ""
|
|
113
|
+
msgstr "Actualizează o imagine via URL"
|
package/lang/translations/ru.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "Виджет изображений"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr "Обтекать текст"
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr "Разрывать текст"
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr "В тексте"
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Боковое изображение"
|
package/lang/translations/si.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr ""
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr ""
|
package/lang/translations/sk.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "widget obrázka"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Bočný obrázok"
|
package/lang/translations/sq.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "Vegla e fotos"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Foto anësore"
|
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "modul sa slikom"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr "Prelomiti tekst"
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr "Prelom teksta"
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr "U redu"
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Bočna slika"
|
package/lang/translations/sr.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "модул са сликом"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr "Преломити текст"
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr "Прелом текста"
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr "У реду"
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Бочна слика"
|
package/lang/translations/sv.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "image widget"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Kantbild"
|
package/lang/translations/th.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "วิดเจ็ตรูปภาพ"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "รูปด้านข้าง"
|
package/lang/translations/tk.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "surat widjeti"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Gapdal surat"
|
package/lang/translations/tr.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "resim aracı"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Yan Görsel"
|
package/lang/translations/ug.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "رەسىمچىك"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "يان رەسىم"
|
package/lang/translations/uk.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "Віджет зображення"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Бокове зображення"
|
package/lang/translations/vi.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "tiện ích ảnh"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "Ảnh một bên"
|
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "图像小部件"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "图片侧边显示"
|
package/lang/translations/zh.po
CHANGED
|
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
|
|
|
20
20
|
msgid "image widget"
|
|
21
21
|
msgstr "圖片小工具"
|
|
22
22
|
|
|
23
|
+
msgctxt "The label for the image style button that wraps text around the image."
|
|
24
|
+
msgid "Wrap text"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The label for the image style button that breaks the text around the image."
|
|
28
|
+
msgid "Break text"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for the image style button that places the image inside the line of text."
|
|
32
|
+
msgid "In line"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
23
35
|
msgctxt "The label for the Side image option."
|
|
24
36
|
msgid "Side image"
|
|
25
37
|
msgstr "側邊圖片"
|
package/package.json
CHANGED
|
@@ -1,44 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-image",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.0",
|
|
4
4
|
"description": "Image feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
7
7
|
"ckeditor5",
|
|
8
8
|
"ckeditor 5",
|
|
9
9
|
"ckeditor5-feature",
|
|
10
|
-
"ckeditor5-plugin"
|
|
10
|
+
"ckeditor5-plugin",
|
|
11
|
+
"ckeditor5-dll"
|
|
11
12
|
],
|
|
12
13
|
"main": "src/index.js",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@ckeditor/ckeditor5-ui": "^
|
|
15
|
-
"ckeditor5": "^
|
|
15
|
+
"@ckeditor/ckeditor5-ui": "^30.0.0",
|
|
16
|
+
"ckeditor5": "^30.0.0",
|
|
17
|
+
"lodash-es": "^4.17.15"
|
|
16
18
|
},
|
|
17
19
|
"devDependencies": {
|
|
18
|
-
"@ckeditor/ckeditor5-adapter-ckfinder": "^
|
|
19
|
-
"@ckeditor/ckeditor5-
|
|
20
|
-
"@ckeditor/ckeditor5-
|
|
21
|
-
"@ckeditor/ckeditor5-
|
|
22
|
-
"@ckeditor/ckeditor5-
|
|
23
|
-
"@ckeditor/ckeditor5-
|
|
24
|
-
"@ckeditor/ckeditor5-
|
|
25
|
-
"@ckeditor/ckeditor5-
|
|
26
|
-
"@ckeditor/ckeditor5-
|
|
27
|
-
"@ckeditor/ckeditor5-
|
|
28
|
-
"@ckeditor/ckeditor5-
|
|
29
|
-
"@ckeditor/ckeditor5-
|
|
30
|
-
"@ckeditor/ckeditor5-
|
|
31
|
-
"@ckeditor/ckeditor5-
|
|
32
|
-
"@ckeditor/ckeditor5-
|
|
33
|
-
"@ckeditor/ckeditor5-
|
|
34
|
-
"@ckeditor/ckeditor5-
|
|
35
|
-
"@ckeditor/ckeditor5-
|
|
36
|
-
"@ckeditor/ckeditor5-
|
|
37
|
-
"@ckeditor/ckeditor5-
|
|
38
|
-
"@ckeditor/ckeditor5-
|
|
39
|
-
"@ckeditor/ckeditor5-
|
|
40
|
-
"@ckeditor/ckeditor5-
|
|
41
|
-
"@ckeditor/ckeditor5-
|
|
20
|
+
"@ckeditor/ckeditor5-adapter-ckfinder": "^30.0.0",
|
|
21
|
+
"@ckeditor/ckeditor5-autoformat": "^30.0.0",
|
|
22
|
+
"@ckeditor/ckeditor5-basic-styles": "^30.0.0",
|
|
23
|
+
"@ckeditor/ckeditor5-block-quote": "^30.0.0",
|
|
24
|
+
"@ckeditor/ckeditor5-ckfinder": "^30.0.0",
|
|
25
|
+
"@ckeditor/ckeditor5-clipboard": "^30.0.0",
|
|
26
|
+
"@ckeditor/ckeditor5-cloud-services": "^30.0.0",
|
|
27
|
+
"@ckeditor/ckeditor5-core": "^30.0.0",
|
|
28
|
+
"@ckeditor/ckeditor5-dev-utils": "^25.4.0",
|
|
29
|
+
"@ckeditor/ckeditor5-easy-image": "^30.0.0",
|
|
30
|
+
"@ckeditor/ckeditor5-editor-classic": "^30.0.0",
|
|
31
|
+
"@ckeditor/ckeditor5-engine": "^30.0.0",
|
|
32
|
+
"@ckeditor/ckeditor5-enter": "^30.0.0",
|
|
33
|
+
"@ckeditor/ckeditor5-essentials": "^30.0.0",
|
|
34
|
+
"@ckeditor/ckeditor5-heading": "^30.0.0",
|
|
35
|
+
"@ckeditor/ckeditor5-html-embed": "^30.0.0",
|
|
36
|
+
"@ckeditor/ckeditor5-indent": "^30.0.0",
|
|
37
|
+
"@ckeditor/ckeditor5-link": "^30.0.0",
|
|
38
|
+
"@ckeditor/ckeditor5-list": "^30.0.0",
|
|
39
|
+
"@ckeditor/ckeditor5-media-embed": "^30.0.0",
|
|
40
|
+
"@ckeditor/ckeditor5-paragraph": "^30.0.0",
|
|
41
|
+
"@ckeditor/ckeditor5-table": "^30.0.0",
|
|
42
|
+
"@ckeditor/ckeditor5-theme-lark": "^30.0.0",
|
|
43
|
+
"@ckeditor/ckeditor5-typing": "^30.0.0",
|
|
44
|
+
"@ckeditor/ckeditor5-undo": "^30.0.0",
|
|
45
|
+
"@ckeditor/ckeditor5-upload": "^30.0.0",
|
|
46
|
+
"@ckeditor/ckeditor5-utils": "^30.0.0",
|
|
47
|
+
"@ckeditor/ckeditor5-widget": "^30.0.0",
|
|
42
48
|
"webpack": "^4.43.0",
|
|
43
49
|
"webpack-cli": "^3.3.11"
|
|
44
50
|
},
|
|
@@ -59,7 +65,8 @@
|
|
|
59
65
|
"lang",
|
|
60
66
|
"src",
|
|
61
67
|
"theme",
|
|
62
|
-
"build"
|
|
68
|
+
"build",
|
|
69
|
+
"ckeditor5-metadata.json"
|
|
63
70
|
],
|
|
64
71
|
"scripts": {
|
|
65
72
|
"dll:build": "webpack"
|
package/src/autoimage.js
CHANGED
|
@@ -11,9 +11,10 @@ import { Plugin } from 'ckeditor5/src/core';
|
|
|
11
11
|
import { Clipboard } from 'ckeditor5/src/clipboard';
|
|
12
12
|
import { LivePosition, LiveRange } from 'ckeditor5/src/engine';
|
|
13
13
|
import { Undo } from 'ckeditor5/src/undo';
|
|
14
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
14
15
|
import { global } from 'ckeditor5/src/utils';
|
|
15
16
|
|
|
16
|
-
import
|
|
17
|
+
import ImageUtils from './imageutils';
|
|
17
18
|
|
|
18
19
|
// Implements the pattern: http(s)://(www.)example.com/path/to/resource.ext?query=params&maybe=too.
|
|
19
20
|
const IMAGE_URL_REGEXP = new RegExp( String( /^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source +
|
|
@@ -32,7 +33,7 @@ export default class AutoImage extends Plugin {
|
|
|
32
33
|
* @inheritDoc
|
|
33
34
|
*/
|
|
34
35
|
static get requires() {
|
|
35
|
-
return [ Clipboard, Undo ];
|
|
36
|
+
return [ Clipboard, ImageUtils, Undo, Delete ];
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
/**
|
|
@@ -58,7 +59,7 @@ export default class AutoImage extends Plugin {
|
|
|
58
59
|
this._timeoutId = null;
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
|
-
* The position where the `<
|
|
62
|
+
* The position where the `<imageBlock>` element will be inserted after the timeout,
|
|
62
63
|
* determined each time a new content is pasted into the document.
|
|
63
64
|
*
|
|
64
65
|
* @private
|
|
@@ -118,6 +119,8 @@ export default class AutoImage extends Plugin {
|
|
|
118
119
|
// TODO: Use a marker instead of LiveRange & LivePositions.
|
|
119
120
|
const urlRange = new LiveRange( leftPosition, rightPosition );
|
|
120
121
|
const walker = urlRange.getWalker( { ignoreElementEnd: true } );
|
|
122
|
+
const selectionAttributes = Object.fromEntries( editor.model.document.selection.getAttributes() );
|
|
123
|
+
const imageUtils = this.editor.plugins.get( 'ImageUtils' );
|
|
121
124
|
|
|
122
125
|
let src = '';
|
|
123
126
|
|
|
@@ -166,11 +169,13 @@ export default class AutoImage extends Plugin {
|
|
|
166
169
|
insertionPosition = this._positionToInsert.toPosition();
|
|
167
170
|
}
|
|
168
171
|
|
|
169
|
-
insertImage(
|
|
172
|
+
imageUtils.insertImage( { ...selectionAttributes, src }, insertionPosition );
|
|
170
173
|
|
|
171
174
|
this._positionToInsert.detach();
|
|
172
175
|
this._positionToInsert = null;
|
|
173
176
|
} );
|
|
177
|
+
|
|
178
|
+
editor.plugins.get( 'Delete' ).requestUndoOnBackspace();
|
|
174
179
|
}, 100 );
|
|
175
180
|
}
|
|
176
181
|
}
|