@ckeditor/ckeditor5-line-height 48.2.0 → 48.3.0-alpha.1
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.
- package/dist/augmentation.d.ts +19 -19
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/dist/integrations/todolist.d.ts +26 -26
- package/dist/lineheight.d.ts +29 -29
- package/dist/lineheightcommand.d.ts +21 -21
- package/dist/lineheightconfig.d.ts +58 -58
- package/dist/lineheightediting.d.ts +41 -41
- package/dist/lineheightui.d.ts +29 -29
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils.d.ts +0 -4
- package/package.json +7 -7
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { LineHeight, LineHeightEditing, LineHeightUI, LineHeightConfig, LineHeightTodoListIntegration } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
export { LineHeight } from
|
|
9
|
-
export { LineHeightEditing } from
|
|
10
|
-
export { LineHeightUI } from
|
|
11
|
-
export { LineHeightTodoListIntegration } from
|
|
12
|
-
export { LineHeightCommand } from
|
|
13
|
-
export type { LineHeightConfig, LineHeightOption } from
|
|
14
|
-
import
|
|
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 _0x529ebf,Plugin as _0x1bc491}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0x261883,Collection as _0x35ee3c,first as _0x14e5c4,uid as _0x274a5d}from'@ckeditor/ckeditor5-utils';import{Matcher as _0x4a6df8,isPercentageStyleValue as _0x5ca071}from'@ckeditor/ckeditor5-engine';import{MenuBarMenuListItemButtonView as _0xe08c28,MenuBarMenuListItemView as _0x392ced,MenuBarMenuListView as _0x2edd5a,MenuBarMenuView as _0x511c6a,UIModel as _0x5634d5,addListToDropdown as _0x339a28,createDropdown as _0x32a4da}from'@ckeditor/ckeditor5-ui';import{IconLineHeight as _0x5cc209}from'@ckeditor/ckeditor5-icons';var p=class extends _0x529ebf{['refresh'](){const _0x1032dc=this['editor']['model']['document'],_0x52824d=_0x14e5c4(_0x1032dc['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x52824d)&&this['_canHaveLineHeight'](_0x52824d),this['value']=this['isEnabled']&&_0x52824d['getAttribute']('lineHeight');}['execute'](_0xebd874={}){const _0x13729e=this['editor']['model'],_0x5ba21c=_0x13729e['document']['selection'],_0x539d65=_0xebd874['value'];_0x13729e['change'](_0x2f95cc=>{const _0x5ee64e=Array['from'](_0x5ba21c['getSelectedBlocks']())['filter'](_0x3f9037=>this['_canHaveLineHeight'](_0x3f9037));for(const _0x213aa2 of _0x5ee64e)_0x539d65?_0x2f95cc['setAttribute']('lineHeight',_0x539d65,_0x213aa2):_0x2f95cc['removeAttribute']('lineHeight',_0x213aa2);});}['_canHaveLineHeight'](_0x411429){return this['editor']['model']['schema']['checkAttribute'](_0x411429,'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(_0x37bbc5){return'string'==typeof _0x37bbc5&&'default'===_0x37bbc5['toLowerCase']();}function L(_0x5b7584){return _0x5b7584['options']['map'](_0x40ac5b=>{return H(_0x40ac5b)?{'title':String(_0x5b7584['defaultValue']),'model':'default'}:('number'==typeof _0x40ac5b&&(_0x40ac5b=String(_0x40ac5b)),'string'!=typeof _0x40ac5b?_0x40ac5b:parseFloat(_0x40ac5b)?{'title':_0x40ac5b,'model':_0x40ac5b,'view':{'name':'span','styles':{'line-height':_0x40ac5b}}}:'string'==typeof(_0x2685ad=_0x40ac5b)?y[_0x2685ad]:y[_0x2685ad['model']]);var _0x2685ad;})['filter'](_0x4d13fb=>void 0x0!==_0x4d13fb);}var v=class extends _0x1bc491{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x10b72f,conversion:_0x247923}=this['editor'];_0x10b72f['has']('ListEditing')&&_0x10b72f['has']('TodoListEditing')&&(_0x10b72f['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x45503c,_0x438a77,_0x16ba93,_0x4fef3a,_0x1b8c2b){'todo'==_0x1b8c2b['getAttribute']('listType')&&_0x438a77&&(_0x45503c['addClass']('ck-list-marker-line-height',_0x16ba93),_0x45503c['setStyle']('--ck-content-list-marker-line-height',_0x438a77,_0x16ba93));}}),_0x247923['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x247923['for']('upcast')['add'](_0x16dfc9=>{_0x16dfc9['on']('element:li',function(_0x188632){const _0x3e9106=new _0x4a6df8(_0x188632);return(_0x7b3e89,_0x1a6d0a,_0x56b23e)=>{const _0x24c36d=_0x3e9106['match'](_0x1a6d0a['viewItem']);if(!_0x24c36d)return;const _0x21b005=_0x24c36d['match'];_0x21b005['name']=!0x1,_0x56b23e['consumable']['consume'](_0x1a6d0a['viewItem'],_0x21b005);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));}));}},b=class extends _0x1bc491{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31ac40){super(_0x31ac40),_0x31ac40['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x4fd5d1=this['editor'];this['_validateConfig'](),_0x4fd5d1['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x4fd5d1['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x4fd5d1['commands']['add']('lineHeight',new p(_0x4fd5d1)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x63037a){const _0x41bc5d='PHQ3YUIBrl0XdnwG9kez8sfpMv1ytWFRNZOV5jJaq7Tc2ogub64xCKDEALSihm',_0x13a532=0x78df8,_0x4af9ab=window['Date']['now'](),_0x1cd188=_0x63037a['editor'],_0x31234a=new window['Promise'](_0x22a2f4=>{_0x1cd188['once']('ready',_0x22a2f4);}),_0x5208bd={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x5c4f44=_0x1cd188['config']['get']('licenseKey');async function _0x3f20a9(){let _0xb61a03,_0x540e38=null,_0x327af3=null;try{return'GPL'==_0x5c4f44?'NotAllowed':(_0xb61a03=_0x40ecaf(),_0xb61a03?(_0xb61a03['usageEndpoint']&&(_0x327af3=_0x100137(_0xb61a03['usageEndpoint'],_0xb61a03['jti'])),await _0x171c32()?_0x8a2fef()?_0x340647()?'Expired':_0x5390af()?('evaluation'==_0xb61a03['licenseType']&&(_0x540e38=_0x19ecda('EvaluationLimit')),await _0x5dc2c4()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x340647(){const _0xb5eb58=['evaluation','trial']['includes'](_0xb61a03['licenseType'])?_0x4af9ab/0x3e8:0xe10*_0x13a532;return _0xb61a03['exp']<_0xb5eb58;}function _0x8a2fef(){const _0x3f44ad=_0xb61a03['features'];return!!_0x3f44ad&&(!!_0x3f44ad['includes']('*')||!!_0x3f44ad['includes']('LH'));}function _0x5390af(){const _0x258041=_0xb61a03['licensedHosts'];if(!_0x258041||0x0==_0x258041['length'])return!0x0;const {hostname:_0x18f9d8}=new URL(window['location']['href']);if(_0x258041['includes'](_0x18f9d8))return!0x0;const _0x434d41=_0x18f9d8['split']('.');return _0x258041['filter'](_0x53d834=>_0x53d834['includes']('*'))['map'](_0x3ff245=>_0x3ff245['split']('.'))['filter'](_0x1f2f8c=>_0x1f2f8c['length']<=_0x434d41['length'])['map'](_0x3c503a=>Array(_0x434d41['length']-_0x3c503a['length'])['fill']('*'===_0x3c503a[0x0]?'*':'')['concat'](_0x3c503a))['some'](_0xee27d3=>_0x434d41['every']((_0x19582e,_0x401432)=>_0xee27d3[_0x401432]===_0x19582e||'*'===_0xee27d3[_0x401432]));}function _0x5dc2c4(){return _0x540e38&&_0x327af3?new window['Promise']((_0x869cd,_0x345b27)=>{_0x540e38['then'](_0x869cd,_0x345b27),_0x327af3['then'](_0x9c1e82=>{'Valid'!=_0x9c1e82&&_0x869cd(_0x9c1e82);},_0x345b27);}):_0x540e38||_0x327af3||'Valid';}}function _0x100137(_0x21157d,_0x5d5c54){return new window['Promise'](_0x498449=>{if(_0x289ba7())return _0x498449('Valid');_0x22e093(),_0x1cd188['decorate']('_sendUsageRequest');let _0x20bbea=!0x1;const _0x18fd80=_0x274a5d();function _0x550773(_0x4816f1){return!!_0x4816f1&&('object'==typeof _0x4816f1||'function'==typeof _0x4816f1)&&'function'==typeof _0x4816f1['then']&&'function'==typeof _0x4816f1['catch'];}function _0xe70caf(_0x41c853){_0x3a60be(_0x41c853)['then'](_0x1dcf06=>_0x1dcf06&&'ok'==_0x1dcf06['status']?_0x3f2c8c(_0x53e725(_0x18fd80+_0x5d5c54))!=_0x1dcf06['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2d019c=>(_0x6af50a(),_0x2d019c),()=>{const _0x4b8999=_0xe74a6e();return null==_0x4b8999?(_0x6af50a(),'Valid'):_0x4af9ab-_0x4b8999>0x240c8400?'UsageLimit':'Valid';})['then'](_0x498449)['catch'](()=>{_0x498449('UsageLimit');});const _0x61119c=0x36ee80;function _0x6af50a(){const _0x41e7c2='llct-'+_0x3f2c8c(_0x53e725(_0x21157d)),_0x16877c=_0x13d20f(_0x3f2c8c(window['Math']['ceil'](_0x4af9ab/_0x61119c)));window['localStorage']['setItem'](_0x41e7c2,_0x16877c);}function _0xe74a6e(){const _0x1118b0='llct-'+_0x3f2c8c(_0x53e725(_0x21157d)),_0x2fb09f=window['localStorage']['getItem'](_0x1118b0);return _0x2fb09f?window['parseInt'](_0x13d20f(_0x2fb09f),0x10)*_0x61119c:null;}function _0x3a60be(_0x243a68){return new window['Promise']((_0x3cd52c,_0x55f141)=>{_0x243a68['then'](_0x3cd52c,_0x55f141),window['setTimeout'](_0x55f141,0x1d4c0);});}}_0x1cd188['on']('_sendUsageRequest',(_0x243324,_0x258ccc)=>{if(_0x258ccc[0x0]!=_0x21157d)return _0x498449('UsageLimit');_0x258ccc[0x1]={..._0x258ccc[0x1],'requestId':_0x18fd80};},{'priority':'high'}),_0x1cd188['on']('_sendUsageRequest',_0x2992d8=>{_0x550773(_0x2992d8['return'])&&(_0x20bbea=!0x0,_0xe70caf(_0x2992d8['return']));},{'priority':'low'}),_0x31234a['then'](()=>{_0x20bbea||_0x498449('UsageLimit');});});function _0x289ba7(){return'auto'==_0x1cd188['editing']['view']['_overlayModeHint'];}function _0x22e093(){_0x1cd188['editing']['view']['_overlayModeHint']='auto';}}function _0x19ecda(_0xfd102c){const _0x4d554e=[new window['Promise'](_0x1dbd4b=>setTimeout(_0x1dbd4b,0x93ecc)),_0x31234a['then'](()=>new window['Promise'](_0x117ee2=>{let _0x174bef=0x0;_0x1cd188['model']['on']('applyOperation',(_0x415f86,_0x286462)=>{_0x286462[0x0]['isDocumentOperation']&&_0x174bef++,0x5e8==_0x174bef&&(_0x117ee2(),_0x415f86['off']());});}))];return window['Promise']['race'](_0x4d554e)['then'](()=>_0xfd102c);}async function _0x4ecd4c(){await _0x31234a,_0x1cd188['model']['change']=_0x4ab18c,_0x1cd188['model']['enqueueChange']=_0x4ab18c,_0x1cd188['enableReadOnlyMode']('model');}function _0x12d251(_0x2c3c68){const _0x14c545=_0x51b6b3();_0x1cd188[_0x14c545]='lineHeightLicenseKey'+_0x2c3c68,'Valid'!=_0x2c3c68&&_0x4ecd4c();}function _0x51b6b3(){const _0x2ed469=window['String'](window['performance']['now']())['replace']('.','');let _0x3cca34='P';for(let _0x3de6f2=0x0;_0x3de6f2<_0x2ed469['length'];_0x3de6f2+=0x2){let _0xed6379=window['parseInt'](_0x2ed469['substring'](_0x3de6f2,_0x3de6f2+0x2));_0xed6379>=0x3e&&(_0xed6379-=0x3e),_0x3cca34+=_0x41bc5d[_0xed6379];}return _0x3cca34;}function _0x40ecaf(){const _0x304836=_0x5c4f44['split']('.');if(0x3!=_0x304836['length'])return null;return _0x174500(_0x304836[0x1]);function _0x174500(_0x2e4589){const _0x41b441=_0x22e3ba(_0x2e4589);return _0x41b441&&_0x4fcbf1()?_0x41b441:null;function _0x4fcbf1(){const _0x20785d=_0x41b441['jti'],_0x205637=window['parseInt'](_0x20785d['substring'](_0x20785d['length']-0x8),0x10),_0x1b1ed2={..._0x41b441,'jti':_0x20785d['substring'](0x0,_0x20785d['length']-0x8)};return delete _0x1b1ed2['vc'],_0x53e725(_0x1b1ed2)==_0x205637;}}}async function _0x171c32(){let _0x3b0233=!0x0;try{const [_0x4efade,_0x19e21a,_0x2cf61f]=_0x5c4f44['split']('.');return _0x305a41(_0x4efade),await _0x380236(_0x4efade,_0x19e21a,_0x2cf61f),_0x3b0233;}catch{return!0x1;}function _0x305a41(_0x389354){const _0x2e2832=_0x22e3ba(_0x389354);_0x2e2832&&'ES256'==_0x2e2832['alg']||(_0x3b0233=!0x1);}async function _0x380236(_0x18e272,_0x5722d4,_0x4796d8){const _0x3bd517=window['Uint8Array']['from'](_0x4fb3cb(_0x4796d8),_0x21ffec=>_0x21ffec['charCodeAt'](0x0)),_0x1e2077=new window['TextEncoder']()['encode'](_0x18e272+'.'+_0x5722d4),_0x4e434c=window['crypto']['subtle'];if(!_0x4e434c)return;const _0x3351f6=await _0x4e434c['importKey']('jwk',_0x5208bd,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4e434c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3351f6,_0x3bd517,_0x1e2077)||(_0x3b0233=!0x1);}}function _0x22e3ba(_0xcf80b1){return _0xcf80b1['startsWith']('ey')?JSON['parse'](_0x4fb3cb(_0xcf80b1)):null;}function _0x4fb3cb(_0x41ea97){return window['atob'](_0x41ea97['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x53e725(_0x4a847e){let _0x3ad365=0x1505;function _0x53d7b4(_0x436fb9){for(let _0x2ecfe3=0x0;_0x2ecfe3<_0x436fb9['length'];_0x2ecfe3++){const _0x22d7f9=_0x436fb9['charCodeAt'](_0x2ecfe3);_0x3ad365=(_0x3ad365<<0x5)+_0x3ad365+_0x22d7f9,_0x3ad365&=_0x3ad365;}}function _0x277a8a(_0x1a36b3){Array['isArray'](_0x1a36b3)?_0x1a36b3['forEach'](_0x277a8a):_0x1a36b3&&'object'==typeof _0x1a36b3?Object['entries'](_0x1a36b3)['sort']()['forEach'](([_0x3d6ecd,_0x40d112])=>{_0x53d7b4(_0x3d6ecd),_0x277a8a(_0x40d112);}):_0x53d7b4(window['String'](_0x1a36b3));}return _0x277a8a(_0x4a847e),_0x3ad365>>>0x0;}function _0x3f2c8c(_0x2ad0cd){return _0x2ad0cd['toString'](0x10)['padStart'](0x8,'0');}function _0x13d20f(_0xc67291){return _0xc67291['split']('')['reverse']()['join']('');}function _0x4ab18c(){}_0x12d251(await _0x3f20a9());}(this);}['_validateConfig'](){const _0x41de6e=this['editor'];if(!_0x41de6e['config']['get']('lineHeight.supportAllValues'))return;const _0x22a09c=_0x41de6e['config']['get']('lineHeight.options')['filter'](_0x54c483=>'string'==typeof _0x54c483&&(!H(_0x54c483)&&isNaN(Number(_0x54c483))));if(_0x22a09c['length'])throw new _0x261883('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x22a09c});}['_prepareAnyValueConverters'](){const _0x464d27=this['editor'],_0xb9d1be=this['editor']['config']['get']('lineHeight.defaultValue');_0x464d27['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x4dea24=>String(_0x4dea24)===String(_0xb9d1be)?null:{'key':'style','value':{'line-height':_0x4dea24}}}),_0x464d27['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x341b9e=>{let _0x40cb7e=_0x341b9e['getStyle']('line-height');return _0x5ca071(_0x40cb7e)&&(_0x40cb7e=String(Number(_0x40cb7e['slice'](0x0,-0x1))/0x64)),String(_0x40cb7e)===String(_0xb9d1be)?null:_0x40cb7e;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x1d00f0=this['editor'],_0x263829=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3db58e=function(_0x428d31,_0x486af3){const _0x2d4a1a={'model':{'key':_0x428d31,'values':[]},'view':{}};for(const _0x3459c4 of _0x486af3)'class'===_0x3459c4['view']?.['key']?(_0x2d4a1a['model']['values']['push'](_0x3459c4['model']),_0x2d4a1a['view'][_0x3459c4['model']]={'key':'class','value':_0x3459c4['view']['value']}):(_0x2d4a1a['model']['values']['push'](_0x3459c4['model']),_0x2d4a1a['view'][_0x3459c4['model']]={'key':'style','value':'line-height:'+_0x3459c4['model']+';'});return _0x2d4a1a;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x210979=>_0x210979['model']));_0x1d00f0['conversion']['attributeToAttribute'](_0x3db58e),_0x1d00f0['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x438cfb=>{let _0x5c1c24=_0x438cfb['getStyle']('line-height');return _0x5ca071(_0x5c1c24)&&(_0x5c1c24=String(Number(_0x5c1c24['slice'](0x0,-0x1))/0x64)),_0x5c1c24===String(_0x263829)?null:_0x3db58e['model']['values']['includes'](_0x5c1c24)?_0x5c1c24:null;}}});}},k=class extends _0x1bc491{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e8470={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x1e8470),this['_registerMenuBarComponent'](_0x1e8470),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2fa07f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a6f39;for(const _0x134b5e in _0x2fa07f){const _0xea23c6=_0x134b5e,_0x5885dd=_0x2fa07f[_0xea23c6];if('lineHeightLicenseKeyValid'==_0x5885dd||'lineHeightLicenseKeyInvalid'==_0x5885dd||'lineHeightLicenseKeyExpired'==_0x5885dd||'lineHeightLicenseKeyDomainLimit'==_0x5885dd||'lineHeightLicenseKeyNotAllowed'==_0x5885dd||'lineHeightLicenseKeyEvaluationLimit'==_0x5885dd||'lineHeightLicenseKeyUsageLimit'==_0x5885dd){delete _0x2fa07f[_0xea23c6],_0x4a6f39=_0x5885dd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x4a6f39&&_0x2fa07f['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x4a6f39&&_0x2fa07f['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x4a6f39&&_0x2fa07f['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x4a6f39&&_0x2fa07f['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x4a6f39&&_0x2fa07f['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x4a6f39&&_0x2fa07f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0xb29031=this['editor'],t=_0xb29031['t'],_0x1adb54=_0xb29031['config']['get']('lineHeight'),_0x778d14={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x1adb54)['map'](_0x1be543=>{const _0x38a75a=_0x778d14[_0x1be543['title']];return _0x38a75a&&_0x38a75a!=_0x1be543['title']&&(_0x1be543=Object['assign']({},_0x1be543,{'title':_0x38a75a})),_0x1be543;});}['_prepareListOptions'](){const _0x34c373=this['editor']['commands']['get']('lineHeight'),_0x5b4607=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2fc82b=this['_getLocalizedLineHeightOptions'](),_0x4d93d6=new _0x35ee3c(),_0x16b3d8=_0x15e57d=>'default'===_0x15e57d||String(_0x5b4607)===_0x15e57d;for(const _0x4bf444 of _0x2fc82b){const _0x412901={'type':'button','model':new _0x5634d5({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x4bf444['title'],'withText':!0x0})};_0x16b3d8(_0x4bf444['model'])?(_0x412901['model']['bind']('isOn')['to'](_0x34c373,'value',_0x13f397=>!_0x13f397),_0x412901['model']['commandParam']=void 0x0):(_0x412901['model']['bind']('isOn')['to'](_0x34c373,'value',_0x14a222=>_0x14a222===_0x4bf444['model']),_0x412901['model']['commandParam']=_0x4bf444['model']),_0x4d93d6['add'](_0x412901);}if(this['_shouldRenderCustomValueOption']()){const _0xa01e65=this['_getCustomValueOptionDefinition'](_0x2fc82b);_0x4d93d6['add'](_0xa01e65);}return _0x4d93d6;}['_getCustomValueOptionDefinition'](_0xbef9bf){const _0x17ea0c=this['editor'],t=_0x17ea0c['t'],_0x48c9a8=_0x17ea0c['commands']['get']('lineHeight'),_0x3ce245=_0xbef9bf['map'](_0x2630b1=>_0x2630b1['model']),_0x62b9e7={'type':'button','model':new _0x5634d5({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x62b9e7['model']['bind']('commandParam')['to'](_0x48c9a8,'value'),_0x62b9e7['model']['bind']('isOn')['to'](_0x48c9a8,'value',_0x323b4e=>!!_0x323b4e&&!_0x3ce245['includes'](String(_0x323b4e))),_0x62b9e7['model']['bind']('label')['to'](_0x48c9a8,'value',_0x556c35=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x556c35))),_0x62b9e7;}['_registerToolbarComponent']({accessibleLabel:_0x504d72,options:_0x9fa9e5}){const _0x4a95d9=this['editor'],_0x2bcd96=_0x4a95d9['commands']['get']('lineHeight');_0x4a95d9['ui']['componentFactory']['add']('lineHeight',_0x287bc6=>{const _0x4e2715=_0x32a4da(_0x287bc6);return _0x339a28(_0x4e2715,_0x9fa9e5,{'role':'menu','ariaLabel':_0x504d72}),_0x4e2715['buttonView']['set']({'label':_0x504d72,'tooltip':!0x0,'icon':_0x5cc209}),_0x4e2715['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x4e2715['bind']('isEnabled')['to'](_0x2bcd96),this['listenTo'](_0x4e2715,'execute',_0x366ad5=>{_0x4a95d9['execute'](_0x366ad5['source']['commandName'],{'value':_0x366ad5['source']['commandParam']}),_0x4a95d9['editing']['view']['focus']();}),_0x4e2715['once']('change:isOpen',()=>{const _0x229c68=_0x4e2715['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x4e2715,_0x9fa9e5,_0x229c68);}),_0x4e2715;});}['_registerMenuBarComponent']({accessibleLabel:_0x4bb258,options:_0x4d7084}){const _0x359ea2=this['editor'],_0x5757ed=_0x359ea2['commands']['get']('lineHeight');_0x359ea2['ui']['componentFactory']['add']('menuBar:lineHeight',_0x5873ad=>{const _0x1bafd7=new _0x511c6a(_0x5873ad);_0x1bafd7['buttonView']['set']({'label':_0x4bb258,'icon':_0x5cc209}),_0x1bafd7['bind']('isEnabled')['to'](_0x5757ed);const _0x35618a=new _0x2edd5a(_0x5873ad);for(const _0x325d8f of _0x4d7084){const _0x3dc0f6=new _0x392ced(_0x5873ad,_0x1bafd7),_0x1f4556=new _0xe08c28(_0x5873ad);_0x1f4556['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x1f4556['bind'](...Object['keys'](_0x325d8f['model']))['to'](_0x325d8f['model']),_0x1f4556['delegate']('execute')['to'](_0x1bafd7),_0x1f4556['on']('execute',()=>{_0x359ea2['execute'](_0x325d8f['model']['commandName'],{'value':_0x325d8f['model']['commandParam']}),_0x359ea2['editing']['view']['focus']();}),_0x3dc0f6['children']['add'](_0x1f4556),_0x35618a['items']['add'](_0x3dc0f6);}return _0x1bafd7['panelView']['children']['add'](_0x35618a),this['_attachCustomOptionVisibilityHandler'](_0x1bafd7,_0x4d7084,_0x35618a),_0x1bafd7;});}['_attachCustomOptionVisibilityHandler'](_0x39b659,_0x4214e2,_0x560fd7){if(!this['_shouldRenderCustomValueOption']())return;const _0xd4e1b0=()=>{if(!_0x39b659['isOpen'])return;_0x560fd7['items']['last']['isVisible']=Boolean(_0x4214e2['last']['model']['isOn']);};_0xd4e1b0(),_0x39b659['on']('change:isOpen',()=>{_0xd4e1b0();});}},_=class extends _0x1bc491{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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import
|
|
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
|
-
|
|
13
|
-
|
|
12
|
+
* The to-do list line height support plugin.
|
|
13
|
+
*/
|
|
14
14
|
export declare class LineHeightTodoListIntegration extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
}
|
package/dist/lineheight.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { LineHeightEditing } from
|
|
11
|
-
import { LineHeightUI } from
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command } from
|
|
6
|
+
* @module line-height/lineheightcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import type { DowncastAttributeDescriptor } from
|
|
6
|
+
* @module line-height/lineheightconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { DowncastAttributeDescriptor } from "@ckeditor/ckeditor5-engine";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
52
|
-
|
|
51
|
+
* Configuration for one of the dropdown options.
|
|
52
|
+
*/
|
|
53
53
|
export interface LineHeightOption {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin, type Editor } from
|
|
9
|
-
import { LineHeightTodoListIntegration } from
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
}
|