@ckeditor/ckeditor5-image 31.1.0 → 34.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.
Files changed (134) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -1
  3. package/build/image.js +3 -3
  4. package/build/image.js.map +1 -0
  5. package/build/translations/bs.js +1 -0
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/el.js +1 -1
  8. package/build/translations/en-au.js +1 -1
  9. package/build/translations/es.js +1 -1
  10. package/build/translations/hr.js +1 -1
  11. package/build/translations/jv.js +1 -0
  12. package/build/translations/pt-br.js +1 -1
  13. package/build/translations/sk.js +1 -1
  14. package/build/translations/zh-cn.js +1 -1
  15. package/lang/translations/ar.po +1 -1
  16. package/lang/translations/ast.po +1 -1
  17. package/lang/translations/az.po +1 -1
  18. package/lang/translations/bg.po +1 -1
  19. package/lang/translations/bs.po +113 -0
  20. package/lang/translations/cs.po +4 -4
  21. package/lang/translations/da.po +1 -1
  22. package/lang/translations/de-ch.po +1 -1
  23. package/lang/translations/de.po +1 -1
  24. package/lang/translations/el.po +23 -23
  25. package/lang/translations/en-au.po +4 -4
  26. package/lang/translations/en-gb.po +1 -1
  27. package/lang/translations/en.po +1 -1
  28. package/lang/translations/eo.po +1 -1
  29. package/lang/translations/es.po +8 -8
  30. package/lang/translations/et.po +1 -1
  31. package/lang/translations/eu.po +1 -1
  32. package/lang/translations/fa.po +1 -1
  33. package/lang/translations/fi.po +1 -1
  34. package/lang/translations/fr.po +1 -1
  35. package/lang/translations/gl.po +1 -1
  36. package/lang/translations/he.po +1 -1
  37. package/lang/translations/hi.po +1 -1
  38. package/lang/translations/hr.po +13 -13
  39. package/lang/translations/hu.po +1 -1
  40. package/lang/translations/id.po +1 -1
  41. package/lang/translations/it.po +1 -1
  42. package/lang/translations/ja.po +1 -1
  43. package/lang/translations/jv.po +113 -0
  44. package/lang/translations/km.po +1 -1
  45. package/lang/translations/kn.po +1 -1
  46. package/lang/translations/ko.po +1 -1
  47. package/lang/translations/ku.po +1 -1
  48. package/lang/translations/lt.po +1 -1
  49. package/lang/translations/lv.po +1 -1
  50. package/lang/translations/nb.po +1 -1
  51. package/lang/translations/ne.po +1 -1
  52. package/lang/translations/nl.po +1 -1
  53. package/lang/translations/no.po +1 -1
  54. package/lang/translations/pl.po +1 -1
  55. package/lang/translations/pt-br.po +2 -2
  56. package/lang/translations/pt.po +1 -1
  57. package/lang/translations/ro.po +1 -1
  58. package/lang/translations/ru.po +1 -1
  59. package/lang/translations/si.po +1 -1
  60. package/lang/translations/sk.po +4 -4
  61. package/lang/translations/sq.po +1 -1
  62. package/lang/translations/sr-latn.po +1 -1
  63. package/lang/translations/sr.po +1 -1
  64. package/lang/translations/sv.po +1 -1
  65. package/lang/translations/th.po +1 -1
  66. package/lang/translations/tk.po +1 -1
  67. package/lang/translations/tr.po +1 -1
  68. package/lang/translations/ug.po +1 -1
  69. package/lang/translations/uk.po +1 -1
  70. package/lang/translations/uz.po +1 -1
  71. package/lang/translations/vi.po +1 -1
  72. package/lang/translations/zh-cn.po +2 -2
  73. package/lang/translations/zh.po +1 -1
  74. package/package.json +35 -34
  75. package/src/autoimage.js +1 -1
  76. package/src/image/converters.js +6 -8
  77. package/src/image/imageblockediting.js +7 -9
  78. package/src/image/imageediting.js +1 -1
  79. package/src/image/imageinlineediting.js +5 -8
  80. package/src/image/imageloadobserver.js +1 -1
  81. package/src/image/imagetypecommand.js +1 -1
  82. package/src/image/insertimagecommand.js +1 -1
  83. package/src/image/ui/utils.js +1 -1
  84. package/src/image/utils.js +43 -23
  85. package/src/image.js +1 -1
  86. package/src/imageblock.js +1 -1
  87. package/src/imagecaption/imagecaptionediting.js +7 -33
  88. package/src/imagecaption/imagecaptionui.js +5 -7
  89. package/src/imagecaption/imagecaptionutils.js +89 -0
  90. package/src/imagecaption/toggleimagecaptioncommand.js +7 -8
  91. package/src/imagecaption.js +1 -1
  92. package/src/imageinline.js +1 -1
  93. package/src/imageinsert/imageinsertui.js +1 -1
  94. package/src/imageinsert/ui/imageinsertformrowview.js +1 -1
  95. package/src/imageinsert/ui/imageinsertpanelview.js +1 -1
  96. package/src/imageinsert/utils.js +1 -1
  97. package/src/imageinsert.js +1 -1
  98. package/src/imageresize/imageresizebuttons.js +1 -1
  99. package/src/imageresize/imageresizeediting.js +1 -1
  100. package/src/imageresize/imageresizehandles.js +1 -1
  101. package/src/imageresize/resizeimagecommand.js +1 -1
  102. package/src/imageresize.js +1 -1
  103. package/src/imagestyle/converters.js +1 -1
  104. package/src/imagestyle/imagestylecommand.js +1 -1
  105. package/src/imagestyle/imagestyleediting.js +1 -1
  106. package/src/imagestyle/imagestyleui.js +1 -1
  107. package/src/imagestyle/utils.js +65 -49
  108. package/src/imagestyle.js +1 -1
  109. package/src/imagetextalternative/imagetextalternativecommand.js +1 -1
  110. package/src/imagetextalternative/imagetextalternativeediting.js +1 -1
  111. package/src/imagetextalternative/imagetextalternativeui.js +1 -1
  112. package/src/imagetextalternative/ui/textalternativeformview.js +1 -1
  113. package/src/imagetextalternative.js +1 -1
  114. package/src/imagetoolbar.js +1 -1
  115. package/src/imageupload/imageuploadediting.js +7 -7
  116. package/src/imageupload/imageuploadprogress.js +1 -1
  117. package/src/imageupload/imageuploadui.js +1 -1
  118. package/src/imageupload/uploadimagecommand.js +1 -1
  119. package/src/imageupload/utils.js +1 -1
  120. package/src/imageupload.js +1 -1
  121. package/src/imageutils.js +7 -10
  122. package/src/index.js +2 -1
  123. package/src/pictureediting.js +1 -1
  124. package/theme/image.css +1 -1
  125. package/theme/imagecaption.css +1 -1
  126. package/theme/imageinsert.css +1 -1
  127. package/theme/imageinsertformrowview.css +1 -1
  128. package/theme/imageresize.css +1 -1
  129. package/theme/imagestyle.css +1 -1
  130. package/theme/imageuploadicon.css +1 -1
  131. package/theme/imageuploadloader.css +1 -1
  132. package/theme/imageuploadprogress.css +1 -1
  133. package/theme/textalternativeform.css +1 -1
  134. package/src/imagecaption/utils.js +0 -63
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -22,15 +22,15 @@ msgstr "Slika widget"
22
22
 
