@ckeditor/ckeditor5-image 27.1.0 → 29.2.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.
Files changed (167) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +3 -3
  3. package/build/image.js +1 -1
  4. package/build/translations/ar.js +1 -0
  5. package/build/translations/ast.js +1 -0
  6. package/build/translations/az.js +1 -0
  7. package/build/translations/bg.js +1 -0
  8. package/build/translations/cs.js +1 -0
  9. package/build/translations/da.js +1 -0
  10. package/build/translations/de-ch.js +1 -0
  11. package/build/translations/de.js +1 -0
  12. package/build/translations/el.js +1 -0
  13. package/build/translations/en-au.js +1 -0
  14. package/build/translations/en-gb.js +1 -0
  15. package/build/translations/eo.js +1 -0
  16. package/build/translations/es.js +1 -0
  17. package/build/translations/et.js +1 -0
  18. package/build/translations/eu.js +1 -0
  19. package/build/translations/fa.js +1 -0
  20. package/build/translations/fi.js +1 -0
  21. package/build/translations/fr.js +1 -0
  22. package/build/translations/gl.js +1 -0
  23. package/build/translations/he.js +1 -0
  24. package/build/translations/hi.js +1 -0
  25. package/build/translations/hr.js +1 -0
  26. package/build/translations/hu.js +1 -0
  27. package/build/translations/id.js +1 -0
  28. package/build/translations/it.js +1 -0
  29. package/build/translations/ja.js +1 -0
  30. package/build/translations/km.js +1 -0
  31. package/build/translations/kn.js +1 -0
  32. package/build/translations/ko.js +1 -0
  33. package/build/translations/ku.js +1 -0
  34. package/build/translations/lt.js +1 -0
  35. package/build/translations/lv.js +1 -0
  36. package/build/translations/nb.js +1 -0
  37. package/build/translations/ne.js +1 -0
  38. package/build/translations/nl.js +1 -0
  39. package/build/translations/no.js +1 -0
  40. package/build/translations/pl.js +1 -0
  41. package/build/translations/pt-br.js +1 -0
  42. package/build/translations/pt.js +1 -0
  43. package/build/translations/ro.js +1 -0
  44. package/build/translations/ru.js +1 -0
  45. package/build/translations/si.js +1 -0
  46. package/build/translations/sk.js +1 -0
  47. package/build/translations/sq.js +1 -0
  48. package/build/translations/sr-latn.js +1 -0
  49. package/build/translations/sr.js +1 -0
  50. package/build/translations/sv.js +1 -0
  51. package/build/translations/th.js +1 -0
  52. package/build/translations/tk.js +1 -0
  53. package/build/translations/tr.js +1 -0
  54. package/build/translations/ug.js +1 -0
  55. package/build/translations/uk.js +1 -0
  56. package/build/translations/vi.js +1 -0
  57. package/build/translations/zh-cn.js +1 -0
  58. package/build/translations/zh.js +1 -0
  59. package/ckeditor5-metadata.json +233 -0
  60. package/lang/contexts.json +3 -0
  61. package/lang/translations/ar.po +12 -0
  62. package/lang/translations/ast.po +12 -0
  63. package/lang/translations/az.po +12 -0
  64. package/lang/translations/bg.po +12 -0
  65. package/lang/translations/cs.po +12 -0
  66. package/lang/translations/da.po +12 -0
  67. package/lang/translations/de-ch.po +113 -0
  68. package/lang/translations/de.po +15 -3
  69. package/lang/translations/el.po +12 -0
  70. package/lang/translations/en-au.po +12 -0
  71. package/lang/translations/en-gb.po +12 -0
  72. package/lang/translations/en.po +12 -0
  73. package/lang/translations/eo.po +12 -0
  74. package/lang/translations/es.po +12 -0
  75. package/lang/translations/et.po +12 -0
  76. package/lang/translations/eu.po +12 -0
  77. package/lang/translations/fa.po +12 -0
  78. package/lang/translations/fi.po +12 -0
  79. package/lang/translations/fr.po +12 -0
  80. package/lang/translations/gl.po +12 -0
  81. package/lang/translations/he.po +12 -0
  82. package/lang/translations/hi.po +12 -0
  83. package/lang/translations/hr.po +12 -0
  84. package/lang/translations/hu.po +13 -1
  85. package/lang/translations/id.po +21 -9
  86. package/lang/translations/it.po +12 -0
  87. package/lang/translations/ja.po +12 -0
  88. package/lang/translations/km.po +12 -0
  89. package/lang/translations/kn.po +12 -0
  90. package/lang/translations/ko.po +12 -0
  91. package/lang/translations/ku.po +12 -0
  92. package/lang/translations/lt.po +12 -0
  93. package/lang/translations/lv.po +12 -0
  94. package/lang/translations/nb.po +12 -0
  95. package/lang/translations/ne.po +12 -0
  96. package/lang/translations/nl.po +12 -0
  97. package/lang/translations/no.po +12 -0
  98. package/lang/translations/pl.po +20 -8
  99. package/lang/translations/pt-br.po +12 -0
  100. package/lang/translations/pt.po +12 -0
  101. package/lang/translations/ro.po +21 -9
  102. package/lang/translations/ru.po +12 -0
  103. package/lang/translations/si.po +12 -0
  104. package/lang/translations/sk.po +12 -0
  105. package/lang/translations/sq.po +12 -0
  106. package/lang/translations/sr-latn.po +12 -0
  107. package/lang/translations/sr.po +12 -0
  108. package/lang/translations/sv.po +12 -0
  109. package/lang/translations/th.po +12 -0
  110. package/lang/translations/tk.po +12 -0
  111. package/lang/translations/tr.po +12 -0
  112. package/lang/translations/ug.po +12 -0
  113. package/lang/translations/uk.po +12 -0
  114. package/lang/translations/vi.po +12 -0
  115. package/lang/translations/zh-cn.po +12 -0
  116. package/lang/translations/zh.po +12 -0
  117. package/package.json +36 -29
  118. package/src/autoimage.js +6 -4
  119. package/src/image/converters.js +192 -13
  120. package/src/image/imageblockediting.js +179 -0
  121. package/src/image/imageediting.js +13 -70
  122. package/src/image/imageinlineediting.js +204 -0
  123. package/src/image/imagetypecommand.js +105 -0
  124. package/src/image/insertimagecommand.js +77 -10
  125. package/src/image/ui/utils.js +3 -3
  126. package/src/image/utils.js +70 -121
  127. package/src/image.js +7 -19
  128. package/src/imageblock.js +46 -0
  129. package/src/imagecaption/imagecaptionediting.js +202 -230
  130. package/src/imagecaption/imagecaptionui.js +78 -0
  131. package/src/imagecaption/toggleimagecaptioncommand.js +165 -0
  132. package/src/imagecaption/utils.js +25 -40
  133. package/src/imagecaption.js +3 -2
  134. package/src/imageinline.js +46 -0
  135. package/src/imageinsert/imageinsertui.js +5 -6
  136. package/src/imageinsert.js +16 -4
  137. package/src/imageresize/imageresizebuttons.js +1 -1
  138. package/src/imageresize/imageresizeediting.js +21 -8
  139. package/src/imageresize/imageresizehandles.js +30 -8
  140. package/src/imageresize/resizeimagecommand.js +8 -5
  141. package/src/imagestyle/converters.js +25 -17
  142. package/src/imagestyle/imagestylecommand.js +73 -33
  143. package/src/imagestyle/imagestyleediting.js +113 -52
  144. package/src/imagestyle/imagestyleui.js +197 -31
  145. package/src/imagestyle/utils.js +300 -85
  146. package/src/imagestyle.js +218 -47
  147. package/src/imagetextalternative/imagetextalternativecommand.js +10 -7
  148. package/src/imagetextalternative/imagetextalternativeediting.js +9 -1
  149. package/src/imagetextalternative/imagetextalternativeui.js +2 -2
  150. package/src/imagetextalternative.js +1 -1
  151. package/src/imagetoolbar.js +33 -11
  152. package/src/imageupload/imageuploadediting.js +91 -31
  153. package/src/imageupload/imageuploadprogress.js +17 -9
  154. package/src/imageupload/imageuploadui.js +1 -1
  155. package/src/imageupload/uploadimagecommand.js +50 -24
  156. package/src/imageupload/utils.js +3 -2
  157. package/src/imageupload.js +1 -1
  158. package/src/imageutils.js +342 -0
  159. package/src/index.js +22 -47
  160. package/src/pictureediting.js +149 -0
  161. package/theme/image.css +101 -21
  162. package/theme/imagecaption.css +24 -2
  163. package/theme/imageresize.css +11 -0
  164. package/theme/imagestyle.css +76 -0
  165. package/theme/imageuploadicon.css +8 -2
  166. package/theme/imageuploadprogress.css +12 -8
  167. package/build/image.js.map +0 -1
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
20
20
  msgid "image widget"
