@ckeditor/ckeditor5-image 41.3.1 → 41.4.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 (424) hide show
  1. package/build/image.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/ast.js +1 -1
  4. package/build/translations/az.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/bs.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de-ch.js +1 -1
  12. package/build/translations/de.js +1 -1
  13. package/build/translations/el.js +1 -1
  14. package/build/translations/en-au.js +1 -1
  15. package/build/translations/en-gb.js +1 -1
  16. package/build/translations/eo.js +1 -1
  17. package/build/translations/es-co.js +1 -1
  18. package/build/translations/es.js +1 -1
  19. package/build/translations/et.js +1 -1
  20. package/build/translations/eu.js +1 -1
  21. package/build/translations/fa.js +1 -1
  22. package/build/translations/fi.js +1 -1
  23. package/build/translations/fr.js +1 -1
  24. package/build/translations/gl.js +1 -1
  25. package/build/translations/he.js +1 -1
  26. package/build/translations/hi.js +1 -1
  27. package/build/translations/hr.js +1 -1
  28. package/build/translations/hu.js +1 -1
  29. package/build/translations/id.js +1 -1
  30. package/build/translations/it.js +1 -1
  31. package/build/translations/ja.js +1 -1
  32. package/build/translations/jv.js +1 -1
  33. package/build/translations/km.js +1 -1
  34. package/build/translations/kn.js +1 -1
  35. package/build/translations/ko.js +1 -1
  36. package/build/translations/ku.js +1 -1
  37. package/build/translations/lt.js +1 -1
  38. package/build/translations/lv.js +1 -1
  39. package/build/translations/ms.js +1 -1
  40. package/build/translations/nb.js +1 -1
  41. package/build/translations/ne.js +1 -1
  42. package/build/translations/nl.js +1 -1
  43. package/build/translations/no.js +1 -1
  44. package/build/translations/pl.js +1 -1
  45. package/build/translations/pt-br.js +1 -1
  46. package/build/translations/pt.js +1 -1
  47. package/build/translations/ro.js +1 -1
  48. package/build/translations/ru.js +1 -1
  49. package/build/translations/si.js +1 -1
  50. package/build/translations/sk.js +1 -1
  51. package/build/translations/sq.js +1 -1
  52. package/build/translations/sr-latn.js +1 -1
  53. package/build/translations/sr.js +1 -1
  54. package/build/translations/sv.js +1 -1
  55. package/build/translations/th.js +1 -1
  56. package/build/translations/ti.js +1 -0
  57. package/build/translations/tk.js +1 -1
  58. package/build/translations/tr.js +1 -1
  59. package/build/translations/tt.js +1 -1
  60. package/build/translations/ug.js +1 -1
  61. package/build/translations/uk.js +1 -1
  62. package/build/translations/ur.js +1 -1
  63. package/build/translations/uz.js +1 -1
  64. package/build/translations/vi.js +1 -1
  65. package/build/translations/zh-cn.js +1 -1
  66. package/build/translations/zh.js +1 -1
  67. package/ckeditor5-metadata.json +1 -1
  68. package/dist/index-content.css +105 -0
  69. package/dist/index-editor.css +129 -0
  70. package/dist/index.css +562 -0
  71. package/dist/index.css.map +1 -0
  72. package/dist/index.js +5637 -0
  73. package/dist/index.js.map +1 -0
  74. package/dist/translations/ar.d.ts +8 -0
  75. package/dist/translations/ar.js +5 -0
  76. package/dist/translations/ar.umd.js +11 -0
  77. package/dist/translations/ast.d.ts +8 -0
  78. package/dist/translations/ast.js +5 -0
  79. package/dist/translations/ast.umd.js +11 -0
  80. package/dist/translations/az.d.ts +8 -0
  81. package/dist/translations/az.js +5 -0
  82. package/dist/translations/az.umd.js +11 -0
  83. package/dist/translations/bg.d.ts +8 -0
  84. package/dist/translations/bg.js +5 -0
  85. package/dist/translations/bg.umd.js +11 -0
  86. package/dist/translations/bn.d.ts +8 -0
  87. package/dist/translations/bn.js +5 -0
  88. package/dist/translations/bn.umd.js +11 -0
  89. package/dist/translations/bs.d.ts +8 -0
  90. package/dist/translations/bs.js +5 -0
  91. package/dist/translations/bs.umd.js +11 -0
  92. package/dist/translations/ca.d.ts +8 -0
  93. package/dist/translations/ca.js +5 -0
  94. package/dist/translations/ca.umd.js +11 -0
  95. package/dist/translations/cs.d.ts +8 -0
  96. package/dist/translations/cs.js +5 -0
  97. package/dist/translations/cs.umd.js +11 -0
  98. package/dist/translations/da.d.ts +8 -0
  99. package/dist/translations/da.js +5 -0
  100. package/dist/translations/da.umd.js +11 -0
  101. package/dist/translations/de-ch.d.ts +8 -0
  102. package/dist/translations/de-ch.js +5 -0
  103. package/dist/translations/de-ch.umd.js +11 -0
  104. package/dist/translations/de.d.ts +8 -0
  105. package/dist/translations/de.js +5 -0
  106. package/dist/translations/de.umd.js +11 -0
  107. package/dist/translations/el.d.ts +8 -0
  108. package/dist/translations/el.js +5 -0
  109. package/dist/translations/el.umd.js +11 -0
  110. package/dist/translations/en-au.d.ts +8 -0
  111. package/dist/translations/en-au.js +5 -0
  112. package/dist/translations/en-au.umd.js +11 -0
  113. package/dist/translations/en-gb.d.ts +8 -0
  114. package/dist/translations/en-gb.js +5 -0
  115. package/dist/translations/en-gb.umd.js +11 -0
  116. package/dist/translations/en.d.ts +8 -0
  117. package/dist/translations/en.js +5 -0
  118. package/dist/translations/en.umd.js +11 -0
  119. package/dist/translations/eo.d.ts +8 -0
  120. package/dist/translations/eo.js +5 -0
  121. package/dist/translations/eo.umd.js +11 -0
  122. package/dist/translations/es-co.d.ts +8 -0
  123. package/dist/translations/es-co.js +5 -0
  124. package/dist/translations/es-co.umd.js +11 -0
  125. package/dist/translations/es.d.ts +8 -0
  126. package/dist/translations/es.js +5 -0
  127. package/dist/translations/es.umd.js +11 -0
  128. package/dist/translations/et.d.ts +8 -0
  129. package/dist/translations/et.js +5 -0
  130. package/dist/translations/et.umd.js +11 -0
  131. package/dist/translations/eu.d.ts +8 -0
  132. package/dist/translations/eu.js +5 -0
  133. package/dist/translations/eu.umd.js +11 -0
  134. package/dist/translations/fa.d.ts +8 -0
  135. package/dist/translations/fa.js +5 -0
  136. package/dist/translations/fa.umd.js +11 -0
  137. package/dist/translations/fi.d.ts +8 -0
  138. package/dist/translations/fi.js +5 -0
  139. package/dist/translations/fi.umd.js +11 -0
  140. package/dist/translations/fr.d.ts +8 -0
  141. package/dist/translations/fr.js +5 -0
  142. package/dist/translations/fr.umd.js +11 -0
  143. package/dist/translations/gl.d.ts +8 -0
  144. package/dist/translations/gl.js +5 -0
  145. package/dist/translations/gl.umd.js +11 -0
  146. package/dist/translations/he.d.ts +8 -0
  147. package/dist/translations/he.js +5 -0
  148. package/dist/translations/he.umd.js +11 -0
  149. package/dist/translations/hi.d.ts +8 -0
  150. package/dist/translations/hi.js +5 -0
  151. package/dist/translations/hi.umd.js +11 -0
  152. package/dist/translations/hr.d.ts +8 -0
  153. package/dist/translations/hr.js +5 -0
  154. package/dist/translations/hr.umd.js +11 -0
  155. package/dist/translations/hu.d.ts +8 -0
  156. package/dist/translations/hu.js +5 -0
  157. package/dist/translations/hu.umd.js +11 -0
  158. package/dist/translations/id.d.ts +8 -0
  159. package/dist/translations/id.js +5 -0
  160. package/dist/translations/id.umd.js +11 -0
  161. package/dist/translations/it.d.ts +8 -0
  162. package/dist/translations/it.js +5 -0
  163. package/dist/translations/it.umd.js +11 -0
  164. package/dist/translations/ja.d.ts +8 -0
  165. package/dist/translations/ja.js +5 -0
  166. package/dist/translations/ja.umd.js +11 -0
  167. package/dist/translations/jv.d.ts +8 -0
  168. package/dist/translations/jv.js +5 -0
  169. package/dist/translations/jv.umd.js +11 -0
  170. package/dist/translations/km.d.ts +8 -0
  171. package/dist/translations/km.js +5 -0
  172. package/dist/translations/km.umd.js +11 -0
  173. package/dist/translations/kn.d.ts +8 -0
  174. package/dist/translations/kn.js +5 -0
  175. package/dist/translations/kn.umd.js +11 -0
  176. package/dist/translations/ko.d.ts +8 -0
  177. package/dist/translations/ko.js +5 -0
  178. package/dist/translations/ko.umd.js +11 -0
  179. package/dist/translations/ku.d.ts +8 -0
  180. package/dist/translations/ku.js +5 -0
  181. package/dist/translations/ku.umd.js +11 -0
  182. package/dist/translations/lt.d.ts +8 -0
  183. package/dist/translations/lt.js +5 -0
  184. package/dist/translations/lt.umd.js +11 -0
  185. package/dist/translations/lv.d.ts +8 -0
  186. package/dist/translations/lv.js +5 -0
  187. package/dist/translations/lv.umd.js +11 -0
  188. package/dist/translations/ms.d.ts +8 -0
  189. package/dist/translations/ms.js +5 -0
  190. package/dist/translations/ms.umd.js +11 -0
  191. package/dist/translations/nb.d.ts +8 -0
  192. package/dist/translations/nb.js +5 -0
  193. package/dist/translations/nb.umd.js +11 -0
  194. package/dist/translations/ne.d.ts +8 -0
  195. package/dist/translations/ne.js +5 -0
  196. package/dist/translations/ne.umd.js +11 -0
  197. package/dist/translations/nl.d.ts +8 -0
  198. package/dist/translations/nl.js +5 -0
  199. package/dist/translations/nl.umd.js +11 -0
  200. package/dist/translations/no.d.ts +8 -0
  201. package/dist/translations/no.js +5 -0
  202. package/dist/translations/no.umd.js +11 -0
  203. package/dist/translations/pl.d.ts +8 -0
  204. package/dist/translations/pl.js +5 -0
  205. package/dist/translations/pl.umd.js +11 -0
  206. package/dist/translations/pt-br.d.ts +8 -0
  207. package/dist/translations/pt-br.js +5 -0
  208. package/dist/translations/pt-br.umd.js +11 -0
  209. package/dist/translations/pt.d.ts +8 -0
  210. package/dist/translations/pt.js +5 -0
  211. package/dist/translations/pt.umd.js +11 -0
  212. package/dist/translations/ro.d.ts +8 -0
  213. package/dist/translations/ro.js +5 -0
  214. package/dist/translations/ro.umd.js +11 -0
  215. package/dist/translations/ru.d.ts +8 -0
  216. package/dist/translations/ru.js +5 -0
  217. package/dist/translations/ru.umd.js +11 -0
  218. package/dist/translations/si.d.ts +8 -0
  219. package/dist/translations/si.js +5 -0
  220. package/dist/translations/si.umd.js +11 -0
  221. package/dist/translations/sk.d.ts +8 -0
  222. package/dist/translations/sk.js +5 -0
  223. package/dist/translations/sk.umd.js +11 -0
  224. package/dist/translations/sq.d.ts +8 -0
  225. package/dist/translations/sq.js +5 -0
  226. package/dist/translations/sq.umd.js +11 -0
  227. package/dist/translations/sr-latn.d.ts +8 -0
  228. package/dist/translations/sr-latn.js +5 -0
  229. package/dist/translations/sr-latn.umd.js +11 -0
  230. package/dist/translations/sr.d.ts +8 -0
  231. package/dist/translations/sr.js +5 -0
  232. package/dist/translations/sr.umd.js +11 -0
  233. package/dist/translations/sv.d.ts +8 -0
  234. package/dist/translations/sv.js +5 -0
  235. package/dist/translations/sv.umd.js +11 -0
  236. package/dist/translations/th.d.ts +8 -0
  237. package/dist/translations/th.js +5 -0
  238. package/dist/translations/th.umd.js +11 -0
  239. package/dist/translations/ti.d.ts +8 -0
  240. package/dist/translations/ti.js +5 -0
  241. package/dist/translations/ti.umd.js +11 -0
  242. package/dist/translations/tk.d.ts +8 -0
  243. package/dist/translations/tk.js +5 -0
  244. package/dist/translations/tk.umd.js +11 -0
  245. package/dist/translations/tr.d.ts +8 -0
  246. package/dist/translations/tr.js +5 -0
  247. package/dist/translations/tr.umd.js +11 -0
  248. package/dist/translations/tt.d.ts +8 -0
  249. package/dist/translations/tt.js +5 -0
  250. package/dist/translations/tt.umd.js +11 -0
  251. package/dist/translations/ug.d.ts +8 -0
  252. package/dist/translations/ug.js +5 -0
  253. package/dist/translations/ug.umd.js +11 -0
  254. package/dist/translations/uk.d.ts +8 -0
  255. package/dist/translations/uk.js +5 -0
  256. package/dist/translations/uk.umd.js +11 -0
  257. package/dist/translations/ur.d.ts +8 -0
  258. package/dist/translations/ur.js +5 -0
  259. package/dist/translations/ur.umd.js +11 -0
  260. package/dist/translations/uz.d.ts +8 -0
  261. package/dist/translations/uz.js +5 -0
  262. package/dist/translations/uz.umd.js +11 -0
  263. package/dist/translations/vi.d.ts +8 -0
  264. package/dist/translations/vi.js +5 -0
  265. package/dist/translations/vi.umd.js +11 -0
  266. package/dist/translations/zh-cn.d.ts +8 -0
  267. package/dist/translations/zh-cn.js +5 -0
  268. package/dist/translations/zh-cn.umd.js +11 -0
  269. package/dist/translations/zh.d.ts +8 -0
  270. package/dist/translations/zh.js +5 -0
  271. package/dist/translations/zh.umd.js +11 -0
  272. package/dist/types/augmentation.d.ts +61 -0
  273. package/dist/types/autoimage.d.ts +56 -0
  274. package/dist/types/image/converters.d.ts +70 -0
  275. package/dist/types/image/imageblockediting.d.ts +63 -0
  276. package/dist/types/image/imageediting.d.ts +34 -0
  277. package/dist/types/image/imageinlineediting.d.ts +64 -0
  278. package/dist/types/image/imageloadobserver.d.ts +52 -0
  279. package/dist/types/image/imageplaceholder.d.ts +43 -0
  280. package/dist/types/image/imagetypecommand.d.ts +48 -0
  281. package/dist/types/image/insertimagecommand.d.ts +70 -0
  282. package/dist/types/image/replaceimagesourcecommand.d.ts +55 -0
  283. package/dist/types/image/ui/utils.d.ts +29 -0
  284. package/dist/types/image/utils.d.ts +68 -0
  285. package/dist/types/image.d.ts +38 -0
  286. package/dist/types/imageblock.d.ts +38 -0
  287. package/dist/types/imagecaption/imagecaptionediting.d.ts +93 -0
  288. package/dist/types/imagecaption/imagecaptionui.d.ts +30 -0
  289. package/dist/types/imagecaption/imagecaptionutils.d.ts +42 -0
  290. package/dist/types/imagecaption/toggleimagecaptioncommand.d.ts +70 -0
  291. package/dist/types/imagecaption.d.ts +30 -0
  292. package/dist/types/imageconfig.d.ts +716 -0
  293. package/dist/types/imageinline.d.ts +38 -0
  294. package/dist/types/imageinsert/imageinsertui.d.ts +78 -0
  295. package/dist/types/imageinsert/imageinsertviaurlui.d.ts +48 -0
  296. package/dist/types/imageinsert/ui/imageinsertformview.d.ts +60 -0
  297. package/dist/types/imageinsert/ui/imageinserturlview.d.ts +111 -0
  298. package/dist/types/imageinsert.d.ts +37 -0
  299. package/dist/types/imageinsertviaurl.d.ts +35 -0
  300. package/dist/types/imageresize/imagecustomresizeui.d.ts +65 -0
  301. package/dist/types/imageresize/imageresizebuttons.d.ts +68 -0
  302. package/dist/types/imageresize/imageresizeediting.d.ts +45 -0
  303. package/dist/types/imageresize/imageresizehandles.d.ts +35 -0
  304. package/dist/types/imageresize/resizeimagecommand.d.ts +46 -0
  305. package/dist/types/imageresize/ui/imagecustomresizeformview.d.ts +133 -0
  306. package/dist/types/imageresize/utils/getselectedimageeditornodes.d.ts +28 -0
  307. package/dist/types/imageresize/utils/getselectedimagepossibleresizerange.d.ts +28 -0
  308. package/dist/types/imageresize/utils/getselectedimagewidthinunits.d.ts +22 -0
  309. package/dist/types/imageresize/utils/tryparsedimensionwithunit.d.ts +41 -0
  310. package/dist/types/imageresize.d.ts +32 -0
  311. package/dist/types/imagesizeattributes.d.ts +38 -0
  312. package/dist/types/imagestyle/converters.d.ts +28 -0
  313. package/dist/types/imagestyle/imagestylecommand.d.ts +72 -0
  314. package/dist/types/imagestyle/imagestyleediting.d.ts +54 -0
  315. package/dist/types/imagestyle/imagestyleui.d.ts +60 -0
  316. package/dist/types/imagestyle/utils.d.ts +105 -0
  317. package/dist/types/imagestyle.d.ts +36 -0
  318. package/dist/types/imagetextalternative/imagetextalternativecommand.d.ts +38 -0
  319. package/dist/types/imagetextalternative/imagetextalternativeediting.d.ts +32 -0
  320. package/dist/types/imagetextalternative/imagetextalternativeui.d.ts +72 -0
  321. package/dist/types/imagetextalternative/ui/textalternativeformview.d.ts +94 -0
  322. package/dist/types/imagetextalternative.d.ts +33 -0
  323. package/dist/types/imagetoolbar.d.ts +39 -0
  324. package/dist/types/imageupload/imageuploadediting.d.ts +115 -0
  325. package/dist/types/imageupload/imageuploadprogress.d.ts +46 -0
  326. package/dist/types/imageupload/imageuploadui.d.ts +34 -0
  327. package/dist/types/imageupload/uploadimagecommand.d.ts +64 -0
  328. package/dist/types/imageupload/utils.d.ts +37 -0
  329. package/dist/types/imageupload.d.ts +36 -0
  330. package/dist/types/imageutils.d.ts +129 -0
  331. package/dist/types/index.d.ts +53 -0
  332. package/dist/types/pictureediting.d.ts +92 -0
  333. package/lang/contexts.json +9 -1
  334. package/lang/translations/ar.po +32 -0
  335. package/lang/translations/ast.po +32 -0
  336. package/lang/translations/az.po +32 -0
  337. package/lang/translations/bg.po +32 -0
  338. package/lang/translations/bn.po +32 -0
  339. package/lang/translations/bs.po +32 -0
  340. package/lang/translations/ca.po +32 -0
  341. package/lang/translations/cs.po +32 -0
  342. package/lang/translations/da.po +32 -0
  343. package/lang/translations/de-ch.po +32 -0
  344. package/lang/translations/de.po +32 -0
  345. package/lang/translations/el.po +32 -0
  346. package/lang/translations/en-au.po +32 -0
  347. package/lang/translations/en-gb.po +32 -0
  348. package/lang/translations/en.po +32 -0
  349. package/lang/translations/eo.po +32 -0
  350. package/lang/translations/es-co.po +32 -0
  351. package/lang/translations/es.po +32 -0
  352. package/lang/translations/et.po +32 -0
  353. package/lang/translations/eu.po +32 -0
  354. package/lang/translations/fa.po +32 -0
  355. package/lang/translations/fi.po +32 -0
  356. package/lang/translations/fr.po +32 -0
  357. package/lang/translations/gl.po +32 -0
  358. package/lang/translations/he.po +32 -0
  359. package/lang/translations/hi.po +32 -0
  360. package/lang/translations/hr.po +32 -0
  361. package/lang/translations/hu.po +32 -0
  362. package/lang/translations/id.po +32 -0
  363. package/lang/translations/it.po +32 -0
  364. package/lang/translations/ja.po +32 -0
  365. package/lang/translations/jv.po +32 -0
  366. package/lang/translations/km.po +32 -0
  367. package/lang/translations/kn.po +32 -0
  368. package/lang/translations/ko.po +32 -0
  369. package/lang/translations/ku.po +32 -0
  370. package/lang/translations/lt.po +32 -0
  371. package/lang/translations/lv.po +32 -0
  372. package/lang/translations/ms.po +32 -0
  373. package/lang/translations/nb.po +32 -0
  374. package/lang/translations/ne.po +32 -0
  375. package/lang/translations/nl.po +32 -0
  376. package/lang/translations/no.po +32 -0
  377. package/lang/translations/pl.po +32 -0
  378. package/lang/translations/pt-br.po +32 -0
  379. package/lang/translations/pt.po +32 -0
  380. package/lang/translations/ro.po +32 -0
  381. package/lang/translations/ru.po +32 -0
  382. package/lang/translations/si.po +32 -0
  383. package/lang/translations/sk.po +32 -0
  384. package/lang/translations/sq.po +32 -0
  385. package/lang/translations/sr-latn.po +32 -0
  386. package/lang/translations/sr.po +32 -0
  387. package/lang/translations/sv.po +32 -0
  388. package/lang/translations/th.po +32 -0
  389. package/lang/translations/ti.po +178 -0
  390. package/lang/translations/tk.po +32 -0
  391. package/lang/translations/tr.po +32 -0
  392. package/lang/translations/tt.po +32 -0
  393. package/lang/translations/ug.po +32 -0
  394. package/lang/translations/uk.po +32 -0
  395. package/lang/translations/ur.po +32 -0
  396. package/lang/translations/uz.po +32 -0
  397. package/lang/translations/vi.po +32 -0
  398. package/lang/translations/zh-cn.po +32 -0
  399. package/lang/translations/zh.po +32 -0
  400. package/package.json +4 -3
  401. package/src/augmentation.d.ts +2 -1
  402. package/src/imageresize/imagecustomresizeui.d.ts +61 -0
  403. package/src/imageresize/imagecustomresizeui.js +168 -0
  404. package/src/imageresize/imageresizebuttons.d.ts +0 -3
  405. package/src/imageresize/imageresizebuttons.js +95 -23
  406. package/src/imageresize/imageresizeediting.js +9 -2
  407. package/src/imageresize/imageresizehandles.js +1 -2
  408. package/src/imageresize/ui/imagecustomresizeformview.d.ts +129 -0
  409. package/src/imageresize/ui/imagecustomresizeformview.js +186 -0
  410. package/src/imageresize/utils/getselectedimageeditornodes.d.ts +24 -0
  411. package/src/imageresize/utils/getselectedimageeditornodes.js +24 -0
  412. package/src/imageresize/utils/getselectedimagepossibleresizerange.d.ts +24 -0
  413. package/src/imageresize/utils/getselectedimagepossibleresizerange.js +32 -0
  414. package/src/imageresize/utils/getselectedimagewidthinunits.d.ts +18 -0
  415. package/src/imageresize/utils/getselectedimagewidthinunits.js +41 -0
  416. package/src/imageresize/utils/tryparsedimensionwithunit.d.ts +37 -0
  417. package/src/imageresize/utils/tryparsedimensionwithunit.js +56 -0
  418. package/src/imageresize.d.ts +2 -1
  419. package/src/imageresize.js +2 -1
  420. package/src/imageupload/imageuploadediting.js +9 -0
  421. package/src/index.d.ts +1 -0
  422. package/src/index.js +1 -0
  423. package/theme/imagecaption.css +15 -1
  424. package/theme/imagecustomresizeform.css +33 -0
