@ckeditor/ckeditor5-collaboration-core 42.0.2 → 43.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -101
- package/dist/index-content.css +49 -0
- package/dist/index-editor.css +23 -1
- package/dist/index.css +143 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/suggestions/view/ariadescriptionview.d.ts +27 -0
- package/dist/suggestions/view/latefocusbuttonview.d.ts +41 -0
- package/dist/suggestionstyles.d.ts +2 -0
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/confirmmixin.d.ts +5 -1
- package/dist/utils/confirmview.d.ts +20 -4
- package/dist/utils/hashobject.d.ts +1 -1
- package/dist/utils/sanitizeEditorConfig.d.ts +1 -1
- package/dist/utils/setupthreadkeyboardnavigation.d.ts +49 -0
- package/dist/utils/trim-html.d.ts +3 -0
- package/package.json +6 -5
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/src/permissions.js +1 -1
- package/src/suggestions/view/ariadescriptionview.d.ts +23 -0
- package/src/suggestions/view/ariadescriptionview.js +23 -0
- package/src/suggestions/view/latefocusbuttonview.d.ts +37 -0
- package/src/suggestions/view/latefocusbuttonview.js +23 -0
- package/src/suggestionstyles.d.ts +2 -0
- package/src/suggestionstyles.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/users.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/confirmmixin.d.ts +5 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.d.ts +20 -4
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.d.ts +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.d.ts +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/setupthreadkeyboardnavigation.d.ts +45 -0
- package/src/utils/setupthreadkeyboardnavigation.js +23 -0
- package/src/utils/surroundingmarkersdetector.js +1 -1
- package/src/utils/trim-html.d.ts +3 -0
- package/src/utils/trim-html.js +1 -1
- package/theme/ariadescription.css +12 -0
- package/theme/integrations/mergefields.css +67 -0
- package/theme/suggestion.css +29 -1
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2024, 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 _0x2130f1=_0x45ae;function _0x45ae(_0x469b9a,_0x1552b1){const _0xc5cd05=_0xc5cd();return _0x45ae=function(_0x45ae24,_0x37f90c){_0x45ae24=_0x45ae24-0xf4;let _0x5b5da7=_0xc5cd05[_0x45ae24];return _0x5b5da7;},_0x45ae(_0x469b9a,_0x1552b1);}(function(_0x1cc6b1,_0x296d81){const _0x280f5a=_0x45ae,_0x414f4f=_0x1cc6b1();while(!![]){try{const _0x3bc51c=-parseInt(_0x280f5a(0x110))/0x1+-parseInt(_0x280f5a(0x100))/0x2*(-parseInt(_0x280f5a(0xf9))/0x3)+-parseInt(_0x280f5a(0xfb))/0x4*(parseInt(_0x280f5a(0x10e))/0x5)+-parseInt(_0x280f5a(0x118))/0x6+parseInt(_0x280f5a(0xfe))/0x7+-parseInt(_0x280f5a(0x116))/0x8*(-parseInt(_0x280f5a(0xf6))/0x9)+parseInt(_0x280f5a(0xfd))/0xa*(-parseInt(_0x280f5a(0x119))/0xb);if(_0x3bc51c===_0x296d81)break;else _0x414f4f['push'](_0x414f4f['shift']());}catch(_0xcd7f8c){_0x414f4f['push'](_0x414f4f['shift']());}}}(_0xc5cd,0x346d9));import{isViewWithFocusCycler as _0x107ff3}from'ckeditor5/src/ui.js';export const ENTER_THREAD_KEYSTROKE=_0x2130f1(0x11b);export default function T(_0x1cbfaf,_0xeef003){const _0x30cf21=_0x2130f1,_0x561df7=_0x1cbfaf[_0x30cf21(0xfa)];_0x1cbfaf[_0x30cf21(0xf7)][_0x30cf21(0x102)](_0x561df7);for(const _0x4508c1 of _0xeef003)K(_0x1cbfaf,_0x4508c1);_0xeef003['on'](_0x30cf21(0x103),(_0x46fb23,_0x170589)=>{const _0x1f2b82=_0x30cf21;for(const _0x4a1e09 of _0x170589[_0x1f2b82(0x107)])_(_0x1cbfaf,_0x4a1e09);for(const _0x1c34ff of Array[_0x1f2b82(0x101)](_0x170589[_0x1f2b82(0x10a)])[_0x1f2b82(0x11a)]())K(_0x1cbfaf,_0x1c34ff);}),_0x1cbfaf[_0x30cf21(0xf7)][_0x30cf21(0x113)](_0x30cf21(0x114),(_0x31ea14,_0x4ecbf9)=>{const _0x1f8220=_0x30cf21;_0x561df7===_0x31ea14[_0x1f8220(0x109)]&&(_0x1cbfaf[_0x1f8220(0x10f)][_0x1f8220(0x10b)](),_0x4ecbf9());},{'filter':_0x12cbc4=>_0x12cbc4[_0x30cf21(0x109)]===_0x561df7}),_0x1cbfaf[_0x30cf21(0xf7)][_0x30cf21(0x113)](_0x30cf21(0x104),(_0x2ba2d8,_0x7e2bd2)=>{const _0x156368=_0x30cf21;_0x561df7!==_0x2ba2d8[_0x156368(0x109)]?_0x1cbfaf[_0x156368(0x111)]():_0x1cbfaf[_0x156368(0xf5)](_0x156368(0xfc)),_0x7e2bd2();}),_0x1cbfaf[_0x30cf21(0xf7)][_0x30cf21(0x113)](_0x30cf21(0x117),(_0x1b8f80,_0x1d81d5)=>{const _0x486cf8=_0x30cf21;_0x561df7===_0x1b8f80[_0x486cf8(0x109)]&&(_0x1cbfaf[_0x486cf8(0xf5)](_0x486cf8(0x117)),_0x1d81d5());}),_0x1cbfaf[_0x30cf21(0xf7)][_0x30cf21(0x113)](_0x30cf21(0xf4),(_0x1399d5,_0x354ed1)=>{const _0x19323c=_0x30cf21;_0x561df7===_0x1399d5[_0x19323c(0x109)]&&(_0x1cbfaf[_0x19323c(0xf5)](_0x19323c(0xf4)),_0x354ed1());});}function K(_0x5cd315,_0x15f34f){const _0x3837d2=_0x2130f1;_0x15f34f[_0x3837d2(0x106)]&&(_0x5cd315[_0x3837d2(0xf8)][_0x3837d2(0x105)](_0x15f34f[_0x3837d2(0xfa)]),_0x5cd315[_0x3837d2(0xf7)][_0x3837d2(0x102)](_0x15f34f[_0x3837d2(0xfa)]),_0x107ff3(_0x15f34f)&&function(_0x5071fc,_0x2556ea){const _0x8bb32c=_0x3837d2,_0xbf39ed=_0x5071fc[_0x8bb32c(0x108)],_0x34d95b=_0x2556ea[_0x8bb32c(0x108)];for(const _0x4e42aa of Object[_0x8bb32c(0x115)](_0xbf39ed))if(_0x4e42aa in _0x34d95b&&_0xbf39ed[_0x4e42aa]!==_0x34d95b[_0x4e42aa])return!0x1;return!0x0;}(_0x5cd315[_0x3837d2(0x10f)],_0x15f34f[_0x3837d2(0x10f)])&&_0x5cd315[_0x3837d2(0x10f)][_0x3837d2(0x10d)](_0x15f34f[_0x3837d2(0x10f)]));}function _(_0x403519,_0x176737){const _0x19b087=_0x2130f1;_0x403519[_0x19b087(0xf8)][_0x19b087(0xff)](_0x176737[_0x19b087(0xfa)]),_0x403519[_0x19b087(0xf7)][_0x19b087(0x10c)](_0x176737[_0x19b087(0xfa)]),_0x107ff3(_0x176737)&&_0x403519[_0x19b087(0x10f)][_0x19b087(0x112)](_0x176737[_0x19b087(0x10f)]);}function _0xc5cd(){const _0x1c1961=['9BnmMMw','element','4JLBevb','escape','66180WkYuaN','991067HCgzwc','remove','100072ZJnFOh','from','listenTo','change','esc','add','isRendered','removed','actions','target','added','focusFirst','stopListening','chain','115fwRdLu','focusCycler','176138yQYBEK','focus','unchain','set','enter','keys','2104ueBoCv','arrowdown','711690whPQYm','319vGZGTY','reverse','Ctrl+Shift+E','arrowup','fire','14022uMyMIW','keystrokes','focusTracker'];_0xc5cd=function(){return _0x1c1961;};return _0xc5cd();}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
23
|
+
function _0x1247(_0x54582b,_0x10068d){const _0x2db7d9=_0x2db7();return _0x1247=function(_0x1247ec,_0x569c9a){_0x1247ec=_0x1247ec-0x1a7;let _0xbd1985=_0x2db7d9[_0x1247ec];return _0xbd1985;},_0x1247(_0x54582b,_0x10068d);}function _0x2db7(){const _0x56599f=['isEqual','350HBBBbv','getRange','1212MgCwdx','document','focus','337216iBzLUP','135738gSztks','markers','length','change:range','872952mWWZqv','push','1197455cJBbzE','end','containsPosition','81426VXOTZp','441pHzuZi','8oPETOs','includes','selection','start','1515045vrEapN'];_0x2db7=function(){return _0x56599f;};return _0x2db7();}(function(_0x10d708,_0x1b5999){const _0x387771=_0x1247,_0x17e3af=_0x10d708();while(!![]){try{const _0x4b45e3=-parseInt(_0x387771(0x1ae))/0x1+-parseInt(_0x387771(0x1b8))/0x2+-parseInt(_0x387771(0x1b9))/0x3*(-parseInt(_0x387771(0x1ab))/0x4)+parseInt(_0x387771(0x1a7))/0x5+-parseInt(_0x387771(0x1b3))/0x6+parseInt(_0x387771(0x1b5))/0x7*(-parseInt(_0x387771(0x1ba))/0x8)+parseInt(_0x387771(0x1af))/0x9*(parseInt(_0x387771(0x1a9))/0xa);if(_0x4b45e3===_0x1b5999)break;else _0x17e3af['push'](_0x17e3af['shift']());}catch(_0x1ebb28){_0x17e3af['push'](_0x17e3af['shift']());}}}(_0x2db7,0x2c2c6));export default function B(_0x2f4f8e,_0x317325){const _0x5e1872=_0x1247,_0x36304d=[];_0x2f4f8e[_0x5e1872(0x1ac)][_0x5e1872(0x1bc)]['on'](_0x5e1872(0x1b2),()=>{const _0x4a6eff=_0x5e1872,_0x81cd51=function(_0x3a3581,_0x57283b){const _0xa896b3=_0x1247,_0x122603=[];for(const _0x24b61b of _0x3a3581[_0xa896b3(0x1b0)]){const _0x1fe780=_0x24b61b[_0xa896b3(0x1aa)]();(_0x1fe780[_0xa896b3(0x1b7)](_0x57283b)||_0x1fe780[_0xa896b3(0x1bd)][_0xa896b3(0x1a8)](_0x57283b)||_0x1fe780[_0xa896b3(0x1b6)][_0xa896b3(0x1a8)](_0x57283b))&&_0x122603[_0xa896b3(0x1b4)](_0x24b61b);}return _0x122603;}(_0x2f4f8e,_0x2f4f8e[_0x4a6eff(0x1ac)][_0x4a6eff(0x1bc)][_0x4a6eff(0x1ad)]),_0xc649a7=[],_0x2df29c=[],_0x4329e6=[];for(const _0x9dd725 of _0x36304d)_0x81cd51[_0x4a6eff(0x1bb)](_0x9dd725)||_0xc649a7[_0x4a6eff(0x1b4)](_0x9dd725);for(const _0x4f1a76 of _0x81cd51)_0x36304d[_0x4a6eff(0x1bb)](_0x4f1a76)||_0x2df29c[_0x4a6eff(0x1b4)](_0x4f1a76),_0x4329e6[_0x4a6eff(0x1b4)](_0x4f1a76);(_0xc649a7[_0x4a6eff(0x1b1)]||_0x2df29c[_0x4a6eff(0x1b1)])&&_0x317325({'left':_0xc649a7,'entered':_0x2df29c}),_0x36304d[_0x4a6eff(0x1b1)]=0x0,_0x36304d[_0x4a6eff(0x1b4)](..._0x4329e6);});}
|
package/src/utils/trim-html.d.ts
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
+
/**
|
6
|
+
* @module collaboration-core/utils/trim-html
|
7
|
+
*/
|
5
8
|
/**
|
6
9
|
* Trims text inside a html tags and takes care of all closing tags.
|
7
10
|
*
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
function _0x28c3(){const _0x4797f7=['10SUIwYA','200baACPn','1092YrxuuI','122788ZaZATk','114825uluAAZ','62500kPiBUq','startsWith','indexOf','241590KWhMcF','push','...','length','replace','slice','66jGovkA','split','pop','match','271104kfGsMy','substring','2875848PFLMum','135djHJOV','33152vEqfPu','join'];_0x28c3=function(){return _0x4797f7;};return _0x28c3();}const _0x528769=_0x225d;(function(_0x5d68c0,_0x28fb1f){const _0x396a4a=_0x225d,_0x5237ec=_0x5d68c0();while(!![]){try{const _0x355d27=-parseInt(_0x396a4a(0x12f))/0x1*(parseInt(_0x396a4a(0x12c))/0x2)+parseInt(_0x396a4a(0x130))/0x3+parseInt(_0x396a4a(0x131))/0x4*(-parseInt(_0x396a4a(0x12d))/0x5)+-parseInt(_0x396a4a(0x12e))/0x6*(-parseInt(_0x396a4a(0x12a))/0x7)+parseInt(_0x396a4a(0x128))/0x8+-parseInt(_0x396a4a(0x129))/0x9*(-parseInt(_0x396a4a(0x11c))/0xa)+-parseInt(_0x396a4a(0x122))/0xb*(-parseInt(_0x396a4a(0x126))/0xc);if(_0x355d27===_0x28fb1f)break;else _0x5237ec['push'](_0x5237ec['shift']());}catch(_0x1f25ea){_0x5237ec['push'](_0x5237ec['shift']());}}}(_0x28c3,0x7ea31));export default function Z(_0x6746ef,{limit:_0x1b4e2a,suffix:_0x1eeefa=_0x528769(0x11e)}){const _0x33ba1b=_0x528769,_0x2a86e8=[];let _0x5d8dae=0x0;const _0x5e4d3f=_0x6746ef[_0x33ba1b(0x120)](/</g,'\x0a<')[_0x33ba1b(0x120)](/>/g,'>\x0a')[_0x33ba1b(0x120)](/^\n/g,'')[_0x33ba1b(0x120)](/\n$/g,'')[_0x33ba1b(0x123)]('\x0a');for(let _0x414d79=0x0;_0x414d79<_0x5e4d3f[_0x33ba1b(0x11f)];_0x414d79++){let _0x5f159a=_0x5e4d3f[_0x414d79];const _0x14a72f=$(_0x5f159a);if(_0x5f159a[_0x33ba1b(0x132)]('<')){if(_0x5d8dae>=_0x1b4e2a){const _0x4ea01b=_0x5f159a[_0x33ba1b(0x125)](/[a-zA-Z]+/);if(!_0x4ea01b){_0x5e4d3f[_0x414d79]='';continue;}const _0x2fe8a4=_0x4ea01b[0x0];_0x5f159a[_0x33ba1b(0x132)]('</')?(_0x2a86e8[_0x33ba1b(0x11f)]&&(_0x5f159a=''),_0x2a86e8[_0x33ba1b(0x124)]()):(_0x2a86e8[_0x33ba1b(0x11d)](_0x2fe8a4),_0x5f159a='');}}else{if(_0x5d8dae>=_0x1b4e2a)_0x5f159a='';else{if(_0x5d8dae+_0x14a72f[_0x33ba1b(0x11f)]>=_0x1b4e2a){let _0x40aea6=_0x1b4e2a-_0x5d8dae;if('\x20'===_0x14a72f[_0x40aea6-0x1])_0x40aea6--;else{const _0x15725b=_0x14a72f[_0x33ba1b(0x121)](_0x40aea6)[_0x33ba1b(0x11b)]('\x20');-0x1!==_0x15725b?_0x40aea6+=_0x15725b:_0x40aea6=_0x5f159a[_0x33ba1b(0x11f)];}_0x5f159a=_0x14a72f[_0x33ba1b(0x121)](0x0,_0x40aea6)[_0x33ba1b(0x12b)]('')+_0x1eeefa,_0x5d8dae=_0x1b4e2a;}else _0x5d8dae+=_0x14a72f[_0x33ba1b(0x11f)];}}_0x5e4d3f[_0x414d79]=_0x5f159a;}return _0x5e4d3f[_0x33ba1b(0x12b)]('\x0a')[_0x33ba1b(0x120)](/\n/g,'');}function _0x225d(_0x180e3b,_0x4156fe){const _0x28c398=_0x28c3();return _0x225d=function(_0x225d81,_0x57b555){_0x225d81=_0x225d81-0x11b;let _0x193496=_0x28c398[_0x225d81];return _0x193496;},_0x225d(_0x180e3b,_0x4156fe);}function $(_0x22f7f6){const _0xd8a51=_0x528769,_0x14ca65=[];for(let _0x225e8f=0x0;_0x225e8f<_0x22f7f6[_0xd8a51(0x11f)];_0x225e8f++){const _0x36ac97=_0x22f7f6[_0xd8a51(0x127)](_0x225e8f)[_0xd8a51(0x125)](/^&[a-z0-9#]+;/);if(_0x36ac97){const _0x4deab1=_0x36ac97[0x0];_0x14ca65[_0xd8a51(0x11d)](_0x4deab1),_0x225e8f+=_0x4deab1[_0xd8a51(0x11f)]-0x1;}else _0x14ca65[_0xd8a51(0x11d)](_0x22f7f6[_0x225e8f]);}return _0x14ca65;}
|
@@ -0,0 +1,12 @@
|
|
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-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
8
|
+
*/
|
9
|
+
|
10
|
+
.ck.ck-aria-description {
|
11
|
+
display: none;
|
12
|
+
}
|
@@ -0,0 +1,67 @@
|
|
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-2024, CKSource Holding sp. z o.o. All rights reserved.
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
8
|
+
*/
|
9
|
+
|
10
|
+
.ck-content .ck-suggestion-marker.ck-widget.ck-merge-field,
|
11
|
+
.ck-content .ck-comment-marker.ck-widget.ck-merge-field {
|
12
|
+
/* Note that comments markers have transparent border to be better aligned with suggestions markers. */
|
13
|
+
border-width: 2px;
|
14
|
+
border-left: none;
|
15
|
+
border-right: none;
|
16
|
+
padding-top: 0;
|
17
|
+
padding-bottom: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field {
|
21
|
+
border-top-color: var(--ck-color-suggestion-marker-deletion-border);
|
22
|
+
border-bottom-color: var(--ck-color-suggestion-marker-deletion-border);
|
23
|
+
|
24
|
+
background: var(--ck-color-suggestion-marker-deletion-background);
|
25
|
+
|
26
|
+
& :not(.ck-merge-field__affix),
|
27
|
+
&.ck-merge-field_with-value,
|
28
|
+
&.ck-merge-field_with-warning {
|
29
|
+
text-decoration: line-through;
|
30
|
+
text-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);
|
31
|
+
text-decoration-thickness: 3px;
|
32
|
+
}
|
33
|
+
|
34
|
+
&.ck-suggestion-marker--active {
|
35
|
+
background-color: var(--ck-color-suggestion-marker-deletion-background-active);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field {
|
40
|
+
background-color: var(--ck-color-suggestion-marker-insertion-background);
|
41
|
+
|
42
|
+
&.ck-suggestion-marker--active {
|
43
|
+
background-color: var(--ck-color-suggestion-marker-insertion-background-active);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.ck-content .ck-comment-marker.ck-widget.ck-merge-field {
|
48
|
+
background: var(--ck-color-comment-marker);
|
49
|
+
|
50
|
+
&.ck-comment-marker--active {
|
51
|
+
background: var(--ck-color-comment-marker-active);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
/*
|
56
|
+
This is a hack for a specific situation. The selector targets all regular markers made on text that are just before
|
57
|
+
a merge field (also in marker). This is a common situation. For example, if you have some text and a merge field
|
58
|
+
just after and all that is in a suggestion. Without this hack, there is a 1px spacing between the span and the merge
|
59
|
+
field, because the merge field has margin. The margin is needed because otherwise caret does not display. To
|
60
|
+
"remove" the spacing, we extend the span before the merge field by 1px using padding, but we need to compensate
|
61
|
+
by using negative margin, so that the whole content does not change its position.
|
62
|
+
*/
|
63
|
+
.ck-content span.ck-comment-marker:has(+.ck-comment-marker.ck-widget.ck-merge-field),
|
64
|
+
.ck-content span.ck-suggestion-marker:has(+.ck-suggestion-marker.ck-widget.ck-merge-field) {
|
65
|
+
padding-right: 1px;
|
66
|
+
margin-right: -1px;
|
67
|
+
}
|
package/theme/suggestion.css
CHANGED
@@ -7,6 +7,10 @@
|
|
7
7
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
8
8
|
*/
|
9
9
|
|
10
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
|
11
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
12
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
13
|
+
|
10
14
|
:root {
|
11
15
|
--ck-color-comment-box-border: hsl(55, 98%, 48%);
|
12
16
|
--ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
|
@@ -55,8 +59,32 @@ With track-changes feature enabled, we need to distinguish various types of anno
|
|
55
59
|
}
|
56
60
|
|
57
61
|
.ck .ck-suggestion-wrapper {
|
58
|
-
|
62
|
+
@mixin ck-rounded-corners;
|
63
|
+
|
59
64
|
overflow: hidden;
|
65
|
+
|
66
|
+
&:focus {
|
67
|
+
/*
|
68
|
+
* We cannot use the ck-focus-ring mixin here because it adds a border that would need to stay transparent
|
69
|
+
* in non-focused state and create an odd space inside the surrounding annotation container.
|
70
|
+
*/
|
71
|
+
outline: var(--ck-focus-ring);
|
72
|
+
|
73
|
+
/*
|
74
|
+
* We cannot use the ck-box-shadow mixin because we're using outline instead of border (see the comment above).
|
75
|
+
* And the shadow size has to be custom because outline is rendered on top of the shadow.
|
76
|
+
*/
|
77
|
+
box-shadow: 0 0 0 4px var(--ck-color-focus-outer-shadow);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
/*
|
82
|
+
* In case of inline annotations, their focus styles get hoisted to the balloon panel to work around overflow that would
|
83
|
+
* otherwise get them cropped..
|
84
|
+
*/
|
85
|
+
.ck-balloon-panel:has( .ck-suggestion-wrapper:focus ) {
|
86
|
+
@mixin ck-focus-ring;
|
87
|
+
@mixin ck-box-shadow var(--ck-drop-shadow), var(--ck-focus-outer-shadow);
|
60
88
|
}
|
61
89
|
|
62
90
|
.ck .ck-suggestion-type {
|