@ckeditor/ckeditor5-line-height 0.0.0-internal-20251210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +18 -0
- package/README.md +45 -0
- 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 +31 -0
- package/dist/index-editor.css +12 -0
- package/dist/index.css +60 -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 +67 -0
- package/src/augmentation.d.ts +21 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +14 -0
- package/src/index.js +23 -0
- package/src/integrations/todolist.d.ts +31 -0
- package/src/integrations/todolist.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 +46 -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/integrations/todolist.css +46 -0
- package/theme/lineheight.css +16 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x87e711=_0x4f93;function _0x4f93(_0xbf2367,_0x34db2e){const _0x198721=_0x1987();return _0x4f93=function(_0x4f93b7,_0x150124){_0x4f93b7=_0x4f93b7-0xe9;let _0x399a79=_0x198721[_0x4f93b7];return _0x399a79;},_0x4f93(_0xbf2367,_0x34db2e);}(function(_0x3afd49,_0x43ad58){const _0x5a849d=_0x4f93,_0x27cbbc=_0x3afd49();while(!![]){try{const _0x2ea101=parseInt(_0x5a849d(0xee))/0x1+-parseInt(_0x5a849d(0x103))/0x2+parseInt(_0x5a849d(0xfe))/0x3+parseInt(_0x5a849d(0xff))/0x4*(-parseInt(_0x5a849d(0xef))/0x5)+parseInt(_0x5a849d(0xf6))/0x6+-parseInt(_0x5a849d(0xf8))/0x7+parseInt(_0x5a849d(0xf9))/0x8*(parseInt(_0x5a849d(0xea))/0x9);if(_0x2ea101===_0x43ad58)break;else _0x27cbbc['push'](_0x27cbbc['shift']());}catch(_0x51464e){_0x27cbbc['push'](_0x27cbbc['shift']());}}}(_0x1987,0x396bf));import{Command as _0x20d675}from'ckeditor5/src/core.js';import{first as _0x153d36}from'ckeditor5/src/utils.js';export class LineHeightCommand extends _0x20d675{[_0x87e711(0xf4)](){const _0x9a39a8=_0x87e711,_0x463b44=this[_0x9a39a8(0x104)][_0x9a39a8(0xed)][_0x9a39a8(0xfb)],_0x48b567=_0x153d36(_0x463b44[_0x9a39a8(0xf0)][_0x9a39a8(0xf3)]());this[_0x9a39a8(0x102)]=Boolean(_0x48b567)&&this[_0x9a39a8(0xf1)](_0x48b567),this[_0x9a39a8(0xf7)]=this[_0x9a39a8(0x102)]&&_0x48b567[_0x9a39a8(0xeb)](_0x9a39a8(0xfa));}[_0x87e711(0x101)](_0x598f35={}){const _0x5eaf39=_0x87e711,_0x2fb28d=this[_0x5eaf39(0x104)][_0x5eaf39(0xed)],_0xb8dadb=_0x2fb28d[_0x5eaf39(0xfb)][_0x5eaf39(0xf0)],_0x39ec64=_0x598f35[_0x5eaf39(0xf7)];_0x2fb28d[_0x5eaf39(0xfd)](_0x4366f9=>{const _0x54133c=_0x5eaf39,_0x4afe0e=Array[_0x54133c(0xf2)](_0xb8dadb[_0x54133c(0xf3)]())[_0x54133c(0xec)](_0x8380b5=>this[_0x54133c(0xf1)](_0x8380b5));for(const _0x465473 of _0x4afe0e)_0x39ec64?_0x4366f9[_0x54133c(0xe9)](_0x54133c(0xfa),_0x39ec64,_0x465473):_0x4366f9[_0x54133c(0x100)](_0x54133c(0xfa),_0x465473);});}[_0x87e711(0xf1)](_0x118eec){const _0x386a94=_0x87e711;return this[_0x386a94(0x104)][_0x386a94(0xed)][_0x386a94(0xf5)][_0x386a94(0xfc)](_0x118eec,_0x386a94(0xfa));}}function _0x1987(){const _0x5e850d=['lineHeight','document','checkAttribute','change','187131KeArdR','24iXjlaE','removeAttribute','execute','isEnabled','803438zlXvEx','editor','setAttribute','9egHvSO','getAttribute','filter','model','433055SIAEVH','10415ERtXaz','selection','_canHaveLineHeight','from','getSelectedBlocks','refresh','schema','484590zfMsSi','value','1316532EhssGL','2090360IYQRsc'];_0x1987=function(){return _0x5e850d;};return _0x1987();}
|
|
@@ -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,46 @@
|
|
|
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
|
+
import { LineHeightTodoListIntegration } from './integrations/todolist.js';
|
|
10
|
+
/**
|
|
11
|
+
* The line height editing feature.
|
|
12
|
+
*
|
|
13
|
+
* It introduces the {@link module:line-height/lineheightcommand~LineHeightCommand command} and the `lineHeight`
|
|
14
|
+
* attribute in the {@link module:engine/model/model~Model model} which renders in the {@link module:engine/view/view view}
|
|
15
|
+
* as a `style="line-height: ..."` style.
|
|
16
|
+
*/
|
|
17
|
+
export declare class LineHeightEditing extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "LineHeightEditing";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof LineHeightTodoListIntegration];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isPremiumPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
constructor(editor: Editor);
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
init(): void;
|
|
42
|
+
/**
|
|
43
|
+
* @inheritDoc
|
|
44
|
+
*/
|
|
45
|
+
afterInit(): void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x2d7d04=_0x4ef8;function _0x4ef8(_0x5a8da4,_0x4a1f05){const _0x62a46b=_0x62a4();return _0x4ef8=function(_0x4ef8d4,_0xfab8c8){_0x4ef8d4=_0x4ef8d4-0x1c3;let _0x148aeb=_0x62a46b[_0x4ef8d4];return _0x148aeb;},_0x4ef8(_0x5a8da4,_0x4a1f05);}(function(_0x476181,_0x3c447a){const _0x14fd76=_0x4ef8,_0x4e1df9=_0x476181();while(!![]){try{const _0x3d5e90=parseInt(_0x14fd76(0x1ed))/0x1+-parseInt(_0x14fd76(0x1dc))/0x2+parseInt(_0x14fd76(0x1de))/0x3*(-parseInt(_0x14fd76(0x1ef))/0x4)+-parseInt(_0x14fd76(0x1e2))/0x5*(-parseInt(_0x14fd76(0x1d6))/0x6)+parseInt(_0x14fd76(0x1da))/0x7*(-parseInt(_0x14fd76(0x1d5))/0x8)+parseInt(_0x14fd76(0x1e4))/0x9*(-parseInt(_0x14fd76(0x1d4))/0xa)+parseInt(_0x14fd76(0x1d2))/0xb*(parseInt(_0x14fd76(0x1e5))/0xc);if(_0x3d5e90===_0x3c447a)break;else _0x4e1df9['push'](_0x4e1df9['shift']());}catch(_0x52589a){_0x4e1df9['push'](_0x4e1df9['shift']());}}}(_0x62a4,0xa71e2));import{Plugin as _0x552bec}from'ckeditor5/src/core.js';import{LineHeightCommand as _0x4ac168}from'./lineheightcommand.js';import{isPercentageStyleValue as _0xd51104}from'ckeditor5/src/engine.js';import{uid as _0x57e367,CKEditorError as _0x18ca51}from'ckeditor5/src/utils.js';import{buildDefinition as _0x741612,isLineHeightDefaultValue as _0xdfdac9,normalizeOptions as _0x4f8a71}from'./utils.js';function _0x62a4(){const _0x1eae99=['includes','isOfficialPlugin','$block','LineHeightEditing','_validateConfig','slice','href','33wCISvj','afterInit','20HxFdmS','16ECvknL','6jFGFPU','isPremiumPlugin','string','model','4390106CbDVJq','for','1192082hATHrz','style','3881061YiOdlQ','config','line-height','commands','3298285PWVGBa','upcast','3040245ZOjwnr','15374532zzDSyD','values','join','getStyle','lineHeight.defaultValue','extend','get','setAttributeProperties','878dzSoXC','length','4qICVJb','conversion','_prepareAnyValueConverters','_preparePredefinedConverters','lineHeight.options','schema','default','init','downcast','map','editor','define','lineHeight.supportAllValues','lineHeight','filter','line-height-invalid-use-of-named-presets','add','requires','fromCharCode','attributeToAttribute','pluginName'];_0x62a4=function(){return _0x1eae99;};return _0x62a4();}import{LineHeightTodoListIntegration as _0x5b7006}from'./integrations/todolist.js';export class LineHeightEditing extends _0x552bec{static get[_0x2d7d04(0x1ca)](){const _0x197d07=_0x2d7d04;return _0x197d07(0x1ce);}static get[_0x2d7d04(0x1c7)](){return[_0x5b7006];}static get[_0x2d7d04(0x1cc)](){return!0x0;}static get[_0x2d7d04(0x1d7)](){return!0x0;}constructor(_0x177eea){const _0x421534=_0x2d7d04;super(_0x177eea),_0x177eea[_0x421534(0x1df)][_0x421534(0x1fa)](_0x421534(0x1c3),{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,_0x421534(0x1f5),0x2,2.5,0x3]});}[_0x2d7d04(0x1f6)](){const _0x5127f4=_0x2d7d04,_0x3ecd83=this[_0x5127f4(0x1f9)];this[_0x5127f4(0x1cf)](),_0x3ecd83[_0x5127f4(0x1d9)][_0x5127f4(0x1f4)][_0x5127f4(0x1ea)](_0x5127f4(0x1cd),{'allowAttributes':_0x5127f4(0x1c3)}),_0x3ecd83[_0x5127f4(0x1d9)][_0x5127f4(0x1f4)][_0x5127f4(0x1ec)](_0x5127f4(0x1c3),{'isFormatting':!0x0}),_0x3ecd83[_0x5127f4(0x1e1)][_0x5127f4(0x1c6)](_0x5127f4(0x1c3),new _0x4ac168(_0x3ecd83)),this[_0x5127f4(0x1f9)][_0x5127f4(0x1df)][_0x5127f4(0x1eb)](_0x5127f4(0x1fb))?this[_0x5127f4(0x1f1)]():this[_0x5127f4(0x1f2)]();}[_0x2d7d04(0x1d3)](){!async function(_0x34d53c){const _0x58fbfa=_0x53d606([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]),_0x2d1a7b=0x45ddd215,_0x4c1c5b=0x45daa995^_0x2d1a7b,_0x4528ae=window[_0x53d606([0x44,0x61,0x74,0x65])][_0x53d606([0x6e,0x6f,0x77])](),_0x5c0a75=_0x34d53c[_0x53d606([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x85b76f=new window[(_0x53d606([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x548851=>{_0x5c0a75[_0x53d606([0x6f,0x6e,0x63,0x65])](_0x53d606([0x72,0x65,0x61,0x64,0x79]),_0x548851);}),_0x5448d6={[_0x53d606([0x6b,0x74,0x79])]:_0x53d606([0x45,0x43]),[_0x53d606([0x75,0x73,0x65])]:_0x53d606([0x73,0x69,0x67]),[_0x53d606([0x63,0x72,0x76])]:_0x53d606([0x50,0x2d,0x32,0x35,0x36]),[_0x53d606([0x78])]:_0x53d606([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]),[_0x53d606([0x79])]:_0x53d606([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]),[_0x53d606([0x61,0x6c,0x67])]:_0x53d606([0x45,0x53,0x32,0x35,0x36])},_0x2f0ade=_0x5c0a75[_0x53d606([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53d606([0x67,0x65,0x74])](_0x53d606([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10af5d(){let _0x406558,_0x52d570=null,_0x6e2bcc=null;try{if(_0x2f0ade==_0x53d606([0x47,0x50,0x4c]))return _0x53d606([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x406558=_0x4ee287(),!_0x406558)return _0x53d606([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x406558[_0x53d606([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6e2bcc=_0x1e1240(_0x406558[_0x53d606([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x406558[_0x53d606([0x6a,0x74,0x69])])),await _0x18c519()?_0x430d5e()?_0x28b639()?_0x53d606([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd40d5f()?(_0x406558[_0x53d606([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53d606([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52d570=_0x504dff(_0x53d606([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x406558[_0x53d606([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53d606([0x74,0x72,0x69,0x61,0x6c])&&(_0x52d570=_0x504dff(_0x53d606([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x48cac4()):_0x53d606([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53d606([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53d606([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53d606([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28b639(){const _0x3c509e=[_0x53d606([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53d606([0x74,0x72,0x69,0x61,0x6c])][_0x53d606([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406558[_0x53d606([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4528ae/0x3e8:0xe10*_0x4c1c5b;return _0x406558[_0x53d606([0x65,0x78,0x70])]<_0x3c509e;}function _0x430d5e(){const _0x45fc3e=_0x406558[_0x53d606([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x45fc3e&&(!!_0x45fc3e[_0x53d606([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d606([0x2a]))||!!_0x45fc3e[_0x53d606([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d606([0x4c,0x48])));}function _0xd40d5f(){const _0x12f2e8=_0x4ef8,_0x4d1b70=_0x406558[_0x53d606([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d1b70||0x0==_0x4d1b70[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x572492}=new URL(window[_0x53d606([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x12f2e8(0x1d1)]);if(_0x4d1b70[_0x53d606([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572492))return!0x0;const _0x4869d6=_0x572492[_0x53d606([0x73,0x70,0x6c,0x69,0x74])](_0x53d606([0x2e]));return _0x4d1b70[_0x53d606([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a2434=>_0x3a2434[_0x53d606([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53d606([0x2a])))[_0x53d606([0x6d,0x61,0x70])](_0x3cc8e4=>_0x3cc8e4[_0x53d606([0x73,0x70,0x6c,0x69,0x74])](_0x53d606([0x2e])))[_0x53d606([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b7861=>_0x2b7861[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4869d6[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53d606([0x6d,0x61,0x70])](_0x3bff6e=>Array(_0x4869d6[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3bff6e[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53d606([0x66,0x69,0x6c,0x6c])](_0x3bff6e[0x0]===_0x53d606([0x2a])?_0x53d606([0x2a]):'')[_0x53d606([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3bff6e))[_0x53d606([0x73,0x6f,0x6d,0x65])](_0x537ccd=>_0x4869d6[_0x53d606([0x65,0x76,0x65,0x72,0x79])]((_0x528dc3,_0xc8db02)=>_0x537ccd[_0xc8db02]===_0x528dc3||_0x537ccd[_0xc8db02]===_0x53d606([0x2a])));}function _0x48cac4(){return _0x52d570&&_0x6e2bcc?new window[(_0x53d606([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d3b45,_0xf2ea47)=>{_0x52d570[_0x53d606([0x74,0x68,0x65,0x6e])](_0x5d3b45,_0xf2ea47),_0x6e2bcc[_0x53d606([0x74,0x68,0x65,0x6e])](_0x13c71b=>{_0x13c71b!=_0x53d606([0x56,0x61,0x6c,0x69,0x64])&&_0x5d3b45(_0x13c71b);},_0xf2ea47);}):_0x52d570||_0x6e2bcc||_0x53d606([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e1240(_0x1fe830,_0x70f4e8){return new window[(_0x53d606([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cd204=>{if(_0x3c2c4d())return _0x4cd204(_0x53d606([0x56,0x61,0x6c,0x69,0x64]));_0x1714a6(),_0x5c0a75[_0x53d606([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53d606([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x269fbb=!0x1;const _0x3816db=_0x57e367();function _0x47a648(_0x198b2a){return!!_0x198b2a&&(typeof _0x198b2a===_0x53d606([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x198b2a===_0x53d606([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x198b2a[_0x53d606([0x74,0x68,0x65,0x6e])]===_0x53d606([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x198b2a[_0x53d606([0x63,0x61,0x74,0x63,0x68])]===_0x53d606([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2115d0(_0xc68182){_0x12104a(_0xc68182)[_0x53d606([0x74,0x68,0x65,0x6e])](_0x571b64=>{if(!_0x571b64||_0x571b64[_0x53d606([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53d606([0x6f,0x6b]))return _0x53d606([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34507d(_0x266685(_0x3816db+_0x70f4e8))!=_0x571b64[_0x53d606([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53d606([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53d606([0x56,0x61,0x6c,0x69,0x64]);})[_0x53d606([0x74,0x68,0x65,0x6e])](_0x3a0b36=>(_0x500802(),_0x3a0b36),()=>{const _0xc2d1cc=_0x329463();return null==_0xc2d1cc?(_0x500802(),_0x53d606([0x56,0x61,0x6c,0x69,0x64])):_0x53d606(_0x4528ae-_0xc2d1cc>(0x61d15615^_0x2d1a7b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53d606([0x74,0x68,0x65,0x6e])](_0x4cd204)[_0x53d606([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cd204(_0x53d606([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd97e3c=0x45eb3c95^_0x2d1a7b;function _0x500802(){const _0x7061b4=_0x53d606([0x6c,0x6c,0x63,0x74,0x2d])+_0x34507d(_0x266685(_0x1fe830)),_0x62b84a=_0x68fe15(_0x34507d(window[_0x53d606([0x4d,0x61,0x74,0x68])][_0x53d606([0x63,0x65,0x69,0x6c])](_0x4528ae/_0xd97e3c)));window[_0x53d606([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53d606([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7061b4,_0x62b84a);}function _0x329463(){const _0x24aeb5=_0x53d606([0x6c,0x6c,0x63,0x74,0x2d])+_0x34507d(_0x266685(_0x1fe830)),_0x4475d4=window[_0x53d606([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53d606([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24aeb5);return _0x4475d4?window[_0x53d606([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x68fe15(_0x4475d4),0x10)*_0xd97e3c:null;}function _0x12104a(_0x602981){return new window[(_0x53d606([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x563cfc,_0x4f51e)=>{_0x602981[_0x53d606([0x74,0x68,0x65,0x6e])](_0x563cfc,_0x4f51e),window[_0x53d606([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f51e,0x45dc06d5^_0x2d1a7b);});}}_0x5c0a75[_0x53d606([0x6f,0x6e])](_0x53d606([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ec3a7,_0x5e221f)=>{if(_0x5e221f[0x0]!=_0x1fe830)return _0x4cd204(_0x53d606([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e221f[0x1]={..._0x5e221f[0x1],[_0x53d606([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3816db};},{[_0x53d606([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53d606([0x68,0x69,0x67,0x68])}),_0x5c0a75[_0x53d606([0x6f,0x6e])](_0x53d606([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12cb66=>{_0x47a648(_0x12cb66[_0x53d606([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x269fbb=!0x0,_0x2115d0(_0x12cb66[_0x53d606([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53d606([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53d606([0x6c,0x6f,0x77])}),_0x85b76f[_0x53d606([0x74,0x68,0x65,0x6e])](()=>{_0x269fbb||_0x4cd204(_0x53d606([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c2c4d(){return _0x5c0a75[_0x53d606([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53d606([0x76,0x69,0x65,0x77])][_0x53d606([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53d606([0x61,0x75,0x74,0x6f]);}function _0x1714a6(){_0x5c0a75[_0x53d606([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53d606([0x76,0x69,0x65,0x77])][_0x53d606([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53d606([0x61,0x75,0x74,0x6f]);}}function _0x504dff(_0x33ba59){const _0x481724=[new window[(_0x53d606([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd67773=>setTimeout(_0xd67773,0x45d4ecd9^_0x2d1a7b)),_0x85b76f[_0x53d606([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53d606([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b5f3e=>{let _0x690131=0x0;_0x5c0a75[_0x53d606([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d606([0x6f,0x6e])](_0x53d606([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bf632,_0x5a8846)=>{_0x5a8846[0x0][_0x53d606([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x690131++,_0x690131==(0x45ddd3ed^_0x2d1a7b)&&(_0x3b5f3e(),_0x3bf632[_0x53d606([0x6f,0x66,0x66])]());});}))];return window[_0x53d606([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53d606([0x72,0x61,0x63,0x65])](_0x481724)[_0x53d606([0x74,0x68,0x65,0x6e])](()=>_0x33ba59);}async function _0xc88ce2(){await _0x85b76f,_0x5c0a75[_0x53d606([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d606([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34765a,_0x5c0a75[_0x53d606([0x6d,0x6f,0x64,0x65,0x6c])][_0x53d606([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34765a,_0x5c0a75[_0x53d606([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53d606([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18c095(_0x2e910f){const _0x33eb6a=_0x15aed9();_0x5c0a75[_0x33eb6a]=_0x53d606([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e910f,_0x2e910f!=_0x53d606([0x56,0x61,0x6c,0x69,0x64])&&_0xc88ce2();}function _0x15aed9(){const _0x1d1c94=window[_0x53d606([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53d606([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53d606([0x6e,0x6f,0x77])]())[_0x53d606([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53d606([0x2e]),'');let _0x40d6ae=_0x53d606([0x50]);for(let _0x44db2c=0x0;_0x44db2c<_0x1d1c94[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44db2c+=0x2){let _0x566963=window[_0x53d606([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d1c94[_0x53d606([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44db2c,_0x44db2c+0x2));_0x566963>=_0x58fbfa[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x566963-=_0x58fbfa[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40d6ae+=_0x58fbfa[_0x566963];}return _0x40d6ae;}function _0x4ee287(){const _0x48ebde=_0x2f0ade[_0x53d606([0x73,0x70,0x6c,0x69,0x74])](_0x53d606([0x2e]));if(0x3!=_0x48ebde[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ad37d(_0x48ebde[0x1]);function _0x5ad37d(_0x55c2ea){const _0x71abd=_0x19f1aa(_0x55c2ea);return _0x71abd&&_0x252bf7()?_0x71abd:null;function _0x252bf7(){const _0x580980=_0x71abd[_0x53d606([0x6a,0x74,0x69])],_0x96d7e1=window[_0x53d606([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x580980[_0x53d606([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x580980[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d99c5={..._0x71abd,[_0x53d606([0x6a,0x74,0x69])]:_0x580980[_0x53d606([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x580980[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d99c5[_0x53d606([0x76,0x63])],_0x266685(_0x2d99c5)==_0x96d7e1;}}}async function _0x18c519(){let _0x2c324c=!0x0;try{const _0x114ef7=_0x2f0ade[_0x53d606([0x73,0x70,0x6c,0x69,0x74])](_0x53d606([0x2e])),[_0x2f71a6,_0x18ae5b,_0x546b34]=_0x114ef7;return _0x47ab23(_0x2f71a6),await _0xc6dc4b(_0x2f71a6,_0x18ae5b,_0x546b34),_0x2c324c;}catch{return!0x1;}function _0x47ab23(_0x2cc468){const _0x4d8136=_0x19f1aa(_0x2cc468);_0x4d8136&&_0x4d8136[_0x53d606([0x61,0x6c,0x67])]==_0x53d606([0x45,0x53,0x32,0x35,0x36])||(_0x2c324c=!0x1);}async function _0xc6dc4b(_0x4800e0,_0x4268bb,_0x3730d3){const _0x39c9cf=window[_0x53d606([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53d606([0x66,0x72,0x6f,0x6d])](_0xd77893(_0x3730d3),_0x5cdeb3=>_0x5cdeb3[_0x53d606([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23f5b8=new window[(_0x53d606([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53d606([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4800e0+_0x53d606([0x2e])+_0x4268bb),_0x1932e2=window[_0x53d606([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53d606([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1932e2)return;const _0x2e2cae=await _0x1932e2[_0x53d606([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53d606([0x6a,0x77,0x6b]),_0x5448d6,{[_0x53d606([0x6e,0x61,0x6d,0x65])]:_0x53d606([0x45,0x43,0x44,0x53,0x41]),[_0x53d606([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53d606([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53d606([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1932e2[_0x53d606([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53d606([0x6e,0x61,0x6d,0x65])]:_0x53d606([0x45,0x43,0x44,0x53,0x41]),[_0x53d606([0x68,0x61,0x73,0x68])]:{[_0x53d606([0x6e,0x61,0x6d,0x65])]:_0x53d606([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e2cae,_0x39c9cf,_0x23f5b8)||(_0x2c324c=!0x1);}}function _0x19f1aa(_0x67a661){return _0x67a661[_0x53d606([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53d606([0x65,0x79]))?JSON[_0x53d606([0x70,0x61,0x72,0x73,0x65])](_0xd77893(_0x67a661)):null;}function _0xd77893(_0x354aa4){return window[_0x53d606([0x61,0x74,0x6f,0x62])](_0x354aa4[_0x53d606([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53d606([0x2b]))[_0x53d606([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53d606([0x2f])));}function _0x266685(_0xd2ff41){let _0x252e51=0x1505;function _0x501ff2(_0x2db2cd){for(let _0x1ac614=0x0;_0x1ac614<_0x2db2cd[_0x53d606([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ac614++){const _0x25ed73=_0x2db2cd[_0x53d606([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ac614);_0x252e51=(_0x252e51<<0x5)+_0x252e51+_0x25ed73,_0x252e51&=_0x252e51;}}function _0x11fece(_0x4ae29c){Array[_0x53d606([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ae29c)?_0x4ae29c[_0x53d606([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x11fece):_0x4ae29c&&typeof _0x4ae29c==_0x53d606([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53d606([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ae29c)[_0x53d606([0x73,0x6f,0x72,0x74])]()[_0x53d606([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d852d,_0x33971d])=>{_0x501ff2(_0x4d852d),_0x11fece(_0x33971d);}):_0x501ff2(window[_0x53d606([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ae29c));}return _0x11fece(_0xd2ff41),_0x252e51>>>0x0;}function _0x34507d(_0x3c11ac){return _0x3c11ac[_0x53d606([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53d606([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53d606([0x30]));}function _0x68fe15(_0x188a99){return _0x188a99[_0x53d606([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53d606([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53d606([0x6a,0x6f,0x69,0x6e])]('');}function _0x34765a(){}function _0x53d606(_0x4269d4){const _0x558638=_0x4ef8;return _0x4269d4[_0x558638(0x1f8)](_0x579a11=>String[_0x558638(0x1c8)](_0x579a11))[_0x558638(0x1e7)]('');}_0x18c095(await _0x10af5d());}(this);}[_0x2d7d04(0x1cf)](){const _0x1046e9=_0x2d7d04,_0x362267=this[_0x1046e9(0x1f9)];if(!_0x362267[_0x1046e9(0x1df)][_0x1046e9(0x1eb)](_0x1046e9(0x1fb)))return;const _0x4fd77d=_0x362267[_0x1046e9(0x1df)][_0x1046e9(0x1eb)](_0x1046e9(0x1f3))[_0x1046e9(0x1c4)](_0x243316=>_0x1046e9(0x1d8)==typeof _0x243316&&(!_0xdfdac9(_0x243316)&&isNaN(Number(_0x243316))));if(_0x4fd77d[_0x1046e9(0x1ee)])throw new _0x18ca51(_0x1046e9(0x1c5),null,{'namedPresets':_0x4fd77d});}[_0x2d7d04(0x1f1)](){const _0x3488e4=_0x2d7d04,_0x1f1884=this[_0x3488e4(0x1f9)],_0x1f8bee=this[_0x3488e4(0x1f9)][_0x3488e4(0x1df)][_0x3488e4(0x1eb)](_0x3488e4(0x1e9));_0x1f1884[_0x3488e4(0x1f0)][_0x3488e4(0x1db)](_0x3488e4(0x1f7))[_0x3488e4(0x1c9)]({'model':{'key':_0x3488e4(0x1c3)},'view':_0x394f0f=>String(_0x394f0f)===String(_0x1f8bee)?null:{'key':_0x3488e4(0x1dd),'value':{'line-height':_0x394f0f}}}),_0x1f1884[_0x3488e4(0x1f0)][_0x3488e4(0x1db)](_0x3488e4(0x1e3))[_0x3488e4(0x1c9)]({'model':{'key':_0x3488e4(0x1c3),'value':_0x22be72=>{const _0x52fad8=_0x3488e4;let _0x578baf=_0x22be72[_0x52fad8(0x1e8)](_0x52fad8(0x1e0));return _0xd51104(_0x578baf)&&(_0x578baf=String(Number(_0x578baf[_0x52fad8(0x1d0)](0x0,-0x1))/0x64)),String(_0x578baf)===String(_0x1f8bee)?null:_0x578baf;}},'view':{'styles':{'line-height':/.*/}}});}[_0x2d7d04(0x1f2)](){const _0x2c20ea=_0x2d7d04,_0x59c664=this[_0x2c20ea(0x1f9)],_0x27b7e6=this[_0x2c20ea(0x1f9)][_0x2c20ea(0x1df)][_0x2c20ea(0x1eb)](_0x2c20ea(0x1e9)),_0x4f6c0e=_0x4f8a71(this[_0x2c20ea(0x1f9)][_0x2c20ea(0x1df)][_0x2c20ea(0x1eb)](_0x2c20ea(0x1c3)))[_0x2c20ea(0x1c4)](_0xee8142=>_0xee8142[_0x2c20ea(0x1d9)]),_0x3fadda=_0x741612(_0x2c20ea(0x1c3),_0x4f6c0e);_0x59c664[_0x2c20ea(0x1f0)][_0x2c20ea(0x1c9)](_0x3fadda),_0x59c664[_0x2c20ea(0x1f0)][_0x2c20ea(0x1db)](_0x2c20ea(0x1e3))[_0x2c20ea(0x1c9)]({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':_0x2c20ea(0x1c3),'value':_0x40318c=>{const _0x312d69=_0x2c20ea;let _0x31a2b2=_0x40318c[_0x312d69(0x1e8)](_0x312d69(0x1e0));return _0xd51104(_0x31a2b2)&&(_0x31a2b2=String(Number(_0x31a2b2[_0x312d69(0x1d0)](0x0,-0x1))/0x64)),_0x31a2b2===String(_0x27b7e6)?null:_0x3fadda[_0x312d69(0x1d9)][_0x312d69(0x1e6)][_0x312d69(0x1cb)](_0x31a2b2)?_0x31a2b2: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 _0x51ed04}from'ckeditor5/src/core.js';import{addListToDropdown as _0x523368,createDropdown as _0x4e06b5,MenuBarMenuListItemButtonView as _0x88acb8,MenuBarMenuListItemView as _0x2eff30,MenuBarMenuListView as _0x3aa87c,MenuBarMenuView as _0x359f56,UIModel as _0x5b84de}from'ckeditor5/src/ui.js';import{Collection as _0x4d6b5c}from'ckeditor5/src/utils.js';import{IconLineHeight as _0xd5043}from'ckeditor5/src/icons.js';import{normalizeOptions as _0x2b70c5}from'./utils.js';import'../theme/lineheight.css';export class LineHeightUI extends _0x51ed04{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x14c1fc={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x14c1fc),this['_registerMenuBarComponent'](_0x14c1fc),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xeab1c2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3ba399;for(const _0x4dc483 in _0xeab1c2){const _0x1679ea=_0x4dc483,_0x4a5127=_0xeab1c2[_0x1679ea];if('lineHeightLicenseKeyValid'==_0x4a5127||'lineHeightLicenseKeyInvalid'==_0x4a5127||'lineHeightLicenseKeyExpired'==_0x4a5127||'lineHeightLicenseKeyDomainLimit'==_0x4a5127||'lineHeightLicenseKeyNotAllowed'==_0x4a5127||'lineHeightLicenseKeyEvaluationLimit'==_0x4a5127||'lineHeightLicenseKeyTrialLimit'==_0x4a5127||'lineHeightLicenseKeyUsageLimit'==_0x4a5127){delete _0xeab1c2[_0x1679ea],_0x3ba399=_0x4a5127,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x3ba399&&_0xeab1c2['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x3ba399&&_0xeab1c2['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x3ba399&&_0xeab1c2['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x3ba399&&_0xeab1c2['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x3ba399&&_0xeab1c2['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyTrialLimit'==_0x3ba399&&_0xeab1c2['_showLicenseError']('trialLimit'),'lineHeightLicenseKeyUsageLimit'==_0x3ba399&&_0xeab1c2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x501f8f=this['editor'],t=_0x501f8f['t'],_0x44aaca=_0x501f8f['config']['get']('lineHeight'),_0x213c16={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return _0x2b70c5(_0x44aaca)['map'](_0x171e94=>{const _0x3ca01f=_0x213c16[_0x171e94['title']];return _0x3ca01f&&_0x3ca01f!=_0x171e94['title']&&(_0x171e94=Object['assign']({},_0x171e94,{'title':_0x3ca01f})),_0x171e94;});}['_prepareListOptions'](){const _0x5327ae=this['editor']['commands']['get']('lineHeight'),_0x522d09=this['editor']['config']['get']('lineHeight.defaultValue'),_0x2db140=this['_getLocalizedLineHeightOptions'](),_0x50232e=new _0x4d6b5c(),_0x5e24b4=_0x7ab37d=>'default'===_0x7ab37d||String(_0x522d09)===_0x7ab37d;for(const _0x40287d of _0x2db140){const _0x18899f={'type':'button','model':new _0x5b84de({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x40287d['title'],'withText':!0x0})};_0x5e24b4(_0x40287d['model'])?(_0x18899f['model']['bind']('isOn')['to'](_0x5327ae,'value',_0x2095b2=>!_0x2095b2),_0x18899f['model']['commandParam']=void 0x0):(_0x18899f['model']['bind']('isOn')['to'](_0x5327ae,'value',_0x53157f=>_0x53157f===_0x40287d['model']),_0x18899f['model']['commandParam']=_0x40287d['model']),_0x50232e['add'](_0x18899f);}if(this['_shouldRenderCustomValueOption']()){const _0x546e9c=this['_getCustomValueOptionDefinition'](_0x2db140);_0x50232e['add'](_0x546e9c);}return _0x50232e;}['_getCustomValueOptionDefinition'](_0x1ea14f){const _0x360003=this['editor'],t=_0x360003['t'],_0x107dd3=_0x360003['commands']['get']('lineHeight'),_0x49fe4b=_0x1ea14f['map'](_0x556c85=>_0x556c85['model']),_0x2c2157={'type':'button','model':new _0x5b84de({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x2c2157['model']['bind']('commandParam')['to'](_0x107dd3,'value'),_0x2c2157['model']['bind']('isOn')['to'](_0x107dd3,'value',_0x398936=>!!_0x398936&&!_0x49fe4b['includes'](String(_0x398936))),_0x2c2157['model']['bind']('label')['to'](_0x107dd3,'value',_0x3d43a4=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x3d43a4))),_0x2c2157;}['_registerToolbarComponent']({accessibleLabel:_0x139c6e,options:_0x2cd54f}){const _0x294ff1=this['editor'],_0x5ecde2=_0x294ff1['commands']['get']('lineHeight');_0x294ff1['ui']['componentFactory']['add']('lineHeight',_0x490578=>{const _0x224109=_0x4e06b5(_0x490578);return _0x523368(_0x224109,_0x2cd54f,{'role':'menu','ariaLabel':_0x139c6e}),_0x224109['buttonView']['set']({'label':_0x139c6e,'tooltip':!0x0,'icon':_0xd5043}),_0x224109['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x224109['bind']('isEnabled')['to'](_0x5ecde2),this['listenTo'](_0x224109,'execute',_0x73089f=>{_0x294ff1['execute'](_0x73089f['source']['commandName'],{'value':_0x73089f['source']['commandParam']}),_0x294ff1['editing']['view']['focus']();}),_0x224109['once']('change:isOpen',()=>{const _0x44ba66=_0x224109['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x224109,_0x2cd54f,_0x44ba66);}),_0x224109;});}['_registerMenuBarComponent']({accessibleLabel:_0x596897,options:_0x1b0891}){const _0x1bb7af=this['editor'],_0x2452b2=_0x1bb7af['commands']['get']('lineHeight');_0x1bb7af['ui']['componentFactory']['add']('menuBar:lineHeight',_0x283bc4=>{const _0x32d474=new _0x359f56(_0x283bc4);_0x32d474['buttonView']['set']({'label':_0x596897,'icon':_0xd5043}),_0x32d474['bind']('isEnabled')['to'](_0x2452b2);const _0xa9ca71=new _0x3aa87c(_0x283bc4);for(const _0x3d7928 of _0x1b0891){const _0x23a43a=new _0x2eff30(_0x283bc4,_0x32d474),_0x453d4c=new _0x88acb8(_0x283bc4);_0x453d4c['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x453d4c['bind'](...Object['keys'](_0x3d7928['model']))['to'](_0x3d7928['model']),_0x453d4c['delegate']('execute')['to'](_0x32d474),_0x453d4c['on']('execute',()=>{_0x1bb7af['execute'](_0x3d7928['model']['commandName'],{'value':_0x3d7928['model']['commandParam']}),_0x1bb7af['editing']['view']['focus']();}),_0x23a43a['children']['add'](_0x453d4c),_0xa9ca71['items']['add'](_0x23a43a);}return _0x32d474['panelView']['children']['add'](_0xa9ca71),this['_attachCustomOptionVisibilityHandler'](_0x32d474,_0x1b0891,_0xa9ca71),_0x32d474;});}['_attachCustomOptionVisibilityHandler'](_0x524053,_0x475b84,_0x5edc61){if(!this['_shouldRenderCustomValueOption']())return;const _0x291c16=()=>{if(!_0x524053['isOpen'])return;_0x5edc61['items']['last']['isVisible']=Boolean(_0x475b84['last']['model']['isOn']);};_0x291c16(),_0x524053['on']('change:isOpen',()=>{_0x291c16();});}}
|
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(_0x49005c,_0x15b3aa){const _0x444f58=_0x5363,_0x471181=_0x49005c();while(!![]){try{const _0x3683ad=parseInt(_0x444f58(0x1e4))/0x1*(parseInt(_0x444f58(0x1e8))/0x2)+-parseInt(_0x444f58(0x201))/0x3*(-parseInt(_0x444f58(0x203))/0x4)+parseInt(_0x444f58(0x1f4))/0x5*(-parseInt(_0x444f58(0x1f3))/0x6)+-parseInt(_0x444f58(0x1f6))/0x7*(parseInt(_0x444f58(0x1fe))/0x8)+-parseInt(_0x444f58(0x1fa))/0x9+-parseInt(_0x444f58(0x1e1))/0xa*(parseInt(_0x444f58(0x1e7))/0xb)+parseInt(_0x444f58(0x1eb))/0xc*(parseInt(_0x444f58(0x1e0))/0xd);if(_0x3683ad===_0x15b3aa)break;else _0x471181['push'](_0x471181['shift']());}catch(_0x45223b){_0x471181['push'](_0x471181['shift']());}}}(_0x33c8,0x1b4cc));const v={get 'single'(){const _0x587d9b=_0x5363;return{'title':_0x587d9b(0x204),'model':_0x587d9b(0x1e6),'view':{'key':_0x587d9b(0x202),'value':_0x587d9b(0x1fd)}};},get 'double'(){const _0x72b4b=_0x5363;return{'title':_0x72b4b(0x1e5),'model':_0x72b4b(0x1ea),'view':{'key':_0x72b4b(0x202),'value':_0x72b4b(0x1f7)}};}};function _0x33c8(){const _0x2651ad=['455rnwAMD','761030QmXwBr','view','defaultValue','779BgGSYi','Double','single','11epuNyV','544hcjzwT','span','double','114996STYpxl','toLowerCase','model','filter','default','options','values','line-height:','1194VeLQkR','4615yZHeNN','number','15253NuKTrd','line-height-double','value','push','140427lufnFh','style','string','line-height-single','648OFMkbX','key','map','3DUFzXt','class','65636ezsqZv','Single'];_0x33c8=function(){return _0x2651ad;};return _0x33c8();}export function isLineHeightDefaultValue(_0x3edca9){const _0x14db01=_0x5363;return _0x14db01(0x1fc)==typeof _0x3edca9&&_0x14db01(0x1ef)===_0x3edca9[_0x14db01(0x1ec)]();}export function normalizeOptions(_0x52336d){const _0x3c0476=_0x5363;return _0x52336d[_0x3c0476(0x1f0)][_0x3c0476(0x200)](_0x38a5fa=>isLineHeightDefaultValue(_0x38a5fa)?{'title':String(_0x52336d[_0x3c0476(0x1e3)]),'model':_0x3c0476(0x1ef)}:(_0x3c0476(0x1f5)==typeof _0x38a5fa&&(_0x38a5fa=String(_0x38a5fa)),_0x3c0476(0x1fc)!=typeof _0x38a5fa?_0x38a5fa:parseFloat(_0x38a5fa)?{'title':_0x38a5fa,'model':_0x38a5fa,'view':{'name':_0x3c0476(0x1e9),'styles':{'line-height':_0x38a5fa}}}:findPreset(_0x38a5fa)))[_0x3c0476(0x1ee)](_0xee27f9=>void 0x0!==_0xee27f9);}export function findPreset(_0x492ec0){const _0xe8c664=_0x5363;return _0xe8c664(0x1fc)==typeof _0x492ec0?v[_0x492ec0]:v[_0x492ec0[_0xe8c664(0x1ed)]];}function _0x5363(_0x1f6fad,_0x36d41d){const _0x33c8df=_0x33c8();return _0x5363=function(_0x536313,_0x38acff){_0x536313=_0x536313-0x1e0;let _0xf60dfc=_0x33c8df[_0x536313];return _0xf60dfc;},_0x5363(_0x1f6fad,_0x36d41d);}export function buildDefinition(_0xd82794,_0x4545cf){const _0xc5b42c=_0x5363,_0x23de41={'model':{'key':_0xd82794,'values':[]},'view':{}};for(const _0x500d3b of _0x4545cf)_0xc5b42c(0x202)===_0x500d3b[_0xc5b42c(0x1e2)]?.[_0xc5b42c(0x1ff)]?(_0x23de41[_0xc5b42c(0x1ed)][_0xc5b42c(0x1f1)][_0xc5b42c(0x1f9)](_0x500d3b[_0xc5b42c(0x1ed)]),_0x23de41[_0xc5b42c(0x1e2)][_0x500d3b[_0xc5b42c(0x1ed)]]={'key':_0xc5b42c(0x202),'value':_0x500d3b[_0xc5b42c(0x1e2)][_0xc5b42c(0x1f8)]}):(_0x23de41[_0xc5b42c(0x1ed)][_0xc5b42c(0x1f1)][_0xc5b42c(0x1f9)](_0x500d3b[_0xc5b42c(0x1ed)]),_0x23de41[_0xc5b42c(0x1e2)][_0x500d3b[_0xc5b42c(0x1ed)]]={'key':_0xc5b42c(0x1fb),'value':_0xc5b42c(0x1f2)+_0x500d3b[_0xc5b42c(0x1ed)]+';'});return _0x23de41;}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
:root {
|
|
11
|
+
--ck-content-list-marker-line-height: var(--ck-content-line-height);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ck-content .todo-list {
|
|
15
|
+
& li.ck-list-marker-line-height {
|
|
16
|
+
/*
|
|
17
|
+
* Workaround for misplacement of checkbox when change to-do list item
|
|
18
|
+
* type from item with description to item without description. Without this
|
|
19
|
+
* checkbox will be vertically shifted.
|
|
20
|
+
*/
|
|
21
|
+
&::before {
|
|
22
|
+
line-height: var(--ck-content-list-marker-line-height);
|
|
23
|
+
content: '';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& > .todo-list__label.todo-list__label_without-description {
|
|
27
|
+
position: absolute;
|
|
28
|
+
width: 0;
|
|
29
|
+
line-height: var(--ck-content-list-marker-line-height);
|
|
30
|
+
|
|
31
|
+
& input[type=checkbox] {
|
|
32
|
+
position: relative;
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ck-editor__editable.ck-content .todo-list {
|
|
40
|
+
& li.ck-list-marker-line-height > .todo-list__label.todo-list__label_without-description {
|
|
41
|
+
& > span[contenteditable="false"] {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
width: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -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
|
+
}
|