@ckeditor/ckeditor5-line-height 48.2.0 → 48.3.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 (157) hide show
  1. package/dist/augmentation.d.ts +19 -19
  2. package/dist/index.d.ts +12 -12
  3. package/dist/index.js +1 -1
  4. package/dist/integrations/todolist.d.ts +26 -26
  5. package/dist/lineheight.d.ts +29 -29
  6. package/dist/lineheightcommand.d.ts +21 -21
  7. package/dist/lineheightconfig.d.ts +58 -58
  8. package/dist/lineheightediting.d.ts +41 -41
  9. package/dist/lineheightui.d.ts +29 -29
  10. package/dist/translations/af.js +1 -1
  11. package/dist/translations/af.umd.js +1 -1
  12. package/dist/translations/ar.js +1 -1
  13. package/dist/translations/ar.umd.js +1 -1
  14. package/dist/translations/ast.js +1 -1
  15. package/dist/translations/ast.umd.js +1 -1
  16. package/dist/translations/az.js +1 -1
  17. package/dist/translations/az.umd.js +1 -1
  18. package/dist/translations/be.js +1 -1
  19. package/dist/translations/be.umd.js +1 -1
  20. package/dist/translations/bg.js +1 -1
  21. package/dist/translations/bg.umd.js +1 -1
  22. package/dist/translations/bn.js +1 -1
  23. package/dist/translations/bn.umd.js +1 -1
  24. package/dist/translations/bs.js +1 -1
  25. package/dist/translations/bs.umd.js +1 -1
  26. package/dist/translations/ca.js +1 -1
  27. package/dist/translations/ca.umd.js +1 -1
  28. package/dist/translations/cs.js +1 -1
  29. package/dist/translations/cs.umd.js +1 -1
  30. package/dist/translations/da.js +1 -1
  31. package/dist/translations/da.umd.js +1 -1
  32. package/dist/translations/de-ch.js +1 -1
  33. package/dist/translations/de-ch.umd.js +1 -1
  34. package/dist/translations/de.js +1 -1
  35. package/dist/translations/de.umd.js +1 -1
  36. package/dist/translations/el.js +1 -1
  37. package/dist/translations/el.umd.js +1 -1
  38. package/dist/translations/en-au.js +1 -1
  39. package/dist/translations/en-au.umd.js +1 -1
  40. package/dist/translations/en-gb.js +1 -1
  41. package/dist/translations/en-gb.umd.js +1 -1
  42. package/dist/translations/en.js +1 -1
  43. package/dist/translations/en.umd.js +1 -1
  44. package/dist/translations/eo.js +1 -1
  45. package/dist/translations/eo.umd.js +1 -1
  46. package/dist/translations/es-co.js +1 -1
  47. package/dist/translations/es-co.umd.js +1 -1
  48. package/dist/translations/es.js +1 -1
  49. package/dist/translations/es.umd.js +1 -1
  50. package/dist/translations/et.js +1 -1
  51. package/dist/translations/et.umd.js +1 -1
  52. package/dist/translations/eu.js +1 -1
  53. package/dist/translations/eu.umd.js +1 -1
  54. package/dist/translations/fa.js +1 -1
  55. package/dist/translations/fa.umd.js +1 -1
  56. package/dist/translations/fi.js +1 -1
  57. package/dist/translations/fi.umd.js +1 -1
  58. package/dist/translations/fr.js +1 -1
  59. package/dist/translations/fr.umd.js +1 -1
  60. package/dist/translations/gl.js +1 -1
  61. package/dist/translations/gl.umd.js +1 -1
  62. package/dist/translations/gu.js +1 -1
  63. package/dist/translations/gu.umd.js +1 -1
  64. package/dist/translations/he.js +1 -1
  65. package/dist/translations/he.umd.js +1 -1
  66. package/dist/translations/hi.js +1 -1
  67. package/dist/translations/hi.umd.js +1 -1
  68. package/dist/translations/hr.js +1 -1
  69. package/dist/translations/hr.umd.js +1 -1
  70. package/dist/translations/hu.js +1 -1
  71. package/dist/translations/hu.umd.js +1 -1
  72. package/dist/translations/hy.js +1 -1
  73. package/dist/translations/hy.umd.js +1 -1
  74. package/dist/translations/id.js +1 -1
  75. package/dist/translations/id.umd.js +1 -1
  76. package/dist/translations/it.js +1 -1
  77. package/dist/translations/it.umd.js +1 -1
  78. package/dist/translations/ja.js +1 -1
  79. package/dist/translations/ja.umd.js +1 -1
  80. package/dist/translations/jv.js +1 -1
  81. package/dist/translations/jv.umd.js +1 -1
  82. package/dist/translations/kk.js +1 -1
  83. package/dist/translations/kk.umd.js +1 -1
  84. package/dist/translations/km.js +1 -1
  85. package/dist/translations/km.umd.js +1 -1
  86. package/dist/translations/kn.js +1 -1
  87. package/dist/translations/kn.umd.js +1 -1
  88. package/dist/translations/ko.js +1 -1
  89. package/dist/translations/ko.umd.js +1 -1
  90. package/dist/translations/ku.js +1 -1
  91. package/dist/translations/ku.umd.js +1 -1
  92. package/dist/translations/lt.js +1 -1
  93. package/dist/translations/lt.umd.js +1 -1
  94. package/dist/translations/lv.js +1 -1
  95. package/dist/translations/lv.umd.js +1 -1
  96. package/dist/translations/ms.js +1 -1
  97. package/dist/translations/ms.umd.js +1 -1
  98. package/dist/translations/nb.js +1 -1
  99. package/dist/translations/nb.umd.js +1 -1
  100. package/dist/translations/ne.js +1 -1
  101. package/dist/translations/ne.umd.js +1 -1
  102. package/dist/translations/nl.js +1 -1
  103. package/dist/translations/nl.umd.js +1 -1
  104. package/dist/translations/no.js +1 -1
  105. package/dist/translations/no.umd.js +1 -1
  106. package/dist/translations/oc.js +1 -1
  107. package/dist/translations/oc.umd.js +1 -1
  108. package/dist/translations/pl.js +1 -1
  109. package/dist/translations/pl.umd.js +1 -1
  110. package/dist/translations/pt-br.js +1 -1
  111. package/dist/translations/pt-br.umd.js +1 -1
  112. package/dist/translations/pt.js +1 -1
  113. package/dist/translations/pt.umd.js +1 -1
  114. package/dist/translations/ro.js +1 -1
  115. package/dist/translations/ro.umd.js +1 -1
  116. package/dist/translations/ru.js +1 -1
  117. package/dist/translations/ru.umd.js +1 -1
  118. package/dist/translations/si.js +1 -1
  119. package/dist/translations/si.umd.js +1 -1
  120. package/dist/translations/sk.js +1 -1
  121. package/dist/translations/sk.umd.js +1 -1
  122. package/dist/translations/sl.js +1 -1
  123. package/dist/translations/sl.umd.js +1 -1
  124. package/dist/translations/sq.js +1 -1
  125. package/dist/translations/sq.umd.js +1 -1
  126. package/dist/translations/sr-latn.js +1 -1
  127. package/dist/translations/sr-latn.umd.js +1 -1
  128. package/dist/translations/sr.js +1 -1
  129. package/dist/translations/sr.umd.js +1 -1
  130. package/dist/translations/sv.js +1 -1
  131. package/dist/translations/sv.umd.js +1 -1
  132. package/dist/translations/th.js +1 -1
  133. package/dist/translations/th.umd.js +1 -1
  134. package/dist/translations/ti.js +1 -1
  135. package/dist/translations/ti.umd.js +1 -1
  136. package/dist/translations/tk.js +1 -1
  137. package/dist/translations/tk.umd.js +1 -1
  138. package/dist/translations/tr.js +1 -1
  139. package/dist/translations/tr.umd.js +1 -1
  140. package/dist/translations/tt.js +1 -1
  141. package/dist/translations/tt.umd.js +1 -1
  142. package/dist/translations/ug.js +1 -1
  143. package/dist/translations/ug.umd.js +1 -1
  144. package/dist/translations/uk.js +1 -1
  145. package/dist/translations/uk.umd.js +1 -1
  146. package/dist/translations/ur.js +1 -1
  147. package/dist/translations/ur.umd.js +1 -1
  148. package/dist/translations/uz.js +1 -1
  149. package/dist/translations/uz.umd.js +1 -1
  150. package/dist/translations/vi.js +1 -1
  151. package/dist/translations/vi.umd.js +1 -1
  152. package/dist/translations/zh-cn.js +1 -1
  153. package/dist/translations/zh-cn.umd.js +1 -1
  154. package/dist/translations/zh.js +1 -1
  155. package/dist/translations/zh.umd.js +1 -1
  156. package/dist/utils.d.ts +0 -4
  157. package/package.json +7 -7
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, 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
- import type { LineHeight, LineHeightEditing, LineHeightUI, LineHeightConfig, LineHeightTodoListIntegration } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface PluginsMap {
8
- [LineHeight.pluginName]: LineHeight;
9
- [LineHeightEditing.pluginName]: LineHeightEditing;
10
- [LineHeightUI.pluginName]: LineHeightUI;
11
- [LineHeightTodoListIntegration.pluginName]: LineHeightTodoListIntegration;
12
- }
13
- interface EditorConfig {
14
- /**
15
- * The configuration of the {@link module:line-height/lineheight~LineHeight} feature.
16
- *
17
- * Read more in {@link module:line-height/lineheightconfig~LineHeightConfig}.
18
- */
19
- lineHeight?: LineHeightConfig;
20
- }
2
+ * @license Copyright (c) 2003-2026, 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
+ import type { LineHeight, LineHeightEditing, LineHeightUI, LineHeightConfig, LineHeightTodoListIntegration } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface PluginsMap {
8
+ [LineHeight.pluginName]: LineHeight;
9
+ [LineHeightEditing.pluginName]: LineHeightEditing;
10
+ [LineHeightUI.pluginName]: LineHeightUI;
11
+ [LineHeightTodoListIntegration.pluginName]: LineHeightTodoListIntegration;
12
+ }
13
+ interface EditorConfig {
14
+ /**
15
+ * The configuration of the {@link module:line-height/lineheight~LineHeight} feature.
16
+ *
17
+ * Read more in {@link module:line-height/lineheightconfig~LineHeightConfig}.
18
+ */
19
+ lineHeight?: LineHeightConfig;
20
+ }
21
21
  }
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, 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
5
  /**
6
- * @module line-height
7
- */
8
- export { LineHeight } from './lineheight.js';
9
- export { LineHeightEditing } from './lineheightediting.js';
10
- export { LineHeightUI } from './lineheightui.js';
11
- export { LineHeightTodoListIntegration } from './integrations/todolist.js';
12
- export { LineHeightCommand } from './lineheightcommand.js';
13
- export type { LineHeightConfig, LineHeightOption } from './lineheightconfig.js';
14
- import './augmentation.js';
6
+ * @module line-height
7
+ */
8
+ export { LineHeight } from "./lineheight.js";
9
+ export { LineHeightEditing } from "./lineheightediting.js";
10
+ export { LineHeightUI } from "./lineheightui.js";
11
+ export { LineHeightTodoListIntegration } from "./integrations/todolist.js";
12
+ export { LineHeightCommand } from "./lineheightcommand.js";
13
+ export type { LineHeightConfig, LineHeightOption } from "./lineheightconfig.js";
14
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x2cf649,Plugin as _0x195f55}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x1dcb0f,CKEditorError as _0x29d8c5,uid as _0x5f3a9f,Collection as _0x169f4f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x174fbb,isPercentageStyleValue as _0x3aa9f9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0xc68efe,createDropdown as _0xec802f,addListToDropdown as _0x7796bb,MenuBarMenuView as _0x161b5a,MenuBarMenuListView as _0x52072d,MenuBarMenuListItemView as _0x2b60bd,MenuBarMenuListItemButtonView as _0x366990}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x245f0a}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x2cf649{['refresh'](){const _0x584f85=this['editor']['model']['document'],_0x11a590=_0x1dcb0f(_0x584f85['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x11a590)&&this['_canHaveLineHeight'](_0x11a590),this['value']=this['isEnabled']&&_0x11a590['getAttribute']('lineHeight');}['execute'](_0x3a6c4f={}){const _0x22214a=this['editor']['model'],_0x1178b2=_0x22214a['document']['selection'],_0x3a3354=_0x3a6c4f['value'];_0x22214a['change'](_0x75ec33=>{const _0x589efb=Array['from'](_0x1178b2['getSelectedBlocks']())['filter'](_0x15d548=>this['_canHaveLineHeight'](_0x15d548));for(const _0x5389ea of _0x589efb)_0x3a3354?_0x75ec33['setAttribute']('lineHeight',_0x3a3354,_0x5389ea):_0x75ec33['removeAttribute']('lineHeight',_0x5389ea);});}['_canHaveLineHeight'](_0x1b0730){return this['editor']['model']['schema']['checkAttribute'](_0x1b0730,'lineHeight');}}const p={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x1a0eba){return'string'==typeof _0x1a0eba&&'default'===_0x1a0eba['toLowerCase']();}function L(_0x2d0b6d){return _0x2d0b6d['options']['map'](_0x4dd4a6=>{return H(_0x4dd4a6)?{'title':String(_0x2d0b6d['defaultValue']),'model':'default'}:('number'==typeof _0x4dd4a6&&(_0x4dd4a6=String(_0x4dd4a6)),'string'!=typeof _0x4dd4a6?_0x4dd4a6:parseFloat(_0x4dd4a6)?{'title':_0x4dd4a6,'model':_0x4dd4a6,'view':{'name':'span','styles':{'line-height':_0x4dd4a6}}}:'string'==typeof(_0x42e22d=_0x4dd4a6)?p[_0x42e22d]:p[_0x42e22d['model']]);var _0x42e22d;})['filter'](_0x53aa6f=>void 0x0!==_0x53aa6f);}class LineHeightTodoListIntegration extends _0x195f55{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5b321d,conversion:_0x513076}=this['editor'];if(!_0x5b321d['has']('ListEditing')||!_0x5b321d['has']('TodoListEditing'))return;_0x5b321d['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x5428bb,_0x2cb21c,_0x5c45bc,_0x39a0f8,_0x351b62){'todo'==_0x351b62['getAttribute']('listType')&&_0x2cb21c&&(_0x5428bb['addClass']('ck-list-marker-line-height',_0x5c45bc),_0x5428bb['setStyle']('--ck-content-list-marker-line-height',_0x2cb21c,_0x5c45bc));}}),_0x513076['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x513076['for']('upcast')['add'](_0x59ee77=>{_0x59ee77['on']('element:li',function(_0x11e2ad){const _0x25d90e=new _0x174fbb(_0x11e2ad);return(_0x1804cd,_0x148135,_0x26c183)=>{const _0x37dff3=_0x25d90e['match'](_0x148135['viewItem']);if(!_0x37dff3)return;const _0x4aecd2=_0x37dff3['match'];_0x4aecd2['name']=!0x1,_0x26c183['consumable']['consume'](_0x148135['viewItem'],_0x4aecd2);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0x195f55{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d25b8){super(_0x3d25b8),_0x3d25b8['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x435d81=this['editor'];this['_validateConfig'](),_0x435d81['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x435d81['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x435d81['commands']['add']('lineHeight',new LineHeightCommand(_0x435d81)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x5b8e1d){const _0x46fd67=_0x36b724([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0x2d189a=0x45ddd215,_0x168427=0x45da59c5^_0x2d189a,_0x168d36=window[_0x36b724([0x44,0x61,0x74,0x65])][_0x36b724([0x6e,0x6f,0x77])](),_0x206623=_0x5b8e1d[_0x36b724([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29a0f7=new window[(_0x36b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5803ee=>{_0x206623[_0x36b724([0x6f,0x6e,0x63,0x65])](_0x36b724([0x72,0x65,0x61,0x64,0x79]),_0x5803ee);}),_0x566610={[_0x36b724([0x6b,0x74,0x79])]:_0x36b724([0x45,0x43]),[_0x36b724([0x75,0x73,0x65])]:_0x36b724([0x73,0x69,0x67]),[_0x36b724([0x63,0x72,0x76])]:_0x36b724([0x50,0x2d,0x32,0x35,0x36]),[_0x36b724([0x78])]:_0x36b724([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]),[_0x36b724([0x79])]:_0x36b724([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]),[_0x36b724([0x61,0x6c,0x67])]:_0x36b724([0x45,0x53,0x32,0x35,0x36])},_0x1eab3b=_0x206623[_0x36b724([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x36b724([0x67,0x65,0x74])](_0x36b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe5e7c1(){let _0x3984fa,_0x1b420e=null,_0x4a9e77=null;try{if(_0x1eab3b==_0x36b724([0x47,0x50,0x4c]))return _0x36b724([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3984fa=_0x527b2f(),!_0x3984fa)return _0x36b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3984fa[_0x36b724([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a9e77=_0x4cf0a4(_0x3984fa[_0x36b724([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3984fa[_0x36b724([0x6a,0x74,0x69])])),await _0x45897e()?_0x414f2a()?_0x1722f1()?_0x36b724([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e800e()?(_0x3984fa[_0x36b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x36b724([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b420e=_0x256e45(_0x36b724([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x501209()):_0x36b724([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x36b724([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x36b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x36b724([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1722f1(){const _0x89c0c0=[_0x36b724([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x36b724([0x74,0x72,0x69,0x61,0x6c])][_0x36b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3984fa[_0x36b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x168d36/0x3e8:0xe10*_0x168427;return _0x3984fa[_0x36b724([0x65,0x78,0x70])]<_0x89c0c0;}function _0x414f2a(){const _0x38fa82=_0x3984fa[_0x36b724([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x38fa82&&(!!_0x38fa82[_0x36b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b724([0x2a]))||!!_0x38fa82[_0x36b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b724([0x4c,0x48])));}function _0x1e800e(){const _0x5dbfc3=_0x3984fa[_0x36b724([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5dbfc3||0x0==_0x5dbfc3[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19e6fd}=new URL(window[_0x36b724([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5dbfc3[_0x36b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19e6fd))return!0x0;const _0x3c2878=_0x19e6fd[_0x36b724([0x73,0x70,0x6c,0x69,0x74])](_0x36b724([0x2e]));return _0x5dbfc3[_0x36b724([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x120bcb=>_0x120bcb[_0x36b724([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36b724([0x2a])))[_0x36b724([0x6d,0x61,0x70])](_0x58bdef=>_0x58bdef[_0x36b724([0x73,0x70,0x6c,0x69,0x74])](_0x36b724([0x2e])))[_0x36b724([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x465cf2=>_0x465cf2[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c2878[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36b724([0x6d,0x61,0x70])](_0x199c65=>Array(_0x3c2878[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x199c65[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x36b724([0x66,0x69,0x6c,0x6c])](_0x199c65[0x0]===_0x36b724([0x2a])?_0x36b724([0x2a]):'')[_0x36b724([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x199c65))[_0x36b724([0x73,0x6f,0x6d,0x65])](_0x2ce40a=>_0x3c2878[_0x36b724([0x65,0x76,0x65,0x72,0x79])]((_0x3e3a19,_0x4ed874)=>_0x2ce40a[_0x4ed874]===_0x3e3a19||_0x2ce40a[_0x4ed874]===_0x36b724([0x2a])));}function _0x501209(){return _0x1b420e&&_0x4a9e77?new window[(_0x36b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x280639,_0x41e03e)=>{_0x1b420e[_0x36b724([0x74,0x68,0x65,0x6e])](_0x280639,_0x41e03e),_0x4a9e77[_0x36b724([0x74,0x68,0x65,0x6e])](_0x23be9b=>{_0x23be9b!=_0x36b724([0x56,0x61,0x6c,0x69,0x64])&&_0x280639(_0x23be9b);},_0x41e03e);}):_0x1b420e||_0x4a9e77||_0x36b724([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cf0a4(_0x4e9627,_0x4052c4){return new window[(_0x36b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b6c4b=>{if(_0x100c46())return _0x5b6c4b(_0x36b724([0x56,0x61,0x6c,0x69,0x64]));_0x196111(),_0x206623[_0x36b724([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x36b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x99ed3e=!0x1;const _0x459240=_0x5f3a9f();function _0x45eaa1(_0x1875af){return!!_0x1875af&&(typeof _0x1875af===_0x36b724([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1875af===_0x36b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1875af[_0x36b724([0x74,0x68,0x65,0x6e])]===_0x36b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1875af[_0x36b724([0x63,0x61,0x74,0x63,0x68])]===_0x36b724([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x267ac4(_0x12c398){_0x6edfb0(_0x12c398)[_0x36b724([0x74,0x68,0x65,0x6e])](_0x5c75be=>{if(!_0x5c75be||_0x5c75be[_0x36b724([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x36b724([0x6f,0x6b]))return _0x36b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cc42f(_0x235fd3(_0x459240+_0x4052c4))!=_0x5c75be[_0x36b724([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x36b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x36b724([0x56,0x61,0x6c,0x69,0x64]);})[_0x36b724([0x74,0x68,0x65,0x6e])](_0x24b373=>(_0x380bc5(),_0x24b373),()=>{const _0xed9ffb=_0x578cc1();return null==_0xed9ffb?(_0x380bc5(),_0x36b724([0x56,0x61,0x6c,0x69,0x64])):_0x36b724(_0x168d36-_0xed9ffb>(0x61d15615^_0x2d189a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x36b724([0x74,0x68,0x65,0x6e])](_0x5b6c4b)[_0x36b724([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b6c4b(_0x36b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2de1de=0x45eb3c95^_0x2d189a;function _0x380bc5(){const _0x16b2e5=_0x36b724([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cc42f(_0x235fd3(_0x4e9627)),_0x1e413d=_0x53070a(_0x1cc42f(window[_0x36b724([0x4d,0x61,0x74,0x68])][_0x36b724([0x63,0x65,0x69,0x6c])](_0x168d36/_0x2de1de)));window[_0x36b724([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36b724([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16b2e5,_0x1e413d);}function _0x578cc1(){const _0x149839=_0x36b724([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cc42f(_0x235fd3(_0x4e9627)),_0x700b1c=window[_0x36b724([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x36b724([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x149839);return _0x700b1c?window[_0x36b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53070a(_0x700b1c),0x10)*_0x2de1de:null;}function _0x6edfb0(_0x56549f){return new window[(_0x36b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x456df2,_0xdff51c)=>{_0x56549f[_0x36b724([0x74,0x68,0x65,0x6e])](_0x456df2,_0xdff51c),window[_0x36b724([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdff51c,0x45dc06d5^_0x2d189a);});}}_0x206623[_0x36b724([0x6f,0x6e])](_0x36b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x272f94,_0x43dafa)=>{if(_0x43dafa[0x0]!=_0x4e9627)return _0x5b6c4b(_0x36b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43dafa[0x1]={..._0x43dafa[0x1],[_0x36b724([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x459240};},{[_0x36b724([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36b724([0x68,0x69,0x67,0x68])}),_0x206623[_0x36b724([0x6f,0x6e])](_0x36b724([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a5e52=>{_0x45eaa1(_0x4a5e52[_0x36b724([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x99ed3e=!0x0,_0x267ac4(_0x4a5e52[_0x36b724([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x36b724([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x36b724([0x6c,0x6f,0x77])}),_0x29a0f7[_0x36b724([0x74,0x68,0x65,0x6e])](()=>{_0x99ed3e||_0x5b6c4b(_0x36b724([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100c46(){return _0x206623[_0x36b724([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36b724([0x76,0x69,0x65,0x77])][_0x36b724([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x36b724([0x61,0x75,0x74,0x6f]);}function _0x196111(){_0x206623[_0x36b724([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36b724([0x76,0x69,0x65,0x77])][_0x36b724([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36b724([0x61,0x75,0x74,0x6f]);}}function _0x256e45(_0x1dbded){const _0x3bd3ec=[new window[(_0x36b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a0971=>setTimeout(_0x4a0971,0x45d4ecd9^_0x2d189a)),_0x29a0f7[_0x36b724([0x74,0x68,0x65,0x6e])](()=>new window[(_0x36b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5493ec=>{let _0x422932=0x0;_0x206623[_0x36b724([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b724([0x6f,0x6e])](_0x36b724([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a8ca1,_0xc8675)=>{_0xc8675[0x0][_0x36b724([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x422932++,_0x422932==(0x45ddd7fd^_0x2d189a)&&(_0x5493ec(),_0x1a8ca1[_0x36b724([0x6f,0x66,0x66])]());});}))];return window[_0x36b724([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36b724([0x72,0x61,0x63,0x65])](_0x3bd3ec)[_0x36b724([0x74,0x68,0x65,0x6e])](()=>_0x1dbded);}async function _0x2f1728(){await _0x29a0f7,_0x206623[_0x36b724([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b724([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x311f3a,_0x206623[_0x36b724([0x6d,0x6f,0x64,0x65,0x6c])][_0x36b724([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x311f3a,_0x206623[_0x36b724([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x36b724([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f99f2(_0x3ad11a){const _0x381b61=_0x56993b();_0x206623[_0x381b61]=_0x36b724([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ad11a,_0x3ad11a!=_0x36b724([0x56,0x61,0x6c,0x69,0x64])&&_0x2f1728();}function _0x56993b(){const _0x69b01e=window[_0x36b724([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x36b724([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x36b724([0x6e,0x6f,0x77])]())[_0x36b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x36b724([0x2e]),'');let _0x5374b4=_0x36b724([0x50]);for(let _0x46d831=0x0;_0x46d831<_0x69b01e[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46d831+=0x2){let _0x45bdc4=window[_0x36b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69b01e[_0x36b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46d831,_0x46d831+0x2));_0x45bdc4>=_0x46fd67[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45bdc4-=_0x46fd67[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5374b4+=_0x46fd67[_0x45bdc4];}return _0x5374b4;}function _0x527b2f(){const _0x347c7b=_0x1eab3b[_0x36b724([0x73,0x70,0x6c,0x69,0x74])](_0x36b724([0x2e]));if(0x3!=_0x347c7b[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11540f(_0x347c7b[0x1]);function _0x11540f(_0x18ca2a){const _0x46f8a9=_0x21e4b9(_0x18ca2a);return _0x46f8a9&&_0x36cce8()?_0x46f8a9:null;function _0x36cce8(){const _0x5e93bd=_0x46f8a9[_0x36b724([0x6a,0x74,0x69])],_0x241982=window[_0x36b724([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e93bd[_0x36b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e93bd[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e2c5d={..._0x46f8a9,[_0x36b724([0x6a,0x74,0x69])]:_0x5e93bd[_0x36b724([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e93bd[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e2c5d[_0x36b724([0x76,0x63])],_0x235fd3(_0x3e2c5d)==_0x241982;}}}async function _0x45897e(){let _0x2fce59=!0x0;try{const _0xd2d7a3=_0x1eab3b[_0x36b724([0x73,0x70,0x6c,0x69,0x74])](_0x36b724([0x2e])),[_0x5e6716,_0x2aed3e,_0x56f8d0]=_0xd2d7a3;return _0x28c391(_0x5e6716),await _0x1dac65(_0x5e6716,_0x2aed3e,_0x56f8d0),_0x2fce59;}catch{return!0x1;}function _0x28c391(_0x2ae876){const _0xd70aca=_0x21e4b9(_0x2ae876);_0xd70aca&&_0xd70aca[_0x36b724([0x61,0x6c,0x67])]==_0x36b724([0x45,0x53,0x32,0x35,0x36])||(_0x2fce59=!0x1);}async function _0x1dac65(_0x58a3fd,_0x3909cb,_0x152149){const _0x312d8e=window[_0x36b724([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x36b724([0x66,0x72,0x6f,0x6d])](_0x5367b9(_0x152149),_0x57d9dc=>_0x57d9dc[_0x36b724([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ad9a0=new window[(_0x36b724([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x36b724([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58a3fd+_0x36b724([0x2e])+_0x3909cb),_0x5e6bf4=window[_0x36b724([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x36b724([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e6bf4)return;const _0xba4ea1=await _0x5e6bf4[_0x36b724([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x36b724([0x6a,0x77,0x6b]),_0x566610,{[_0x36b724([0x6e,0x61,0x6d,0x65])]:_0x36b724([0x45,0x43,0x44,0x53,0x41]),[_0x36b724([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x36b724([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x36b724([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e6bf4[_0x36b724([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x36b724([0x6e,0x61,0x6d,0x65])]:_0x36b724([0x45,0x43,0x44,0x53,0x41]),[_0x36b724([0x68,0x61,0x73,0x68])]:{[_0x36b724([0x6e,0x61,0x6d,0x65])]:_0x36b724([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xba4ea1,_0x312d8e,_0x2ad9a0)||(_0x2fce59=!0x1);}}function _0x21e4b9(_0x17fcfe){return _0x17fcfe[_0x36b724([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x36b724([0x65,0x79]))?JSON[_0x36b724([0x70,0x61,0x72,0x73,0x65])](_0x5367b9(_0x17fcfe)):null;}function _0x5367b9(_0x33073e){return window[_0x36b724([0x61,0x74,0x6f,0x62])](_0x33073e[_0x36b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x36b724([0x2b]))[_0x36b724([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x36b724([0x2f])));}function _0x235fd3(_0x28a1ba){let _0x41e529=0x1505;function _0x48349c(_0x3db7ef){for(let _0x2187c2=0x0;_0x2187c2<_0x3db7ef[_0x36b724([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2187c2++){const _0x91bcee=_0x3db7ef[_0x36b724([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2187c2);_0x41e529=(_0x41e529<<0x5)+_0x41e529+_0x91bcee,_0x41e529&=_0x41e529;}}function _0x5c1336(_0x250cbe){Array[_0x36b724([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x250cbe)?_0x250cbe[_0x36b724([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c1336):_0x250cbe&&typeof _0x250cbe==_0x36b724([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x36b724([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x250cbe)[_0x36b724([0x73,0x6f,0x72,0x74])]()[_0x36b724([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4dbbf3,_0x5b779a])=>{_0x48349c(_0x4dbbf3),_0x5c1336(_0x5b779a);}):_0x48349c(window[_0x36b724([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x250cbe));}return _0x5c1336(_0x28a1ba),_0x41e529>>>0x0;}function _0x1cc42f(_0x19e91e){return _0x19e91e[_0x36b724([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x36b724([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x36b724([0x30]));}function _0x53070a(_0x4f715d){return _0x4f715d[_0x36b724([0x73,0x70,0x6c,0x69,0x74])]('')[_0x36b724([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x36b724([0x6a,0x6f,0x69,0x6e])]('');}function _0x311f3a(){}function _0x36b724(_0x44ba43){return _0x44ba43['map'](_0x1f521b=>String['fromCharCode'](_0x1f521b))['join']('');}_0x4f99f2(await _0xe5e7c1());}(this);}['_validateConfig'](){const _0x35e04e=this['editor'];if(!_0x35e04e['config']['get']('lineHeight.supportAllValues'))return;const _0x21ce2c=_0x35e04e['config']['get']('lineHeight.options')['filter'](_0x572651=>'string'==typeof _0x572651&&(!H(_0x572651)&&isNaN(Number(_0x572651))));if(_0x21ce2c['length'])throw new _0x29d8c5('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x21ce2c});}['_prepareAnyValueConverters'](){const _0x2fce6a=this['editor'],_0x147320=this['editor']['config']['get']('lineHeight.defaultValue');_0x2fce6a['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x56210f=>String(_0x56210f)===String(_0x147320)?null:{'key':'style','value':{'line-height':_0x56210f}}}),_0x2fce6a['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x11ec6b=>{let _0x5a5c33=_0x11ec6b['getStyle']('line-height');return _0x3aa9f9(_0x5a5c33)&&(_0x5a5c33=String(Number(_0x5a5c33['slice'](0x0,-0x1))/0x64)),String(_0x5a5c33)===String(_0x147320)?null:_0x5a5c33;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0xb7e920=this['editor'],_0x1099c7=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3daafd=function(_0x2e7271,_0x1236f8){const _0x50ed12={'model':{'key':_0x2e7271,'values':[]},'view':{}};for(const _0x4df0b2 of _0x1236f8)'class'===_0x4df0b2['view']?.['key']?(_0x50ed12['model']['values']['push'](_0x4df0b2['model']),_0x50ed12['view'][_0x4df0b2['model']]={'key':'class','value':_0x4df0b2['view']['value']}):(_0x50ed12['model']['values']['push'](_0x4df0b2['model']),_0x50ed12['view'][_0x4df0b2['model']]={'key':'style','value':'line-height:'+_0x4df0b2['model']+';'});return _0x50ed12;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x435809=>_0x435809['model']));_0xb7e920['conversion']['attributeToAttribute'](_0x3daafd),_0xb7e920['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x54fa3c=>{let _0x2aa87e=_0x54fa3c['getStyle']('line-height');return _0x3aa9f9(_0x2aa87e)&&(_0x2aa87e=String(Number(_0x2aa87e['slice'](0x0,-0x1))/0x64)),_0x2aa87e===String(_0x1099c7)?null:_0x3daafd['model']['values']['includes'](_0x2aa87e)?_0x2aa87e:null;}}});}}class LineHeightUI extends _0x195f55{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x127e43={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x127e43),this['_registerMenuBarComponent'](_0x127e43),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2bd7f7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ea260;for(const _0xee510e in _0x2bd7f7){const _0x3bd54a=_0xee510e,_0xcedf84=_0x2bd7f7[_0x3bd54a];if('lineHeightLicenseKeyValid'==_0xcedf84||'lineHeightLicenseKeyInvalid'==_0xcedf84||'lineHeightLicenseKeyExpired'==_0xcedf84||'lineHeightLicenseKeyDomainLimit'==_0xcedf84||'lineHeightLicenseKeyNotAllowed'==_0xcedf84||'lineHeightLicenseKeyEvaluationLimit'==_0xcedf84||'lineHeightLicenseKeyUsageLimit'==_0xcedf84){delete _0x2bd7f7[_0x3bd54a],_0x4ea260=_0xcedf84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x4ea260&&_0x2bd7f7['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x4ea260&&_0x2bd7f7['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x4ea260&&_0x2bd7f7['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x4ea260&&_0x2bd7f7['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x4ea260&&_0x2bd7f7['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x4ea260&&_0x2bd7f7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x1e62eb=this['editor'],t=_0x1e62eb['t'],_0x319db8=_0x1e62eb['config']['get']('lineHeight'),_0x16b890={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x319db8)['map'](_0x4d4675=>{const _0xc5bd5e=_0x16b890[_0x4d4675['title']];return _0xc5bd5e&&_0xc5bd5e!=_0x4d4675['title']&&(_0x4d4675=Object['assign']({},_0x4d4675,{'title':_0xc5bd5e})),_0x4d4675;});}['_prepareListOptions'](){const _0x4fb5f0=this['editor']['commands']['get']('lineHeight'),_0x4dc298=this['editor']['config']['get']('lineHeight.defaultValue'),_0x152113=this['_getLocalizedLineHeightOptions'](),_0x4af5b8=new _0x169f4f(),_0x312de8=_0x22d400=>'default'===_0x22d400||String(_0x4dc298)===_0x22d400;for(const _0x37775f of _0x152113){const _0x5c3bc8={'type':'button','model':new _0xc68efe({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x37775f['title'],'withText':!0x0})};_0x312de8(_0x37775f['model'])?(_0x5c3bc8['model']['bind']('isOn')['to'](_0x4fb5f0,'value',_0xf4a954=>!_0xf4a954),_0x5c3bc8['model']['commandParam']=void 0x0):(_0x5c3bc8['model']['bind']('isOn')['to'](_0x4fb5f0,'value',_0x159cd2=>_0x159cd2===_0x37775f['model']),_0x5c3bc8['model']['commandParam']=_0x37775f['model']),_0x4af5b8['add'](_0x5c3bc8);}if(this['_shouldRenderCustomValueOption']()){const _0x35c447=this['_getCustomValueOptionDefinition'](_0x152113);_0x4af5b8['add'](_0x35c447);}return _0x4af5b8;}['_getCustomValueOptionDefinition'](_0x494abd){const _0x22f588=this['editor'],t=_0x22f588['t'],_0x4af48d=_0x22f588['commands']['get']('lineHeight'),_0x1a2ebc=_0x494abd['map'](_0x3bb6f1=>_0x3bb6f1['model']),_0x1bc4b6={'type':'button','model':new _0xc68efe({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x1bc4b6['model']['bind']('commandParam')['to'](_0x4af48d,'value'),_0x1bc4b6['model']['bind']('isOn')['to'](_0x4af48d,'value',_0x338c96=>!!_0x338c96&&!_0x1a2ebc['includes'](String(_0x338c96))),_0x1bc4b6['model']['bind']('label')['to'](_0x4af48d,'value',_0x227e46=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x227e46))),_0x1bc4b6;}['_registerToolbarComponent']({accessibleLabel:_0x469a32,options:_0x4df420}){const _0x315204=this['editor'],_0x103a44=_0x315204['commands']['get']('lineHeight');_0x315204['ui']['componentFactory']['add']('lineHeight',_0x282d72=>{const _0x595d4a=_0xec802f(_0x282d72);return _0x7796bb(_0x595d4a,_0x4df420,{'role':'menu','ariaLabel':_0x469a32}),_0x595d4a['buttonView']['set']({'label':_0x469a32,'tooltip':!0x0,'icon':_0x245f0a}),_0x595d4a['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x595d4a['bind']('isEnabled')['to'](_0x103a44),this['listenTo'](_0x595d4a,'execute',_0x5a3acf=>{_0x315204['execute'](_0x5a3acf['source']['commandName'],{'value':_0x5a3acf['source']['commandParam']}),_0x315204['editing']['view']['focus']();}),_0x595d4a['once']('change:isOpen',()=>{const _0x59dcb=_0x595d4a['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x595d4a,_0x4df420,_0x59dcb);}),_0x595d4a;});}['_registerMenuBarComponent']({accessibleLabel:_0x5f6878,options:_0x1de667}){const _0x574971=this['editor'],_0x4ea9b0=_0x574971['commands']['get']('lineHeight');_0x574971['ui']['componentFactory']['add']('menuBar:lineHeight',_0x191a50=>{const _0x484f72=new _0x161b5a(_0x191a50);_0x484f72['buttonView']['set']({'label':_0x5f6878,'icon':_0x245f0a}),_0x484f72['bind']('isEnabled')['to'](_0x4ea9b0);const _0x6ab164=new _0x52072d(_0x191a50);for(const _0x578ab4 of _0x1de667){const _0x18514c=new _0x2b60bd(_0x191a50,_0x484f72),_0x3ef4a2=new _0x366990(_0x191a50);_0x3ef4a2['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x3ef4a2['bind'](...Object['keys'](_0x578ab4['model']))['to'](_0x578ab4['model']),_0x3ef4a2['delegate']('execute')['to'](_0x484f72),_0x3ef4a2['on']('execute',()=>{_0x574971['execute'](_0x578ab4['model']['commandName'],{'value':_0x578ab4['model']['commandParam']}),_0x574971['editing']['view']['focus']();}),_0x18514c['children']['add'](_0x3ef4a2),_0x6ab164['items']['add'](_0x18514c);}return _0x484f72['panelView']['children']['add'](_0x6ab164),this['_attachCustomOptionVisibilityHandler'](_0x484f72,_0x1de667,_0x6ab164),_0x484f72;});}['_attachCustomOptionVisibilityHandler'](_0x373bdf,_0x29babf,_0x1c422f){if(!this['_shouldRenderCustomValueOption']())return;const _0x18bcfd=()=>{if(!_0x373bdf['isOpen'])return;_0x1c422f['items']['last']['isVisible']=Boolean(_0x29babf['last']['model']['isOn']);};_0x18bcfd(),_0x373bdf['on']('change:isOpen',()=>{_0x18bcfd();});}}class LineHeight extends _0x195f55{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI};
23
+ import{Command as _0x474b8e,Plugin as _0x591983}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x40b474,Collection as _0x2d36bb,first as _0x33297c,uid as _0x531c5b}from'@ckeditor/ckeditor5-utils';import{Matcher as _0x676124,isPercentageStyleValue as _0x10f64a}from'@ckeditor/ckeditor5-engine';import{MenuBarMenuListItemButtonView as _0x4b6f2c,MenuBarMenuListItemView as _0x540536,MenuBarMenuListView as _0x58b87e,MenuBarMenuView as _0x7ceb9f,UIModel as _0x5f0b18,addListToDropdown as _0xbb606f,createDropdown as _0x49cae2}from'@ckeditor/ckeditor5-ui';import{IconLineHeight as _0x362bb0}from'@ckeditor/ckeditor5-icons';var p=class extends _0x474b8e{['refresh'](){const _0x2a7a30=this['editor']['model']['document'],_0x2bb29d=_0x33297c(_0x2a7a30['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x2bb29d)&&this['_canHaveLineHeight'](_0x2bb29d),this['value']=this['isEnabled']&&_0x2bb29d['getAttribute']('lineHeight');}['execute'](_0x33d225={}){const _0x5bc410=this['editor']['model'],_0xa57c00=_0x5bc410['document']['selection'],_0x561d74=_0x33d225['value'];_0x5bc410['change'](_0x2758e1=>{const _0x3a38fd=Array['from'](_0xa57c00['getSelectedBlocks']())['filter'](_0x437c2d=>this['_canHaveLineHeight'](_0x437c2d));for(const _0x212f6d of _0x3a38fd)_0x561d74?_0x2758e1['setAttribute']('lineHeight',_0x561d74,_0x212f6d):_0x2758e1['removeAttribute']('lineHeight',_0x212f6d);});}['_canHaveLineHeight'](_0x51472d){return this['editor']['model']['schema']['checkAttribute'](_0x51472d,'lineHeight');}};const y={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x4cd971){return'string'==typeof _0x4cd971&&'default'===_0x4cd971['toLowerCase']();}function L(_0x3463ef){return _0x3463ef['options']['map'](_0x50d6c3=>{return H(_0x50d6c3)?{'title':String(_0x3463ef['defaultValue']),'model':'default'}:('number'==typeof _0x50d6c3&&(_0x50d6c3=String(_0x50d6c3)),'string'!=typeof _0x50d6c3?_0x50d6c3:parseFloat(_0x50d6c3)?{'title':_0x50d6c3,'model':_0x50d6c3,'view':{'name':'span','styles':{'line-height':_0x50d6c3}}}:'string'==typeof(_0x54bc26=_0x50d6c3)?y[_0x54bc26]:y[_0x54bc26['model']]);var _0x54bc26;})['filter'](_0x44f4b6=>void 0x0!==_0x44f4b6);}var v=class extends _0x591983{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x3a8acd,conversion:_0x4228ee}=this['editor'];_0x3a8acd['has']('ListEditing')&&_0x3a8acd['has']('TodoListEditing')&&(_0x3a8acd['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x160424,_0xaa74e5,_0x2de030,_0x54b047,_0x531a0c){'todo'==_0x531a0c['getAttribute']('listType')&&_0xaa74e5&&(_0x160424['addClass']('ck-list-marker-line-height',_0x2de030),_0x160424['setStyle']('--ck-content-list-marker-line-height',_0xaa74e5,_0x2de030));}}),_0x4228ee['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x4228ee['for']('upcast')['add'](_0x575d65=>{_0x575d65['on']('element:li',function(_0x5f2dd3){const _0x53ae12=new _0x676124(_0x5f2dd3);return(_0x241e8d,_0x33658e,_0x2e8f37)=>{const _0x24a610=_0x53ae12['match'](_0x33658e['viewItem']);if(!_0x24a610)return;const _0x2ae65a=_0x24a610['match'];_0x2ae65a['name']=!0x1,_0x2e8f37['consumable']['consume'](_0x33658e['viewItem'],_0x2ae65a);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));}));}},b=class extends _0x591983{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34ab7d){super(_0x34ab7d),_0x34ab7d['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x5488d9=this['editor'];this['_validateConfig'](),_0x5488d9['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x5488d9['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x5488d9['commands']['add']('lineHeight',new p(_0x5488d9)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x3c8e52){const _0xdb59dc='PHQ3YUIBrl0XdnwG9kez8sfpMv1ytWFRNZOV5jJaq7Tc2ogub64xCKDEALSihm',_0x471980=0x78de0,_0x32a92b=window['Date']['now'](),_0x39e0c6=_0x3c8e52['editor'],_0x27f22e=new window['Promise'](_0x4bb586=>{_0x39e0c6['once']('ready',_0x4bb586);}),_0x3c8599={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xa060aa=_0x39e0c6['config']['get']('licenseKey');async function _0x4d4999(){let _0x2b33ac,_0x5d7563=null,_0x4e5df4=null;try{return'GPL'==_0xa060aa?'NotAllowed':(_0x2b33ac=_0x33263f(),_0x2b33ac?(_0x2b33ac['usageEndpoint']&&(_0x4e5df4=_0x42e9a9(_0x2b33ac['usageEndpoint'],_0x2b33ac['jti'])),await _0x4093fe()?_0x46a5c1()?_0x56cc52()?'Expired':_0x59115c()?('evaluation'==_0x2b33ac['licenseType']&&(_0x5d7563=_0x58b185('EvaluationLimit')),await _0x34ba9f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x56cc52(){const _0x1596d6=['evaluation','trial']['includes'](_0x2b33ac['licenseType'])?_0x32a92b/0x3e8:0xe10*_0x471980;return _0x2b33ac['exp']<_0x1596d6;}function _0x46a5c1(){const _0x1a4531=_0x2b33ac['features'];return!!_0x1a4531&&(!!_0x1a4531['includes']('*')||!!_0x1a4531['includes']('LH'));}function _0x59115c(){const _0x2dd3d0=_0x2b33ac['licensedHosts'];if(!_0x2dd3d0||0x0==_0x2dd3d0['length'])return!0x0;const {hostname:_0x426990}=new URL(window['location']['href']);if(_0x2dd3d0['includes'](_0x426990))return!0x0;const _0x52bee7=_0x426990['split']('.');return _0x2dd3d0['filter'](_0x1a3554=>_0x1a3554['includes']('*'))['map'](_0x148b9e=>_0x148b9e['split']('.'))['filter'](_0x1428f0=>_0x1428f0['length']<=_0x52bee7['length'])['map'](_0x5b09f2=>Array(_0x52bee7['length']-_0x5b09f2['length'])['fill']('*'===_0x5b09f2[0x0]?'*':'')['concat'](_0x5b09f2))['some'](_0x4fdc8e=>_0x52bee7['every']((_0x4d4905,_0x452cd7)=>_0x4fdc8e[_0x452cd7]===_0x4d4905||'*'===_0x4fdc8e[_0x452cd7]));}function _0x34ba9f(){return _0x5d7563&&_0x4e5df4?new window['Promise']((_0x2a85af,_0x3a2b41)=>{_0x5d7563['then'](_0x2a85af,_0x3a2b41),_0x4e5df4['then'](_0xac7972=>{'Valid'!=_0xac7972&&_0x2a85af(_0xac7972);},_0x3a2b41);}):_0x5d7563||_0x4e5df4||'Valid';}}function _0x42e9a9(_0x8c6df,_0x27fcc0){return new window['Promise'](_0x3bead1=>{if(_0x8e24f6())return _0x3bead1('Valid');_0x486705(),_0x39e0c6['decorate']('_sendUsageRequest');let _0x443184=!0x1;const _0xc215da=_0x531c5b();function _0x116121(_0x47e745){return!!_0x47e745&&('object'==typeof _0x47e745||'function'==typeof _0x47e745)&&'function'==typeof _0x47e745['then']&&'function'==typeof _0x47e745['catch'];}function _0x4d0cd8(_0x45ac09){_0xb19fc7(_0x45ac09)['then'](_0x224752=>_0x224752&&'ok'==_0x224752['status']?_0x2af99e(_0x26238e(_0xc215da+_0x27fcc0))!=_0x224752['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x13cd2c=>(_0x555190(),_0x13cd2c),()=>{const _0x4c8b25=_0x448d78();return null==_0x4c8b25?(_0x555190(),'Valid'):_0x32a92b-_0x4c8b25>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3bead1)['catch'](()=>{_0x3bead1('UsageLimit');});const _0x4e37f3=0x36ee80;function _0x555190(){const _0x2de7ea='llct-'+_0x2af99e(_0x26238e(_0x8c6df)),_0x24e294=_0x4044cc(_0x2af99e(window['Math']['ceil'](_0x32a92b/_0x4e37f3)));window['localStorage']['setItem'](_0x2de7ea,_0x24e294);}function _0x448d78(){const _0x5e5ec1='llct-'+_0x2af99e(_0x26238e(_0x8c6df)),_0x5b4310=window['localStorage']['getItem'](_0x5e5ec1);return _0x5b4310?window['parseInt'](_0x4044cc(_0x5b4310),0x10)*_0x4e37f3:null;}function _0xb19fc7(_0x42690c){return new window['Promise']((_0x4a9dab,_0xbbe44a)=>{_0x42690c['then'](_0x4a9dab,_0xbbe44a),window['setTimeout'](_0xbbe44a,0x1d4c0);});}}_0x39e0c6['on']('_sendUsageRequest',(_0x22d1d7,_0x1f3aca)=>{if(_0x1f3aca[0x0]!=_0x8c6df)return _0x3bead1('UsageLimit');_0x1f3aca[0x1]={..._0x1f3aca[0x1],'requestId':_0xc215da};},{'priority':'high'}),_0x39e0c6['on']('_sendUsageRequest',_0xafbc7c=>{_0x116121(_0xafbc7c['return'])&&(_0x443184=!0x0,_0x4d0cd8(_0xafbc7c['return']));},{'priority':'low'}),_0x27f22e['then'](()=>{_0x443184||_0x3bead1('UsageLimit');});});function _0x8e24f6(){return'auto'==_0x39e0c6['editing']['view']['_overlayModeHint'];}function _0x486705(){_0x39e0c6['editing']['view']['_overlayModeHint']='auto';}}function _0x58b185(_0xb8b707){const _0x47f1f6=[new window['Promise'](_0x1fbdd2=>setTimeout(_0x1fbdd2,0x93ecc)),_0x27f22e['then'](()=>new window['Promise'](_0x59e29f=>{let _0x531002=0x0;_0x39e0c6['model']['on']('applyOperation',(_0xd37e3c,_0x1d1366)=>{_0x1d1366[0x0]['isDocumentOperation']&&_0x531002++,0x5e8==_0x531002&&(_0x59e29f(),_0xd37e3c['off']());});}))];return window['Promise']['race'](_0x47f1f6)['then'](()=>_0xb8b707);}async function _0x360de9(){await _0x27f22e,_0x39e0c6['model']['change']=_0x130600,_0x39e0c6['model']['enqueueChange']=_0x130600,_0x39e0c6['enableReadOnlyMode']('model');}function _0x120990(_0xf67211){const _0x38f404=_0x2f242a();_0x39e0c6[_0x38f404]='lineHeightLicenseKey'+_0xf67211,'Valid'!=_0xf67211&&_0x360de9();}function _0x2f242a(){const _0x17d051=window['String'](window['performance']['now']())['replace']('.','');let _0x52ced0='P';for(let _0x25a58e=0x0;_0x25a58e<_0x17d051['length'];_0x25a58e+=0x2){let _0x4d3552=window['parseInt'](_0x17d051['substring'](_0x25a58e,_0x25a58e+0x2));_0x4d3552>=0x3e&&(_0x4d3552-=0x3e),_0x52ced0+=_0xdb59dc[_0x4d3552];}return _0x52ced0;}function _0x33263f(){const _0x390b89=_0xa060aa['split']('.');if(0x3!=_0x390b89['length'])return null;return _0x47743f(_0x390b89[0x1]);function _0x47743f(_0x2372e1){const _0x1be405=_0x2423ca(_0x2372e1);return _0x1be405&&_0x268885()?_0x1be405:null;function _0x268885(){const _0x86341e=_0x1be405['jti'],_0x5734c1=window['parseInt'](_0x86341e['substring'](_0x86341e['length']-0x8),0x10),_0x347bc0={..._0x1be405,'jti':_0x86341e['substring'](0x0,_0x86341e['length']-0x8)};return delete _0x347bc0['vc'],_0x26238e(_0x347bc0)==_0x5734c1;}}}async function _0x4093fe(){let _0xb6a7a4=!0x0;try{const [_0x54943f,_0x253368,_0x1e641e]=_0xa060aa['split']('.');return _0x570c80(_0x54943f),await _0x69fa83(_0x54943f,_0x253368,_0x1e641e),_0xb6a7a4;}catch{return!0x1;}function _0x570c80(_0x31c870){const _0x9a4968=_0x2423ca(_0x31c870);_0x9a4968&&'ES256'==_0x9a4968['alg']||(_0xb6a7a4=!0x1);}async function _0x69fa83(_0x52761a,_0x38c2ce,_0x24c8c4){const _0x1db882=window['Uint8Array']['from'](_0x38ae97(_0x24c8c4),_0x1ce930=>_0x1ce930['charCodeAt'](0x0)),_0x536cba=new window['TextEncoder']()['encode'](_0x52761a+'.'+_0x38c2ce),_0x28b980=window['crypto']['subtle'];if(!_0x28b980)return;const _0x18fa1c=await _0x28b980['importKey']('jwk',_0x3c8599,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x28b980['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x18fa1c,_0x1db882,_0x536cba)||(_0xb6a7a4=!0x1);}}function _0x2423ca(_0x56b3ee){return _0x56b3ee['startsWith']('ey')?JSON['parse'](_0x38ae97(_0x56b3ee)):null;}function _0x38ae97(_0x5b0efb){return window['atob'](_0x5b0efb['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x26238e(_0x458f8f){let _0x2a6561=0x1505;function _0x2bd79a(_0x4583da){for(let _0x355e8a=0x0;_0x355e8a<_0x4583da['length'];_0x355e8a++){const _0x29d8f2=_0x4583da['charCodeAt'](_0x355e8a);_0x2a6561=(_0x2a6561<<0x5)+_0x2a6561+_0x29d8f2,_0x2a6561&=_0x2a6561;}}function _0x3831b1(_0x4e0724){Array['isArray'](_0x4e0724)?_0x4e0724['forEach'](_0x3831b1):_0x4e0724&&'object'==typeof _0x4e0724?Object['entries'](_0x4e0724)['sort']()['forEach'](([_0x1b0c6d,_0x59b082])=>{_0x2bd79a(_0x1b0c6d),_0x3831b1(_0x59b082);}):_0x2bd79a(window['String'](_0x4e0724));}return _0x3831b1(_0x458f8f),_0x2a6561>>>0x0;}function _0x2af99e(_0x1801f7){return _0x1801f7['toString'](0x10)['padStart'](0x8,'0');}function _0x4044cc(_0x264524){return _0x264524['split']('')['reverse']()['join']('');}function _0x130600(){}_0x120990(await _0x4d4999());}(this);}['_validateConfig'](){const _0x4ca76b=this['editor'];if(!_0x4ca76b['config']['get']('lineHeight.supportAllValues'))return;const _0x35eda3=_0x4ca76b['config']['get']('lineHeight.options')['filter'](_0x52640d=>'string'==typeof _0x52640d&&(!H(_0x52640d)&&isNaN(Number(_0x52640d))));if(_0x35eda3['length'])throw new _0x40b474('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x35eda3});}['_prepareAnyValueConverters'](){const _0x31c5b9=this['editor'],_0x3573d6=this['editor']['config']['get']('lineHeight.defaultValue');_0x31c5b9['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x2d9c77=>String(_0x2d9c77)===String(_0x3573d6)?null:{'key':'style','value':{'line-height':_0x2d9c77}}}),_0x31c5b9['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x14cc39=>{let _0x370cff=_0x14cc39['getStyle']('line-height');return _0x10f64a(_0x370cff)&&(_0x370cff=String(Number(_0x370cff['slice'](0x0,-0x1))/0x64)),String(_0x370cff)===String(_0x3573d6)?null:_0x370cff;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x25f34e=this['editor'],_0x40fa2c=this['editor']['config']['get']('lineHeight.defaultValue'),_0x1e6267=function(_0x108a25,_0x3721c3){const _0x5e69a9={'model':{'key':_0x108a25,'values':[]},'view':{}};for(const _0x311541 of _0x3721c3)'class'===_0x311541['view']?.['key']?(_0x5e69a9['model']['values']['push'](_0x311541['model']),_0x5e69a9['view'][_0x311541['model']]={'key':'class','value':_0x311541['view']['value']}):(_0x5e69a9['model']['values']['push'](_0x311541['model']),_0x5e69a9['view'][_0x311541['model']]={'key':'style','value':'line-height:'+_0x311541['model']+';'});return _0x5e69a9;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x598db6=>_0x598db6['model']));_0x25f34e['conversion']['attributeToAttribute'](_0x1e6267),_0x25f34e['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x5855d2=>{let _0xe90d11=_0x5855d2['getStyle']('line-height');return _0x10f64a(_0xe90d11)&&(_0xe90d11=String(Number(_0xe90d11['slice'](0x0,-0x1))/0x64)),_0xe90d11===String(_0x40fa2c)?null:_0x1e6267['model']['values']['includes'](_0xe90d11)?_0xe90d11:null;}}});}},k=class extends _0x591983{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x253900={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x253900),this['_registerMenuBarComponent'](_0x253900),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x573ad1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x221048;for(const _0x211371 in _0x573ad1){const _0x312581=_0x211371,_0x5ad567=_0x573ad1[_0x312581];if('lineHeightLicenseKeyValid'==_0x5ad567||'lineHeightLicenseKeyInvalid'==_0x5ad567||'lineHeightLicenseKeyExpired'==_0x5ad567||'lineHeightLicenseKeyDomainLimit'==_0x5ad567||'lineHeightLicenseKeyNotAllowed'==_0x5ad567||'lineHeightLicenseKeyEvaluationLimit'==_0x5ad567||'lineHeightLicenseKeyUsageLimit'==_0x5ad567){delete _0x573ad1[_0x312581],_0x221048=_0x5ad567,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x221048&&_0x573ad1['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x221048&&_0x573ad1['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x221048&&_0x573ad1['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x221048&&_0x573ad1['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x221048&&_0x573ad1['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x221048&&_0x573ad1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x21f4f8=this['editor'],t=_0x21f4f8['t'],_0x231c17=_0x21f4f8['config']['get']('lineHeight'),_0x2ebb69={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x231c17)['map'](_0xaac8b5=>{const _0x5064f9=_0x2ebb69[_0xaac8b5['title']];return _0x5064f9&&_0x5064f9!=_0xaac8b5['title']&&(_0xaac8b5=Object['assign']({},_0xaac8b5,{'title':_0x5064f9})),_0xaac8b5;});}['_prepareListOptions'](){const _0x21335c=this['editor']['commands']['get']('lineHeight'),_0x52c70b=this['editor']['config']['get']('lineHeight.defaultValue'),_0x582a1b=this['_getLocalizedLineHeightOptions'](),_0x33bd8e=new _0x2d36bb(),_0x22e658=_0x1fdb46=>'default'===_0x1fdb46||String(_0x52c70b)===_0x1fdb46;for(const _0x9ce6a7 of _0x582a1b){const _0x4a5082={'type':'button','model':new _0x5f0b18({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x9ce6a7['title'],'withText':!0x0})};_0x22e658(_0x9ce6a7['model'])?(_0x4a5082['model']['bind']('isOn')['to'](_0x21335c,'value',_0x3a609c=>!_0x3a609c),_0x4a5082['model']['commandParam']=void 0x0):(_0x4a5082['model']['bind']('isOn')['to'](_0x21335c,'value',_0x8a2ca2=>_0x8a2ca2===_0x9ce6a7['model']),_0x4a5082['model']['commandParam']=_0x9ce6a7['model']),_0x33bd8e['add'](_0x4a5082);}if(this['_shouldRenderCustomValueOption']()){const _0x5c2f4b=this['_getCustomValueOptionDefinition'](_0x582a1b);_0x33bd8e['add'](_0x5c2f4b);}return _0x33bd8e;}['_getCustomValueOptionDefinition'](_0x466aae){const _0x59f436=this['editor'],t=_0x59f436['t'],_0x1aed5e=_0x59f436['commands']['get']('lineHeight'),_0x59ccc1=_0x466aae['map'](_0x5b16c1=>_0x5b16c1['model']),_0x2e74f5={'type':'button','model':new _0x5f0b18({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x2e74f5['model']['bind']('commandParam')['to'](_0x1aed5e,'value'),_0x2e74f5['model']['bind']('isOn')['to'](_0x1aed5e,'value',_0x38ef5b=>!!_0x38ef5b&&!_0x59ccc1['includes'](String(_0x38ef5b))),_0x2e74f5['model']['bind']('label')['to'](_0x1aed5e,'value',_0x221b22=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x221b22))),_0x2e74f5;}['_registerToolbarComponent']({accessibleLabel:_0x13a12b,options:_0x1a9144}){const _0xcbccbb=this['editor'],_0x118a86=_0xcbccbb['commands']['get']('lineHeight');_0xcbccbb['ui']['componentFactory']['add']('lineHeight',_0x4a3d00=>{const _0x2be0bb=_0x49cae2(_0x4a3d00);return _0xbb606f(_0x2be0bb,_0x1a9144,{'role':'menu','ariaLabel':_0x13a12b}),_0x2be0bb['buttonView']['set']({'label':_0x13a12b,'tooltip':!0x0,'icon':_0x362bb0}),_0x2be0bb['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x2be0bb['bind']('isEnabled')['to'](_0x118a86),this['listenTo'](_0x2be0bb,'execute',_0x4a8ddd=>{_0xcbccbb['execute'](_0x4a8ddd['source']['commandName'],{'value':_0x4a8ddd['source']['commandParam']}),_0xcbccbb['editing']['view']['focus']();}),_0x2be0bb['once']('change:isOpen',()=>{const _0xf130f7=_0x2be0bb['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x2be0bb,_0x1a9144,_0xf130f7);}),_0x2be0bb;});}['_registerMenuBarComponent']({accessibleLabel:_0x411caf,options:_0x2ebfb3}){const _0x298506=this['editor'],_0x199f07=_0x298506['commands']['get']('lineHeight');_0x298506['ui']['componentFactory']['add']('menuBar:lineHeight',_0x56a188=>{const _0x4006cf=new _0x7ceb9f(_0x56a188);_0x4006cf['buttonView']['set']({'label':_0x411caf,'icon':_0x362bb0}),_0x4006cf['bind']('isEnabled')['to'](_0x199f07);const _0x503e0d=new _0x58b87e(_0x56a188);for(const _0x42295e of _0x2ebfb3){const _0x5228cf=new _0x540536(_0x56a188,_0x4006cf),_0x5ba8fb=new _0x4b6f2c(_0x56a188);_0x5ba8fb['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x5ba8fb['bind'](...Object['keys'](_0x42295e['model']))['to'](_0x42295e['model']),_0x5ba8fb['delegate']('execute')['to'](_0x4006cf),_0x5ba8fb['on']('execute',()=>{_0x298506['execute'](_0x42295e['model']['commandName'],{'value':_0x42295e['model']['commandParam']}),_0x298506['editing']['view']['focus']();}),_0x5228cf['children']['add'](_0x5ba8fb),_0x503e0d['items']['add'](_0x5228cf);}return _0x4006cf['panelView']['children']['add'](_0x503e0d),this['_attachCustomOptionVisibilityHandler'](_0x4006cf,_0x2ebfb3,_0x503e0d),_0x4006cf;});}['_attachCustomOptionVisibilityHandler'](_0x211d84,_0x4e739a,_0xbdd81a){if(!this['_shouldRenderCustomValueOption']())return;const _0x4d2bd9=()=>{if(!_0x211d84['isOpen'])return;_0xbdd81a['items']['last']['isVisible']=Boolean(_0x4e739a['last']['model']['isOn']);};_0x4d2bd9(),_0x211d84['on']('change:isOpen',()=>{_0x4d2bd9();});}},_=class extends _0x591983{static get['requires'](){return[b,k];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{_ as LineHeight,p as LineHeightCommand,b as LineHeightEditing,v as LineHeightTodoListIntegration,k as LineHeightUI};
@@ -1,31 +1,31 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, 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
5
  /**
6
- * @module line-height/integrations/todolist
7
- * @publicApi
8
- */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import '../../theme/integrations/todolist.css';
6
+ * @module line-height/integrations/todolist
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from "@ckeditor/ckeditor5-core";
10
+ import "../../theme/integrations/todolist.css";
11
11
  /**
12
- * The to-do list line height support plugin.
13
- */
12
+ * The to-do list line height support plugin.
13
+ */
14
14
  export declare class LineHeightTodoListIntegration extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- static get pluginName(): "LineHeightTodoListIntegration";
19
- /**
20
- * @inheritDoc
21
- */
22
- static get isOfficialPlugin(): true;
23
- /**
24
- * @inheritDoc
25
- */
26
- static get isPremiumPlugin(): true;
27
- /**
28
- * @inheritDoc
29
- */
30
- init(): void;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get pluginName(): "LineHeightTodoListIntegration";
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static override get isOfficialPlugin(): true;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static override get isPremiumPlugin(): true;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ init(): void;
31
31
  }
@@ -1,34 +1,34 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, 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
5
  /**
6
- * @module line-height/lineheight
7
- * @publicApi
8
- */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import { LineHeightEditing } from './lineheightediting.js';
11
- import { LineHeightUI } from './lineheightui.js';
6
+ * @module line-height/lineheight
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
10
+ import { LineHeightEditing } from "./lineheightediting.js";
11
+ import { LineHeightUI } from "./lineheightui.js";
12
12
  /**
13
- * The line height plugin.
14
- *
15
- * For a detailed overview, check the {@glink features/line-height Line height feature documentation}.
16
- */
13
+ * The line height plugin.
14
+ *
15
+ * For a detailed overview, check the {@glink features/line-height Line height feature documentation}.
16
+ */
17
17
  export declare class LineHeight extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof LineHeightEditing, typeof LineHeightUI];
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "LineHeight";
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isPremiumPlugin(): true;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): PluginDependenciesOf<[LineHeightEditing, LineHeightUI]>;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "LineHeight";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static override get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static override get isPremiumPlugin(): true;
34
34
  }
@@ -1,26 +1,26 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, 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
5
  /**
6
- * @module line-height/lineheightcommand
7
- * @publicApi
8
- */
9
- import { Command } from '@ckeditor/ckeditor5-core';
6
+ * @module line-height/lineheightcommand
7
+ * @publicApi
8
+ */
9
+ import { Command } from "@ckeditor/ckeditor5-core";
10
10
  /**
11
- * The line height command. It applies the line height on block elements.
12
- */
11
+ * The line height command. It applies the line height on block elements.
12
+ */
13
13
  export declare class LineHeightCommand extends Command {
14
- /**
15
- * @inheritDoc
16
- */
17
- refresh(): void;
18
- /**
19
- * Executes the command.
20
- *
21
- * @param options.value The value to apply. When `undefined`, the command will remove the attribute.
22
- */
23
- execute(options?: {
24
- value?: string;
25
- }): void;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ override refresh(): void;
18
+ /**
19
+ * Executes the command.
20
+ *
21
+ * @param options.value The value to apply. When `undefined`, the command will remove the attribute.
22
+ */
23
+ override execute(options?: {
24
+ value?: string;
25
+ }): void;
26
26
  }
@@ -1,66 +1,66 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, 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
5
  /**
6
- * @module line-height/lineheightconfig
7
- * @publicApi
8
- */
9
- import type { DowncastAttributeDescriptor } from '@ckeditor/ckeditor5-engine';
6
+ * @module line-height/lineheightconfig
7
+ * @publicApi
8
+ */
9
+ import type { DowncastAttributeDescriptor } from "@ckeditor/ckeditor5-engine";
10
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
- */
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
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;
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
49
  }
50
50
  /**
51
- * Configuration for one of the dropdown options.
52
- */
51
+ * Configuration for one of the dropdown options.
52
+ */
53
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;
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
66
  }
@@ -1,46 +1,46 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, 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
5
  /**
6
- * @module line-height/lineheightediting
7
- */
8
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
9
- import { LineHeightTodoListIntegration } from './integrations/todolist.js';
6
+ * @module line-height/lineheightediting
7
+ */
8
+ import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { LineHeightTodoListIntegration } from "./integrations/todolist.js";
10
10
  /**
11
- * The line height editing feature.
12
- *
13
- * It introduces the {@link module:line-height/lineheightcommand~LineHeightCommand command} and the `lineHeight`
14
- * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
15
- * as a `style="line-height: ..."` style.
16
- */
11
+ * The line height editing feature.
12
+ *
13
+ * It introduces the {@link module:line-height/lineheightcommand~LineHeightCommand command} and the `lineHeight`
14
+ * attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
15
+ * as a `style="line-height: ..."` style.
16
+ */
17
17
  export declare class LineHeightEditing extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "LineHeightEditing";
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires(): readonly [typeof LineHeightTodoListIntegration];
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isPremiumPlugin(): true;
34
- /**
35
- * @inheritDoc
36
- */
37
- constructor(editor: Editor);
38
- /**
39
- * @inheritDoc
40
- */
41
- init(): void;
42
- /**
43
- * @inheritDoc
44
- */
45
- afterInit(): void;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "LineHeightEditing";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): PluginDependenciesOf<[LineHeightTodoListIntegration]>;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static override get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static override get isPremiumPlugin(): true;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ constructor(editor: Editor);
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ init(): void;
42
+ /**
43
+ * @inheritDoc
44
+ */
45
+ afterInit(): void;
46
46
  }