23
23
  msgctxt "The label for the image style button that wraps text around the image."
24
24
  msgid "Wrap text"
25
- msgstr ""
25
+ msgstr "Prelamanje teksta"
26
26
 
27
27
  msgctxt "The label for the image style button that breaks the text around the image."
28
28
  msgid "Break text"
29
- msgstr ""
29
+ msgstr "Prelomi tekst"
30
30
 
31
31
  msgctxt "The label for the image style button that places the image inside the line of text."
32
32
  msgid "In line"
33
- msgstr ""
33
+ msgstr "U istom redu"
34
34
 
35
35
  msgctxt "The label for the Side image option."
36
36
  msgid "Side image"
@@ -78,36 +78,36 @@ msgstr "Traka za slike"
78
78
 
79
79
  msgctxt "The label used for the dropdown in the image toolbar containing defined resize options."
80
80
  msgid "Resize image"
81
- msgstr ""
81
+ msgstr "Promijeni veličinu slike"
82
82
 
83
83
  msgctxt "The label used for the standalone resize options buttons in the image toolbar."
84
84
  msgid "Resize image to %0"
85
- msgstr ""
85
+ msgstr "Promijeni veličinu slike u %0"
86
86
 
87
87
  msgctxt "The accessibility label of the standalone image resize reset option button in the image toolbar for screen readers."
