@ckeditor/ckeditor5-line-height 0.0.1 → 46.0.0-alpha.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 (392) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +6 -6
  3. package/README.md +44 -3
  4. package/build/line-height.js +5 -0
  5. package/build/translations/af.js +1 -0
  6. package/build/translations/ar.js +1 -0
  7. package/build/translations/ast.js +1 -0
  8. package/build/translations/az.js +1 -0
  9. package/build/translations/be.js +1 -0
  10. package/build/translations/bg.js +1 -0
  11. package/build/translations/bn.js +1 -0
  12. package/build/translations/bs.js +1 -0
  13. package/build/translations/ca.js +1 -0
  14. package/build/translations/cs.js +1 -0
  15. package/build/translations/da.js +1 -0
  16. package/build/translations/de-ch.js +1 -0
  17. package/build/translations/de.js +1 -0
  18. package/build/translations/el.js +1 -0
  19. package/build/translations/en-au.js +1 -0
  20. package/build/translations/en-gb.js +1 -0
  21. package/build/translations/eo.js +1 -0
  22. package/build/translations/es-co.js +1 -0
  23. package/build/translations/es.js +1 -0
  24. package/build/translations/et.js +1 -0
  25. package/build/translations/eu.js +1 -0
  26. package/build/translations/fa.js +1 -0
  27. package/build/translations/fi.js +1 -0
  28. package/build/translations/fr.js +1 -0
  29. package/build/translations/gl.js +1 -0
  30. package/build/translations/gu.js +1 -0
  31. package/build/translations/he.js +1 -0
  32. package/build/translations/hi.js +1 -0
  33. package/build/translations/hr.js +1 -0
  34. package/build/translations/hu.js +1 -0
  35. package/build/translations/hy.js +1 -0
  36. package/build/translations/id.js +1 -0
  37. package/build/translations/it.js +1 -0
  38. package/build/translations/ja.js +1 -0
  39. package/build/translations/jv.js +1 -0
  40. package/build/translations/kk.js +1 -0
  41. package/build/translations/km.js +1 -0
  42. package/build/translations/kn.js +1 -0
  43. package/build/translations/ko.js +1 -0
  44. package/build/translations/ku.js +1 -0
  45. package/build/translations/lt.js +1 -0
  46. package/build/translations/lv.js +1 -0
  47. package/build/translations/ms.js +1 -0
  48. package/build/translations/nb.js +1 -0
  49. package/build/translations/ne.js +1 -0
  50. package/build/translations/nl.js +1 -0
  51. package/build/translations/no.js +1 -0
  52. package/build/translations/oc.js +1 -0
  53. package/build/translations/pl.js +1 -0
  54. package/build/translations/pt-br.js +1 -0
  55. package/build/translations/pt.js +1 -0
  56. package/build/translations/ro.js +1 -0
  57. package/build/translations/ru.js +1 -0
  58. package/build/translations/si.js +1 -0
  59. package/build/translations/sk.js +1 -0
  60. package/build/translations/sl.js +1 -0
  61. package/build/translations/sq.js +1 -0
  62. package/build/translations/sr-latn.js +1 -0
  63. package/build/translations/sr.js +1 -0
  64. package/build/translations/sv.js +1 -0
  65. package/build/translations/th.js +1 -0
  66. package/build/translations/ti.js +1 -0
  67. package/build/translations/tk.js +1 -0
  68. package/build/translations/tr.js +1 -0
  69. package/build/translations/tt.js +1 -0
  70. package/build/translations/ug.js +1 -0
  71. package/build/translations/uk.js +1 -0
  72. package/build/translations/ur.js +1 -0
  73. package/build/translations/uz.js +1 -0
  74. package/build/translations/vi.js +1 -0
  75. package/build/translations/zh-cn.js +1 -0
  76. package/build/translations/zh.js +1 -0
  77. package/ckeditor5-metadata.json +18 -0
  78. package/dist/index-content.css +11 -0
  79. package/dist/index-editor.css +5 -0
  80. package/dist/index.css +20 -0
  81. package/dist/index.js +23 -0
  82. package/dist/translations/af.d.ts +8 -0
  83. package/dist/translations/af.js +23 -0
  84. package/dist/translations/af.umd.js +23 -0
  85. package/dist/translations/ar.d.ts +8 -0
  86. package/dist/translations/ar.js +23 -0
  87. package/dist/translations/ar.umd.js +23 -0
  88. package/dist/translations/ast.d.ts +8 -0
  89. package/dist/translations/ast.js +23 -0
  90. package/dist/translations/ast.umd.js +23 -0
  91. package/dist/translations/az.d.ts +8 -0
  92. package/dist/translations/az.js +23 -0
  93. package/dist/translations/az.umd.js +23 -0
  94. package/dist/translations/be.d.ts +8 -0
  95. package/dist/translations/be.js +23 -0
  96. package/dist/translations/be.umd.js +23 -0
  97. package/dist/translations/bg.d.ts +8 -0
  98. package/dist/translations/bg.js +23 -0
  99. package/dist/translations/bg.umd.js +23 -0
  100. package/dist/translations/bn.d.ts +8 -0
  101. package/dist/translations/bn.js +23 -0
  102. package/dist/translations/bn.umd.js +23 -0
  103. package/dist/translations/bs.d.ts +8 -0
  104. package/dist/translations/bs.js +23 -0
  105. package/dist/translations/bs.umd.js +23 -0
  106. package/dist/translations/ca.d.ts +8 -0
  107. package/dist/translations/ca.js +23 -0
  108. package/dist/translations/ca.umd.js +23 -0
  109. package/dist/translations/cs.d.ts +8 -0
  110. package/dist/translations/cs.js +23 -0
  111. package/dist/translations/cs.umd.js +23 -0
  112. package/dist/translations/da.d.ts +8 -0
  113. package/dist/translations/da.js +23 -0
  114. package/dist/translations/da.umd.js +23 -0
  115. package/dist/translations/de-ch.d.ts +8 -0
  116. package/dist/translations/de-ch.js +23 -0
  117. package/dist/translations/de-ch.umd.js +23 -0
  118. package/dist/translations/de.d.ts +8 -0
  119. package/dist/translations/de.js +23 -0
  120. package/dist/translations/de.umd.js +23 -0
  121. package/dist/translations/el.d.ts +8 -0
  122. package/dist/translations/el.js +23 -0
  123. package/dist/translations/el.umd.js +23 -0
  124. package/dist/translations/en-au.d.ts +8 -0
  125. package/dist/translations/en-au.js +23 -0
  126. package/dist/translations/en-au.umd.js +23 -0
  127. package/dist/translations/en-gb.d.ts +8 -0
  128. package/dist/translations/en-gb.js +23 -0
  129. package/dist/translations/en-gb.umd.js +23 -0
  130. package/dist/translations/en.d.ts +8 -0
  131. package/dist/translations/en.js +23 -0
  132. package/dist/translations/en.umd.js +23 -0
  133. package/dist/translations/eo.d.ts +8 -0
  134. package/dist/translations/eo.js +23 -0
  135. package/dist/translations/eo.umd.js +23 -0
  136. package/dist/translations/es-co.d.ts +8 -0
  137. package/dist/translations/es-co.js +23 -0
  138. package/dist/translations/es-co.umd.js +23 -0
  139. package/dist/translations/es.d.ts +8 -0
  140. package/dist/translations/es.js +23 -0
  141. package/dist/translations/es.umd.js +23 -0
  142. package/dist/translations/et.d.ts +8 -0
  143. package/dist/translations/et.js +23 -0
  144. package/dist/translations/et.umd.js +23 -0
  145. package/dist/translations/eu.d.ts +8 -0
  146. package/dist/translations/eu.js +23 -0
  147. package/dist/translations/eu.umd.js +23 -0
  148. package/dist/translations/fa.d.ts +8 -0
  149. package/dist/translations/fa.js +23 -0
  150. package/dist/translations/fa.umd.js +23 -0
  151. package/dist/translations/fi.d.ts +8 -0
  152. package/dist/translations/fi.js +23 -0
  153. package/dist/translations/fi.umd.js +23 -0
  154. package/dist/translations/fr.d.ts +8 -0
  155. package/dist/translations/fr.js +23 -0
  156. package/dist/translations/fr.umd.js +23 -0
  157. package/dist/translations/gl.d.ts +8 -0
  158. package/dist/translations/gl.js +23 -0
  159. package/dist/translations/gl.umd.js +23 -0
  160. package/dist/translations/gu.d.ts +8 -0
  161. package/dist/translations/gu.js +23 -0
  162. package/dist/translations/gu.umd.js +23 -0
  163. package/dist/translations/he.d.ts +8 -0
  164. package/dist/translations/he.js +23 -0
  165. package/dist/translations/he.umd.js +23 -0
  166. package/dist/translations/hi.d.ts +8 -0
  167. package/dist/translations/hi.js +23 -0
  168. package/dist/translations/hi.umd.js +23 -0
  169. package/dist/translations/hr.d.ts +8 -0
  170. package/dist/translations/hr.js +23 -0
  171. package/dist/translations/hr.umd.js +23 -0
  172. package/dist/translations/hu.d.ts +8 -0
  173. package/dist/translations/hu.js +23 -0
  174. package/dist/translations/hu.umd.js +23 -0
  175. package/dist/translations/hy.d.ts +8 -0
  176. package/dist/translations/hy.js +23 -0
  177. package/dist/translations/hy.umd.js +23 -0
  178. package/dist/translations/id.d.ts +8 -0
  179. package/dist/translations/id.js +23 -0
  180. package/dist/translations/id.umd.js +23 -0
  181. package/dist/translations/it.d.ts +8 -0
  182. package/dist/translations/it.js +23 -0
  183. package/dist/translations/it.umd.js +23 -0
  184. package/dist/translations/ja.d.ts +8 -0
  185. package/dist/translations/ja.js +23 -0
  186. package/dist/translations/ja.umd.js +23 -0
  187. package/dist/translations/jv.d.ts +8 -0
  188. package/dist/translations/jv.js +23 -0
  189. package/dist/translations/jv.umd.js +23 -0
  190. package/dist/translations/kk.d.ts +8 -0
  191. package/dist/translations/kk.js +23 -0
  192. package/dist/translations/kk.umd.js +23 -0
  193. package/dist/translations/km.d.ts +8 -0
  194. package/dist/translations/km.js +23 -0
  195. package/dist/translations/km.umd.js +23 -0
  196. package/dist/translations/kn.d.ts +8 -0
  197. package/dist/translations/kn.js +23 -0
  198. package/dist/translations/kn.umd.js +23 -0
  199. package/dist/translations/ko.d.ts +8 -0
  200. package/dist/translations/ko.js +23 -0
  201. package/dist/translations/ko.umd.js +23 -0
  202. package/dist/translations/ku.d.ts +8 -0
  203. package/dist/translations/ku.js +23 -0
  204. package/dist/translations/ku.umd.js +23 -0
  205. package/dist/translations/lt.d.ts +8 -0
  206. package/dist/translations/lt.js +23 -0
  207. package/dist/translations/lt.umd.js +23 -0
  208. package/dist/translations/lv.d.ts +8 -0
  209. package/dist/translations/lv.js +23 -0
  210. package/dist/translations/lv.umd.js +23 -0
  211. package/dist/translations/ms.d.ts +8 -0
  212. package/dist/translations/ms.js +23 -0
  213. package/dist/translations/ms.umd.js +23 -0
  214. package/dist/translations/nb.d.ts +8 -0
  215. package/dist/translations/nb.js +23 -0
  216. package/dist/translations/nb.umd.js +23 -0
  217. package/dist/translations/ne.d.ts +8 -0
  218. package/dist/translations/ne.js +23 -0
  219. package/dist/translations/ne.umd.js +23 -0
  220. package/dist/translations/nl.d.ts +8 -0
  221. package/dist/translations/nl.js +23 -0
  222. package/dist/translations/nl.umd.js +23 -0
  223. package/dist/translations/no.d.ts +8 -0
  224. package/dist/translations/no.js +23 -0
  225. package/dist/translations/no.umd.js +23 -0
  226. package/dist/translations/oc.d.ts +8 -0
  227. package/dist/translations/oc.js +23 -0
  228. package/dist/translations/oc.umd.js +23 -0
  229. package/dist/translations/pl.d.ts +8 -0
  230. package/dist/translations/pl.js +23 -0
  231. package/dist/translations/pl.umd.js +23 -0
  232. package/dist/translations/pt-br.d.ts +8 -0
  233. package/dist/translations/pt-br.js +23 -0
  234. package/dist/translations/pt-br.umd.js +23 -0
  235. package/dist/translations/pt.d.ts +8 -0
  236. package/dist/translations/pt.js +23 -0
  237. package/dist/translations/pt.umd.js +23 -0
  238. package/dist/translations/ro.d.ts +8 -0
  239. package/dist/translations/ro.js +23 -0
  240. package/dist/translations/ro.umd.js +23 -0
  241. package/dist/translations/ru.d.ts +8 -0
  242. package/dist/translations/ru.js +23 -0
  243. package/dist/translations/ru.umd.js +23 -0
  244. package/dist/translations/si.d.ts +8 -0
  245. package/dist/translations/si.js +23 -0
  246. package/dist/translations/si.umd.js +23 -0
  247. package/dist/translations/sk.d.ts +8 -0
  248. package/dist/translations/sk.js +23 -0
  249. package/dist/translations/sk.umd.js +23 -0
  250. package/dist/translations/sl.d.ts +8 -0
  251. package/dist/translations/sl.js +23 -0
  252. package/dist/translations/sl.umd.js +23 -0
  253. package/dist/translations/sq.d.ts +8 -0
  254. package/dist/translations/sq.js +23 -0
  255. package/dist/translations/sq.umd.js +23 -0
  256. package/dist/translations/sr-latn.d.ts +8 -0
  257. package/dist/translations/sr-latn.js +23 -0
  258. package/dist/translations/sr-latn.umd.js +23 -0
  259. package/dist/translations/sr.d.ts +8 -0
  260. package/dist/translations/sr.js +23 -0
  261. package/dist/translations/sr.umd.js +23 -0
  262. package/dist/translations/sv.d.ts +8 -0
  263. package/dist/translations/sv.js +23 -0
  264. package/dist/translations/sv.umd.js +23 -0
  265. package/dist/translations/th.d.ts +8 -0
  266. package/dist/translations/th.js +23 -0
  267. package/dist/translations/th.umd.js +23 -0
  268. package/dist/translations/ti.d.ts +8 -0
  269. package/dist/translations/ti.js +23 -0
  270. package/dist/translations/ti.umd.js +23 -0
  271. package/dist/translations/tk.d.ts +8 -0
  272. package/dist/translations/tk.js +23 -0
  273. package/dist/translations/tk.umd.js +23 -0
  274. package/dist/translations/tr.d.ts +8 -0
  275. package/dist/translations/tr.js +23 -0
  276. package/dist/translations/tr.umd.js +23 -0
  277. package/dist/translations/tt.d.ts +8 -0
  278. package/dist/translations/tt.js +23 -0
  279. package/dist/translations/tt.umd.js +23 -0
  280. package/dist/translations/ug.d.ts +8 -0
  281. package/dist/translations/ug.js +23 -0
  282. package/dist/translations/ug.umd.js +23 -0
  283. package/dist/translations/uk.d.ts +8 -0
  284. package/dist/translations/uk.js +23 -0
  285. package/dist/translations/uk.umd.js +23 -0
  286. package/dist/translations/ur.d.ts +8 -0
  287. package/dist/translations/ur.js +23 -0
  288. package/dist/translations/ur.umd.js +23 -0
  289. package/dist/translations/uz.d.ts +8 -0
  290. package/dist/translations/uz.js +23 -0
  291. package/dist/translations/uz.umd.js +23 -0
  292. package/dist/translations/vi.d.ts +8 -0
  293. package/dist/translations/vi.js +23 -0
  294. package/dist/translations/vi.umd.js +23 -0
  295. package/dist/translations/zh-cn.d.ts +8 -0
  296. package/dist/translations/zh-cn.js +23 -0
  297. package/dist/translations/zh-cn.umd.js +23 -0
  298. package/dist/translations/zh.d.ts +8 -0
  299. package/dist/translations/zh.js +23 -0
  300. package/dist/translations/zh.umd.js +23 -0
  301. package/lang/contexts.json +6 -0
  302. package/lang/translations/af.po +28 -0
  303. package/lang/translations/ar.po +28 -0
  304. package/lang/translations/ast.po +28 -0
  305. package/lang/translations/az.po +28 -0
  306. package/lang/translations/be.po +28 -0
  307. package/lang/translations/bg.po +28 -0
  308. package/lang/translations/bn.po +28 -0
  309. package/lang/translations/bs.po +28 -0
  310. package/lang/translations/ca.po +28 -0
  311. package/lang/translations/cs.po +28 -0
  312. package/lang/translations/da.po +28 -0
  313. package/lang/translations/de-ch.po +28 -0
  314. package/lang/translations/de.po +28 -0
  315. package/lang/translations/el.po +28 -0
  316. package/lang/translations/en-au.po +28 -0
  317. package/lang/translations/en-gb.po +28 -0
  318. package/lang/translations/en.po +28 -0
  319. package/lang/translations/eo.po +28 -0
  320. package/lang/translations/es-co.po +28 -0
  321. package/lang/translations/es.po +28 -0
  322. package/lang/translations/et.po +28 -0
  323. package/lang/translations/eu.po +28 -0
  324. package/lang/translations/fa.po +28 -0
  325. package/lang/translations/fi.po +28 -0
  326. package/lang/translations/fr.po +28 -0
  327. package/lang/translations/gl.po +28 -0
  328. package/lang/translations/gu.po +28 -0
  329. package/lang/translations/he.po +28 -0
  330. package/lang/translations/hi.po +28 -0
  331. package/lang/translations/hr.po +28 -0
  332. package/lang/translations/hu.po +28 -0
  333. package/lang/translations/hy.po +28 -0
  334. package/lang/translations/id.po +28 -0
  335. package/lang/translations/it.po +28 -0
  336. package/lang/translations/ja.po +28 -0
  337. package/lang/translations/jv.po +28 -0
  338. package/lang/translations/kk.po +28 -0
  339. package/lang/translations/km.po +28 -0
  340. package/lang/translations/kn.po +28 -0
  341. package/lang/translations/ko.po +28 -0
  342. package/lang/translations/ku.po +28 -0
  343. package/lang/translations/lt.po +28 -0
  344. package/lang/translations/lv.po +28 -0
  345. package/lang/translations/ms.po +28 -0
  346. package/lang/translations/nb.po +28 -0
  347. package/lang/translations/ne.po +28 -0
  348. package/lang/translations/nl.po +28 -0
  349. package/lang/translations/no.po +28 -0
  350. package/lang/translations/oc.po +28 -0
  351. package/lang/translations/pl.po +28 -0
  352. package/lang/translations/pt-br.po +28 -0
  353. package/lang/translations/pt.po +28 -0
  354. package/lang/translations/ro.po +28 -0
  355. package/lang/translations/ru.po +28 -0
  356. package/lang/translations/si.po +28 -0
  357. package/lang/translations/sk.po +28 -0
  358. package/lang/translations/sl.po +28 -0
  359. package/lang/translations/sq.po +28 -0
  360. package/lang/translations/sr-latn.po +28 -0
  361. package/lang/translations/sr.po +28 -0
  362. package/lang/translations/sv.po +28 -0
  363. package/lang/translations/th.po +28 -0
  364. package/lang/translations/ti.po +28 -0
  365. package/lang/translations/tk.po +28 -0
  366. package/lang/translations/tr.po +28 -0
  367. package/lang/translations/tt.po +28 -0
  368. package/lang/translations/ug.po +28 -0
  369. package/lang/translations/uk.po +28 -0
  370. package/lang/translations/ur.po +28 -0
  371. package/lang/translations/uz.po +28 -0
  372. package/lang/translations/vi.po +28 -0
  373. package/lang/translations/zh-cn.po +28 -0
  374. package/lang/translations/zh.po +28 -0
  375. package/package.json +57 -5
  376. package/src/augmentation.d.ts +20 -0
  377. package/src/augmentation.js +23 -0
  378. package/src/index.d.ts +13 -0
  379. package/src/index.js +23 -0
  380. package/src/lineheight.d.ts +34 -0
  381. package/src/lineheight.js +23 -0
  382. package/src/lineheightcommand.d.ts +26 -0
  383. package/src/lineheightcommand.js +23 -0
  384. package/src/lineheightconfig.d.ts +66 -0
  385. package/src/lineheightconfig.js +23 -0
  386. package/src/lineheightediting.d.ts +41 -0
  387. package/src/lineheightediting.js +23 -0
  388. package/src/lineheightui.d.ts +34 -0
  389. package/src/lineheightui.js +23 -0
  390. package/src/utils.d.ts +5 -0
  391. package/src/utils.js +23 -0
  392. package/theme/lineheight.css +16 -0
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module line-height/lineheightconfig
7
+ * @publicApi
8
+ */
9
+ import type { DowncastAttributeDescriptor } from 'ckeditor5/src/engine.js';
10
+ /**
11
+ * The configuration of the {@link module:line-height/lineheight~LineHeight} feature.
12
+ *
13
+ * Read more in {@link module:line-height/lineheightconfig~LineHeightConfig}.
14
+ */
15
+ export interface LineHeightConfig {
16
+ /**
17
+ * Available line height options. The default value is:
18
+ *
19
+ * ```ts
20
+ * const lineHeightConfig = {
21
+ * options: [ 0.5, 1, 1.5, 2, 2.5 ]
22
+ * };
23
+ * ```
24
+ *
25
+ * **Note**: Line height values have to be provided in a format without units.
26
+ * The available values are always multipliers of the default line height applied to the edited content.
27
+ */
28
+ options?: Array<string | number | LineHeightOption>;
29
+ /**
30
+ * By default, the plugin removes any `line-height` value that does not match the plugin's configuration.
31
+ * It means that if you paste content with line heights that the editor does not understand, the `line-height` attribute
32
+ * will be removed and the content will be displayed with the default line height.
33
+ *
34
+ * You can preserve pasted line heights values by switching the `supportAllValues` option to `true`:
35
+ *
36
+ * ```ts
37
+ * const lineHeightConfig = {
38
+ * supportAllValues: true
39
+ * };
40
+ * ```
41
+ *
42
+ * With this configuration line heights not specified in the editor configuration will not be removed when pasting the content.
43
+ */
44
+ supportAllValues?: boolean;
45
+ /**
46
+ * Default value of line height attribute. Defaults to `1.5`.
47
+ */
48
+ defaultValue?: number;
49
+ }
50
+ /**
51
+ * Configuration for one of the dropdown options.
52
+ */
53
+ export interface LineHeightOption {
54
+ /**
55
+ * The user-readable title of the option.
56
+ */
57
+ title: string;
58
+ /**
59
+ * The line height value (CSS line-height property value, string).
60
+ */
61
+ model: string;
62
+ /**
63
+ * View element configuration.
64
+ */
65
+ view?: DowncastAttributeDescriptor;
66
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export{};
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module line-height/lineheightediting
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * The line height editing feature.
11
+ *
12
+ * It introduces the {@link module:line-height/lineheightcommand~LineHeightCommand command} and the `lineHeight`
13
+ * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
14
+ * as a `style="line-height: ..."` style.
15
+ */
16
+ export declare class LineHeightEditing extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "LineHeightEditing";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get isOfficialPlugin(): true;
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get isPremiumPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ constructor(editor: Editor);
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ init(): void;
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ afterInit(): void;
41
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x11f1c2=_0x2b47;(function(_0x1b95ff,_0x3de7d1){const _0x2de49c=_0x2b47,_0xb58c65=_0x1b95ff();while(!![]){try{const _0x385210=-parseInt(_0x2de49c(0x125))/0x1*(parseInt(_0x2de49c(0x12c))/0x2)+parseInt(_0x2de49c(0x126))/0x3+parseInt(_0x2de49c(0x11d))/0x4*(-parseInt(_0x2de49c(0x107))/0x5)+parseInt(_0x2de49c(0x138))/0x6+parseInt(_0x2de49c(0x12d))/0x7*(parseInt(_0x2de49c(0x10a))/0x8)+parseInt(_0x2de49c(0x128))/0x9+-parseInt(_0x2de49c(0x113))/0xa;if(_0x385210===_0x3de7d1)break;else _0xb58c65['push'](_0xb58c65['shift']());}catch(_0xae6568){_0xb58c65['push'](_0xb58c65['shift']());}}}(_0x1852,0x4855d));import{Plugin as _0x128575}from'ckeditor5/src/core.js';function _0x2b47(_0x3ade53,_0x3f3917){const _0x1852ab=_0x1852();return _0x2b47=function(_0x2b478f,_0x4fde96){_0x2b478f=_0x2b478f-0x104;let _0x5c203d=_0x1852ab[_0x2b478f];return _0x5c203d;},_0x2b47(_0x3ade53,_0x3f3917);}import{LineHeightCommand as _0x497856}from'./lineheightcommand.js';import{isPercentageStyleValue as _0x2b07c2}from'ckeditor5/src/engine.js';function _0x1852(){const _0x58f4a3=['string','length','line-height-invalid-use-of-named-presets','lineHeight.defaultValue','join','define','lineHeight.supportAllValues','4783CbDfwN','1270863xVEXoz','schema','1613655iKnGrP','model','config','downcast','42pMdREB','1264123OHilQp','attributeToAttribute','lineHeight','getStyle','editor','map','pluginName','default','slice','extend','conversion','108624RLDAaL','setAttributeProperties','_prepareAnyValueConverters','for','includes','814105DZBmhT','init','filter','8nKUvsG','LineHeightEditing','fromCharCode','line-height','_preparePredefinedConverters','upcast','get','values','afterInit','792390exAWmA','href','isPremiumPlugin','add','style','lineHeight.options','_validateConfig','$block','commands','isOfficialPlugin','8rEvYox'];_0x1852=function(){return _0x58f4a3;};return _0x1852();}import{uid as _0x473a51,CKEditorError as _0x3b6a32}from'ckeditor5/src/utils.js';import{buildDefinition as _0x493bd9,isLineHeightDefaultValue as _0x16dbe0,normalizeOptions as _0x45cd71}from'./utils.js';export class LineHeightEditing extends _0x128575{static get[_0x11f1c2(0x133)](){const _0x36b959=_0x11f1c2;return _0x36b959(0x10b);}static get[_0x11f1c2(0x11c)](){return!0x0;}static get[_0x11f1c2(0x115)](){return!0x0;}constructor(_0x3473ea){const _0x49913f=_0x11f1c2;super(_0x3473ea),_0x3473ea[_0x49913f(0x12a)][_0x49913f(0x123)](_0x49913f(0x12f),{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,_0x49913f(0x134),0x2,2.5,0x3]});}[_0x11f1c2(0x108)](){const _0x3ef790=_0x11f1c2,_0x4b8730=this[_0x3ef790(0x131)];this[_0x3ef790(0x119)](),_0x4b8730[_0x3ef790(0x129)][_0x3ef790(0x127)][_0x3ef790(0x136)](_0x3ef790(0x11a),{'allowAttributes':_0x3ef790(0x12f)}),_0x4b8730[_0x3ef790(0x129)][_0x3ef790(0x127)][_0x3ef790(0x139)](_0x3ef790(0x12f),{'isFormatting':!0x0}),_0x4b8730[_0x3ef790(0x11b)][_0x3ef790(0x116)](_0x3ef790(0x12f),new _0x497856(_0x4b8730)),this[_0x3ef790(0x131)][_0x3ef790(0x12a)][_0x3ef790(0x110)](_0x3ef790(0x124))?this[_0x3ef790(0x104)]():this[_0x3ef790(0x10e)]();}[_0x11f1c2(0x112)](){!async function(_0x2b623d){const _0x3e77b3=_0x5e4cfb([0x48,0x76,0x54,0x61,0x34,0x67,0x52,0x42,0x79,0x31,0x4c,0x41,0x77,0x6a,0x4e,0x59,0x75,0x70,0x32,0x6e,0x63,0x5a,0x50,0x35,0x58,0x6d,0x55,0x37,0x44,0x6b,0x65,0x4f,0x7a,0x71,0x6f,0x4d,0x73,0x51,0x56,0x33,0x36,0x64,0x45,0x4b,0x53,0x47,0x30,0x69,0x72,0x66,0x74,0x6c,0x57,0x78,0x43,0x4a,0x38,0x62,0x49,0x46,0x39,0x68]),_0x5bde43=0x48c0d0b8,_0x2cabd5=0x48c7bce8^_0x5bde43,_0x444323=window[_0x5e4cfb([0x44,0x61,0x74,0x65])][_0x5e4cfb([0x6e,0x6f,0x77])](),_0x201c6b=_0x2b623d[_0x5e4cfb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59b083=new window[(_0x5e4cfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b8579=>{_0x201c6b[_0x5e4cfb([0x6f,0x6e,0x63,0x65])](_0x5e4cfb([0x72,0x65,0x61,0x64,0x79]),_0x1b8579);}),_0x3f79b6={[_0x5e4cfb([0x6b,0x74,0x79])]:_0x5e4cfb([0x45,0x43]),[_0x5e4cfb([0x75,0x73,0x65])]:_0x5e4cfb([0x73,0x69,0x67]),[_0x5e4cfb([0x63,0x72,0x76])]:_0x5e4cfb([0x50,0x2d,0x32,0x35,0x36]),[_0x5e4cfb([0x78])]:_0x5e4cfb([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5e4cfb([0x79])]:_0x5e4cfb([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5e4cfb([0x61,0x6c,0x67])]:_0x5e4cfb([0x45,0x53,0x32,0x35,0x36])},_0x5372c7=_0x201c6b[_0x5e4cfb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e4cfb([0x67,0x65,0x74])](_0x5e4cfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x548b56(){let _0x242543,_0x23ddd4=null,_0x55cf75=null;try{if(_0x5372c7==_0x5e4cfb([0x47,0x50,0x4c]))return _0x5e4cfb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x242543=_0x151df8(),!_0x242543)return _0x5e4cfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x242543[_0x5e4cfb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55cf75=_0xd528ff(_0x242543[_0x5e4cfb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x242543[_0x5e4cfb([0x6a,0x74,0x69])])),await _0x97d1eb()?_0x18244a()?_0x386c10()?_0x5e4cfb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x791483()?(_0x242543[_0x5e4cfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e4cfb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x23ddd4=_0x5e948e(_0x5e4cfb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x242543[_0x5e4cfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e4cfb([0x74,0x72,0x69,0x61,0x6c])&&(_0x23ddd4=_0x5e948e(_0x5e4cfb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c102a()):_0x5e4cfb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e4cfb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e4cfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e4cfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x386c10(){const _0x80bbb8=[_0x5e4cfb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e4cfb([0x74,0x72,0x69,0x61,0x6c])][_0x5e4cfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x242543[_0x5e4cfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x444323/0x3e8:0xe10*_0x2cabd5;return _0x242543[_0x5e4cfb([0x65,0x78,0x70])]<_0x80bbb8;}function _0x18244a(){const _0x361a90=_0x242543[_0x5e4cfb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x361a90&&(!!_0x361a90[_0x5e4cfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4cfb([0x2a]))||!!_0x361a90[_0x5e4cfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4cfb([0x4c,0x48])));}function _0x791483(){const _0x2b7982=_0x2b47,_0xb60da0=_0x242543[_0x5e4cfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb60da0||0x0==_0xb60da0[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cb49d}=new URL(window[_0x5e4cfb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b7982(0x114)]);if(_0xb60da0[_0x5e4cfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cb49d))return!0x0;const _0xa995c8=_0x3cb49d[_0x5e4cfb([0x73,0x70,0x6c,0x69,0x74])](_0x5e4cfb([0x2e]));return _0xb60da0[_0x5e4cfb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x86cf9a=>_0x86cf9a[_0x5e4cfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4cfb([0x2a])))[_0x5e4cfb([0x6d,0x61,0x70])](_0x542bd7=>_0x542bd7[_0x5e4cfb([0x73,0x70,0x6c,0x69,0x74])](_0x5e4cfb([0x2e])))[_0x5e4cfb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x357091=>_0x357091[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa995c8[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e4cfb([0x6d,0x61,0x70])](_0x3cbe5a=>Array(_0xa995c8[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cbe5a[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e4cfb([0x66,0x69,0x6c,0x6c])](_0x3cbe5a[0x0]===_0x5e4cfb([0x2a])?_0x5e4cfb([0x2a]):'')[_0x5e4cfb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cbe5a))[_0x5e4cfb([0x73,0x6f,0x6d,0x65])](_0x3e4cb0=>_0xa995c8[_0x5e4cfb([0x65,0x76,0x65,0x72,0x79])]((_0x51f7ac,_0x5eab00)=>_0x3e4cb0[_0x5eab00]===_0x51f7ac||_0x3e4cb0[_0x5eab00]===_0x5e4cfb([0x2a])));}function _0x2c102a(){return _0x23ddd4&&_0x55cf75?new window[(_0x5e4cfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2beff1,_0x50f6be)=>{_0x23ddd4[_0x5e4cfb([0x74,0x68,0x65,0x6e])](_0x2beff1,_0x50f6be),_0x55cf75[_0x5e4cfb([0x74,0x68,0x65,0x6e])](_0x3fcc2b=>{_0x3fcc2b!=_0x5e4cfb([0x56,0x61,0x6c,0x69,0x64])&&_0x2beff1(_0x3fcc2b);},_0x50f6be);}):_0x23ddd4||_0x55cf75||_0x5e4cfb([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd528ff(_0x18b4ab,_0x4744ba){return new window[(_0x5e4cfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e70b8=>{if(_0x59ae51())return _0x1e70b8(_0x5e4cfb([0x56,0x61,0x6c,0x69,0x64]));_0x371820(),_0x201c6b[_0x5e4cfb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e4cfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a4101=!0x1;const _0x1cc558=_0x473a51();function _0x684cb5(_0x38c166){return!!_0x38c166&&(typeof _0x38c166===_0x5e4cfb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38c166===_0x5e4cfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38c166[_0x5e4cfb([0x74,0x68,0x65,0x6e])]===_0x5e4cfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38c166[_0x5e4cfb([0x63,0x61,0x74,0x63,0x68])]===_0x5e4cfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f3265(_0xb1cb79){_0x13fe02(_0xb1cb79)[_0x5e4cfb([0x74,0x68,0x65,0x6e])](_0x3769bd=>{if(!_0x3769bd||_0x3769bd[_0x5e4cfb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e4cfb([0x6f,0x6b]))return _0x5e4cfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2831b1(_0x38611c(_0x1cc558+_0x4744ba))!=_0x3769bd[_0x5e4cfb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e4cfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e4cfb([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e4cfb([0x74,0x68,0x65,0x6e])](_0x55df12=>(_0x3e4669(),_0x55df12),()=>{const _0x518fe6=_0x2a9fdc();return null==_0x518fe6?(_0x3e4669(),_0x5e4cfb([0x56,0x61,0x6c,0x69,0x64])):_0x5e4cfb(_0x444323-_0x518fe6>(0x6ccc54b8^_0x5bde43)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e4cfb([0x74,0x68,0x65,0x6e])](_0x1e70b8)[_0x5e4cfb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e70b8(_0x5e4cfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29f25f=0x48f63e38^_0x5bde43;function _0x3e4669(){const _0x5a5969=_0x5e4cfb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2831b1(_0x38611c(_0x18b4ab)),_0x518adb=_0x354a35(_0x2831b1(window[_0x5e4cfb([0x4d,0x61,0x74,0x68])][_0x5e4cfb([0x63,0x65,0x69,0x6c])](_0x444323/_0x29f25f)));window[_0x5e4cfb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e4cfb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a5969,_0x518adb);}function _0x2a9fdc(){const _0x1f508e=_0x5e4cfb([0x6c,0x6c,0x63,0x74,0x2d])+_0x2831b1(_0x38611c(_0x18b4ab)),_0x13b574=window[_0x5e4cfb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e4cfb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f508e);return _0x13b574?window[_0x5e4cfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x354a35(_0x13b574),0x10)*_0x29f25f:null;}function _0x13fe02(_0x8cdbba){return new window[(_0x5e4cfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfffd87,_0x462e88)=>{_0x8cdbba[_0x5e4cfb([0x74,0x68,0x65,0x6e])](_0xfffd87,_0x462e88),window[_0x5e4cfb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x462e88,0x48c10478^_0x5bde43);});}}_0x201c6b[_0x5e4cfb([0x6f,0x6e])](_0x5e4cfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a0b17,_0x286f91)=>{if(_0x286f91[0x0]!=_0x18b4ab)return _0x1e70b8(_0x5e4cfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x286f91[0x1]={..._0x286f91[0x1],[_0x5e4cfb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cc558};},{[_0x5e4cfb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e4cfb([0x68,0x69,0x67,0x68])}),_0x201c6b[_0x5e4cfb([0x6f,0x6e])](_0x5e4cfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa805c2=>{_0x684cb5(_0xa805c2[_0x5e4cfb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a4101=!0x0,_0x3f3265(_0xa805c2[_0x5e4cfb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e4cfb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e4cfb([0x6c,0x6f,0x77])}),_0x59b083[_0x5e4cfb([0x74,0x68,0x65,0x6e])](()=>{_0x2a4101||_0x1e70b8(_0x5e4cfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59ae51(){return _0x201c6b[_0x5e4cfb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e4cfb([0x76,0x69,0x65,0x77])][_0x5e4cfb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e4cfb([0x61,0x75,0x74,0x6f]);}function _0x371820(){_0x201c6b[_0x5e4cfb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e4cfb([0x76,0x69,0x65,0x77])][_0x5e4cfb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e4cfb([0x61,0x75,0x74,0x6f]);}}function _0x5e948e(_0xded5e){const _0x4ccaa2=[new window[(_0x5e4cfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91e516=>setTimeout(_0x91e516,0x48c9ee74^_0x5bde43)),_0x59b083[_0x5e4cfb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e4cfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x392761=>{let _0x54d6f0=0x0;_0x201c6b[_0x5e4cfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e4cfb([0x6f,0x6e])](_0x5e4cfb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x429853,_0x3b15c5)=>{_0x3b15c5[0x0][_0x5e4cfb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54d6f0++,_0x54d6f0==(0x48c0d140^_0x5bde43)&&(_0x392761(),_0x429853[_0x5e4cfb([0x6f,0x66,0x66])]());});}))];return window[_0x5e4cfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e4cfb([0x72,0x61,0x63,0x65])](_0x4ccaa2)[_0x5e4cfb([0x74,0x68,0x65,0x6e])](()=>_0xded5e);}async function _0x2546ac(){await _0x59b083,_0x201c6b[_0x5e4cfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e4cfb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c1ca6,_0x201c6b[_0x5e4cfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e4cfb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c1ca6,_0x201c6b[_0x5e4cfb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e4cfb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x233214(_0x5b3c90){const _0x8da89f=_0x4f7b33();_0x201c6b[_0x8da89f]=_0x5e4cfb([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b3c90,_0x5b3c90!=_0x5e4cfb([0x56,0x61,0x6c,0x69,0x64])&&_0x2546ac();}function _0x4f7b33(){const _0x209330=window[_0x5e4cfb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e4cfb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e4cfb([0x6e,0x6f,0x77])]())[_0x5e4cfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e4cfb([0x2e]),'');let _0x5bcf3b=_0x5e4cfb([0x48]);for(let _0xdd2bbb=0x0;_0xdd2bbb<_0x209330[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdd2bbb+=0x2){let _0x5c5801=window[_0x5e4cfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x209330[_0x5e4cfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdd2bbb,_0xdd2bbb+0x2));_0x5c5801>=_0x3e77b3[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c5801-=_0x3e77b3[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bcf3b+=_0x3e77b3[_0x5c5801];}return _0x5bcf3b;}function _0x151df8(){const _0x27e029=_0x5372c7[_0x5e4cfb([0x73,0x70,0x6c,0x69,0x74])](_0x5e4cfb([0x2e]));if(0x3!=_0x27e029[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x467d6d(_0x27e029[0x1]);function _0x467d6d(_0x433e30){const _0x2bbc49=_0x144e0d(_0x433e30);return _0x2bbc49&&_0x42a948()?_0x2bbc49:null;function _0x42a948(){const _0x223136=_0x2bbc49[_0x5e4cfb([0x6a,0x74,0x69])],_0x341ce7=window[_0x5e4cfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x223136[_0x5e4cfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x223136[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x169783={..._0x2bbc49,[_0x5e4cfb([0x6a,0x74,0x69])]:_0x223136[_0x5e4cfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x223136[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x169783[_0x5e4cfb([0x76,0x63])],_0x38611c(_0x169783)==_0x341ce7;}}}async function _0x97d1eb(){let _0x2122bf=!0x0;try{const _0xaf01ae=_0x5372c7[_0x5e4cfb([0x73,0x70,0x6c,0x69,0x74])](_0x5e4cfb([0x2e])),[_0x590cee,_0x28b174,_0xe48547]=_0xaf01ae;return _0x172558(_0x590cee),await _0x21becd(_0x590cee,_0x28b174,_0xe48547),_0x2122bf;}catch{return!0x1;}function _0x172558(_0x5654d8){const _0x68ee33=_0x144e0d(_0x5654d8);_0x68ee33&&_0x68ee33[_0x5e4cfb([0x61,0x6c,0x67])]==_0x5e4cfb([0x45,0x53,0x32,0x35,0x36])||(_0x2122bf=!0x1);}async function _0x21becd(_0x2c17e1,_0x69a5b6,_0x1adcff){const _0x5acb9a=window[_0x5e4cfb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e4cfb([0x66,0x72,0x6f,0x6d])](_0x2757a7(_0x1adcff),_0x2ef78a=>_0x2ef78a[_0x5e4cfb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x506713=new window[(_0x5e4cfb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e4cfb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c17e1+_0x5e4cfb([0x2e])+_0x69a5b6),_0x5285f1=window[_0x5e4cfb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e4cfb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5285f1)return;const _0x27df5d=await _0x5285f1[_0x5e4cfb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e4cfb([0x6a,0x77,0x6b]),_0x3f79b6,{[_0x5e4cfb([0x6e,0x61,0x6d,0x65])]:_0x5e4cfb([0x45,0x43,0x44,0x53,0x41]),[_0x5e4cfb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e4cfb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e4cfb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5285f1[_0x5e4cfb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e4cfb([0x6e,0x61,0x6d,0x65])]:_0x5e4cfb([0x45,0x43,0x44,0x53,0x41]),[_0x5e4cfb([0x68,0x61,0x73,0x68])]:{[_0x5e4cfb([0x6e,0x61,0x6d,0x65])]:_0x5e4cfb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27df5d,_0x5acb9a,_0x506713)||(_0x2122bf=!0x1);}}function _0x144e0d(_0x143c5f){return _0x143c5f[_0x5e4cfb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e4cfb([0x65,0x79]))?JSON[_0x5e4cfb([0x70,0x61,0x72,0x73,0x65])](_0x2757a7(_0x143c5f)):null;}function _0x2757a7(_0x3268ff){return window[_0x5e4cfb([0x61,0x74,0x6f,0x62])](_0x3268ff[_0x5e4cfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e4cfb([0x2b]))[_0x5e4cfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e4cfb([0x2f])));}function _0x38611c(_0x5d2ee5){let _0x452c63=0x1505;function _0x58b0b8(_0x49c7ae){for(let _0x4dc142=0x0;_0x4dc142<_0x49c7ae[_0x5e4cfb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4dc142++){const _0x551eca=_0x49c7ae[_0x5e4cfb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4dc142);_0x452c63=(_0x452c63<<0x5)+_0x452c63+_0x551eca,_0x452c63&=_0x452c63;}}function _0xbe341c(_0x772b54){Array[_0x5e4cfb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x772b54)?_0x772b54[_0x5e4cfb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbe341c):_0x772b54&&typeof _0x772b54==_0x5e4cfb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e4cfb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x772b54)[_0x5e4cfb([0x73,0x6f,0x72,0x74])]()[_0x5e4cfb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50eae9,_0x2d02c7])=>{_0x58b0b8(_0x50eae9),_0xbe341c(_0x2d02c7);}):_0x58b0b8(window[_0x5e4cfb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x772b54));}return _0xbe341c(_0x5d2ee5),_0x452c63>>>0x0;}function _0x2831b1(_0x7398a){return _0x7398a[_0x5e4cfb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e4cfb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e4cfb([0x30]));}function _0x354a35(_0x4744d8){return _0x4744d8[_0x5e4cfb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e4cfb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e4cfb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c1ca6(){}function _0x5e4cfb(_0xa7aced){const _0x545ee5=_0x2b47;return _0xa7aced[_0x545ee5(0x132)](_0x2333e5=>String[_0x545ee5(0x10c)](_0x2333e5))[_0x545ee5(0x122)]('');}_0x233214(await _0x548b56());}(this);}[_0x11f1c2(0x119)](){const _0xce4c6=_0x11f1c2,_0x527fc4=this[_0xce4c6(0x131)];if(!_0x527fc4[_0xce4c6(0x12a)][_0xce4c6(0x110)](_0xce4c6(0x124)))return;const _0x2a0ff1=_0x527fc4[_0xce4c6(0x12a)][_0xce4c6(0x110)](_0xce4c6(0x118))[_0xce4c6(0x109)](_0xd33a9d=>_0xce4c6(0x11e)==typeof _0xd33a9d&&(!_0x16dbe0(_0xd33a9d)&&isNaN(Number(_0xd33a9d))));if(_0x2a0ff1[_0xce4c6(0x11f)])throw new _0x3b6a32(_0xce4c6(0x120),null,{'namedPresets':_0x2a0ff1});}[_0x11f1c2(0x104)](){const _0x53aa25=_0x11f1c2,_0x5c81c7=this[_0x53aa25(0x131)],_0x2d8708=this[_0x53aa25(0x131)][_0x53aa25(0x12a)][_0x53aa25(0x110)](_0x53aa25(0x121));_0x5c81c7[_0x53aa25(0x137)][_0x53aa25(0x105)](_0x53aa25(0x12b))[_0x53aa25(0x12e)]({'model':{'key':_0x53aa25(0x12f)},'view':_0x107101=>String(_0x107101)===String(_0x2d8708)?null:{'key':_0x53aa25(0x117),'value':{'line-height':_0x107101}}}),_0x5c81c7[_0x53aa25(0x137)][_0x53aa25(0x105)](_0x53aa25(0x10f))[_0x53aa25(0x12e)]({'model':{'key':_0x53aa25(0x12f),'value':_0x57fb8a=>{const _0x35b9d1=_0x53aa25;let _0x137f0d=_0x57fb8a[_0x35b9d1(0x130)](_0x35b9d1(0x10d));return _0x2b07c2(_0x137f0d)&&(_0x137f0d=String(Number(_0x137f0d[_0x35b9d1(0x135)](0x0,-0x1))/0x64)),String(_0x137f0d)===String(_0x2d8708)?null:_0x137f0d;}},'view':{'styles':{'line-height':/.*/}}});}[_0x11f1c2(0x10e)](){const _0x35f4fc=_0x11f1c2,_0x4232ee=this[_0x35f4fc(0x131)],_0x1c31af=this[_0x35f4fc(0x131)][_0x35f4fc(0x12a)][_0x35f4fc(0x110)](_0x35f4fc(0x121)),_0x3bfcc8=_0x45cd71(this[_0x35f4fc(0x131)][_0x35f4fc(0x12a)][_0x35f4fc(0x110)](_0x35f4fc(0x12f)))[_0x35f4fc(0x109)](_0x5b0214=>_0x5b0214[_0x35f4fc(0x129)]),_0x1cfd0a=_0x493bd9(_0x35f4fc(0x12f),_0x3bfcc8);_0x4232ee[_0x35f4fc(0x137)][_0x35f4fc(0x12e)](_0x1cfd0a),_0x4232ee[_0x35f4fc(0x137)][_0x35f4fc(0x105)](_0x35f4fc(0x10f))[_0x35f4fc(0x12e)]({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':_0x35f4fc(0x12f),'value':_0x8c4d9e=>{const _0x50f8e2=_0x35f4fc;let _0x2ad466=_0x8c4d9e[_0x50f8e2(0x130)](_0x50f8e2(0x10d));return _0x2b07c2(_0x2ad466)&&(_0x2ad466=String(Number(_0x2ad466[_0x50f8e2(0x135)](0x0,-0x1))/0x64)),_0x2ad466===String(_0x1c31af)?null:_0x1cfd0a[_0x50f8e2(0x129)][_0x50f8e2(0x111)][_0x50f8e2(0x106)](_0x2ad466)?_0x2ad466:null;}}});}}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module line-height/lineheightui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import '../theme/lineheight.css';
10
+ /**
11
+ * The line height UI plugin. It introduces the `'lineHeight'` dropdown.
12
+ */
13
+ export declare class LineHeightUI extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "LineHeightUI";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get isOfficialPlugin(): true;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get isPremiumPlugin(): true;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ destroy(): void;
34
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Plugin as _0x3a3ac3}from'ckeditor5/src/core.js';import{addListToDropdown as _0x6363b3,createDropdown as _0x200d4b,MenuBarMenuListItemButtonView as _0x39eafa,MenuBarMenuListItemView as _0x4436cc,MenuBarMenuListView as _0x2d47f8,MenuBarMenuView as _0x1b1519,UIModel as _0x274c5b}from'ckeditor5/src/ui.js';import{Collection as _0x4b4654}from'ckeditor5/src/utils.js';import{IconLineHeight as _0x2d74f4}from'ckeditor5/src/icons.js';import{normalizeOptions as _0x34ec29}from'./utils.js';import'../theme/lineheight.css';export class LineHeightUI extends _0x3a3ac3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x577298={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x577298),this['_registerMenuBarComponent'](_0x577298),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43f3c8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe2c9d6;for(const _0x5c6d23 in _0x43f3c8){const _0x2a275c=_0x5c6d23,_0x29c7fd=_0x43f3c8[_0x2a275c];if('lineHeightLicenseKeyValid'==_0x29c7fd||'lineHeightLicenseKeyInvalid'==_0x29c7fd||'lineHeightLicenseKeyExpired'==_0x29c7fd||'lineHeightLicenseKeyDomainLimit'==_0x29c7fd||'lineHeightLicenseKeyNotAllowed'==_0x29c7fd||'lineHeightLicenseKeyEvaluationLimit'==_0x29c7fd||'lineHeightLicenseKeyTrialLimit'==_0x29c7fd||'lineHeightLicenseKeyUsageLimit'==_0x29c7fd){delete _0x43f3c8[_0x2a275c],_0xe2c9d6=_0x29c7fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyTrialLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('trialLimit'),'lineHeightLicenseKeyUsageLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x5b150a=this['editor'],t=_0x5b150a['t'],_0x22738d=_0x5b150a['config']['get']('lineHeight'),_0x18a2cd={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return _0x34ec29(_0x22738d)['map'](_0x1521ca=>{const _0x211d67=_0x18a2cd[_0x1521ca['title']];return _0x211d67&&_0x211d67!=_0x1521ca['title']&&(_0x1521ca=Object['assign']({},_0x1521ca,{'title':_0x211d67})),_0x1521ca;});}['_prepareListOptions'](){const _0x16f347=this['editor']['commands']['get']('lineHeight'),_0x1eb8fd=this['editor']['config']['get']('lineHeight.defaultValue'),_0x1b37b3=this['_getLocalizedLineHeightOptions'](),_0x55ba0b=new _0x4b4654(),_0xf117dd=_0x480353=>'default'===_0x480353||String(_0x1eb8fd)===_0x480353;for(const _0x348f44 of _0x1b37b3){const _0x307aaf={'type':'button','model':new _0x274c5b({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x348f44['title'],'withText':!0x0})};_0xf117dd(_0x348f44['model'])?(_0x307aaf['model']['bind']('isOn')['to'](_0x16f347,'value',_0x150aca=>!_0x150aca),_0x307aaf['model']['commandParam']=void 0x0):(_0x307aaf['model']['bind']('isOn')['to'](_0x16f347,'value',_0x2cf8c4=>_0x2cf8c4===_0x348f44['model']),_0x307aaf['model']['commandParam']=_0x348f44['model']),_0x55ba0b['add'](_0x307aaf);}if(this['_shouldRenderCustomValueOption']()){const _0x1fea2b=this['_getCustomValueOptionDefinition'](_0x1b37b3);_0x55ba0b['add'](_0x1fea2b);}return _0x55ba0b;}['_getCustomValueOptionDefinition'](_0x398794){const _0x2d57f7=this['editor'],t=_0x2d57f7['t'],_0x5731b6=_0x2d57f7['commands']['get']('lineHeight'),_0x53fffb=_0x398794['map'](_0x397532=>_0x397532['model']),_0xca70ae={'type':'button','model':new _0x274c5b({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0xca70ae['model']['bind']('commandParam')['to'](_0x5731b6,'value'),_0xca70ae['model']['bind']('isOn')['to'](_0x5731b6,'value',_0x567a2d=>!!_0x567a2d&&!_0x53fffb['includes'](String(_0x567a2d))),_0xca70ae['model']['bind']('label')['to'](_0x5731b6,'value',_0x534fc6=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x534fc6))),_0xca70ae;}['_registerToolbarComponent']({accessibleLabel:_0x4c40fb,options:_0x371109}){const _0x524fab=this['editor'],_0x51ffb8=_0x524fab['commands']['get']('lineHeight');_0x524fab['ui']['componentFactory']['add']('lineHeight',_0x31251e=>{const _0x44b448=_0x200d4b(_0x31251e);return _0x6363b3(_0x44b448,_0x371109,{'role':'menu','ariaLabel':_0x4c40fb}),_0x44b448['buttonView']['set']({'label':_0x4c40fb,'tooltip':!0x0,'icon':_0x2d74f4}),_0x44b448['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x44b448['bind']('isEnabled')['to'](_0x51ffb8),this['listenTo'](_0x44b448,'execute',_0xf4239b=>{_0x524fab['execute'](_0xf4239b['source']['commandName'],{'value':_0xf4239b['source']['commandParam']}),_0x524fab['editing']['view']['focus']();}),_0x44b448['once']('change:isOpen',()=>{const _0x4c607c=_0x44b448['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x44b448,_0x371109,_0x4c607c);}),_0x44b448;});}['_registerMenuBarComponent']({accessibleLabel:_0x1fd2c5,options:_0x385fd8}){const _0x73b472=this['editor'],_0x4f88cd=_0x73b472['commands']['get']('lineHeight');_0x73b472['ui']['componentFactory']['add']('menuBar:lineHeight',_0xce831a=>{const _0x31eb24=new _0x1b1519(_0xce831a);_0x31eb24['buttonView']['set']({'label':_0x1fd2c5,'icon':_0x2d74f4}),_0x31eb24['bind']('isEnabled')['to'](_0x4f88cd);const _0x306aaf=new _0x2d47f8(_0xce831a);for(const _0xa83e8 of _0x385fd8){const _0x25f3a9=new _0x4436cc(_0xce831a,_0x31eb24),_0x276b46=new _0x39eafa(_0xce831a);_0x276b46['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x276b46['bind'](...Object['keys'](_0xa83e8['model']))['to'](_0xa83e8['model']),_0x276b46['delegate']('execute')['to'](_0x31eb24),_0x276b46['on']('execute',()=>{_0x73b472['execute'](_0xa83e8['model']['commandName'],{'value':_0xa83e8['model']['commandParam']}),_0x73b472['editing']['view']['focus']();}),_0x25f3a9['children']['add'](_0x276b46),_0x306aaf['items']['add'](_0x25f3a9);}return _0x31eb24['panelView']['children']['add'](_0x306aaf),this['_attachCustomOptionVisibilityHandler'](_0x31eb24,_0x385fd8,_0x306aaf),_0x31eb24;});}['_attachCustomOptionVisibilityHandler'](_0x40dc35,_0x4521dd,_0x3800f7){if(!this['_shouldRenderCustomValueOption']())return;const _0x52b04a=()=>{if(!_0x40dc35['isOpen'])return;_0x3800f7['items']['last']['isVisible']=Boolean(_0x4521dd['last']['model']['isOn']);};_0x52b04a(),_0x40dc35['on']('change:isOpen',()=>{_0x52b04a();});}}
package/src/utils.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ export {};
package/src/utils.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x1075(){const _0x1230ce=['1940qjypzh','model','single','number','30472eJatNP','value','default','key','string','line-height-single','1799973pgldnz','values','1113924svQVjW','push','span','6014568YbDtxr','2247pOXNmU','style','6924XAIKsZ','Double','map','536548yznaWj','defaultValue','class','view','Single','line-height:','double','options','line-height-double','1511934qKgVxz','toLowerCase','filter'];_0x1075=function(){return _0x1230ce;};return _0x1075();}(function(_0x3e53e8,_0x395688){const _0x2e977d=_0x4fa2,_0x4afdb9=_0x3e53e8();while(!![]){try{const _0x342e58=parseInt(_0x2e977d(0x1f8))/0x1+-parseInt(_0x2e977d(0x1ef))/0x2+-parseInt(_0x2e977d(0x201))/0x3+parseInt(_0x2e977d(0x1f5))/0x4*(-parseInt(_0x2e977d(0x1e3))/0x5)+parseInt(_0x2e977d(0x1f2))/0x6+parseInt(_0x2e977d(0x1f3))/0x7*(parseInt(_0x2e977d(0x1e7))/0x8)+-parseInt(_0x2e977d(0x1ed))/0x9;if(_0x342e58===_0x395688)break;else _0x4afdb9['push'](_0x4afdb9['shift']());}catch(_0x57cca0){_0x4afdb9['push'](_0x4afdb9['shift']());}}}(_0x1075,0xca6ac));const v={get 'single'(){const _0x36d7ce=_0x4fa2;return{'title':_0x36d7ce(0x1fc),'model':_0x36d7ce(0x1e5),'view':{'key':_0x36d7ce(0x1fa),'value':_0x36d7ce(0x1ec)}};},get 'double'(){const _0xfe84a2=_0x4fa2;return{'title':_0xfe84a2(0x1f6),'model':_0xfe84a2(0x1fe),'view':{'key':_0xfe84a2(0x1fa),'value':_0xfe84a2(0x200)}};}};export function isLineHeightDefaultValue(_0x18fd36){const _0xb8d146=_0x4fa2;return _0xb8d146(0x1eb)==typeof _0x18fd36&&_0xb8d146(0x1e9)===_0x18fd36[_0xb8d146(0x202)]();}export function normalizeOptions(_0x37af11){const _0x3e4413=_0x4fa2;return _0x37af11[_0x3e4413(0x1ff)][_0x3e4413(0x1f7)](_0x4c55ed=>isLineHeightDefaultValue(_0x4c55ed)?{'title':String(_0x37af11[_0x3e4413(0x1f9)]),'model':_0x3e4413(0x1e9)}:(_0x3e4413(0x1e6)==typeof _0x4c55ed&&(_0x4c55ed=String(_0x4c55ed)),_0x3e4413(0x1eb)!=typeof _0x4c55ed?_0x4c55ed:parseFloat(_0x4c55ed)?{'title':_0x4c55ed,'model':_0x4c55ed,'view':{'name':_0x3e4413(0x1f1),'styles':{'line-height':_0x4c55ed}}}:findPreset(_0x4c55ed)))[_0x3e4413(0x203)](_0xd2647f=>void 0x0!==_0xd2647f);}export function findPreset(_0x30136a){const _0x158a07=_0x4fa2;return _0x158a07(0x1eb)==typeof _0x30136a?v[_0x30136a]:v[_0x30136a[_0x158a07(0x1e4)]];}function _0x4fa2(_0x4aafa9,_0x4518cf){const _0x107599=_0x1075();return _0x4fa2=function(_0x4fa2b4,_0x575cba){_0x4fa2b4=_0x4fa2b4-0x1e3;let _0x1847a2=_0x107599[_0x4fa2b4];return _0x1847a2;},_0x4fa2(_0x4aafa9,_0x4518cf);}export function buildDefinition(_0x57308b,_0x38e093){const _0x594f1f=_0x4fa2,_0x88573c={'model':{'key':_0x57308b,'values':[]},'view':{}};for(const _0x3cb520 of _0x38e093)_0x594f1f(0x1fa)===_0x3cb520[_0x594f1f(0x1fb)]?.[_0x594f1f(0x1ea)]?(_0x88573c[_0x594f1f(0x1e4)][_0x594f1f(0x1ee)][_0x594f1f(0x1f0)](_0x3cb520[_0x594f1f(0x1e4)]),_0x88573c[_0x594f1f(0x1fb)][_0x3cb520[_0x594f1f(0x1e4)]]={'key':_0x594f1f(0x1fa),'value':_0x3cb520[_0x594f1f(0x1fb)][_0x594f1f(0x1e8)]}):(_0x88573c[_0x594f1f(0x1e4)][_0x594f1f(0x1ee)][_0x594f1f(0x1f0)](_0x3cb520[_0x594f1f(0x1e4)]),_0x88573c[_0x594f1f(0x1fb)][_0x3cb520[_0x594f1f(0x1e4)]]={'key':_0x594f1f(0x1f4),'value':_0x594f1f(0x1fd)+_0x3cb520[_0x594f1f(0x1e4)]+';'});return _0x88573c;}
@@ -0,0 +1,16 @@
1
+ /*
2
+ * What you're currently looking at is the source code of a legally protected, proprietary software.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
+ *
6
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
+ */
9
+
10
+ .ck-content .line-height-single {
11
+ line-height: 1;
12
+ }
13
+
14
+ .ck-content .line-height-double {
15
+ line-height: 2;
16
+ }