21
21
  msgstr "Obraz"
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 "Obraz dosunięty do brzegu, oblewany tekstem"
@@ -66,19 +78,19 @@ msgstr "Pasek narzędzi obrazka"
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 "Zmień rozmiar obrazka"
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 "Zmień rozmiar do %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 "Przywróć oryginalny rozmiar obrazu"
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 "Oryginalny"
82
94
 
83
95
  msgctxt "The accessibility label of the image resize dropdown for screen readers."
84
96
  msgid "Image resize list"
@@ -86,16 +98,16 @@ msgstr ""
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 "Wstaw"
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 "Zaktualizuj"
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 "Wstaw obraz z adresu 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 "Uaktualnij obraz z adresu URL"
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
20
20
  msgid "image widget"
21
21
  msgstr "Ferramenta de imagem"
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 "Imagem lateral"
@@ -20,6 +20,18 @@ msgctxt "The label for the image widget."
20
20
  msgid "image widget"
21
21
  msgstr "módulo de imagem"
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 "Imagem lateral"
@@ -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"
@@ -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 "Боковое изображение"
@@ -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 ""
@@ -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"
@@ -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 ""
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čna slika"
@@ -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 "Бочна слика"
@@ -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"
@@ -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 "รูปด้านข้าง"
@@ -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"
@@ -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"
@@ -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 "يان رەسىم"
@@ -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 "Бокове зображення"
@@ -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 "图片侧边显示"
@@ -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": "27.1.0",
3
+ "version": "29.2.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": "^27.1.0",
15
- "ckeditor5": "^27.1.0"
15
+ "@ckeditor/ckeditor5-ui": "^29.2.0",
16
+ "ckeditor5": "^29.2.0",
17
+ "lodash-es": "^4.17.15"
16
18
  },