package/dist/index.css ADDED
@@ -0,0 +1,562 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /*
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+
10
+ /*
11
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
12
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
13
+ */
14
+
15
+ :root {
16
+ --ck-color-image-caption-background: hsl(0, 0%, 97%);
17
+ --ck-color-image-caption-text: hsl(0, 0%, 20%);
18
+ --ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%);
19
+ }
20
+
21
+ /* Content styles */
22
+ .ck-content .image > figcaption {
23
+ display: table-caption;
24
+ caption-side: bottom;
25
+ word-break: break-word;
26
+ color: var(--ck-color-image-caption-text);
27
+ background-color: var(--ck-color-image-caption-background);
28
+ padding: .6em;
29
+ font-size: .75em;
30
+ outline-offset: -1px;
31
+
32
+ /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */
33
+ }
34
+ @media (forced-colors: active) {
35
+ .ck-content .image > figcaption {
36
+ background-color: unset;
37
+ color: unset;
38
+ }
39
+ }
40
+
41
+ /* Editing styles */
42
+ @media (forced-colors: none) {
43
+ .ck.ck-editor__editable .image > figcaption.image__caption_highlighted {
44
+ animation: ck-image-caption-highlight .6s ease-out;
45
+ }
46
+ }
47
+ @media (prefers-reduced-motion: reduce) {
48
+ .ck.ck-editor__editable .image > figcaption.image__caption_highlighted {
49
+ animation: none;
50
+ }
51
+ }
52
+
53
+ @keyframes ck-image-caption-highlight {
54
+ 0% {
55
+ background-color: var(--ck-color-image-caption-highlighted-background);
56
+ }
57
+
58
+ 100% {
59
+ background-color: var(--ck-color-image-caption-background);
60
+ }
61
+ }
62
+
63
+ /*
64
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
65
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
66
+ */
67
+
68
+ .ck.ck-image-insert-url .ck-image-insert-url__action-row {
69
+ display: grid;
70
+ grid-template-columns: repeat(2, 1fr);
71
+ }
72
+
73
+ /*
74
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
75
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
76
+ */
77
+
78
+ /* Preserve aspect ratio of the resized image after introducing image height attribute. */
79
+ .ck-content img.image_resized {
80
+ height: auto;
81
+ }
82
+
83
+ .ck-content .image.image_resized {
84
+ max-width: 100%;
85
+ /*
86
+ The `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.
87
+ See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.
88
+ Fortunately, since we control the width, there is no risk that the image will look bad.
89
+ */
90
+ display: block;
91
+ box-sizing: border-box;
92
+ }
93
+
94
+ .ck-content .image.image_resized img {
95
+ /* For resized images it is the `<figure>` element that determines the image width. */
96
+ width: 100%;
97
+ }
98
+
99
+ .ck-content .image.image_resized > figcaption {
100
+ /* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */
101
+ display: block;
102
+ }
103
+
104
+ /* The resized inline image nested in the table should respect its parent size.
105
+ See https://github.com/ckeditor/ckeditor5/issues/9117. */
106
+
107
+ .ck.ck-editor__editable td .image-inline.image_resized img, .ck.ck-editor__editable th .image-inline.image_resized img {
108
+ max-width: 100%;
109
+ }
110
+
111
+ [dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
112
+ margin-right: var(--ck-spacing-standard);
113
+ }
114
+
115
+ [dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {
116
+ margin-left: var(--ck-spacing-standard);
117
+ }
118
+
119
+ .ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {
120
+ width: 4em;
121
+ }
122
+
123
+ /*
124
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
125
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
126
+ */
127
+
128
+ /*
129
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
130
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
131
+ */
132
+
133
+ .ck.ck-image-custom-resize-form {
134
+ display: flex;
135
+ flex-direction: row;
136
+ flex-wrap: nowrap;
137
+ align-items: flex-start;
138
+ }
139
+
140
+ .ck.ck-image-custom-resize-form .ck-labeled-field-view {
141
+ display: inline-block;
142
+ }
143
+
144
+ .ck.ck-image-custom-resize-form .ck-label {
145
+ display: none;
146
+ }
147
+
148
+ @media screen and (max-width: 600px) {
149
+
150
+ .ck.ck-image-custom-resize-form {
151
+ flex-wrap: wrap;
152
+ }
153
+
154
+ .ck.ck-image-custom-resize-form .ck-labeled-field-view {
155
+ flex-basis: 100%;
156
+ }
157
+
158
+ .ck.ck-image-custom-resize-form .ck-button {
159
+ flex-basis: 50%;
160
+ }
161
+ }
162
+
163
+ /*
164
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
165
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
166
+ */
167
+
168
+ :root {
169
+ --ck-image-style-spacing: 1.5em;
170
+ --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);
171
+ }
172
+
173
+ /* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback
174
+ confirming successful application of the style if image width exceeds the editor's size.
175
+ See https://github.com/ckeditor/ckeditor5/issues/9342 */
176
+
177
+ .ck-content .image-style-block-align-left,
178
+ .ck-content .image-style-block-align-right {
179
+ max-width: calc(100% - var(--ck-image-style-spacing));
180
+ }
181
+
182
+ /* Allows displaying multiple floating images in the same line.
183
+ See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */
184
+
185
+ .ck-content .image-style-align-left,
186
+ .ck-content .image-style-align-right {
187
+ clear: none;
188
+ }
189
+
190
+ .ck-content .image-style-side {
191
+ float: right;
192
+ margin-left: var(--ck-image-style-spacing);
193
+ max-width: 50%;
194
+ }
195
+
196
+ .ck-content .image-style-align-left {
197
+ float: left;
198
+ margin-right: var(--ck-image-style-spacing);
199
+ }
200
+
201
+ .ck-content .image-style-align-center {
202
+ margin-left: auto;
203
+ margin-right: auto;
204
+ }
205
+
206
+ .ck-content .image-style-align-right {
207
+ float: right;
208
+ margin-left: var(--ck-image-style-spacing);
209
+ }
210
+
211
+ .ck-content .image-style-block-align-right {
212
+ margin-right: 0;
213
+ margin-left: auto;
214
+ }
215
+
216
+ .ck-content .image-style-block-align-left {
217
+ margin-left: 0;
218
+ margin-right: auto;
219
+ }
220
+
221
+ /* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */
222
+
223
+ .ck-content p + .image-style-align-left,
224
+ .ck-content p + .image-style-align-right,
225
+ .ck-content p + .image-style-side {
226
+ margin-top: 0;
227
+ }
228
+
229
+ .ck-content .image-inline.image-style-align-left,
230
+ .ck-content .image-inline.image-style-align-right {
231
+ margin-top: var(--ck-inline-image-style-spacing);
232
+ margin-bottom: var(--ck-inline-image-style-spacing);
233
+ }
234
+
235
+ .ck-content .image-inline.image-style-align-left {
236
+ margin-right: var(--ck-inline-image-style-spacing);
237
+ }
238
+
239
+ .ck-content .image-inline.image-style-align-right {
240
+ margin-left: var(--ck-inline-image-style-spacing);
241
+ }
242
+
243
+ /* The button should display as a regular drop-down if the action button
244
+ is forced to fire the same action as the arrow button. */
245
+
246
+ .ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled),
247
+ .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled),
248
+ .ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled),
249
+ .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled),
250
+ .ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),
251
+ .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
252
+ background-color: var(--ck-color-button-on-background);
253
+ }
254
+
255
+ .ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled)::after, .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled)::after, .ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled)::after, .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled)::after, .ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover)::after, .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover)::after {
256
+ display: none;
257
+ }
258
+
259
+ .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover > .ck-splitbutton__action:not(.ck-disabled),
260
+ .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover > .ck-splitbutton__arrow:not(.ck-disabled),
261
+ .ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
262
+ background-color: var(--ck-color-button-on-hover-background);
263
+ }
264
+
265
+ /*
266
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
267
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
268
+ */
269
+
270
+ /*
271
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
272
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
273
+ */
274
+
275
+ .ck.ck-text-alternative-form {
276
+ display: flex;
277
+ flex-direction: row;
278
+ flex-wrap: nowrap;
279
+ }
280
+
281
+ .ck.ck-text-alternative-form .ck-labeled-field-view {
282
+ display: inline-block;
283
+ }
284
+
285
+ .ck.ck-text-alternative-form .ck-label {
286
+ display: none;
287
+ }
288
+
289
+ @media screen and (max-width: 600px) {
290
+
291
+ .ck.ck-text-alternative-form {
292
+ flex-wrap: wrap;
293
+ }
294
+
295
+ .ck.ck-text-alternative-form .ck-labeled-field-view {
296
+ flex-basis: 100%;
297
+ }
298
+
299
+ .ck.ck-text-alternative-form .ck-button {
300
+ flex-basis: 50%;
301
+ }
302
+ }
303
+
304
+ /*
305
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
306
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
307
+ */
308
+
309
+ /*
310
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
311
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
312
+ */
313
+
314
+ .ck-vertical-form .ck-button::after {
315
+ content: "";
316
+ width: 0;
317
+ position: absolute;
318
+ right: -1px;
319
+ top: -1px;
320
+ bottom: -1px;
321
+ z-index: 1;
322
+ }
323
+
324
+ .ck-vertical-form .ck-button:focus::after {
325
+ display: none;
326
+ }
327
+
328
+ @media screen and (max-width: 600px) {
329
+ .ck.ck-responsive-form .ck-button::after {
330
+ content: "";
331
+ width: 0;
332
+ position: absolute;
333
+ right: -1px;
334
+ top: -1px;
335
+ bottom: -1px;
336
+ z-index: 1;
337
+ }
338
+
339
+ .ck.ck-responsive-form .ck-button:focus::after {
340
+ display: none;
341
+ }
342
+ }
343
+
344
+ /*
345
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
346
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
347
+ */
348
+
349
+ .ck.ck-editor__editable .image,
350
+ .ck.ck-editor__editable .image-inline {
351
+ position: relative;
352
+ }
353
+
354
+ /* Upload progress bar. */
355
+
356
+ .ck.ck-editor__editable .image .ck-progress-bar,
357
+ .ck.ck-editor__editable .image-inline .ck-progress-bar {
358
+ position: absolute;
359
+ top: 0;
360
+ left: 0;
361
+ }
362
+
363
+ /*
364
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
365
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
366
+ */
367
+
368
+ .ck-image-upload-complete-icon {
369
+ display: block;
370
+ position: absolute;
371
+
372
+ /*
373
+ * Smaller images should have the icon closer to the border.
374
+ * Match the icon position with the linked image indicator brought by the link image feature.
375
+ */
376
+ top: min(var(--ck-spacing-medium), 6%);
377
+ right: min(var(--ck-spacing-medium), 6%);
378
+ border-radius: 50%;
379
+ z-index: 1;
380
+ }
381
+
382
+ .ck-image-upload-complete-icon::after {
383
+ content: "";
384
+ position: absolute;
385
+ }
386
+
387
+ /*
388
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
389
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
390
+ */
391
+
392
+ .ck .ck-upload-placeholder-loader {
393
+ position: absolute;
394
+ display: flex;
395
+ align-items: center;
396
+ justify-content: center;
397
+ top: 0;
398
+ left: 0;
399
+ }
400
+
401
+ .ck .ck-upload-placeholder-loader::before {
402
+ content: '';
403
+ position: relative;
404
+ }
405
+
406
+ /*
407
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
408
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
409
+ */
410
+
411
+ .ck-content .image {
412
+ display: table;
413
+ clear: both;
414
+ text-align: center;
415
+
416
+ /* Make sure there is some space between the content and the image. Center image by default. */
417
+ /* The first value should be equal to --ck-spacing-large variable if used in the editor context
418
+ to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
419
+ margin: 0.9em auto;
420
+
421
+ /* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */
422
+ min-width: 50px;
423
+ }
424
+
425
+ .ck-content .image img {
426
+ /* Prevent unnecessary margins caused by line-height (see #44). */
427
+ display: block;
428
+
429
+ /* Center the image if its width is smaller than the content's width. */
430
+ margin: 0 auto;
431
+
432
+ /* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
433
+ max-width: 100%;
434
+
435
+ /* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */
436
+ min-width: 100%;
437
+
438
+ /* Keep proportions of the block image if the height is set and the image is wider than the editor width.
439
+ See https://github.com/ckeditor/ckeditor5/issues/14542. */
440
+ height: auto;
441
+ }
442
+
443
+ .ck-content .image-inline {
444
+ /*
445
+ * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).
446
+ * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.
447
+ * This strange behavior does not happen with inline-flex.
448
+ */
449
+ display: inline-flex;
450
+
451
+ /* While being resized, don't allow the image to exceed the width of the editing root. */
452
+ max-width: 100%;
453
+
454
+ /* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */
455
+ align-items: flex-start;
456
+
457
+ /* When the picture is present it must act as a flex container to let the img resize properly */
458
+ }
459
+
460
+ .ck-content .image-inline picture {
461
+ display: flex;
462
+ }
463
+
464
+ /* When the picture is present, it must act like a resizable img. */
465
+
466
+ .ck-content .image-inline picture,
467
+ .ck-content .image-inline img {
468
+ /* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */
469
+ flex-grow: 1;
470
+ flex-shrink: 1;
471
+
472
+ /* Prevents overflowing the editing root boundaries when an inline image is very wide. */
473
+ max-width: 100%;
474
+ }
475
+
476
+ /*
477
+ * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`
478
+ * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native
479
+ * caret does, and not at the edge of <figcaption>.
480
+ */
481
+
482
+ .ck.ck-editor__editable .image > figcaption.ck-placeholder::before {
483
+ padding-left: inherit;
484
+ padding-right: inherit;
485
+
486
+ /*
487
+ * Make sure the image caption placeholder doesn't overflow the placeholder area.
488
+ * See https://github.com/ckeditor/ckeditor5/issues/9162.
489
+ */
490
+ white-space: nowrap;
491
+ overflow: hidden;
492
+ text-overflow: ellipsis;
493
+ }
494
+
495
+ /*
496
+ * See https://github.com/ckeditor/ckeditor5/issues/15115.
497
+ */
498
+
499
+ .ck.ck-editor__editable .image {
500
+ z-index: 1;
501
+
502
+ /*
503
+ * Make sure the selected image always stays on top of its siblings.
504
+ * See https://github.com/ckeditor/ckeditor5/issues/9108.
505
+ */
506
+ }
507
+
508
+ .ck.ck-editor__editable .image.ck-widget_selected {
509
+ z-index: 2;
510
+ }
511
+
512
+ /*
513
+ * See https://github.com/ckeditor/ckeditor5/issues/15115.
514
+ */
515
+
516
+ .ck.ck-editor__editable .image-inline {
517
+ z-index: 1;
518
+
519
+ /*
520
+ * Make sure the selected inline image always stays on top of its siblings.
521
+ * See https://github.com/ckeditor/ckeditor5/issues/9108.
522
+ */
523
+ }
524
+
525
+ .ck.ck-editor__editable .image-inline.ck-widget_selected {
526
+ z-index: 2;
527
+
528
+ /*
529
+ * Make sure the native browser selection style is not displayed.
530
+ * Inline image widgets have their own styles for the selected state and
531
+ * leaving this up to the browser is asking for a visual collision.
532
+ */
533
+ }
534
+
535
+ .ck.ck-editor__editable .image-inline.ck-widget_selected ::selection {
536
+ display: none;
537
+ }
538
+
539
+ /* Keep proportions of the inline image if the height is set and the image is wider than the editor width.
540
+ See https://github.com/ckeditor/ckeditor5/issues/14542. */
541
+
542
+ .ck.ck-editor__editable .image-inline img {
543
+ height: auto;
544
+ }
545
+
546
+ /* The inline image nested in the table should have its original size if not resized.
547
+ See https://github.com/ckeditor/ckeditor5/issues/9117. */
548
+
549
+ .ck.ck-editor__editable td .image-inline img, .ck.ck-editor__editable th .image-inline img {
550
+ max-width: none;
551
+ }
552
+
553
+ /*
554
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
555
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
556
+ */
557
+
558
+ .ck.ck-editor__editable img.image_placeholder {
559
+ background-size: 100% 100%;
560
+ }
561
+
562
+ /*# sourceMappingURL=index.css.map */