@ckeditor/ckeditor5-source-editing-enhanced 0.0.1 → 44.2.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 +10 -6
- package/README.md +44 -3
- package/build/source-editing-enhanced.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/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 +5 -0
- package/dist/index-editor.css +34 -0
- package/dist/index.css +56 -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/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 +22 -0
- package/lang/translations/af.po +92 -0
- package/lang/translations/ar.po +92 -0
- package/lang/translations/ast.po +92 -0
- package/lang/translations/az.po +92 -0
- package/lang/translations/bg.po +92 -0
- package/lang/translations/bn.po +92 -0
- package/lang/translations/bs.po +92 -0
- package/lang/translations/ca.po +92 -0
- package/lang/translations/cs.po +92 -0
- package/lang/translations/da.po +92 -0
- package/lang/translations/de-ch.po +92 -0
- package/lang/translations/de.po +92 -0
- package/lang/translations/el.po +92 -0
- package/lang/translations/en-au.po +92 -0
- package/lang/translations/en-gb.po +92 -0
- package/lang/translations/en.po +92 -0
- package/lang/translations/eo.po +92 -0
- package/lang/translations/es-co.po +92 -0
- package/lang/translations/es.po +92 -0
- package/lang/translations/et.po +92 -0
- package/lang/translations/eu.po +92 -0
- package/lang/translations/fa.po +92 -0
- package/lang/translations/fi.po +92 -0
- package/lang/translations/fr.po +92 -0
- package/lang/translations/gl.po +92 -0
- package/lang/translations/gu.po +92 -0
- package/lang/translations/he.po +92 -0
- package/lang/translations/hi.po +92 -0
- package/lang/translations/hr.po +92 -0
- package/lang/translations/hu.po +92 -0
- package/lang/translations/hy.po +92 -0
- package/lang/translations/id.po +92 -0
- package/lang/translations/it.po +92 -0
- package/lang/translations/ja.po +92 -0
- package/lang/translations/jv.po +92 -0
- package/lang/translations/kk.po +92 -0
- package/lang/translations/km.po +92 -0
- package/lang/translations/kn.po +92 -0
- package/lang/translations/ko.po +92 -0
- package/lang/translations/ku.po +92 -0
- package/lang/translations/lt.po +92 -0
- package/lang/translations/lv.po +92 -0
- package/lang/translations/ms.po +92 -0
- package/lang/translations/nb.po +92 -0
- package/lang/translations/ne.po +92 -0
- package/lang/translations/nl.po +92 -0
- package/lang/translations/no.po +92 -0
- package/lang/translations/oc.po +92 -0
- package/lang/translations/pl.po +92 -0
- package/lang/translations/pt-br.po +92 -0
- package/lang/translations/pt.po +92 -0
- package/lang/translations/ro.po +92 -0
- package/lang/translations/ru.po +92 -0
- package/lang/translations/si.po +92 -0
- package/lang/translations/sk.po +92 -0
- package/lang/translations/sl.po +92 -0
- package/lang/translations/sq.po +92 -0
- package/lang/translations/sr-latn.po +92 -0
- package/lang/translations/sr.po +92 -0
- package/lang/translations/sv.po +92 -0
- package/lang/translations/th.po +92 -0
- package/lang/translations/ti.po +92 -0
- package/lang/translations/tk.po +92 -0
- package/lang/translations/tr.po +92 -0
- package/lang/translations/tt.po +92 -0
- package/lang/translations/ug.po +92 -0
- package/lang/translations/uk.po +92 -0
- package/lang/translations/ur.po +92 -0
- package/lang/translations/uz.po +92 -0
- package/lang/translations/vi.po +92 -0
- package/lang/translations/zh-cn.po +92 -0
- package/lang/translations/zh.po +92 -0
- package/package.json +57 -4
- package/src/augmentation.d.ts +22 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +12 -0
- package/src/index.js +23 -0
- package/src/replacesourcecommand.d.ts +28 -0
- package/src/replacesourcecommand.js +23 -0
- package/src/sourceeditingenhanced.d.ts +47 -0
- package/src/sourceeditingenhanced.js +23 -0
- package/src/sourceeditingenhancedconfig.d.ts +42 -0
- package/src/sourceeditingenhancedconfig.js +23 -0
- package/src/sourceeditingenhancedui.d.ts +40 -0
- package/src/sourceeditingenhancedui.js +23 -0
- package/src/ui/codeeditorview.d.ts +53 -0
- package/src/ui/codeeditorview.js +23 -0
- package/src/ui/editsourcecommand.d.ts +26 -0
- package/src/ui/editsourcecommand.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils/createcodemirroreditor.d.ts +58 -0
- package/src/utils/createcodemirroreditor.js +23 -0
- package/src/utils/format.d.ts +35 -0
- package/src/utils/format.js +23 -0
- package/src/utils/getactiverootname.d.ts +9 -0
- package/src/utils/getactiverootname.js +23 -0
- package/theme/sourceeditingenhanced.css +44 -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
|
+
function _0x4047(_0x49828b,_0x925c29){var _0x24eea7=_0x24ee();return _0x4047=function(_0x404773,_0x4fcddc){_0x404773=_0x404773-0x18c;var _0x55b1b5=_0x24eea7[_0x404773];return _0x55b1b5;},_0x4047(_0x49828b,_0x925c29);}function _0x24ee(){var _0x1c9e83=['theme','4086215yFIgPx','482304sSIWkx','ck-reset_all-excluded','setData','getData','5568nwMxvb','destroy','syntaxLanguage','setReadOnly','837771Ruxall','134778TOVwVx','isReadOnly','change:isReadOnly','ck-code-editor','set','setTemplate','10CWeTsK','focus','_codeEditorApi','14855HQwmyc','2GiJrTj','567cvPigI','_options','1542qRdQEA','div','103613HvrKjE','render','element'];_0x24ee=function(){return _0x1c9e83;};return _0x24ee();}var _0xb024=_0x4047;(function(_0x51e3cb,_0x27992b){var _0x5859e6=_0x4047,_0x1b118e=_0x51e3cb();while(!![]){try{var _0x23ab57=-parseInt(_0x5859e6(0x192))/0x1*(-parseInt(_0x5859e6(0x18d))/0x2)+-parseInt(_0x5859e6(0x1a0))/0x3+parseInt(_0x5859e6(0x197))/0x4+-parseInt(_0x5859e6(0x18c))/0x5*(-parseInt(_0x5859e6(0x190))/0x6)+-parseInt(_0x5859e6(0x196))/0x7+parseInt(_0x5859e6(0x19b))/0x8*(-parseInt(_0x5859e6(0x18e))/0x9)+-parseInt(_0x5859e6(0x1a6))/0xa*(-parseInt(_0x5859e6(0x19f))/0xb);if(_0x23ab57===_0x27992b)break;else _0x1b118e['push'](_0x1b118e['shift']());}catch(_0x3775c7){_0x1b118e['push'](_0x1b118e['shift']());}}}(_0x24ee,0x5f8d2));import{View as _0x23d7fd}from'ckeditor5/src/ui.js';import _0x5b115d from'../utils/createcodemirroreditor.js';export default class m extends _0x23d7fd{constructor(_0x335eb2,_0x250ada){var _0x387bd9=_0x4047;super(_0x335eb2),this[_0x387bd9(0x1a8)]=null,this[_0x387bd9(0x18f)]=_0x250ada,this[_0x387bd9(0x1a4)](_0x387bd9(0x1a1),!0x1),this[_0x387bd9(0x1a5)]({'tag':_0x387bd9(0x191),'attributes':{'class':['ck',_0x387bd9(0x198),_0x387bd9(0x1a3)],'tabindex':-0x1}});}[_0xb024(0x193)](){var _0x362a03=_0xb024;super[_0x362a03(0x193)](),this[_0x362a03(0x1a8)]=_0x5b115d({'parent':this[_0x362a03(0x194)],'syntaxLanguage':this[_0x362a03(0x18f)][_0x362a03(0x19d)],'theme':this[_0x362a03(0x18f)][_0x362a03(0x195)]}),this['on'](_0x362a03(0x1a2),(_0x156dc8,_0x17e8f9,_0x24a854)=>{var _0x15f83a=_0x362a03;this[_0x15f83a(0x19e)](_0x24a854);});}[_0xb024(0x19c)](){var _0x22a118=_0xb024;super[_0x22a118(0x19c)](),this[_0x22a118(0x1a8)][_0x22a118(0x19c)](),this[_0x22a118(0x1a8)]=null;}[_0xb024(0x1a7)](){var _0x192745=_0xb024;this[_0x192745(0x1a1)]?this[_0x192745(0x194)][_0x192745(0x1a7)]():this[_0x192745(0x1a8)][_0x192745(0x1a7)]();}[_0xb024(0x19a)](){var _0x3e66bf=_0xb024;return this[_0x3e66bf(0x1a8)][_0x3e66bf(0x19a)]();}[_0xb024(0x199)](_0x829226){var _0x101afb=_0xb024;this[_0x101afb(0x1a8)][_0x101afb(0x199)](_0x829226);}[_0xb024(0x19e)](_0x8c4c57){var _0x565633=_0xb024;this[_0x565633(0x1a8)][_0x565633(0x19e)](_0x8c4c57);}}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 source-editing-enhanced/ui/editsourcecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
/**
|
|
11
|
+
* A command that shows the "Edit source" modal window.
|
|
12
|
+
*/
|
|
13
|
+
export default class EditSourceCommand extends Command {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
constructor(editor: Editor);
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
refresh(): void;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
execute(): void;
|
|
26
|
+
}
|
|
@@ -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 _0x3e76(_0x44bd27,_0x56ee8d){const _0x811dd3=_0x811d();return _0x3e76=function(_0x3e768f,_0x1861f7){_0x3e768f=_0x3e768f-0x1ac;let _0x2cb731=_0x811dd3[_0x3e768f];return _0x2cb731;},_0x3e76(_0x44bd27,_0x56ee8d);}const _0x431a06=_0x3e76;(function(_0x599a49,_0x160509){const _0x1d092d=_0x3e76,_0x16733e=_0x599a49();while(!![]){try{const _0x4179cd=parseInt(_0x1d092d(0x1cc))/0x1*(parseInt(_0x1d092d(0x1b7))/0x2)+-parseInt(_0x1d092d(0x1d1))/0x3*(parseInt(_0x1d092d(0x1df))/0x4)+parseInt(_0x1d092d(0x1c6))/0x5+-parseInt(_0x1d092d(0x1b6))/0x6*(-parseInt(_0x1d092d(0x1bb))/0x7)+-parseInt(_0x1d092d(0x1ac))/0x8+parseInt(_0x1d092d(0x1ae))/0x9*(-parseInt(_0x1d092d(0x1b3))/0xa)+-parseInt(_0x1d092d(0x1d0))/0xb;if(_0x4179cd===_0x160509)break;else _0x16733e['push'](_0x16733e['shift']());}catch(_0x4a4722){_0x16733e['push'](_0x16733e['shift']());}}}(_0x811d,0x6cb77));import{Command as _0x51bb8c,PendingActions as _0x2319a2}from'ckeditor5/src/core.js';function _0x811d(){const _0x5606a9=['pendingActions','confirm','2548160mDRACN','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','720918jjUPRL','markdown','html','set','execute','20GQSXOl','off','replaceSource','132RKMiSL','142070QguTvU','sourceEditingEnhanced','clearForceDisabled','Save','261604fyfQQp','locale','Markdown','hide','change:hasAny','element','destroy','Dialog','Edit\x20source\x20modal\x20label','ck-button-action','ck-source-editing-enhanced-dialog','1467850PUdaYX','plugins','get','stop','getData','bind','5yzohaj','isReadOnly','data','config','2667874jdzRDo','12bBXBvn','setData','show','refresh','focus','editor','forceDisabled','has','highest','editables','isEnabled','affectsData','Cancel','view','304368sqMZsd','sourceEditingEnhanced.theme'];_0x811d=function(){return _0x5606a9;};return _0x811d();}import{getTranslation as _0xc0c4a4}from'../utils/common-translations.js';import{getActiveRootName as _0x1a8637}from'../utils/getactiverootname.js';import{formatSource as _0x12f1b2,unformatSource as _0x42e2f3}from'../utils/format.js';import _0x2e853f from'./codeeditorview.js';export default class d extends _0x51bb8c{constructor(_0xa3d3f1){const _0x3267c5=_0x3e76;super(_0xa3d3f1),this[_0x3267c5(0x1dc)]=!0x1,this[_0x3267c5(0x1d6)][_0x3267c5(0x1c7)][_0x3267c5(0x1c8)](_0x2319a2)['on'](_0x3267c5(0x1bf),(_0x195772,_0xdb03ab,_0x7b9a86)=>{const _0x64426f=_0x3267c5;_0x7b9a86?this[_0x64426f(0x1d7)](_0x64426f(0x1e1)):this[_0x64426f(0x1b9)](_0x64426f(0x1e1));});}[_0x431a06(0x1d4)](){const _0x5d1599=_0x431a06;this[_0x5d1599(0x1db)]=!0x0;}[_0x431a06(0x1b2)](){const _0x500e36=_0x431a06,_0x202c2c=this[_0x500e36(0x1d6)],_0x1d9eb4=_0x202c2c[_0x500e36(0x1bc)],_0x2683eb=_0x202c2c[_0x500e36(0x1c7)][_0x500e36(0x1c8)](_0x500e36(0x1c2)),_0xeef488=_0x1a8637(_0x202c2c),_0x3f2213=_0x202c2c[_0x500e36(0x1ce)][_0x500e36(0x1c8)]({'rootName':_0xeef488}),_0x4e866e=_0x12f1b2(_0x3f2213),_0x29f388=new _0x2e853f(_0x1d9eb4,{'syntaxLanguage':_0x202c2c[_0x500e36(0x1c7)][_0x500e36(0x1d8)](_0x500e36(0x1bd))?_0x500e36(0x1af):_0x500e36(0x1b0),'theme':_0x202c2c[_0x500e36(0x1cf)][_0x500e36(0x1c8)](_0x500e36(0x1e0))});let _0x3d96a7=!0x0;const _0x4ebbf6=_0x208228=>{const _0x267f0f=_0x500e36;if(!_0x3d96a7)return;const _0x1c6573=_0x29f388[_0x267f0f(0x1ca)]();return _0x42e2f3(_0x1c6573)!==_0x42e2f3(_0x4e866e)?window[_0x267f0f(0x1e2)](_0xc0c4a4(_0x1d9eb4,_0x267f0f(0x1ad)))?void 0x0:_0x208228[_0x267f0f(0x1c9)]():void 0x0;};_0x2683eb[_0x500e36(0x1d3)]({'id':_0x500e36(0x1b8),'title':_0xc0c4a4(_0x1d9eb4,_0x500e36(0x1c3)),'isModal':!0x0,'className':_0x500e36(0x1c5),'content':_0x29f388,'actionButtons':[{'label':_0xc0c4a4(_0x1d9eb4,_0x500e36(0x1dd)),'withText':!0x0,'onExecute':()=>{const _0x1508d4=_0x500e36;_0x2683eb[_0x1508d4(0x1be)]();}},{'label':_0xc0c4a4(_0x1d9eb4,_0x500e36(0x1ba)),'class':_0x500e36(0x1c4),'withText':!0x0,'onExecute':()=>{const _0x21c326=_0x500e36,_0x32b17a=_0x29f388[_0x21c326(0x1ca)](),_0x5299a0=_0x42e2f3(_0x32b17a)!==_0x42e2f3(_0x4e866e);(_0x5299a0&&_0x202c2c[_0x21c326(0x1b2)](_0x21c326(0x1b5),_0x29f388[_0x21c326(0x1ca)]()),_0x3d96a7=!0x1,_0x2683eb[_0x21c326(0x1be)](),_0x5299a0&&_0x21c326(0x1da)in _0x202c2c['ui'][_0x21c326(0x1de)])&&_0x202c2c['ui'][_0x21c326(0x1de)][_0x21c326(0x1da)][_0xeef488][_0x21c326(0x1c0)][_0x21c326(0x1d5)]();},'onCreate':_0x53f724=>{const _0x5b787f=_0x500e36;_0x53f724[_0x5b787f(0x1b1)](_0x5b787f(0x1db),!_0x202c2c[_0x5b787f(0x1cd)]),_0x53f724[_0x5b787f(0x1cb)](_0x5b787f(0x1db))['to'](_0x202c2c,_0x5b787f(0x1cd),this,_0x5b787f(0x1db),(_0xae9848,_0x28edae)=>!_0xae9848&&_0x28edae);}}],'onHide':()=>{const _0x10f453=_0x500e36;_0x2683eb[_0x10f453(0x1b4)](_0x10f453(0x1be),_0x4ebbf6),_0x29f388[_0x10f453(0x1c1)]();},'onShow':()=>{const _0x5f1503=_0x500e36;_0x29f388[_0x5f1503(0x1cb)](_0x5f1503(0x1cd))['to'](_0x202c2c,_0x5f1503(0x1cd),this,_0x5f1503(0x1db),(_0x162383,_0x5e6f66)=>_0x162383||!_0x5e6f66),_0x29f388[_0x5f1503(0x1d2)](_0x4e866e),_0x29f388[_0x5f1503(0x1d5)](),_0x2683eb['on'](_0x5f1503(0x1be),_0x4ebbf6,{'priority':_0x5f1503(0x1d9)});}});}}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 source-editing-enhanced/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -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 function getTranslation(_0x281a86,_0x22ff3a){const t=_0x281a86['t'];switch(_0x22ff3a){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x22ff3a;}}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import { type Extension } from '@codemirror/state';
|
|
6
|
+
import type { SourceEditingEnhancedConfig } from '../sourceeditingenhancedconfig.js';
|
|
7
|
+
/**
|
|
8
|
+
* Creates an instance of the CodeMirror in a specified parent element.
|
|
9
|
+
*
|
|
10
|
+
* It returns an object with the interface to interact with the editor.
|
|
11
|
+
*/
|
|
12
|
+
export default function createCodeMirrorEditor(options: CodeMirrorEditorConfig): CodeMirrorEditorApi;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a set of keybindings for the CodeMirror editor.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getKeybindings(): Array<Extension>;
|
|
17
|
+
/**
|
|
18
|
+
* The interface of the CodeMirror editor that allows interacting with the instance.
|
|
19
|
+
*/
|
|
20
|
+
export type CodeMirrorEditorApi = {
|
|
21
|
+
/**
|
|
22
|
+
* Focuses the code editor.
|
|
23
|
+
*/
|
|
24
|
+
focus: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves data from the editor.
|
|
27
|
+
*/
|
|
28
|
+
getData: () => string;
|
|
29
|
+
/**
|
|
30
|
+
* Sets data to the editor.
|
|
31
|
+
*/
|
|
32
|
+
setData: (data: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Toggles the read-only state of the editor.
|
|
35
|
+
*/
|
|
36
|
+
setReadOnly: (readonly: boolean) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Destroys the editor instance.
|
|
39
|
+
*/
|
|
40
|
+
destroy: () => void;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* The configuration of the CodeMirror instance.
|
|
44
|
+
*/
|
|
45
|
+
export type CodeMirrorEditorConfig = {
|
|
46
|
+
/**
|
|
47
|
+
* The parent DOM element hosting the editor.
|
|
48
|
+
*/
|
|
49
|
+
parent: HTMLElement;
|
|
50
|
+
/**
|
|
51
|
+
* The syntax highlighting language of the editor.
|
|
52
|
+
*/
|
|
53
|
+
syntaxLanguage: 'html' | 'markdown';
|
|
54
|
+
/**
|
|
55
|
+
* The theme of the editor.
|
|
56
|
+
*/
|
|
57
|
+
theme?: SourceEditingEnhancedConfig['theme'];
|
|
58
|
+
};
|
|
@@ -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(_0x265c05,_0x45e49f){const _0x1e8952=_0x53a4,_0x556508=_0x265c05();while(!![]){try{const _0x57ea9e=parseInt(_0x1e8952(0x16d))/0x1+parseInt(_0x1e8952(0x16f))/0x2+parseInt(_0x1e8952(0x16e))/0x3+parseInt(_0x1e8952(0x167))/0x4*(parseInt(_0x1e8952(0x160))/0x5)+-parseInt(_0x1e8952(0x172))/0x6+-parseInt(_0x1e8952(0x174))/0x7+parseInt(_0x1e8952(0x16b))/0x8;if(_0x57ea9e===_0x45e49f)break;else _0x556508['push'](_0x556508['shift']());}catch(_0x204fbb){_0x556508['push'](_0x556508['shift']());}}}(_0x1ec6,0xb32f5));import{lineNumbers as _0x248aac,highlightActiveLineGutter as _0x3e5cea,highlightSpecialChars as _0x55aa51,drawSelection as _0x9940a2,dropCursor as _0x3c80d2,rectangularSelection as _0x378656,crosshairCursor as _0x1af906,highlightActiveLine as _0x21b0dc,keymap as _0xf31b5d,EditorView as _0x14211d}from'@codemirror/view';import{Compartment as _0x31a3f1,Transaction as _0x4a01c9}from'@codemirror/state';function _0x53a4(_0x54b941,_0x4d7798){const _0x1ec6d3=_0x1ec6();return _0x53a4=function(_0x53a48b,_0x5b70e3){_0x53a48b=_0x53a48b-0x15f;let _0x23250e=_0x1ec6d3[_0x53a48b];return _0x23250e;},_0x53a4(_0x54b941,_0x4d7798);}import{foldGutter as _0x33bdfc,indentOnInput as _0x1b1dd1,syntaxHighlighting as _0x466bb1,defaultHighlightStyle as _0x23832d,bracketMatching as _0x10f6fd,foldKeymap as _0x26c641}from'@codemirror/language';import{history as _0x317241,defaultKeymap as _0x36c826,historyKeymap as _0x54b4bc,redo as _0x1bf787}from'@codemirror/commands';import{closeBrackets as _0x38a65a,autocompletion as _0x472e4a,closeBracketsKeymap as _0x3c705e,completionKeymap as _0x5f0c51}from'@codemirror/autocomplete';import{html as _0x47cd57}from'@codemirror/lang-html';function _0x1ec6(){const _0x13f9f5=['syntaxLanguage','7101376HzYpsj','parent','296914ODNArn','783219EerwcC','768190GDcGsZ','push','length','5113500oqvLDe','dispatch','1882391mITeCR','focus','theme','doc','Cmd-y','lineWrapping','30FCqWuT','destroy','state','reconfigure','addToHistory','toString','editable','16900pZcHlm','Ctrl-Shift-z','html'];_0x1ec6=function(){return _0x13f9f5;};return _0x1ec6();}import{markdown as _0x31b26d}from'@codemirror/lang-markdown';export default function p(_0x172f20){const _0x186988=_0x53a4,_0x3625b3=[_0x14211d[_0x186988(0x15f)],_0x472e4a(),_0x10f6fd(),_0x38a65a(),_0x1af906(),_0x9940a2(),_0x3c80d2(),_0x248aac(),_0x33bdfc(),_0x21b0dc(),_0x3e5cea(),_0x55aa51(),_0x317241(),_0x1b1dd1(),_0x378656(),_0x466bb1(_0x23832d,{'fallback':!0x0})],_0x3e9cb9=new _0x31a3f1();_0x3625b3[_0x186988(0x170)](_0x3e9cb9['of'](_0x14211d[_0x186988(0x166)]['of'](!0x0))),_0x186988(0x169)===_0x172f20[_0x186988(0x16a)]?_0x3625b3[_0x186988(0x170)](_0x47cd57()):_0x3625b3[_0x186988(0x170)](_0x31b26d()),_0x172f20[_0x186988(0x176)]&&_0x3625b3[_0x186988(0x170)](_0x172f20[_0x186988(0x176)]),_0x3625b3[_0x186988(0x170)](...getKeybindings());const _0x4cf14b=new _0x14211d({'extensions':_0x3625b3,'parent':_0x172f20[_0x186988(0x16c)]});return{'focus':()=>{const _0x2d76ad=_0x186988;_0x4cf14b[_0x2d76ad(0x173)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x4cf14b[_0x2d76ad(0x175)]();},'getData':()=>_0x4cf14b[_0x186988(0x162)][_0x186988(0x177)][_0x186988(0x165)](),'setData':_0x4bc876=>{const _0x2315f0=_0x186988;_0x4cf14b[_0x2315f0(0x173)]({'changes':{'from':0x0,'to':_0x4cf14b[_0x2315f0(0x162)][_0x2315f0(0x177)][_0x2315f0(0x171)],'insert':_0x4bc876},'annotations':_0x4a01c9[_0x2315f0(0x164)]['of'](!0x1)});},'setReadOnly':_0x3cb347=>{const _0x43f5c1=_0x186988;_0x4cf14b[_0x43f5c1(0x173)]({'effects':[_0x3e9cb9[_0x43f5c1(0x163)](_0x14211d[_0x43f5c1(0x166)]['of'](!_0x3cb347))]});},'destroy':()=>{const _0x19e1ae=_0x186988;_0x4cf14b[_0x19e1ae(0x161)]();}};}export function getKeybindings(){const _0x5b0fa5=_0x53a4;return[_0xf31b5d['of']([..._0x3c705e,..._0x36c826,..._0x54b4bc,..._0x26c641,..._0x5f0c51,{'key':_0x5b0fa5(0x168),'mac':_0x5b0fa5(0x178),'run':_0x1bf787,'preventDefault':!0x0}])];}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 source-editing-enhanced/utils/format
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Formats the content for a better readability.
|
|
10
|
+
*
|
|
11
|
+
* For a non-HTML source the unchanged input string is returned.
|
|
12
|
+
*
|
|
13
|
+
* @param input Input string to check.
|
|
14
|
+
*/
|
|
15
|
+
export declare function formatSource(input: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Unformats the given HTML by removing new lines and multiple whitespace characters.
|
|
18
|
+
*
|
|
19
|
+
* For a non-HTML source the unchanged input string is returned.
|
|
20
|
+
*
|
|
21
|
+
* @param input Input string to check.
|
|
22
|
+
*/
|
|
23
|
+
export declare function unformatSource(input: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* A simple (and naive) HTML code formatter that returns a formatted HTML markup that can be easily
|
|
26
|
+
* parsed by human eyes. It beautifies the HTML code by adding new lines between elements that behave like block elements
|
|
27
|
+
* (https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
|
|
28
|
+
* and a few more like `tr`, `td`, and similar ones) and inserting indents for nested content.
|
|
29
|
+
*
|
|
30
|
+
* WARNING: This function works only on a text that does not contain any indentations or new lines.
|
|
31
|
+
* Calling this function on the already formatted text will damage the formatting.
|
|
32
|
+
*
|
|
33
|
+
* @param input An HTML string to format.
|
|
34
|
+
*/
|
|
35
|
+
export declare function formatHtml(input: string): string;
|
|
@@ -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 _0x4e1bc2=_0x107b;(function(_0x2adc8d,_0x25990c){const _0x182167=_0x107b,_0x3d62a7=_0x2adc8d();while(!![]){try{const _0x459117=-parseInt(_0x182167(0xd1))/0x1*(parseInt(_0x182167(0xae))/0x2)+-parseInt(_0x182167(0xbd))/0x3*(-parseInt(_0x182167(0xc9))/0x4)+parseInt(_0x182167(0xbf))/0x5*(-parseInt(_0x182167(0xc8))/0x6)+parseInt(_0x182167(0xb5))/0x7*(-parseInt(_0x182167(0xbc))/0x8)+parseInt(_0x182167(0xb8))/0x9+parseInt(_0x182167(0xb9))/0xa+parseInt(_0x182167(0xca))/0xb;if(_0x459117===_0x25990c)break;else _0x3d62a7['push'](_0x3d62a7['shift']());}catch(_0x4be008){_0x3d62a7['push'](_0x3d62a7['shift']());}}}(_0x4f02,0x481be));function _0x4f02(){const _0x2ee700=['table','1070iCGFYs','max','length','figure','figcaption','nav','aside','</?(','section','1302xSEeiW','49640cFsgWd','7902818WqGRry','repeat','join','hgroup','some','$&\x0a','\x0a$&\x0a','6593LKYXHf','test','main','footer','form','last','dialog','address','isVoid','(\x20.*?)?>','first','filter',')(\x20.*?)?>','fieldset','tbody','replace','name','map','</pre>','startsWith','100xGWYgt','blockquote','article','middle','\x20\x20\x20\x20','split','thead','35zcLctj','details','header','13482JtADib','1941150OQIyso','<pre(\x20.*?)?>','div','467592YoZEEU','12XgTBHI'];_0x4f02=function(){return _0x2ee700;};return _0x4f02();}export function formatSource(_0x52a7ad){return $(_0x52a7ad)?formatHtml(_0x52a7ad):_0x52a7ad;}export function unformatSource(_0x4bac53){const _0x62d0f4=_0x107b;return $(_0x4bac53[_0x62d0f4(0xa9)](/^[\n\s]*/g,''))?_0x4bac53[_0x62d0f4(0xa9)](/\s+/g,''):_0x4bac53;}export function formatHtml(_0x37f200){const _0x4316ab=_0x107b,_0x3720ce=[{'name':_0x4316ab(0xd8),'isVoid':!0x1},{'name':_0x4316ab(0xb0),'isVoid':!0x1},{'name':_0x4316ab(0xc5),'isVoid':!0x1},{'name':_0x4316ab(0xaf),'isVoid':!0x1},{'name':_0x4316ab(0xb6),'isVoid':!0x1},{'name':_0x4316ab(0xd7),'isVoid':!0x1},{'name':'dd','isVoid':!0x1},{'name':_0x4316ab(0xbb),'isVoid':!0x1},{'name':'dl','isVoid':!0x1},{'name':'dt','isVoid':!0x1},{'name':_0x4316ab(0xde),'isVoid':!0x1},{'name':_0x4316ab(0xc3),'isVoid':!0x1},{'name':_0x4316ab(0xc2),'isVoid':!0x1},{'name':_0x4316ab(0xd4),'isVoid':!0x1},{'name':_0x4316ab(0xd5),'isVoid':!0x1},{'name':'h1','isVoid':!0x1},{'name':'h2','isVoid':!0x1},{'name':'h3','isVoid':!0x1},{'name':'h4','isVoid':!0x1},{'name':'h5','isVoid':!0x1},{'name':'h6','isVoid':!0x1},{'name':_0x4316ab(0xb7),'isVoid':!0x1},{'name':_0x4316ab(0xcd),'isVoid':!0x1},{'name':'hr','isVoid':!0x0},{'name':'li','isVoid':!0x1},{'name':_0x4316ab(0xd3),'isVoid':!0x1},{'name':_0x4316ab(0xc4),'isVoid':!0x1},{'name':'ol','isVoid':!0x1},{'name':'p','isVoid':!0x1},{'name':_0x4316ab(0xc7),'isVoid':!0x1},{'name':_0x4316ab(0xbe),'isVoid':!0x1},{'name':_0x4316ab(0xdf),'isVoid':!0x1},{'name':'td','isVoid':!0x1},{'name':'th','isVoid':!0x1},{'name':_0x4316ab(0xb4),'isVoid':!0x1},{'name':'tr','isVoid':!0x1},{'name':'ul','isVoid':!0x1}],_0x26015e=_0x3720ce[_0x4316ab(0xab)](_0x5d6e2e=>_0x5d6e2e[_0x4316ab(0xaa)])[_0x4316ab(0xcc)]('|'),_0x30e1e7=_0x37f200[_0x4316ab(0xa9)](new RegExp(_0x4316ab(0xc6)+_0x26015e+_0x4316ab(0xdd),'g'),_0x4316ab(0xd0))[_0x4316ab(0xa9)](/<br[^>]*>/g,_0x4316ab(0xcf))[_0x4316ab(0xb3)]('\x0a');let _0x1aada7=0x0,_0xf556fe=!0x1;return _0x30e1e7[_0x4316ab(0xdc)](_0x3a2071=>_0x3a2071[_0x4316ab(0xc1)])[_0x4316ab(0xab)](_0x36b0e1=>(_0xf556fe=function(_0x39917b,_0xaa27dc){const _0x544038=_0x4316ab;return new RegExp(_0x544038(0xba))[_0x544038(0xd2)](_0x39917b)?_0x544038(0xdb):new RegExp(_0x544038(0xac))[_0x544038(0xd2)](_0x39917b)?_0x544038(0xd6):(_0x544038(0xdb)===_0xaa27dc||_0x544038(0xb1)===_0xaa27dc)&&_0x544038(0xb1);}(_0x36b0e1,_0xf556fe),function(_0x18040a,_0x28b69a){const _0x408a3c=_0x4316ab;return _0x28b69a[_0x408a3c(0xce)](_0x56c4e7=>!_0x56c4e7[_0x408a3c(0xd9)]&&!!new RegExp('<'+_0x56c4e7[_0x408a3c(0xaa)]+_0x408a3c(0xda))[_0x408a3c(0xd2)](_0x18040a));}(_0x36b0e1,_0x3720ce)?X(_0x36b0e1,_0x1aada7++):function(_0x227b71,_0x5cc633){const _0x1b23f9=_0x4316ab;return _0x5cc633[_0x1b23f9(0xce)](_0x3c2b3e=>new RegExp('</'+_0x3c2b3e[_0x1b23f9(0xaa)]+'>')[_0x1b23f9(0xd2)](_0x227b71));}(_0x36b0e1,_0x3720ce)?X(_0x36b0e1,--_0x1aada7):_0x4316ab(0xb1)===_0xf556fe||_0x4316ab(0xd6)===_0xf556fe?_0x36b0e1:X(_0x36b0e1,_0x1aada7)))[_0x4316ab(0xcc)]('\x0a');}function $(_0x437774){const _0x42eafb=_0x107b;return _0x437774[_0x42eafb(0xad)]('<');}function _0x107b(_0x2a81f1,_0x21b60e){const _0x4f027f=_0x4f02();return _0x107b=function(_0x107bc1,_0x26b91c){_0x107bc1=_0x107bc1-0xa9;let _0x1299da=_0x4f027f[_0x107bc1];return _0x1299da;},_0x107b(_0x2a81f1,_0x21b60e);}function X(_0x35d63a,_0x336eca,_0x2f5268=_0x4e1bc2(0xb2)){const _0x60fe6f=_0x4e1bc2;return''+_0x2f5268[_0x60fe6f(0xcb)](Math[_0x60fe6f(0xc0)](0x0,_0x336eca))+_0x35d63a;}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
/**
|
|
7
|
+
* Returns the name of the currently or most recently active root (the root the selection is anchored to).
|
|
8
|
+
*/
|
|
9
|
+
export declare function getActiveRootName(editor: Editor): string;
|
|
@@ -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 _0x1b5d(){const _0x3474a9=['701181bDuEZR','70KqbDOg','2850izGrGE','8438650ePdOXk','757608lOcGhe','611241oofPpL','223tgsxlD','selection','view','document','524048QYZLwb','roots','from','rootName','source-editing-enhanced-editor-no-root','7FyInul','first','getRanges','length','root','95rrfrOt','editing','81772sKnAZh'];_0x1b5d=function(){return _0x3474a9;};return _0x1b5d();}(function(_0x245a36,_0x192cf9){const _0xc99304=_0x1f9c,_0x513b19=_0x245a36();while(!![]){try{const _0x2c9bd2=-parseInt(_0xc99304(0x184))/0x1*(parseInt(_0xc99304(0x197))/0x2)+-parseInt(_0xc99304(0x19a))/0x3+parseInt(_0xc99304(0x194))/0x4*(-parseInt(_0xc99304(0x192))/0x5)+-parseInt(_0xc99304(0x199))/0x6*(parseInt(_0xc99304(0x18d))/0x7)+parseInt(_0xc99304(0x188))/0x8+parseInt(_0xc99304(0x195))/0x9*(parseInt(_0xc99304(0x196))/0xa)+parseInt(_0xc99304(0x198))/0xb;if(_0x2c9bd2===_0x192cf9)break;else _0x513b19['push'](_0x513b19['shift']());}catch(_0x180c2f){_0x513b19['push'](_0x513b19['shift']());}}}(_0x1b5d,0x53734));import{CKEditorError as _0xc79422}from'ckeditor5/src/utils.js';function _0x1f9c(_0x340844,_0x25c1b1){const _0x1b5da5=_0x1b5d();return _0x1f9c=function(_0x1f9c1e,_0x5212fa){_0x1f9c1e=_0x1f9c1e-0x184;let _0x5c91df=_0x1b5da5[_0x1f9c1e];return _0x5c91df;},_0x1f9c(_0x340844,_0x25c1b1);}export function getActiveRootName(_0x333c03){const _0x4439a7=_0x1f9c,_0x2ae3a0=_0x333c03[_0x4439a7(0x193)][_0x4439a7(0x186)][_0x4439a7(0x187)][_0x4439a7(0x189)],_0x27552b=_0x2ae3a0[_0x4439a7(0x190)];if(0x0===_0x27552b)throw new _0xc79422(_0x4439a7(0x18c),_0x333c03);if(0x1===_0x27552b)return _0x2ae3a0[_0x4439a7(0x18e)][_0x4439a7(0x18b)];return Array[_0x4439a7(0x18a)](_0x333c03[_0x4439a7(0x193)][_0x4439a7(0x186)][_0x4439a7(0x187)][_0x4439a7(0x185)][_0x4439a7(0x18f)]())[0x0][_0x4439a7(0x191)][_0x4439a7(0x18b)];}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
/* Keep the editor as big as possible within the limits of the dialog system geometry. */
|
|
14
|
+
--ck-source-editing-enhanced-height: calc(
|
|
15
|
+
var(--ck-dialog-max-height) /* ─▶ Total max height of the dialog */
|
|
16
|
+
- var(--ck-form-header-height) /* ─▶ Height of the dialog header */
|
|
17
|
+
- 2 * var(--ck-spacing-large) /* ─┐ */
|
|
18
|
+
- var(--ck-ui-component-min-height) /* ├─▶ Height of the dialog actions bar */
|
|
19
|
+
- 2 * var(--ck-spacing-tiny) /* ─┘ */
|
|
20
|
+
);
|
|
21
|
+
--ck-source-editing-enhanced-width: min(80vw, 1200px);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ck.ck-code-editor {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: stretch;
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
white-space: initial;
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
border-bottom: 1px solid var(--ck-color-base-border);
|
|
32
|
+
height: var(--ck-source-editing-enhanced-height);
|
|
33
|
+
width: var(--ck-source-editing-enhanced-width);
|
|
34
|
+
|
|
35
|
+
/* Styles of the CodeMirror editor */
|
|
36
|
+
& .cm-editor {
|
|
37
|
+
flex-grow: 1;
|
|
38
|
+
width: 100%;
|
|
39
|
+
|
|
40
|
+
&.cm-focused {
|
|
41
|
+
outline: var(--ck-focus-ring);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|