88
88
  msgid "Resize image to the original size"
89
- msgstr ""
89
+ msgstr "Vrati veličinu slike na originalnu veličinu"
90
90
 
91
91
  msgctxt "The default label for the resize option that resets the size of the image."
92
92
  msgid "Original"
93
- msgstr ""
93
+ msgstr "Original"
94
94
 
95
95
  msgctxt "The accessibility label of the image resize dropdown for screen readers."
96
96
  msgid "Image resize list"
97
- msgstr ""
97
+ msgstr "Lista veličina slika"
98
98
 
99
99
  msgctxt "The label of the form submit button if the image source URL input has no value."
100
100
  msgid "Insert"
101
- msgstr ""
101
+ msgstr "Ubaci"
102
102
 
103
103
  msgctxt "The label of the form submit button if the image source URL input has a value."
104
104
  msgid "Update"
105
- msgstr ""
105
+ msgstr "Snimi"
106
106
 
107
107
  msgctxt "The input label for the Insert image via URL form."
108
108
  msgid "Insert image via URL"
109
- msgstr ""
109
+ msgstr "Ubaci sliku putem URLa"
110
110
 
111
111
  msgctxt "The input label for the Insert image via URL form for a pre-existing image."
112
112
  msgid "Update image URL"
113
- msgstr ""
113
+ msgstr "Snimi URL slike"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -0,0 +1,113 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Javanese (https://www.transifex.com/ckeditor/teams/11143/jv/)\n"
16
+ "Language: jv\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "The label for the image widget."
20
+ msgid "image widget"
21
+ msgstr ""
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
+
35
+ msgctxt "The label for the Side image option."
36
+ msgid "Side image"
37
+ msgstr ""
38
+
39
+ msgctxt "The label for the Full size image option."
40
+ msgid "Full size image"
41
+ msgstr "Gambar ukuran kebak"
42
+
43
+ msgctxt "The label for the Left aligned image option."
44
+ msgid "Left aligned image"
45
+ msgstr "Gambar ing kiwa"
46
+
47
+ msgctxt "The label for the Centered image option."
48
+ msgid "Centered image"
49
+ msgstr "Gambar ing tengah"
50
+
51
+ msgctxt "The label for the Right aligned image option."
52
+ msgid "Right aligned image"
53
+ msgstr "Gambar ing tengen"
54
+
55
+ msgctxt "The label for the Change image text alternative button."
56
+ msgid "Change image text alternative"
57
+ msgstr ""
58
+
59
+ msgctxt "The label for the image text alternative input."
60
+ msgid "Text alternative"
61
+ msgstr ""
62
+
63
+ msgctxt "The placeholder text for the image caption displayed when the caption is empty."
64
+ msgid "Enter image caption"
65
+ msgstr ""
66
+
67
+ msgctxt "The label for the insert image toolbar button."
68
+ msgid "Insert image"
69
+ msgstr "Tambahaken gambar"
70
+
71
+ msgctxt "The title of the notification displayed when upload fails."
72
+ msgid "Upload failed"
73
+ msgstr ""
74
+
75
+ msgctxt "The label used by assistive technologies describing an image toolbar attached to an image widget."
76
+ msgid "Image toolbar"
77
+ msgstr ""
78
+
79
+ msgctxt "The label used for the dropdown in the image toolbar containing defined resize options."
80
+ msgid "Resize image"
81
+ msgstr ""
82
+
83
+ msgctxt "The label used for the standalone resize options buttons in the image toolbar."
84
+ msgid "Resize image to %0"
85
+ msgstr ""
86
+
87
+ msgctxt "The accessibility label of the standalone image resize reset option button in the image toolbar for screen readers."
88
+ msgid "Resize image to the original size"
89
+ msgstr ""
90
+
91
+ msgctxt "The default label for the resize option that resets the size of the image."
92
+ msgid "Original"
93
+ msgstr "Asli"
94
+
95
+ msgctxt "The accessibility label of the image resize dropdown for screen readers."
96
+ msgid "Image resize list"
97
+ msgstr ""
98
+
99
+ msgctxt "The label of the form submit button if the image source URL input has no value."
100
+ msgid "Insert"
101
+ msgstr "Tambah"
102
+
103
+ msgctxt "The label of the form submit button if the image source URL input has a value."
104
+ msgid "Update"
105
+ msgstr ""
106
+
107
+ msgctxt "The input label for the Insert image via URL form."
108
+ msgid "Insert image via URL"
109
+ msgstr "Tambah gambar saking URL"
110
+
111
+ msgctxt "The input label for the Insert image via URL form for a pre-existing image."
112
+ msgid "Update image URL"
113
+ msgstr ""
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -82,7 +82,7 @@ msgstr "Redimensionar imagem"
82
82
 
83
83
  msgctxt "The label used for the standalone resize options buttons in the image toolbar."
84
84
  msgid "Resize image to %0"
85
- msgstr "Redimensionar a imagem para 0%"
85
+ msgstr "Redimensionar a imagem para %0"
86
86
 
87
87
  msgctxt "The accessibility label of the standalone image resize reset option button in the image toolbar for screen readers."
88
88
  msgid "Resize image to the original size"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -22,15 +22,15 @@ msgstr "widget obrázka"
22
22
 
23
23
  msgctxt "The label for the image style button that wraps text around the image."
24
24
  msgid "Wrap text"
25
- msgstr ""
25
+ msgstr "Obtekanie textu"
26
26
 
27
27
  msgctxt "The label for the image style button that breaks the text around the image."
28
28
  msgid "Break text"
29
- msgstr ""
29
+ msgstr "Zalomenie textu"
30
30
 
31
31
  msgctxt "The label for the image style button that places the image inside the line of text."
32
32
  msgid "In line"
33
- msgstr ""
33
+ msgstr "V riadku"
34
34
 
35
35
  msgctxt "The label for the Side image option."
36
36
  msgid "Side image"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -82,7 +82,7 @@ msgstr "调整图像大小"
82
82
 
83
83
  msgctxt "The label used for the standalone resize options buttons in the image toolbar."
84
84
  msgid "Resize image to %0"
85
- msgstr "调整图像大小为0%"
85
+ msgstr "调整图像大小为%0"
86
86
 
87
87
  msgctxt "The accessibility label of the standalone image resize reset option button in the image toolbar for screen readers."
88
88
  msgid "Resize image to the original size"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-image",
3
- "version": "31.1.0",
3
+ "version": "34.0.0",
4
4
  "description": "Image feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,44 +12,45 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-ui": "^31.1.0",
16
- "ckeditor5": "^31.1.0",
15
+ "@ckeditor/ckeditor5-ui": "^34.0.0",
16
+ "ckeditor5": "^34.0.0",
17
17
  "lodash-es": "^4.17.15"
18
18
  },
