@ckeditor/ckeditor5-line-height 0.0.1 → 46.0.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/CHANGELOG.md +4 -0
- package/LICENSE.md +6 -6
- package/README.md +44 -3
- package/build/line-height.js +5 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +18 -0
- package/dist/index-content.css +11 -0
- package/dist/index-editor.css +5 -0
- package/dist/index.css +20 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +23 -0
- package/dist/translations/ast.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +23 -0
- package/dist/translations/en-gb.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +23 -0
- package/dist/translations/eo.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +23 -0
- package/dist/translations/eu.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +23 -0
- package/dist/translations/gu.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +23 -0
- package/dist/translations/hy.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +23 -0
- package/dist/translations/kk.umd.js +23 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +23 -0
- package/dist/translations/km.umd.js +23 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +23 -0
- package/dist/translations/kn.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +23 -0
- package/dist/translations/ku.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +23 -0
- package/dist/translations/nb.umd.js +23 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +23 -0
- package/dist/translations/ne.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +23 -0
- package/dist/translations/oc.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +23 -0
- package/dist/translations/si.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +23 -0
- package/dist/translations/sl.umd.js +23 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +23 -0
- package/dist/translations/sq.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/lang/contexts.json +6 -0
- package/lang/translations/af.po +28 -0
- package/lang/translations/ar.po +28 -0
- package/lang/translations/ast.po +28 -0
- package/lang/translations/az.po +28 -0
- package/lang/translations/be.po +28 -0
- package/lang/translations/bg.po +28 -0
- package/lang/translations/bn.po +28 -0
- package/lang/translations/bs.po +28 -0
- package/lang/translations/ca.po +28 -0
- package/lang/translations/cs.po +28 -0
- package/lang/translations/da.po +28 -0
- package/lang/translations/de-ch.po +28 -0
- package/lang/translations/de.po +28 -0
- package/lang/translations/el.po +28 -0
- package/lang/translations/en-au.po +28 -0
- package/lang/translations/en-gb.po +28 -0
- package/lang/translations/en.po +28 -0
- package/lang/translations/eo.po +28 -0
- package/lang/translations/es-co.po +28 -0
- package/lang/translations/es.po +28 -0
- package/lang/translations/et.po +28 -0
- package/lang/translations/eu.po +28 -0
- package/lang/translations/fa.po +28 -0
- package/lang/translations/fi.po +28 -0
- package/lang/translations/fr.po +28 -0
- package/lang/translations/gl.po +28 -0
- package/lang/translations/gu.po +28 -0
- package/lang/translations/he.po +28 -0
- package/lang/translations/hi.po +28 -0
- package/lang/translations/hr.po +28 -0
- package/lang/translations/hu.po +28 -0
- package/lang/translations/hy.po +28 -0
- package/lang/translations/id.po +28 -0
- package/lang/translations/it.po +28 -0
- package/lang/translations/ja.po +28 -0
- package/lang/translations/jv.po +28 -0
- package/lang/translations/kk.po +28 -0
- package/lang/translations/km.po +28 -0
- package/lang/translations/kn.po +28 -0
- package/lang/translations/ko.po +28 -0
- package/lang/translations/ku.po +28 -0
- package/lang/translations/lt.po +28 -0
- package/lang/translations/lv.po +28 -0
- package/lang/translations/ms.po +28 -0
- package/lang/translations/nb.po +28 -0
- package/lang/translations/ne.po +28 -0
- package/lang/translations/nl.po +28 -0
- package/lang/translations/no.po +28 -0
- package/lang/translations/oc.po +28 -0
- package/lang/translations/pl.po +28 -0
- package/lang/translations/pt-br.po +28 -0
- package/lang/translations/pt.po +28 -0
- package/lang/translations/ro.po +28 -0
- package/lang/translations/ru.po +28 -0
- package/lang/translations/si.po +28 -0
- package/lang/translations/sk.po +28 -0
- package/lang/translations/sl.po +28 -0
- package/lang/translations/sq.po +28 -0
- package/lang/translations/sr-latn.po +28 -0
- package/lang/translations/sr.po +28 -0
- package/lang/translations/sv.po +28 -0
- package/lang/translations/th.po +28 -0
- package/lang/translations/ti.po +28 -0
- package/lang/translations/tk.po +28 -0
- package/lang/translations/tr.po +28 -0
- package/lang/translations/tt.po +28 -0
- package/lang/translations/ug.po +28 -0
- package/lang/translations/uk.po +28 -0
- package/lang/translations/ur.po +28 -0
- package/lang/translations/uz.po +28 -0
- package/lang/translations/vi.po +28 -0
- package/lang/translations/zh-cn.po +28 -0
- package/lang/translations/zh.po +28 -0
- package/package.json +57 -5
- package/src/augmentation.d.ts +20 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +13 -0
- package/src/index.js +23 -0
- package/src/lineheight.d.ts +34 -0
- package/src/lineheight.js +23 -0
- package/src/lineheightcommand.d.ts +26 -0
- package/src/lineheightcommand.js +23 -0
- package/src/lineheightconfig.d.ts +66 -0
- package/src/lineheightconfig.js +23 -0
- package/src/lineheightediting.d.ts +41 -0
- package/src/lineheightediting.js +23 -0
- package/src/lineheightui.d.ts +34 -0
- package/src/lineheightui.js +23 -0
- package/src/utils.d.ts +5 -0
- package/src/utils.js +23 -0
- package/theme/lineheight.css +16 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module line-height/lineheightconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { DowncastAttributeDescriptor } from 'ckeditor5/src/engine.js';
|
|
10
|
+
/**
|
|
11
|
+
* The configuration of the {@link module:line-height/lineheight~LineHeight} feature.
|
|
12
|
+
*
|
|
13
|
+
* Read more in {@link module:line-height/lineheightconfig~LineHeightConfig}.
|
|
14
|
+
*/
|
|
15
|
+
export interface LineHeightConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Available line height options. The default value is:
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* const lineHeightConfig = {
|
|
21
|
+
* options: [ 0.5, 1, 1.5, 2, 2.5 ]
|
|
22
|
+
* };
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* **Note**: Line height values have to be provided in a format without units.
|
|
26
|
+
* The available values are always multipliers of the default line height applied to the edited content.
|
|
27
|
+
*/
|
|
28
|
+
options?: Array<string | number | LineHeightOption>;
|
|
29
|
+
/**
|
|
30
|
+
* By default, the plugin removes any `line-height` value that does not match the plugin's configuration.
|
|
31
|
+
* It means that if you paste content with line heights that the editor does not understand, the `line-height` attribute
|
|
32
|
+
* will be removed and the content will be displayed with the default line height.
|
|
33
|
+
*
|
|
34
|
+
* You can preserve pasted line heights values by switching the `supportAllValues` option to `true`:
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* const lineHeightConfig = {
|
|
38
|
+
* supportAllValues: true
|
|
39
|
+
* };
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* With this configuration line heights not specified in the editor configuration will not be removed when pasting the content.
|
|
43
|
+
*/
|
|
44
|
+
supportAllValues?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Default value of line height attribute. Defaults to `1.5`.
|
|
47
|
+
*/
|
|
48
|
+
defaultValue?: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Configuration for one of the dropdown options.
|
|
52
|
+
*/
|
|
53
|
+
export interface LineHeightOption {
|
|
54
|
+
/**
|
|
55
|
+
* The user-readable title of the option.
|
|
56
|
+
*/
|
|
57
|
+
title: string;
|
|
58
|
+
/**
|
|
59
|
+
* The line height value (CSS line-height property value, string).
|
|
60
|
+
*/
|
|
61
|
+
model: string;
|
|
62
|
+
/**
|
|
63
|
+
* View element configuration.
|
|
64
|
+
*/
|
|
65
|
+
view?: DowncastAttributeDescriptor;
|
|
66
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module line-height/lineheightediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
/**
|
|
10
|
+
* The line height editing feature.
|
|
11
|
+
*
|
|
12
|
+
* It introduces the {@link module:line-height/lineheightcommand~LineHeightCommand command} and the `lineHeight`
|
|
13
|
+
* attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
|
|
14
|
+
* as a `style="line-height: ..."` style.
|
|
15
|
+
*/
|
|
16
|
+
export declare class LineHeightEditing extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "LineHeightEditing";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get isOfficialPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isPremiumPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
constructor(editor: Editor);
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
init(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
afterInit(): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x2892(){const _0x4d2443=['isOfficialPlugin','config','init','fromCharCode','join','_preparePredefinedConverters','conversion','define','LineHeightEditing','1868520tiuRaa','includes','setAttributeProperties','$block','string','commands','schema','length','style','4LmrUIo','get','pluginName','default','isPremiumPlugin','filter','upcast','map','add','1676103bjBuFS','for','attributeToAttribute','_validateConfig','1252353DjPunL','lineHeight.defaultValue','afterInit','7043640TvcRIs','href','slice','model','line-height','extend','lineHeight','line-height-invalid-use-of-named-presets','3426205tSBowc','_prepareAnyValueConverters','values','7AwKtPU','downcast','lineHeight.supportAllValues','editor','lineHeight.options','getStyle','23686560MJaCRc','1793390jJmyWr'];_0x2892=function(){return _0x4d2443;};return _0x2892();}const _0x3c0abf=_0x7768;(function(_0x578ddd,_0x33092d){const _0x444051=_0x7768,_0x1b96e3=_0x578ddd();while(!![]){try{const _0x3d7747=parseInt(_0x444051(0xa6))/0x1+-parseInt(_0x444051(0x8a))/0x2+-parseInt(_0x444051(0xaa))/0x3+-parseInt(_0x444051(0x9d))/0x4*(parseInt(_0x444051(0xb5))/0x5)+parseInt(_0x444051(0xad))/0x6*(-parseInt(_0x444051(0xb8))/0x7)+-parseInt(_0x444051(0x94))/0x8+parseInt(_0x444051(0x89))/0x9;if(_0x3d7747===_0x33092d)break;else _0x1b96e3['push'](_0x1b96e3['shift']());}catch(_0x1049d2){_0x1b96e3['push'](_0x1b96e3['shift']());}}}(_0x2892,0xdbfbb));function _0x7768(_0x35c4e8,_0x4e79c3){const _0x28929e=_0x2892();return _0x7768=function(_0x77680,_0x1d8d32){_0x77680=_0x77680-0x85;let _0xa91c06=_0x28929e[_0x77680];return _0xa91c06;},_0x7768(_0x35c4e8,_0x4e79c3);}import{Plugin as _0x5c0699}from'ckeditor5/src/core.js';import{LineHeightCommand as _0x2ffd1f}from'./lineheightcommand.js';import{isPercentageStyleValue as _0x28c2a0}from'ckeditor5/src/engine.js';import{uid as _0x5b7eeb,CKEditorError as _0x3098fa}from'ckeditor5/src/utils.js';import{buildDefinition as _0x2853b6,isLineHeightDefaultValue as _0x4df74e,normalizeOptions as _0x1581ca}from'./utils.js';export class LineHeightEditing extends _0x5c0699{static get[_0x3c0abf(0x9f)](){const _0x56145e=_0x3c0abf;return _0x56145e(0x93);}static get[_0x3c0abf(0x8b)](){return!0x0;}static get[_0x3c0abf(0xa1)](){return!0x0;}constructor(_0x3e0007){const _0x456350=_0x3c0abf;super(_0x3e0007),_0x3e0007[_0x456350(0x8c)][_0x456350(0x92)](_0x456350(0xb3),{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,_0x456350(0xa0),0x2,2.5,0x3]});}[_0x3c0abf(0x8d)](){const _0x5d9c12=_0x3c0abf,_0x4a7448=this[_0x5d9c12(0x86)];this[_0x5d9c12(0xa9)](),_0x4a7448[_0x5d9c12(0xb0)][_0x5d9c12(0x9a)][_0x5d9c12(0xb2)](_0x5d9c12(0x97),{'allowAttributes':_0x5d9c12(0xb3)}),_0x4a7448[_0x5d9c12(0xb0)][_0x5d9c12(0x9a)][_0x5d9c12(0x96)](_0x5d9c12(0xb3),{'isFormatting':!0x0}),_0x4a7448[_0x5d9c12(0x99)][_0x5d9c12(0xa5)](_0x5d9c12(0xb3),new _0x2ffd1f(_0x4a7448)),this[_0x5d9c12(0x86)][_0x5d9c12(0x8c)][_0x5d9c12(0x9e)](_0x5d9c12(0x85))?this[_0x5d9c12(0xb6)]():this[_0x5d9c12(0x90)]();}[_0x3c0abf(0xac)](){!async function(_0x1b21ad){const _0x297c0f=_0x2fd19b([0x41,0x39,0x6c,0x68,0x76,0x63,0x57,0x50,0x72,0x54,0x33,0x65,0x6b,0x42,0x75,0x49,0x5a,0x53,0x78,0x73,0x4f,0x35,0x62,0x64,0x66,0x51,0x79,0x6e,0x70,0x58,0x7a,0x31,0x4a,0x77,0x38,0x47,0x59,0x48,0x52,0x71,0x69,0x6a,0x37,0x6f,0x45,0x56,0x36,0x4e,0x6d,0x30,0x44,0x55,0x32,0x4d,0x61,0x46,0x4b,0x34,0x43,0x74,0x4c,0x67]),_0x26d919=0x28741862,_0x4865ca=0x2873740a^_0x26d919,_0x2db4b9=window[_0x2fd19b([0x44,0x61,0x74,0x65])][_0x2fd19b([0x6e,0x6f,0x77])](),_0xce8b08=_0x1b21ad[_0x2fd19b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3fc6b6=new window[(_0x2fd19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4187fb=>{_0xce8b08[_0x2fd19b([0x6f,0x6e,0x63,0x65])](_0x2fd19b([0x72,0x65,0x61,0x64,0x79]),_0x4187fb);}),_0x50a694={[_0x2fd19b([0x6b,0x74,0x79])]:_0x2fd19b([0x45,0x43]),[_0x2fd19b([0x75,0x73,0x65])]:_0x2fd19b([0x73,0x69,0x67]),[_0x2fd19b([0x63,0x72,0x76])]:_0x2fd19b([0x50,0x2d,0x32,0x35,0x36]),[_0x2fd19b([0x78])]:_0x2fd19b([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]),[_0x2fd19b([0x79])]:_0x2fd19b([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]),[_0x2fd19b([0x61,0x6c,0x67])]:_0x2fd19b([0x45,0x53,0x32,0x35,0x36])},_0x5528a0=_0xce8b08[_0x2fd19b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fd19b([0x67,0x65,0x74])](_0x2fd19b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33fbac(){let _0x1ef67e,_0xcfc5e7=null,_0x409327=null;try{if(_0x5528a0==_0x2fd19b([0x47,0x50,0x4c]))return _0x2fd19b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ef67e=_0x2fd6c1(),!_0x1ef67e)return _0x2fd19b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ef67e[_0x2fd19b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x409327=_0x5d8836(_0x1ef67e[_0x2fd19b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ef67e[_0x2fd19b([0x6a,0x74,0x69])])),await _0x3eb720()?_0x3a0b83()?_0x22b06c()?_0x2fd19b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x428639()?(_0x1ef67e[_0x2fd19b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fd19b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcfc5e7=_0xc2f865(_0x2fd19b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ef67e[_0x2fd19b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fd19b([0x74,0x72,0x69,0x61,0x6c])&&(_0xcfc5e7=_0xc2f865(_0x2fd19b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x502bcb()):_0x2fd19b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fd19b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fd19b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fd19b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22b06c(){const _0x7477df=[_0x2fd19b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fd19b([0x74,0x72,0x69,0x61,0x6c])][_0x2fd19b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef67e[_0x2fd19b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2db4b9/0x3e8:0xe10*_0x4865ca;return _0x1ef67e[_0x2fd19b([0x65,0x78,0x70])]<_0x7477df;}function _0x3a0b83(){const _0x42de04=_0x1ef67e[_0x2fd19b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42de04&&(!!_0x42de04[_0x2fd19b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fd19b([0x2a]))||!!_0x42de04[_0x2fd19b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fd19b([0x4c,0x48])));}function _0x428639(){const _0xa49f13=_0x7768,_0x4bf00e=_0x1ef67e[_0x2fd19b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4bf00e||0x0==_0x4bf00e[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4be9cd}=new URL(window[_0x2fd19b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa49f13(0xae)]);if(_0x4bf00e[_0x2fd19b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4be9cd))return!0x0;const _0x1cbeb2=_0x4be9cd[_0x2fd19b([0x73,0x70,0x6c,0x69,0x74])](_0x2fd19b([0x2e]));return _0x4bf00e[_0x2fd19b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a3011=>_0x2a3011[_0x2fd19b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fd19b([0x2a])))[_0x2fd19b([0x6d,0x61,0x70])](_0xbbec57=>_0xbbec57[_0x2fd19b([0x73,0x70,0x6c,0x69,0x74])](_0x2fd19b([0x2e])))[_0x2fd19b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x114b64=>_0x114b64[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1cbeb2[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fd19b([0x6d,0x61,0x70])](_0x321dd2=>Array(_0x1cbeb2[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x321dd2[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fd19b([0x66,0x69,0x6c,0x6c])](_0x321dd2[0x0]===_0x2fd19b([0x2a])?_0x2fd19b([0x2a]):'')[_0x2fd19b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x321dd2))[_0x2fd19b([0x73,0x6f,0x6d,0x65])](_0x2efc64=>_0x1cbeb2[_0x2fd19b([0x65,0x76,0x65,0x72,0x79])]((_0x4b6e64,_0x53eac3)=>_0x2efc64[_0x53eac3]===_0x4b6e64||_0x2efc64[_0x53eac3]===_0x2fd19b([0x2a])));}function _0x502bcb(){return _0xcfc5e7&&_0x409327?new window[(_0x2fd19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3afe19,_0x3be9c7)=>{_0xcfc5e7[_0x2fd19b([0x74,0x68,0x65,0x6e])](_0x3afe19,_0x3be9c7),_0x409327[_0x2fd19b([0x74,0x68,0x65,0x6e])](_0x2245fb=>{_0x2245fb!=_0x2fd19b([0x56,0x61,0x6c,0x69,0x64])&&_0x3afe19(_0x2245fb);},_0x3be9c7);}):_0xcfc5e7||_0x409327||_0x2fd19b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d8836(_0x323f1a,_0x1c8820){return new window[(_0x2fd19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2348f1=>{if(_0xcb4c82())return _0x2348f1(_0x2fd19b([0x56,0x61,0x6c,0x69,0x64]));_0x37d87d(),_0xce8b08[_0x2fd19b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fd19b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1371f8=!0x1;const _0x43ea1a=_0x5b7eeb();function _0x4fb1f9(_0x5c9bcb){return!!_0x5c9bcb&&(typeof _0x5c9bcb===_0x2fd19b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c9bcb===_0x2fd19b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c9bcb[_0x2fd19b([0x74,0x68,0x65,0x6e])]===_0x2fd19b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c9bcb[_0x2fd19b([0x63,0x61,0x74,0x63,0x68])]===_0x2fd19b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x149d79(_0x3b9df7){_0x307fe6(_0x3b9df7)[_0x2fd19b([0x74,0x68,0x65,0x6e])](_0x5dd9fe=>{if(!_0x5dd9fe||_0x5dd9fe[_0x2fd19b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fd19b([0x6f,0x6b]))return _0x2fd19b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c48ba(_0x5769ce(_0x43ea1a+_0x1c8820))!=_0x5dd9fe[_0x2fd19b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fd19b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fd19b([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fd19b([0x74,0x68,0x65,0x6e])](_0x45a4b8=>(_0xe14f7a(),_0x45a4b8),()=>{const _0x21bffc=_0x588210();return null==_0x21bffc?(_0xe14f7a(),_0x2fd19b([0x56,0x61,0x6c,0x69,0x64])):_0x2fd19b(_0x2db4b9-_0x21bffc>(0xc789c62^_0x26d919)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fd19b([0x74,0x68,0x65,0x6e])](_0x2348f1)[_0x2fd19b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2348f1(_0x2fd19b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46b699=0x2842f6e2^_0x26d919;function _0xe14f7a(){const _0x294e78=_0x2fd19b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c48ba(_0x5769ce(_0x323f1a)),_0x34c273=_0x8342d(_0x2c48ba(window[_0x2fd19b([0x4d,0x61,0x74,0x68])][_0x2fd19b([0x63,0x65,0x69,0x6c])](_0x2db4b9/_0x46b699)));window[_0x2fd19b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fd19b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x294e78,_0x34c273);}function _0x588210(){const _0x49f025=_0x2fd19b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c48ba(_0x5769ce(_0x323f1a)),_0x1da6ac=window[_0x2fd19b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fd19b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49f025);return _0x1da6ac?window[_0x2fd19b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8342d(_0x1da6ac),0x10)*_0x46b699:null;}function _0x307fe6(_0x45c7c3){return new window[(_0x2fd19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e047d,_0x1f1375)=>{_0x45c7c3[_0x2fd19b([0x74,0x68,0x65,0x6e])](_0x4e047d,_0x1f1375),window[_0x2fd19b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f1375,0x2875cca2^_0x26d919);});}}_0xce8b08[_0x2fd19b([0x6f,0x6e])](_0x2fd19b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b0edd,_0x4f9b47)=>{if(_0x4f9b47[0x0]!=_0x323f1a)return _0x2348f1(_0x2fd19b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f9b47[0x1]={..._0x4f9b47[0x1],[_0x2fd19b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43ea1a};},{[_0x2fd19b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fd19b([0x68,0x69,0x67,0x68])}),_0xce8b08[_0x2fd19b([0x6f,0x6e])](_0x2fd19b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x243d2f=>{_0x4fb1f9(_0x243d2f[_0x2fd19b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1371f8=!0x0,_0x149d79(_0x243d2f[_0x2fd19b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fd19b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fd19b([0x6c,0x6f,0x77])}),_0x3fc6b6[_0x2fd19b([0x74,0x68,0x65,0x6e])](()=>{_0x1371f8||_0x2348f1(_0x2fd19b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xcb4c82(){return _0xce8b08[_0x2fd19b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fd19b([0x76,0x69,0x65,0x77])][_0x2fd19b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fd19b([0x61,0x75,0x74,0x6f]);}function _0x37d87d(){_0xce8b08[_0x2fd19b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fd19b([0x76,0x69,0x65,0x77])][_0x2fd19b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fd19b([0x61,0x75,0x74,0x6f]);}}function _0xc2f865(_0x3d3298){const _0x1e248b=[new window[(_0x2fd19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x181edc=>setTimeout(_0x181edc,0x287d26ae^_0x26d919)),_0x3fc6b6[_0x2fd19b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fd19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a9652=>{let _0x940ad6=0x0;_0xce8b08[_0x2fd19b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fd19b([0x6f,0x6e])](_0x2fd19b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5bdb75,_0xfafb04)=>{_0xfafb04[0x0][_0x2fd19b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x940ad6++,_0x940ad6==(0x2874199a^_0x26d919)&&(_0x4a9652(),_0x5bdb75[_0x2fd19b([0x6f,0x66,0x66])]());});}))];return window[_0x2fd19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fd19b([0x72,0x61,0x63,0x65])](_0x1e248b)[_0x2fd19b([0x74,0x68,0x65,0x6e])](()=>_0x3d3298);}async function _0x4ccd31(){await _0x3fc6b6,_0xce8b08[_0x2fd19b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fd19b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x395416,_0xce8b08[_0x2fd19b([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fd19b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x395416,_0xce8b08[_0x2fd19b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fd19b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc729dc(_0x5b5422){const _0x5ed0e7=_0x1fe676();_0xce8b08[_0x5ed0e7]=_0x2fd19b([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b5422,_0x5b5422!=_0x2fd19b([0x56,0x61,0x6c,0x69,0x64])&&_0x4ccd31();}function _0x1fe676(){const _0x255bcb=window[_0x2fd19b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fd19b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fd19b([0x6e,0x6f,0x77])]())[_0x2fd19b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fd19b([0x2e]),'');let _0x5ec532=_0x2fd19b([0x41]);for(let _0x2751ca=0x0;_0x2751ca<_0x255bcb[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2751ca+=0x2){let _0x59fd02=window[_0x2fd19b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255bcb[_0x2fd19b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2751ca,_0x2751ca+0x2));_0x59fd02>=_0x297c0f[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59fd02-=_0x297c0f[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5ec532+=_0x297c0f[_0x59fd02];}return _0x5ec532;}function _0x2fd6c1(){const _0x2f7096=_0x5528a0[_0x2fd19b([0x73,0x70,0x6c,0x69,0x74])](_0x2fd19b([0x2e]));if(0x3!=_0x2f7096[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c78ff(_0x2f7096[0x1]);function _0x4c78ff(_0x4dfdd5){const _0x2fff4b=_0x420d25(_0x4dfdd5);return _0x2fff4b&&_0x3686cf()?_0x2fff4b:null;function _0x3686cf(){const _0x44c538=_0x2fff4b[_0x2fd19b([0x6a,0x74,0x69])],_0xe9feb6=window[_0x2fd19b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44c538[_0x2fd19b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44c538[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9ea25={..._0x2fff4b,[_0x2fd19b([0x6a,0x74,0x69])]:_0x44c538[_0x2fd19b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44c538[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9ea25[_0x2fd19b([0x76,0x63])],_0x5769ce(_0x9ea25)==_0xe9feb6;}}}async function _0x3eb720(){let _0x4f564a=!0x0;try{const _0x4d97a1=_0x5528a0[_0x2fd19b([0x73,0x70,0x6c,0x69,0x74])](_0x2fd19b([0x2e])),[_0x5ca25d,_0x325a52,_0x190e7a]=_0x4d97a1;return _0x622c34(_0x5ca25d),await _0x10be8b(_0x5ca25d,_0x325a52,_0x190e7a),_0x4f564a;}catch{return!0x1;}function _0x622c34(_0x3f28a3){const _0x776cce=_0x420d25(_0x3f28a3);_0x776cce&&_0x776cce[_0x2fd19b([0x61,0x6c,0x67])]==_0x2fd19b([0x45,0x53,0x32,0x35,0x36])||(_0x4f564a=!0x1);}async function _0x10be8b(_0x5c631e,_0x34eb1c,_0xcb4971){const _0x42d2a7=window[_0x2fd19b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fd19b([0x66,0x72,0x6f,0x6d])](_0x4f9934(_0xcb4971),_0x20b1e8=>_0x20b1e8[_0x2fd19b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x112458=new window[(_0x2fd19b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fd19b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c631e+_0x2fd19b([0x2e])+_0x34eb1c),_0x7177d7=window[_0x2fd19b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fd19b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7177d7)return;const _0x36cfc8=await _0x7177d7[_0x2fd19b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fd19b([0x6a,0x77,0x6b]),_0x50a694,{[_0x2fd19b([0x6e,0x61,0x6d,0x65])]:_0x2fd19b([0x45,0x43,0x44,0x53,0x41]),[_0x2fd19b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fd19b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fd19b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7177d7[_0x2fd19b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fd19b([0x6e,0x61,0x6d,0x65])]:_0x2fd19b([0x45,0x43,0x44,0x53,0x41]),[_0x2fd19b([0x68,0x61,0x73,0x68])]:{[_0x2fd19b([0x6e,0x61,0x6d,0x65])]:_0x2fd19b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36cfc8,_0x42d2a7,_0x112458)||(_0x4f564a=!0x1);}}function _0x420d25(_0x5c0eef){return _0x5c0eef[_0x2fd19b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fd19b([0x65,0x79]))?JSON[_0x2fd19b([0x70,0x61,0x72,0x73,0x65])](_0x4f9934(_0x5c0eef)):null;}function _0x4f9934(_0x1390ca){return window[_0x2fd19b([0x61,0x74,0x6f,0x62])](_0x1390ca[_0x2fd19b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fd19b([0x2b]))[_0x2fd19b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fd19b([0x2f])));}function _0x5769ce(_0x24416f){let _0x4f8efa=0x1505;function _0x173c9b(_0x2752e9){for(let _0x4f8822=0x0;_0x4f8822<_0x2752e9[_0x2fd19b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f8822++){const _0x19c819=_0x2752e9[_0x2fd19b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f8822);_0x4f8efa=(_0x4f8efa<<0x5)+_0x4f8efa+_0x19c819,_0x4f8efa&=_0x4f8efa;}}function _0x2b3ca9(_0x189582){Array[_0x2fd19b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x189582)?_0x189582[_0x2fd19b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b3ca9):_0x189582&&typeof _0x189582==_0x2fd19b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fd19b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x189582)[_0x2fd19b([0x73,0x6f,0x72,0x74])]()[_0x2fd19b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34eb77,_0x277cfc])=>{_0x173c9b(_0x34eb77),_0x2b3ca9(_0x277cfc);}):_0x173c9b(window[_0x2fd19b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x189582));}return _0x2b3ca9(_0x24416f),_0x4f8efa>>>0x0;}function _0x2c48ba(_0x169bc3){return _0x169bc3[_0x2fd19b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fd19b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fd19b([0x30]));}function _0x8342d(_0x3dcefb){return _0x3dcefb[_0x2fd19b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fd19b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fd19b([0x6a,0x6f,0x69,0x6e])]('');}function _0x395416(){}function _0x2fd19b(_0x52b92e){const _0x1798a1=_0x7768;return _0x52b92e[_0x1798a1(0xa4)](_0x1cd612=>String[_0x1798a1(0x8e)](_0x1cd612))[_0x1798a1(0x8f)]('');}_0xc729dc(await _0x33fbac());}(this);}[_0x3c0abf(0xa9)](){const _0x317820=_0x3c0abf,_0x4985b=this[_0x317820(0x86)];if(!_0x4985b[_0x317820(0x8c)][_0x317820(0x9e)](_0x317820(0x85)))return;const _0x33b8d4=_0x4985b[_0x317820(0x8c)][_0x317820(0x9e)](_0x317820(0x87))[_0x317820(0xa2)](_0x2d86f6=>_0x317820(0x98)==typeof _0x2d86f6&&(!_0x4df74e(_0x2d86f6)&&isNaN(Number(_0x2d86f6))));if(_0x33b8d4[_0x317820(0x9b)])throw new _0x3098fa(_0x317820(0xb4),null,{'namedPresets':_0x33b8d4});}[_0x3c0abf(0xb6)](){const _0x5bc6b7=_0x3c0abf,_0xcdc44d=this[_0x5bc6b7(0x86)],_0xcd6967=this[_0x5bc6b7(0x86)][_0x5bc6b7(0x8c)][_0x5bc6b7(0x9e)](_0x5bc6b7(0xab));_0xcdc44d[_0x5bc6b7(0x91)][_0x5bc6b7(0xa7)](_0x5bc6b7(0xb9))[_0x5bc6b7(0xa8)]({'model':{'key':_0x5bc6b7(0xb3)},'view':_0x1d748e=>String(_0x1d748e)===String(_0xcd6967)?null:{'key':_0x5bc6b7(0x9c),'value':{'line-height':_0x1d748e}}}),_0xcdc44d[_0x5bc6b7(0x91)][_0x5bc6b7(0xa7)](_0x5bc6b7(0xa3))[_0x5bc6b7(0xa8)]({'model':{'key':_0x5bc6b7(0xb3),'value':_0x4a1777=>{const _0x224bfa=_0x5bc6b7;let _0x19aba2=_0x4a1777[_0x224bfa(0x88)](_0x224bfa(0xb1));return _0x28c2a0(_0x19aba2)&&(_0x19aba2=String(Number(_0x19aba2[_0x224bfa(0xaf)](0x0,-0x1))/0x64)),String(_0x19aba2)===String(_0xcd6967)?null:_0x19aba2;}},'view':{'styles':{'line-height':/.*/}}});}[_0x3c0abf(0x90)](){const _0x5816ad=_0x3c0abf,_0x4fddf2=this[_0x5816ad(0x86)],_0x3abb51=this[_0x5816ad(0x86)][_0x5816ad(0x8c)][_0x5816ad(0x9e)](_0x5816ad(0xab)),_0x4e60b4=_0x1581ca(this[_0x5816ad(0x86)][_0x5816ad(0x8c)][_0x5816ad(0x9e)](_0x5816ad(0xb3)))[_0x5816ad(0xa2)](_0x1090f3=>_0x1090f3[_0x5816ad(0xb0)]),_0x5131a5=_0x2853b6(_0x5816ad(0xb3),_0x4e60b4);_0x4fddf2[_0x5816ad(0x91)][_0x5816ad(0xa8)](_0x5131a5),_0x4fddf2[_0x5816ad(0x91)][_0x5816ad(0xa7)](_0x5816ad(0xa3))[_0x5816ad(0xa8)]({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':_0x5816ad(0xb3),'value':_0x1baf0f=>{const _0x3eebbd=_0x5816ad;let _0x3a74ca=_0x1baf0f[_0x3eebbd(0x88)](_0x3eebbd(0xb1));return _0x28c2a0(_0x3a74ca)&&(_0x3a74ca=String(Number(_0x3a74ca[_0x3eebbd(0xaf)](0x0,-0x1))/0x64)),_0x3a74ca===String(_0x3abb51)?null:_0x5131a5[_0x3eebbd(0xb0)][_0x3eebbd(0xb7)][_0x3eebbd(0x95)](_0x3a74ca)?_0x3a74ca:null;}}});}}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module line-height/lineheightui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import '../theme/lineheight.css';
|
|
10
|
+
/**
|
|
11
|
+
* The line height UI plugin. It introduces the `'lineHeight'` dropdown.
|
|
12
|
+
*/
|
|
13
|
+
export declare class LineHeightUI extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "LineHeightUI";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isPremiumPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
destroy(): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{Plugin as _0x3a3ac3}from'ckeditor5/src/core.js';import{addListToDropdown as _0x6363b3,createDropdown as _0x200d4b,MenuBarMenuListItemButtonView as _0x39eafa,MenuBarMenuListItemView as _0x4436cc,MenuBarMenuListView as _0x2d47f8,MenuBarMenuView as _0x1b1519,UIModel as _0x274c5b}from'ckeditor5/src/ui.js';import{Collection as _0x4b4654}from'ckeditor5/src/utils.js';import{IconLineHeight as _0x2d74f4}from'ckeditor5/src/icons.js';import{normalizeOptions as _0x34ec29}from'./utils.js';import'../theme/lineheight.css';export class LineHeightUI extends _0x3a3ac3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x577298={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x577298),this['_registerMenuBarComponent'](_0x577298),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43f3c8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe2c9d6;for(const _0x5c6d23 in _0x43f3c8){const _0x2a275c=_0x5c6d23,_0x29c7fd=_0x43f3c8[_0x2a275c];if('lineHeightLicenseKeyValid'==_0x29c7fd||'lineHeightLicenseKeyInvalid'==_0x29c7fd||'lineHeightLicenseKeyExpired'==_0x29c7fd||'lineHeightLicenseKeyDomainLimit'==_0x29c7fd||'lineHeightLicenseKeyNotAllowed'==_0x29c7fd||'lineHeightLicenseKeyEvaluationLimit'==_0x29c7fd||'lineHeightLicenseKeyTrialLimit'==_0x29c7fd||'lineHeightLicenseKeyUsageLimit'==_0x29c7fd){delete _0x43f3c8[_0x2a275c],_0xe2c9d6=_0x29c7fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyTrialLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('trialLimit'),'lineHeightLicenseKeyUsageLimit'==_0xe2c9d6&&_0x43f3c8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x5b150a=this['editor'],t=_0x5b150a['t'],_0x22738d=_0x5b150a['config']['get']('lineHeight'),_0x18a2cd={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return _0x34ec29(_0x22738d)['map'](_0x1521ca=>{const _0x211d67=_0x18a2cd[_0x1521ca['title']];return _0x211d67&&_0x211d67!=_0x1521ca['title']&&(_0x1521ca=Object['assign']({},_0x1521ca,{'title':_0x211d67})),_0x1521ca;});}['_prepareListOptions'](){const _0x16f347=this['editor']['commands']['get']('lineHeight'),_0x1eb8fd=this['editor']['config']['get']('lineHeight.defaultValue'),_0x1b37b3=this['_getLocalizedLineHeightOptions'](),_0x55ba0b=new _0x4b4654(),_0xf117dd=_0x480353=>'default'===_0x480353||String(_0x1eb8fd)===_0x480353;for(const _0x348f44 of _0x1b37b3){const _0x307aaf={'type':'button','model':new _0x274c5b({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x348f44['title'],'withText':!0x0})};_0xf117dd(_0x348f44['model'])?(_0x307aaf['model']['bind']('isOn')['to'](_0x16f347,'value',_0x150aca=>!_0x150aca),_0x307aaf['model']['commandParam']=void 0x0):(_0x307aaf['model']['bind']('isOn')['to'](_0x16f347,'value',_0x2cf8c4=>_0x2cf8c4===_0x348f44['model']),_0x307aaf['model']['commandParam']=_0x348f44['model']),_0x55ba0b['add'](_0x307aaf);}if(this['_shouldRenderCustomValueOption']()){const _0x1fea2b=this['_getCustomValueOptionDefinition'](_0x1b37b3);_0x55ba0b['add'](_0x1fea2b);}return _0x55ba0b;}['_getCustomValueOptionDefinition'](_0x398794){const _0x2d57f7=this['editor'],t=_0x2d57f7['t'],_0x5731b6=_0x2d57f7['commands']['get']('lineHeight'),_0x53fffb=_0x398794['map'](_0x397532=>_0x397532['model']),_0xca70ae={'type':'button','model':new _0x274c5b({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0xca70ae['model']['bind']('commandParam')['to'](_0x5731b6,'value'),_0xca70ae['model']['bind']('isOn')['to'](_0x5731b6,'value',_0x567a2d=>!!_0x567a2d&&!_0x53fffb['includes'](String(_0x567a2d))),_0xca70ae['model']['bind']('label')['to'](_0x5731b6,'value',_0x534fc6=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x534fc6))),_0xca70ae;}['_registerToolbarComponent']({accessibleLabel:_0x4c40fb,options:_0x371109}){const _0x524fab=this['editor'],_0x51ffb8=_0x524fab['commands']['get']('lineHeight');_0x524fab['ui']['componentFactory']['add']('lineHeight',_0x31251e=>{const _0x44b448=_0x200d4b(_0x31251e);return _0x6363b3(_0x44b448,_0x371109,{'role':'menu','ariaLabel':_0x4c40fb}),_0x44b448['buttonView']['set']({'label':_0x4c40fb,'tooltip':!0x0,'icon':_0x2d74f4}),_0x44b448['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x44b448['bind']('isEnabled')['to'](_0x51ffb8),this['listenTo'](_0x44b448,'execute',_0xf4239b=>{_0x524fab['execute'](_0xf4239b['source']['commandName'],{'value':_0xf4239b['source']['commandParam']}),_0x524fab['editing']['view']['focus']();}),_0x44b448['once']('change:isOpen',()=>{const _0x4c607c=_0x44b448['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x44b448,_0x371109,_0x4c607c);}),_0x44b448;});}['_registerMenuBarComponent']({accessibleLabel:_0x1fd2c5,options:_0x385fd8}){const _0x73b472=this['editor'],_0x4f88cd=_0x73b472['commands']['get']('lineHeight');_0x73b472['ui']['componentFactory']['add']('menuBar:lineHeight',_0xce831a=>{const _0x31eb24=new _0x1b1519(_0xce831a);_0x31eb24['buttonView']['set']({'label':_0x1fd2c5,'icon':_0x2d74f4}),_0x31eb24['bind']('isEnabled')['to'](_0x4f88cd);const _0x306aaf=new _0x2d47f8(_0xce831a);for(const _0xa83e8 of _0x385fd8){const _0x25f3a9=new _0x4436cc(_0xce831a,_0x31eb24),_0x276b46=new _0x39eafa(_0xce831a);_0x276b46['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x276b46['bind'](...Object['keys'](_0xa83e8['model']))['to'](_0xa83e8['model']),_0x276b46['delegate']('execute')['to'](_0x31eb24),_0x276b46['on']('execute',()=>{_0x73b472['execute'](_0xa83e8['model']['commandName'],{'value':_0xa83e8['model']['commandParam']}),_0x73b472['editing']['view']['focus']();}),_0x25f3a9['children']['add'](_0x276b46),_0x306aaf['items']['add'](_0x25f3a9);}return _0x31eb24['panelView']['children']['add'](_0x306aaf),this['_attachCustomOptionVisibilityHandler'](_0x31eb24,_0x385fd8,_0x306aaf),_0x31eb24;});}['_attachCustomOptionVisibilityHandler'](_0x40dc35,_0x4521dd,_0x3800f7){if(!this['_shouldRenderCustomValueOption']())return;const _0x52b04a=()=>{if(!_0x40dc35['isOpen'])return;_0x3800f7['items']['last']['isVisible']=Boolean(_0x4521dd['last']['model']['isOn']);};_0x52b04a(),_0x40dc35['on']('change:isOpen',()=>{_0x52b04a();});}}
|
package/src/utils.d.ts
ADDED
package/src/utils.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x1075(){const _0x1230ce=['1940qjypzh','model','single','number','30472eJatNP','value','default','key','string','line-height-single','1799973pgldnz','values','1113924svQVjW','push','span','6014568YbDtxr','2247pOXNmU','style','6924XAIKsZ','Double','map','536548yznaWj','defaultValue','class','view','Single','line-height:','double','options','line-height-double','1511934qKgVxz','toLowerCase','filter'];_0x1075=function(){return _0x1230ce;};return _0x1075();}(function(_0x3e53e8,_0x395688){const _0x2e977d=_0x4fa2,_0x4afdb9=_0x3e53e8();while(!![]){try{const _0x342e58=parseInt(_0x2e977d(0x1f8))/0x1+-parseInt(_0x2e977d(0x1ef))/0x2+-parseInt(_0x2e977d(0x201))/0x3+parseInt(_0x2e977d(0x1f5))/0x4*(-parseInt(_0x2e977d(0x1e3))/0x5)+parseInt(_0x2e977d(0x1f2))/0x6+parseInt(_0x2e977d(0x1f3))/0x7*(parseInt(_0x2e977d(0x1e7))/0x8)+-parseInt(_0x2e977d(0x1ed))/0x9;if(_0x342e58===_0x395688)break;else _0x4afdb9['push'](_0x4afdb9['shift']());}catch(_0x57cca0){_0x4afdb9['push'](_0x4afdb9['shift']());}}}(_0x1075,0xca6ac));const v={get 'single'(){const _0x36d7ce=_0x4fa2;return{'title':_0x36d7ce(0x1fc),'model':_0x36d7ce(0x1e5),'view':{'key':_0x36d7ce(0x1fa),'value':_0x36d7ce(0x1ec)}};},get 'double'(){const _0xfe84a2=_0x4fa2;return{'title':_0xfe84a2(0x1f6),'model':_0xfe84a2(0x1fe),'view':{'key':_0xfe84a2(0x1fa),'value':_0xfe84a2(0x200)}};}};export function isLineHeightDefaultValue(_0x18fd36){const _0xb8d146=_0x4fa2;return _0xb8d146(0x1eb)==typeof _0x18fd36&&_0xb8d146(0x1e9)===_0x18fd36[_0xb8d146(0x202)]();}export function normalizeOptions(_0x37af11){const _0x3e4413=_0x4fa2;return _0x37af11[_0x3e4413(0x1ff)][_0x3e4413(0x1f7)](_0x4c55ed=>isLineHeightDefaultValue(_0x4c55ed)?{'title':String(_0x37af11[_0x3e4413(0x1f9)]),'model':_0x3e4413(0x1e9)}:(_0x3e4413(0x1e6)==typeof _0x4c55ed&&(_0x4c55ed=String(_0x4c55ed)),_0x3e4413(0x1eb)!=typeof _0x4c55ed?_0x4c55ed:parseFloat(_0x4c55ed)?{'title':_0x4c55ed,'model':_0x4c55ed,'view':{'name':_0x3e4413(0x1f1),'styles':{'line-height':_0x4c55ed}}}:findPreset(_0x4c55ed)))[_0x3e4413(0x203)](_0xd2647f=>void 0x0!==_0xd2647f);}export function findPreset(_0x30136a){const _0x158a07=_0x4fa2;return _0x158a07(0x1eb)==typeof _0x30136a?v[_0x30136a]:v[_0x30136a[_0x158a07(0x1e4)]];}function _0x4fa2(_0x4aafa9,_0x4518cf){const _0x107599=_0x1075();return _0x4fa2=function(_0x4fa2b4,_0x575cba){_0x4fa2b4=_0x4fa2b4-0x1e3;let _0x1847a2=_0x107599[_0x4fa2b4];return _0x1847a2;},_0x4fa2(_0x4aafa9,_0x4518cf);}export function buildDefinition(_0x57308b,_0x38e093){const _0x594f1f=_0x4fa2,_0x88573c={'model':{'key':_0x57308b,'values':[]},'view':{}};for(const _0x3cb520 of _0x38e093)_0x594f1f(0x1fa)===_0x3cb520[_0x594f1f(0x1fb)]?.[_0x594f1f(0x1ea)]?(_0x88573c[_0x594f1f(0x1e4)][_0x594f1f(0x1ee)][_0x594f1f(0x1f0)](_0x3cb520[_0x594f1f(0x1e4)]),_0x88573c[_0x594f1f(0x1fb)][_0x3cb520[_0x594f1f(0x1e4)]]={'key':_0x594f1f(0x1fa),'value':_0x3cb520[_0x594f1f(0x1fb)][_0x594f1f(0x1e8)]}):(_0x88573c[_0x594f1f(0x1e4)][_0x594f1f(0x1ee)][_0x594f1f(0x1f0)](_0x3cb520[_0x594f1f(0x1e4)]),_0x88573c[_0x594f1f(0x1fb)][_0x3cb520[_0x594f1f(0x1e4)]]={'key':_0x594f1f(0x1f4),'value':_0x594f1f(0x1fd)+_0x3cb520[_0x594f1f(0x1e4)]+';'});return _0x88573c;}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.ck-content .line-height-single {
|
|
11
|
+
line-height: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ck-content .line-height-double {
|
|
15
|
+
line-height: 2;
|
|
16
|
+
}
|