17
19
  "devDependencies": {
18
- "@ckeditor/ckeditor5-adapter-ckfinder": "^27.1.0",
19
- "@ckeditor/ckeditor5-basic-styles": "^27.1.0",
20
- "@ckeditor/ckeditor5-ckfinder": "^27.1.0",
21
- "@ckeditor/ckeditor5-clipboard": "^27.1.0",
22
- "@ckeditor/ckeditor5-cloud-services": "^27.1.0",
23
- "@ckeditor/ckeditor5-core": "^27.1.0",
24
- "@ckeditor/ckeditor5-dev-utils": "^24.0.0",
25
- "@ckeditor/ckeditor5-easy-image": "^27.1.0",
26
- "@ckeditor/ckeditor5-editor-classic": "^27.1.0",
27
- "@ckeditor/ckeditor5-engine": "^27.1.0",
28
- "@ckeditor/ckeditor5-enter": "^27.1.0",
29
- "@ckeditor/ckeditor5-heading": "^27.1.0",
30
- "@ckeditor/ckeditor5-html-embed": "^27.1.0",
31
- "@ckeditor/ckeditor5-indent": "^27.1.0",
32
- "@ckeditor/ckeditor5-link": "^27.1.0",
33
- "@ckeditor/ckeditor5-list": "^27.1.0",
34
- "@ckeditor/ckeditor5-paragraph": "^27.1.0",
35
- "@ckeditor/ckeditor5-table": "^27.1.0",
36
- "@ckeditor/ckeditor5-theme-lark": "^27.1.0",
37
- "@ckeditor/ckeditor5-typing": "^27.1.0",
38
- "@ckeditor/ckeditor5-undo": "^27.1.0",
39
- "@ckeditor/ckeditor5-upload": "^27.1.0",
40
- "@ckeditor/ckeditor5-utils": "^27.1.0",
41
- "@ckeditor/ckeditor5-widget": "^27.1.0",
20
+ "@ckeditor/ckeditor5-adapter-ckfinder": "^29.2.0",
21
+ "@ckeditor/ckeditor5-autoformat": "^29.2.0",
22
+ "@ckeditor/ckeditor5-basic-styles": "^29.2.0",
23
+ "@ckeditor/ckeditor5-block-quote": "^29.2.0",
24
+ "@ckeditor/ckeditor5-ckfinder": "^29.2.0",
25
+ "@ckeditor/ckeditor5-clipboard": "^29.2.0",
26
+ "@ckeditor/ckeditor5-cloud-services": "^29.2.0",
27
+ "@ckeditor/ckeditor5-core": "^29.2.0",
28
+ "@ckeditor/ckeditor5-dev-utils": "^25.4.0",
29
+ "@ckeditor/ckeditor5-easy-image": "^29.2.0",
30
+ "@ckeditor/ckeditor5-editor-classic": "^29.2.0",
31
+ "@ckeditor/ckeditor5-engine": "^29.2.0",
32
+ "@ckeditor/ckeditor5-enter": "^29.2.0",
33
+ "@ckeditor/ckeditor5-essentials": "^29.2.0",
34
+ "@ckeditor/ckeditor5-heading": "^29.2.0",
35
+ "@ckeditor/ckeditor5-html-embed": "^29.2.0",
36
+ "@ckeditor/ckeditor5-indent": "^29.2.0",
37
+ "@ckeditor/ckeditor5-link": "^29.2.0",
38
+ "@ckeditor/ckeditor5-list": "^29.2.0",
39
+ "@ckeditor/ckeditor5-media-embed": "^29.2.0",
40
+ "@ckeditor/ckeditor5-paragraph": "^29.2.0",
41
+ "@ckeditor/ckeditor5-table": "^29.2.0",
42
+ "@ckeditor/ckeditor5-theme-lark": "^29.2.0",
43
+ "@ckeditor/ckeditor5-typing": "^29.2.0",
44
+ "@ckeditor/ckeditor5-undo": "^29.2.0",
45
+ "@ckeditor/ckeditor5-upload": "^29.2.0",
46
+ "@ckeditor/ckeditor5-utils": "^29.2.0",
47
+ "@ckeditor/ckeditor5-widget": "^29.2.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
@@ -13,7 +13,7 @@ import { LivePosition, LiveRange } from 'ckeditor5/src/engine';
13
13
  import { Undo } from 'ckeditor5/src/undo';
14
14
  import { global } from 'ckeditor5/src/utils';
15
15
 
16
- import { insertImage } from './image/utils';
16
+ import ImageUtils from './imageutils';
17
17
 
18
18
  // Implements the pattern: http(s)://(www.)example.com/path/to/resource.ext?query=params&maybe=too.
19
19
  const IMAGE_URL_REGEXP = new RegExp( String( /^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source +
@@ -32,7 +32,7 @@ export default class AutoImage extends Plugin {
32
32
  * @inheritDoc
33
33
  */
34
34
  static get requires() {
35
- return [ Clipboard, Undo ];
35
+ return [ Clipboard, ImageUtils, Undo ];
36
36
  }
37
37
 
38
38
  /**
@@ -58,7 +58,7 @@ export default class AutoImage extends Plugin {
58
58
  this._timeoutId = null;
59
59
 
60
60
  /**
61
- * The position where the `<image>` element will be inserted after the timeout,
61
+ * The position where the `<imageBlock>` element will be inserted after the timeout,
62
62
  * determined each time a new content is pasted into the document.
63
63
  *
64
64
  * @private
@@ -118,6 +118,8 @@ export default class AutoImage extends Plugin {
118
118
  // TODO: Use a marker instead of LiveRange & LivePositions.
119
119
  const urlRange = new LiveRange( leftPosition, rightPosition );
120
120
  const walker = urlRange.getWalker( { ignoreElementEnd: true } );
121
+ const selectionAttributes = Object.fromEntries( editor.model.document.selection.getAttributes() );
122
+ const imageUtils = this.editor.plugins.get( 'ImageUtils' );
121
123
 
122
124
  let src = '';
123
125
 
@@ -166,7 +168,7 @@ export default class AutoImage extends Plugin {
166
168
  insertionPosition = this._positionToInsert.toPosition();
167
169
  }
168
170
 
169
- insertImage( editor.model, { src }, insertionPosition );
171
+ imageUtils.insertImage( { ...selectionAttributes, src }, insertionPosition );
170
172
 
171
173
  this._positionToInsert.detach();
172
174
  this._positionToInsert = null;