19
19
  "devDependencies": {
20
- "@ckeditor/ckeditor5-adapter-ckfinder": "^31.1.0",
21
- "@ckeditor/ckeditor5-autoformat": "^31.1.0",
22
- "@ckeditor/ckeditor5-basic-styles": "^31.1.0",
23
- "@ckeditor/ckeditor5-block-quote": "^31.1.0",
24
- "@ckeditor/ckeditor5-ckfinder": "^31.1.0",
25
- "@ckeditor/ckeditor5-clipboard": "^31.1.0",
26
- "@ckeditor/ckeditor5-cloud-services": "^31.1.0",
27
- "@ckeditor/ckeditor5-core": "^31.1.0",
28
- "@ckeditor/ckeditor5-dev-utils": "^26.0.0",
29
- "@ckeditor/ckeditor5-easy-image": "^31.1.0",
30
- "@ckeditor/ckeditor5-editor-classic": "^31.1.0",
31
- "@ckeditor/ckeditor5-engine": "^31.1.0",
32
- "@ckeditor/ckeditor5-enter": "^31.1.0",
33
- "@ckeditor/ckeditor5-essentials": "^31.1.0",
34
- "@ckeditor/ckeditor5-heading": "^31.1.0",
35
- "@ckeditor/ckeditor5-html-embed": "^31.1.0",
36
- "@ckeditor/ckeditor5-indent": "^31.1.0",
37
- "@ckeditor/ckeditor5-link": "^31.1.0",
38
- "@ckeditor/ckeditor5-list": "^31.1.0",
39
- "@ckeditor/ckeditor5-media-embed": "^31.1.0",
40
- "@ckeditor/ckeditor5-paragraph": "^31.1.0",
41
- "@ckeditor/ckeditor5-table": "^31.1.0",
42
- "@ckeditor/ckeditor5-theme-lark": "^31.1.0",
43
- "@ckeditor/ckeditor5-typing": "^31.1.0",
44
- "@ckeditor/ckeditor5-undo": "^31.1.0",
45
- "@ckeditor/ckeditor5-upload": "^31.1.0",
46
- "@ckeditor/ckeditor5-utils": "^31.1.0",
47
- "@ckeditor/ckeditor5-widget": "^31.1.0",
48
- "webpack": "^4.43.0",
49
- "webpack-cli": "^3.3.11"
20
+ "@ckeditor/ckeditor5-adapter-ckfinder": "^34.0.0",
21
+ "@ckeditor/ckeditor5-autoformat": "^34.0.0",
22
+ "@ckeditor/ckeditor5-basic-styles": "^34.0.0",
23
+ "@ckeditor/ckeditor5-block-quote": "^34.0.0",
24
+ "@ckeditor/ckeditor5-ckfinder": "^34.0.0",
25
+ "@ckeditor/ckeditor5-clipboard": "^34.0.0",
26
+ "@ckeditor/ckeditor5-cloud-services": "^34.0.0",
27
+ "@ckeditor/ckeditor5-core": "^34.0.0",
28
+ "@ckeditor/ckeditor5-dev-utils": "^30.0.0",
29
+ "@ckeditor/ckeditor5-easy-image": "^34.0.0",
30
+ "@ckeditor/ckeditor5-editor-classic": "^34.0.0",
31
+ "@ckeditor/ckeditor5-engine": "^34.0.0",
32
+ "@ckeditor/ckeditor5-enter": "^34.0.0",
33
+ "@ckeditor/ckeditor5-essentials": "^34.0.0",
34
+ "@ckeditor/ckeditor5-heading": "^34.0.0",
35
+ "@ckeditor/ckeditor5-html-embed": "^34.0.0",
36
+ "@ckeditor/ckeditor5-indent": "^34.0.0",
37
+ "@ckeditor/ckeditor5-link": "^34.0.0",
38
+ "@ckeditor/ckeditor5-list": "^34.0.0",
39
+ "@ckeditor/ckeditor5-media-embed": "^34.0.0",
40
+ "@ckeditor/ckeditor5-paragraph": "^34.0.0",
41
+ "@ckeditor/ckeditor5-table": "^34.0.0",
42
+ "@ckeditor/ckeditor5-theme-lark": "^34.0.0",
43
+ "@ckeditor/ckeditor5-typing": "^34.0.0",
44
+ "@ckeditor/ckeditor5-undo": "^34.0.0",
45
+ "@ckeditor/ckeditor5-upload": "^34.0.0",
46
+ "@ckeditor/ckeditor5-utils": "^34.0.0",
47
+ "@ckeditor/ckeditor5-watchdog": "^34.0.0",
48
+ "@ckeditor/ckeditor5-widget": "^34.0.0",
49
+ "webpack": "^5.58.1",
50
+ "webpack-cli": "^4.9.0"
50
51
  },
51
52
  "engines": {
52
- "node": ">=12.0.0",
53
+ "node": ">=14.0.0",
53
54
  "npm": ">=5.7.1"
54
55
  },
55
56
  "author": "CKSource (http://cksource.com/)",
package/src/autoimage.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -235,13 +235,11 @@ export function downcastSourcesAttribute( imageUtils ) {
235
235
 
236
236
  if ( data.attributeNewValue && data.attributeNewValue.length ) {
237
237
  // Make sure <picture> does not break attribute elements, for instance <a> in linked images.
238
- const pictureElement = viewWriter.createContainerElement( 'picture', {}, { isAllowedInsideAttributeElement: true } );
239
-
240
- for ( const sourceAttributes of data.attributeNewValue ) {
241
- const sourceElement = viewWriter.createEmptyElement( 'source', sourceAttributes );
242
-
243
- viewWriter.insert( viewWriter.createPositionAt( pictureElement, 'end' ), sourceElement );
244
- }
238
+ const pictureElement = viewWriter.createContainerElement( 'picture', null,
239
+ data.attributeNewValue.map( sourceAttributes => {
240
+ return viewWriter.createEmptyElement( 'source', sourceAttributes );
241
+ } )
242
+ );
245
243
 
246
244
  // Collect all wrapping attribute elements.
247
245
  const attributeElements = [];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
 
@@ -22,7 +22,7 @@ import ImageTypeCommand from './imagetypecommand';
22
22
  import ImageUtils from '../imageutils';
23
23
  import {
24
24
  getImgViewElementMatcher,
25
- createImageViewElement,
25
+ createBlockImageViewElement,
26
26
  determineImageTypeForInsertionAtSelection
27
27
  } from '../image/utils';
28
28
 
@@ -62,9 +62,7 @@ export default class ImageBlockEditing extends Plugin {
62
62
 
63
63
  // Converters 'alt' and 'srcset' are added in 'ImageEditing' plugin.
64
64
  schema.register( 'imageBlock', {
65
- isObject: true,
66
- isBlock: true,
67
- allowWhere: '$block',
65
+ inheritAllFrom: '$blockObject',
68
66
  allowAttributes: [ 'alt', 'src', 'srcset' ]
69
67
  } );
70
68
 
@@ -90,16 +88,16 @@ export default class ImageBlockEditing extends Plugin {
90
88
  const imageUtils = editor.plugins.get( 'ImageUtils' );
91
89
 
92
90
  conversion.for( 'dataDowncast' )
93
- .elementToElement( {
91
+ .elementToStructure( {
94
92
  model: 'imageBlock',
95
- view: ( modelElement, { writer } ) => createImageViewElement( writer, 'imageBlock' )
93
+ view: ( modelElement, { writer } ) => createBlockImageViewElement( writer )
96
94
  } );
97
95
 
98
96
  conversion.for( 'editingDowncast' )
99
- .elementToElement( {
97
+ .elementToStructure( {
100
98
  model: 'imageBlock',
101
99
  view: ( modelElement, { writer } ) => imageUtils.toImageWidget(
102
- createImageViewElement( writer, 'imageBlock' ), writer, t( 'image widget' )
100
+ createBlockImageViewElement( writer ), writer, t( 'image widget' )
103
101
  )
104
102
  } );
105
103