@ckeditor/ckeditor5-track-changes 35.3.2 → 35.4.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/build/track-changes.js +2 -1
- package/build/translations/ar.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/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.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/es.js +1 -0
- package/build/translations/et.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/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/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.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/nl.js +1 -0
- package/build/translations/no.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/sk.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/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.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/lang/contexts.json +13 -0
- package/lang/translations/ar.po +55 -3
- package/lang/translations/az.po +52 -0
- package/lang/translations/bg.po +55 -3
- package/lang/translations/bn.po +55 -3
- package/lang/translations/ca.po +55 -3
- package/lang/translations/cs.po +55 -3
- package/lang/translations/da.po +55 -3
- package/lang/translations/de.po +55 -3
- package/lang/translations/el.po +55 -3
- package/lang/translations/en-au.po +52 -0
- package/lang/translations/en.po +52 -0
- package/lang/translations/es.po +55 -3
- package/lang/translations/et.po +55 -3
- package/lang/translations/fi.po +55 -3
- package/lang/translations/fr.po +55 -3
- package/lang/translations/gl.po +52 -0
- package/lang/translations/he.po +55 -3
- package/lang/translations/hi.po +55 -3
- package/lang/translations/hr.po +52 -0
- package/lang/translations/hu.po +55 -3
- package/lang/translations/id.po +55 -3
- package/lang/translations/it.po +55 -3
- package/lang/translations/ja.po +55 -3
- package/lang/translations/ko.po +55 -3
- package/lang/translations/lt.po +55 -3
- package/lang/translations/lv.po +55 -3
- package/lang/translations/ms.po +55 -3
- package/lang/translations/nl.po +55 -3
- package/lang/translations/no.po +55 -3
- package/lang/translations/pl.po +55 -3
- package/lang/translations/pt-br.po +55 -3
- package/lang/translations/pt.po +55 -3
- package/lang/translations/ro.po +55 -3
- package/lang/translations/ru.po +55 -3
- package/lang/translations/sk.po +55 -3
- package/lang/translations/sr-latn.po +52 -0
- package/lang/translations/sr.po +55 -3
- package/lang/translations/sv.po +55 -3
- package/lang/translations/th.po +55 -3
- package/lang/translations/tk.po +52 -0
- package/lang/translations/tr.po +55 -3
- package/lang/translations/tt.po +52 -0
- package/lang/translations/uk.po +55 -3
- package/lang/translations/ur.po +52 -0
- package/lang/translations/vi.po +55 -3
- package/lang/translations/zh-cn.po +55 -3
- package/lang/translations/zh.po +55 -3
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +23 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +23 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +23 -0
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59bd=['_descriptionFactory','*Format:*\x20%0','getRanges','superscript','change','markInlineFormat','FORMAT_STRIKETHROUGH','subscript','value','FORMAT_SUPERSCRIPT','ItalicEditing','has','SubscriptEditing','format','model','get','UnderlineEditing','bold','isCollapsed','document','locale','strikethrough','italic','commandParams','*Remove\x20format:*\x20%0','FORMAT_UNDERLINE','plugins','commands','toLowerCase','enableCommand','FORMAT_SUBSCRIPT','TrackChangesEditing','FORMAT_ITALIC','registerDescriptionCallback','selection','afterInit','CodeEditing','editor','BoldEditing','forceValue'];(function(_0x3275c7,_0x59bd32){const _0xdbd189=function(_0x13159f){while(--_0x13159f){_0x3275c7['push'](_0x3275c7['shift']());}};_0xdbd189(++_0x59bd32);}(_0x59bd,0x138));const _0xdbd1=function(_0x3275c7,_0x59bd32){_0x3275c7=_0x3275c7-0x0;let _0xdbd189=_0x59bd[_0x3275c7];return _0xdbd189;};import{Plugin as _0x55459a}from'ckeditor5/src/core';import{getTranslation as _0x5c7003}from'../utils/common-translations';import{getRangesWithAttribute as _0x3ab753}from'./utils';const Ht=[_0xdbd1('0x6'),_0xdbd1('0x12'),_0xdbd1('0x18'),_0xdbd1('0x4'),'StrikethroughEditing',_0xdbd1('0x14'),'SuperscriptEditing'];export default class O extends _0x55459a{[_0xdbd1('0x3')](){const _0x52da83=this[_0xdbd1('0x5')],_0x3f51c7=_0x52da83[_0xdbd1('0x16')],_0x5014a3=_0x52da83[_0xdbd1('0x22')][_0xdbd1('0x17')](_0xdbd1('0x27')),_0x5719d3=_0x52da83[_0xdbd1('0x1c')];for(const _0x5fef8a of Ht){if(!_0x52da83['plugins'][_0xdbd1('0x13')](_0x5fef8a))continue;const _0x5ad507=_0x5fef8a['slice'](0x0,-0x7)[_0xdbd1('0x24')](),_0x19901c=_0x52da83[_0xdbd1('0x23')][_0xdbd1('0x17')](_0x5ad507);_0x5014a3[_0xdbd1('0x25')](_0x5ad507,(_0x27a945,_0x3f6508={})=>{const _0x4aaa89=_0x3f51c7[_0xdbd1('0x1b')][_0xdbd1('0x2')];if(_0x4aaa89[_0xdbd1('0x1a')])return void _0x27a945(_0x3f6508);const _0x4da68b=void 0x0!==_0x3f6508[_0xdbd1('0x7')]?_0x3f6508[_0xdbd1('0x7')]:!_0x19901c[_0xdbd1('0x10')];_0x3f51c7[_0xdbd1('0xc')](()=>{const _0x201c8a=Array['from'](_0x4aaa89[_0xdbd1('0xa')]());for(const _0x2462c1 of _0x201c8a){const _0x1b1a3b=_0x4da68b?[_0x2462c1]:_0x3ab753(_0x5ad507,_0x2462c1,_0x3f51c7);for(const _0x582077 of _0x1b1a3b)_0x5014a3[_0xdbd1('0xd')](_0x582077,{'commandName':_0x5ad507,'commandParams':[{'forceValue':_0x4da68b}]});}});});}function _0x34b3e4(_0x2a52cd,_0x5a33dc){_0x5014a3[_0xdbd1('0x8')][_0xdbd1('0x1')](_0x526060=>{const {data:_0x3b8eef}=_0x526060;if(_0x3b8eef&&_0x3b8eef['commandName']===_0x2a52cd)return _0x3b8eef[_0xdbd1('0x1f')][0x0][_0xdbd1('0x7')]?{'type':_0xdbd1('0x15'),'content':_0x5c7003(_0x5719d3,_0xdbd1('0x9'),_0x5a33dc)}:{'type':_0xdbd1('0x15'),'content':_0x5c7003(_0x5719d3,_0xdbd1('0x20'),_0x5a33dc)};});}_0x34b3e4(_0xdbd1('0x19'),_0x5c7003(_0x5719d3,'FORMAT_BOLD')),_0x34b3e4(_0xdbd1('0x1e'),_0x5c7003(_0x5719d3,_0xdbd1('0x0'))),_0x34b3e4('underline',_0x5c7003(_0x5719d3,_0xdbd1('0x21'))),_0x34b3e4('code',_0x5c7003(_0x5719d3,'FORMAT_CODE')),_0x34b3e4(_0xdbd1('0x1d'),_0x5c7003(_0x5719d3,_0xdbd1('0xe'))),_0x34b3e4(_0xdbd1('0xf'),_0x5c7003(_0x5719d3,_0xdbd1('0x26'))),_0x34b3e4(_0xdbd1('0xb'),_0x5c7003(_0x5719d3,_0xdbd1('0x11')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4aa5=['change','forceValue','BlockQuoteEditing','get','_descriptionFactory','getSelectedBlocks','$root','plugins','from','format','name','*Format:*\x20%0','commands','afterInit','has','blockQuote','filter','value','locale','selection','registerDescriptionCallback','editor','*Remove\x20format:*\x20%0','checkChild','commandParams','enableCommand','model','schema'];(function(_0x175f9e,_0x4aa511){const _0x425720=function(_0xa4bb66){while(--_0xa4bb66){_0x175f9e['push'](_0x175f9e['shift']());}};_0x425720(++_0x4aa511);}(_0x4aa5,0xc6));const _0x4257=function(_0x175f9e,_0x4aa511){_0x175f9e=_0x175f9e-0x0;let _0x425720=_0x4aa5[_0x175f9e];return _0x425720;};import{Plugin as _0x42d70e}from'ckeditor5/src/core';import{getTranslation as _0x32fdbf}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xfcb5ce}from'../utils/utils';export default class F extends _0x42d70e{[_0x4257('0xb')](){const _0x195932=this[_0x4257('0x13')],_0x537dfd=_0x195932[_0x4257('0x10')];if(!_0x195932[_0x4257('0x5')][_0x4257('0xc')](_0x4257('0x0')))return;const _0x53bf31=_0x195932[_0x4257('0x5')]['get']('TrackChangesEditing'),_0x1198b3=this['editor'][_0x4257('0xa')][_0x4257('0x1')]('blockQuote');_0x53bf31[_0x4257('0x17')](_0x4257('0xd'),(_0x4a68e9,_0x244d4f={})=>{const _0x3cb4cd=this['editor'][_0x4257('0x18')]['document'][_0x4257('0x11')],_0x2fb854=_0x244d4f&&void 0x0!==_0x244d4f[_0x4257('0x1b')]?_0x244d4f[_0x4257('0x1b')]:!_0x1198b3[_0x4257('0xf')];let _0x2a5686=[];if(_0x2fb854){const _0x769abd=Array[_0x4257('0x6')](_0x3cb4cd[_0x4257('0x3')]())[_0x4257('0xe')](_0x5b6736=>Kt(_0x5b6736)||function(_0x41b596,_0x6b4fa9){const _0x2ad2da=_0x6b4fa9['checkChild'](_0x41b596['parent'],_0x4257('0xd')),_0x48d092=_0x6b4fa9[_0x4257('0x15')]([_0x4257('0x4'),_0x4257('0xd')],_0x41b596);return _0x2ad2da&&_0x48d092;}(_0x5b6736,this[_0x4257('0x13')]['model'][_0x4257('0x19')]));_0x2a5686=_0xfcb5ce(_0x769abd,_0x195932[_0x4257('0x18')]);}else{const _0x3c7726=Array[_0x4257('0x6')](_0x3cb4cd[_0x4257('0x3')]())[_0x4257('0xe')](_0x1ea192=>Kt(_0x1ea192));_0x2a5686=_0xfcb5ce(_0x3c7726,_0x195932[_0x4257('0x18')]);}_0x195932['model'][_0x4257('0x1a')](()=>{for(const _0x3e77e6 of _0x2a5686)_0x53bf31['markBlockFormat'](_0x3e77e6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2fb854}]});});}),_0x53bf31[_0x4257('0x2')][_0x4257('0x12')](_0x2fa820=>{const {data:_0x3cb3a0}=_0x2fa820;if(_0x3cb3a0&&_0x4257('0xd')==_0x3cb3a0['commandName']){const _0x564143=_0x32fdbf(_0x537dfd,'ELEMENT_BLOCK_QUOTE');return _0x3cb3a0[_0x4257('0x16')][0x0]['forceValue']?{'type':_0x4257('0x7'),'content':_0x32fdbf(_0x537dfd,_0x4257('0x9'),_0x564143)}:{'type':_0x4257('0x7'),'content':_0x32fdbf(_0x537dfd,_0x4257('0x14'),_0x564143)};}});}}function Kt(_0x2d27ab){return _0x4257('0xd')==_0x2d27ab['parent'][_0x4257('0x8')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x297a=['afterInit','plugins','editor','commands','get','enableCommand','ckbox'];(function(_0x541166,_0x297aee){const _0x4d69c6=function(_0x39c343){while(--_0x39c343){_0x541166['push'](_0x541166['shift']());}};_0x4d69c6(++_0x297aee);}(_0x297a,0x1c5));const _0x4d69=function(_0x541166,_0x297aee){_0x541166=_0x541166-0x0;let _0x4d69c6=_0x297a[_0x541166];return _0x4d69c6;};import{Plugin as _0x385cb4}from'ckeditor5/src/core';export default class P extends _0x385cb4{[_0x4d69('0x2')](){const _0x285f22=this[_0x4d69('0x4')];_0x285f22[_0x4d69('0x5')][_0x4d69('0x6')](_0x4d69('0x1'))&&_0x285f22[_0x4d69('0x3')][_0x4d69('0x6')]('TrackChangesEditing')[_0x4d69('0x0')](_0x4d69('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x332b=['get','TrackChangesEditing','parent','getSelectedBlocks','find','value','outdentCodeBlock','schema','commands','model','selection','plugins','*Remove\x20format:*\x20%0','formatBlock','isLimit','*Format:*\x20%0','blockName','indentCodeBlock','name','commandName','afterInit','markBlockFormat','checkChild','language','enableCommand','format','_descriptionFactory','ELEMENT_CODE_BLOCK','locale','registerElementLabel','config','commandParams','filter','forceValue','from','change','codeBlock','document','languages','label','CodeBlock'];(function(_0x761602,_0x332bca){const _0x3be733=function(_0x8c207c){while(--_0x8c207c){_0x761602['push'](_0x761602['shift']());}};_0x3be733(++_0x332bca);}(_0x332b,0x82));const _0x3be7=function(_0x761602,_0x332bca){_0x761602=_0x761602-0x0;let _0x3be733=_0x332b[_0x761602];return _0x3be733;};import{Plugin as _0x1123c3}from'ckeditor5/src/core';import{getTranslation as _0x4fa398}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x2cca61}from'../utils/utils';export default class G extends _0x1123c3{[_0x3be7('0xd')](){const _0x709633=this['editor'];if(!_0x709633[_0x3be7('0x4')]['has'](_0x3be7('0x21')))return;const _0x9e4d4b=_0x709633[_0x3be7('0x4')][_0x3be7('0x22')](_0x3be7('0x23')),_0x4295f7=_0x709633[_0x3be7('0x15')],_0x5d28db=_0x709633[_0x3be7('0x17')][_0x3be7('0x22')]('codeBlock')[_0x3be7('0x1f')],_0x3560de=_0x709633[_0x3be7('0x1')][_0x3be7('0x22')](_0x3be7('0x1d'));_0x9e4d4b[_0x3be7('0x11')](_0x3be7('0xa')),_0x9e4d4b['enableCommand'](_0x3be7('0x28')),_0x9e4d4b[_0x3be7('0x11')]('codeBlock',(_0x2d0daa,_0x559667={})=>{const _0x171f11=_0x709633[_0x3be7('0x2')],_0xbebe50=_0x709633[_0x3be7('0x2')][_0x3be7('0x1e')][_0x3be7('0x3')],_0x497a0a=_0x559667&&void 0x0!==_0x559667['forceValue']?_0x559667[_0x3be7('0x1a')]:!_0x3560de[_0x3be7('0x27')];let _0x33439a;_0x559667[_0x3be7('0x10')]||(_0x559667[_0x3be7('0x10')]=_0x5d28db[0x0][_0x3be7('0x10')]),_0x33439a=_0x497a0a?Array[_0x3be7('0x1b')](_0xbebe50[_0x3be7('0x25')]())[_0x3be7('0x19')](_0x5e14fb=>oo(_0x5e14fb)||function(_0x3e8875,_0x2aa380){if(_0x3e8875['is']('rootElement')||_0x2aa380[_0x3be7('0x7')](_0x3e8875))return!0x1;return _0x2aa380[_0x3be7('0xf')](_0x3e8875[_0x3be7('0x24')],'codeBlock');}(_0x5e14fb,_0x171f11[_0x3be7('0x0')])):Array[_0x3be7('0x1b')](_0xbebe50[_0x3be7('0x25')]())[_0x3be7('0x19')](_0x585850=>oo(_0x585850));const _0x544b45=_0x2cca61(_0x33439a,_0x171f11);_0x171f11[_0x3be7('0x1c')](()=>{for(const _0x541045 of _0x544b45)_0x9e4d4b[_0x3be7('0xe')](_0x541045,{'commandName':_0x3be7('0x1d'),'commandParams':[{..._0x559667,'forceValue':_0x497a0a}],'formatGroupId':_0x3be7('0x9')});});}),(_0x9e4d4b[_0x3be7('0x13')][_0x3be7('0x16')](_0x3be7('0x1d'),_0x5ed2c1=>_0x4fa398(_0x4295f7,'ELEMENT_CODE_BLOCK',_0x5ed2c1)),_0x9e4d4b[_0x3be7('0x13')]['registerDescriptionCallback'](_0x168b27=>{const {type:_0x1f3a53,data:_0x4b3214}=_0x168b27;if(_0x3be7('0x6')==_0x1f3a53&&_0x4b3214&&_0x3be7('0x1d')==_0x4b3214[_0x3be7('0xc')]){const _0x5761d8=_0x4b3214[_0x3be7('0x18')][0x0][_0x3be7('0x10')],_0x2eb7de=_0x5d28db[_0x3be7('0x26')](_0x2ba0b5=>_0x2ba0b5[_0x3be7('0x10')]===_0x5761d8)[_0x3be7('0x20')],_0x51fd53=_0x4295f7['_t'](_0x2eb7de);return _0x4b3214[_0x3be7('0x18')][0x0]['forceValue']?{'type':_0x3be7('0x12'),'content':_0x4fa398(_0x4295f7,_0x3be7('0x8'),_0x4fa398(_0x4295f7,_0x3be7('0x14'),0x1)+'\x20('+_0x51fd53+')')}:{'type':_0x3be7('0x12'),'content':_0x4fa398(_0x4295f7,_0x3be7('0x5'),_0x4fa398(_0x4295f7,_0x3be7('0x14'),0x1))};}}));}}function oo(_0x3dd6b3){return'codeBlock'==_0x3dd6b3[_0x3be7('0xb')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1508=['has','afterInit','enableCommand','TrackChangesEditing','editor','get','plugins','addCommentThread'];(function(_0x3fadbe,_0x1508b7){const _0x31a896=function(_0x2b5b7d){while(--_0x2b5b7d){_0x3fadbe['push'](_0x3fadbe['shift']());}};_0x31a896(++_0x1508b7);}(_0x1508,0x16f));const _0x31a8=function(_0x3fadbe,_0x1508b7){_0x3fadbe=_0x3fadbe-0x0;let _0x31a896=_0x1508[_0x3fadbe];return _0x31a896;};import{Plugin as _0x41541d}from'ckeditor5/src/core';export default class L extends _0x41541d{[_0x31a8('0x2')](){const _0x2d6c5a=this[_0x31a8('0x5')];if(!_0x2d6c5a[_0x31a8('0x7')][_0x31a8('0x1')]('CommentsEditing'))return;_0x2d6c5a[_0x31a8('0x7')][_0x31a8('0x6')](_0x31a8('0x4'))[_0x31a8('0x3')](_0x31a8('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e61=['enableCommand','init','downcastDispatcher','writer','model','requires','showSuggestionHighlights','createRange','enqueueChange','detach','modifySelection','removeMarker:suggestion:deletion','selection','plugins','unbindElementFromMarkerName','buffer','unlock','fromRange','mapper','setSelection','TrackChangesEditing','markerName','data','document','high','markerNameToElements','addMarker:suggestion:deletion','commands','get','editing','createSelection','deleteForward','unit','$graveyard','root','batch','start','forward','isCollapsed','uiElement','end'];(function(_0x1e3ff9,_0x2e6193){const _0x5c293d=function(_0x1d9282){while(--_0x1d9282){_0x1e3ff9['push'](_0x1e3ff9['shift']());}};_0x5c293d(++_0x2e6193);}(_0x2e61,0xe3));const _0x5c29=function(_0x1e3ff9,_0x2e6193){_0x1e3ff9=_0x1e3ff9-0x0;let _0x5c293d=_0x2e61[_0x1e3ff9];return _0x5c293d;};import{Plugin as _0x3b10b8}from'ckeditor5/src/core';import{Delete as _0x51cf02}from'ckeditor5/src/typing';import{LiveRange as _0x1cc968}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x29810b}from'./utils';export default class q extends _0x3b10b8{static get[_0x5c29('0x18')](){return[_0x51cf02];}[_0x5c29('0x14')](){const _0x25a35c=this['editor'],_0x587835=_0x25a35c[_0x5c29('0x20')][_0x5c29('0x6')](_0x5c29('0x27'));_0x587835['enableCommand']('delete');const _0x15b687=_0x25a35c[_0x5c29('0x5')][_0x5c29('0x6')](_0x5c29('0x9'));_0x587835[_0x5c29('0x13')](_0x5c29('0x9'),(_0x2215ff,_0x4b635c={})=>{const _0x2abab2=_0x25a35c[_0x5c29('0x17')][_0x5c29('0x8')](_0x25a35c[_0x5c29('0x17')][_0x5c29('0x1')][_0x5c29('0x1f')]);_0x2abab2[_0x5c29('0x10')]&&_0x25a35c['model'][_0x5c29('0x1d')](_0x2abab2,{'direction':_0x5c29('0xf'),'unit':_0x4b635c[_0x5c29('0xa')]});const _0x3228e1=_0x2abab2['getFirstRange'](),_0x481601=_0x1cc968[_0x5c29('0x24')](_0x3228e1);let _0x1d10be;_0x2215ff(_0x4b635c),_0x1d10be=_0x5c29('0xb')==_0x481601[_0x5c29('0xc')]['rootName']?_0x25a35c[_0x5c29('0x17')][_0x5c29('0x1a')](_0x3228e1[_0x5c29('0xe')]):_0x25a35c[_0x5c29('0x17')]['createRange'](_0x481601[_0x5c29('0xe')],_0x481601[_0x5c29('0x12')]),_0x481601[_0x5c29('0x1c')](),_0x25a35c[_0x5c29('0x17')][_0x5c29('0x1b')](_0x15b687[_0x5c29('0x22')][_0x5c29('0xd')],_0x2dff1f=>{_0x15b687[_0x5c29('0x22')]['lock'](),_0x2dff1f[_0x5c29('0x26')](_0x2dff1f[_0x5c29('0x1a')](_0x1d10be[_0x5c29('0x12')])),_0x15b687[_0x5c29('0x22')][_0x5c29('0x23')]();});}),_0x25a35c[_0x5c29('0x7')][_0x5c29('0x15')]['on']('addMarker:suggestion:deletion',_0x29810b(_0x25a35c,'merge'),{'priority':_0x5c29('0x2')}),_0x25a35c[_0x5c29('0x0')]['downcastDispatcher']['on'](_0x5c29('0x4'),(_0x2bf012,_0x35af91,_0x34ee91)=>{_0x34ee91['options'][_0x5c29('0x19')]&&_0x29810b(_0x25a35c,'merge',{'showActiveMarker':!0x1})(_0x2bf012,_0x35af91,_0x34ee91);},{'priority':_0x5c29('0x2')}),_0x25a35c[_0x5c29('0x7')]['downcastDispatcher']['on'](_0x5c29('0x1e'),(_0x12263c,_0x4090ac,_0x4d6540)=>{const _0x144ae6=_0x4d6540[_0x5c29('0x25')][_0x5c29('0x3')](_0x4090ac[_0x5c29('0x28')]);if(_0x144ae6)for(const _0x29cbfb of _0x144ae6)_0x29cbfb['is'](_0x5c29('0x11'))&&(_0x4d6540[_0x5c29('0x25')][_0x5c29('0x21')](_0x29cbfb,_0x4090ac[_0x5c29('0x28')]),_0x4d6540[_0x5c29('0x16')]['remove'](_0x29cbfb));},{'priority':_0x5c29('0x2')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ac4=['commandParams','_suggestionFactory','registerElementLabel','multipleBlocks','ELEMENT_BULLETED_LIST','from','schema','hasAttribute','indentList','getSelectedBlocks','nextSibling','markBlockFormat','refresh','*Indent:*\x20%0','push','selection','expandListBlocksToCompleteList','listType','add','detach','registerDescriptionCallback','end','bulletedList','next','splitListItemBefore','listIndent','isFirstBlockOfListItem','before','enableCommand','value','getRanges','numberedList','listItemId','createRange','commands','format','TrackChangesEditing','outdentList','execute','setSelection','splitListItemAfter','accept','*Change\x20to:*\x20%0','document','get','model','fromRange','*Format:*\x20insert\x20into\x20%0','createPositionAt','previousSibling','markMultiRangeBlockFormat','locale','plugins','formatBlock','start','_descriptionFactory','map','getAttribute','change','isObject','ELEMENT_LIST_ITEM','has','nodeAfter','*Outdent:*\x20%0','commandName'];(function(_0x43735f,_0x4ac441){const _0x5b6beb=function(_0x14346a){while(--_0x14346a){_0x43735f['push'](_0x43735f['shift']());}};_0x5b6beb(++_0x4ac441);}(_0x4ac4,0x17f));const _0x5b6b=function(_0x43735f,_0x4ac441){_0x43735f=_0x43735f-0x0;let _0x5b6beb=_0x4ac4[_0x43735f];return _0x5b6beb;};import{Plugin as _0x4d6535}from'ckeditor5/src/core';import{getTranslation as _0x485f49}from'../utils/common-translations';import{LiveRange as _0x32a7b9}from'ckeditor5/src/engine';export default class z extends _0x4d6535{['afterInit'](){const _0x1e9b6f=this['editor'];if(!_0x1e9b6f[_0x5b6b('0x3b')][_0x5b6b('0x3')]('DocumentListEditing'))return;const _0x31a957=_0x1e9b6f[_0x5b6b('0x3a')],_0x3b6a4e=_0x1e9b6f[_0x5b6b('0x3b')]['get'](_0x5b6b('0x2b')),_0x4cf6e2=_0x1e9b6f['plugins'][_0x5b6b('0x33')]('DocumentListUtils');function _0x4c9ac8(_0x266317){return()=>{const _0x5cfecc=_0x1e9b6f[_0x5b6b('0x29')]['get'](_0x266317);let _0x32e935=Array['from'](_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x32')][_0x5b6b('0x16')]['getSelectedBlocks']());if(_0x13d902(_0x266317)){_0x32e935=_0x4cf6e2[_0x5b6b('0x17')](_0x32e935);const _0x41d961=[];for(const _0x37de0a of _0x32e935)_0x4cf6e2[_0x5b6b('0x21')](_0x37de0a)&&_0x41d961[_0x5b6b('0x15')](_0x37de0a);_0x32e935=_0x41d961;}_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x0')](()=>{_0x3b6a4e[_0x5b6b('0x39')](_0x32e935,{'commandName':_0x266317,'commandParams':[{'forceValue':!_0x5cfecc[_0x5b6b('0x24')]}],'formatGroupId':_0x5b6b('0x18')},[],'documentList');});};}function _0x2f8be0(_0x288f57){return()=>{const _0x2da40d=function(_0x3f2e52){const _0x1dd98d=(_0x3f2e52=Array[_0x5b6b('0xc')](_0x3f2e52))['findIndex'](_0x14986c=>!_0x14986c[_0x5b6b('0xe')]('listItemId'));return _0x1dd98d>-0x1&&(_0x3f2e52=_0x3f2e52['slice'](0x0,_0x1dd98d)),_0x3f2e52;}(_0x1e9b6f[_0x5b6b('0x34')]['document'][_0x5b6b('0x16')][_0x5b6b('0x10')]()),_0x171e4c=_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x28')](_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x37')](_0x2da40d[0x0],_0x5b6b('0x22')),_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x37')](_0x2da40d[_0x2da40d['length']-0x1],_0x5b6b('0x1c')));_0x1e9b6f[_0x5b6b('0x34')]['change'](()=>{_0x3b6a4e[_0x5b6b('0x12')](_0x171e4c,{'commandName':_0x288f57,'commandParams':[],'formatGroupId':_0x5b6b('0x18')},function(_0x7470f4){const _0x32365e=new Set();for(const _0xecf46f of _0x7470f4){let _0x4d2df2=_0xecf46f[_0x5b6b('0x11')];for(;_0x4d2df2&&_0x4d2df2[_0x5b6b('0x40')](_0x5b6b('0x20'))>_0xecf46f[_0x5b6b('0x40')]('listIndent');)_0x32365e[_0x5b6b('0x19')](_0x4d2df2),_0x4d2df2=_0x4d2df2['nextSibling'];}return Array['from'](_0x32365e);}(_0x2da40d));});};}function _0x1594dc(_0x4dedee){return()=>{const _0x56304c=_0x1e9b6f['model'][_0x5b6b('0x32')][_0x5b6b('0x16')]['getSelectedBlocks']()[_0x5b6b('0x1e')]()[_0x5b6b('0x24')],_0x4d8298=_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x37')](_0x56304c,'before'),_0x21026c=_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x37')](_0x56304c,0x0),_0x38638e=_0x1e9b6f['model'][_0x5b6b('0x28')](_0x4d8298,_0x21026c);_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x0')](()=>{_0x3b6a4e[_0x5b6b('0x12')](_0x38638e,{'commandName':_0x4dedee,'commandParams':[],'formatGroupId':'listType'});});};}function _0x13d902(_0x1ea7ea){const _0x54c903=_0x1e9b6f[_0x5b6b('0x29')][_0x5b6b('0x33')]('bulletedList')[_0x5b6b('0x24')],_0x51bac1=_0x1e9b6f[_0x5b6b('0x29')][_0x5b6b('0x33')](_0x5b6b('0x26'))['value'];return'numberedList'===_0x1ea7ea?_0x54c903:_0x51bac1;}_0x3b6a4e[_0x5b6b('0x23')](_0x5b6b('0x26'),_0x4c9ac8(_0x5b6b('0x26'))),_0x3b6a4e['enableCommand'](_0x5b6b('0x1d'),_0x4c9ac8(_0x5b6b('0x1d'))),_0x3b6a4e[_0x5b6b('0x23')]('indentList',_0x2f8be0(_0x5b6b('0xf'))),_0x3b6a4e[_0x5b6b('0x23')](_0x5b6b('0x2c'),_0x2f8be0('outdentList')),_0x3b6a4e['enableCommand'](_0x5b6b('0x2f'),_0x1594dc('splitListItemAfter')),_0x3b6a4e[_0x5b6b('0x23')](_0x5b6b('0x1f'),_0x1594dc(_0x5b6b('0x1f'))),_0x3b6a4e[_0x5b6b('0x3e')][_0x5b6b('0x9')](function(_0x4f22a9){const _0x20d26c=!_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0xd')][_0x5b6b('0x1')](_0x4f22a9),_0x3ffada=_0x4f22a9[_0x5b6b('0x38')],_0x189cef=_0x4f22a9[_0x5b6b('0x11')],_0x350a33=_0x4f22a9[_0x5b6b('0x40')]('listItemId'),_0x472f58=!_0x3ffada||_0x3ffada[_0x5b6b('0x40')](_0x5b6b('0x27'))!==_0x350a33,_0x177741=!_0x189cef||_0x189cef['getAttribute'](_0x5b6b('0x27'))!==_0x350a33;return _0x20d26c&&_0x350a33&&_0x472f58&&_0x177741;},_0xafa5db=>_0x485f49(_0x31a957,_0x5b6b('0x2'),_0xafa5db)),_0x3b6a4e['_descriptionFactory'][_0x5b6b('0x1b')](function(_0x13a5e3){const {data:_0x4167a5}=_0x13a5e3;if(!_0x4167a5)return;let _0x137cc9,_0x545d38,_0x5357bf,_0x18eff0;switch(_0x4167a5[_0x5b6b('0x6')]){case _0x5b6b('0x1d'):_0x5357bf=_0x4167a5[_0x5b6b('0x7')][0x0]['forceValue'],_0x18eff0=_0x13d902(_0x4167a5[_0x5b6b('0x6')]),_0x137cc9=_0x5357bf?_0x5b6b('0x36'):'*Format:*\x20remove\x20from\x20%0',_0x18eff0&&(_0x137cc9=_0x5b6b('0x31')),_0x545d38={'type':_0x5b6b('0x2a'),'content':_0x485f49(_0x31a957,_0x137cc9,_0x485f49(_0x31a957,_0x5b6b('0xb')))};break;case _0x5b6b('0x26'):_0x5357bf=_0x4167a5[_0x5b6b('0x7')][0x0]['forceValue'],_0x18eff0=_0x13d902(_0x4167a5['commandName']),_0x137cc9=_0x5357bf?_0x5b6b('0x36'):'*Format:*\x20remove\x20from\x20%0',_0x18eff0&&(_0x137cc9=_0x5b6b('0x31')),_0x545d38={'type':_0x5b6b('0x2a'),'content':_0x485f49(_0x31a957,_0x137cc9,_0x485f49(_0x31a957,'ELEMENT_NUMBERED_LIST'))};break;case _0x5b6b('0xf'):_0x137cc9=_0x5b6b('0x14'),_0x545d38={'type':_0x5b6b('0x2a'),'content':_0x485f49(_0x31a957,_0x137cc9,_0x485f49(_0x31a957,_0x5b6b('0x2')))};break;case _0x5b6b('0x2c'):_0x137cc9=_0x5b6b('0x5'),_0x545d38={'type':_0x5b6b('0x2a'),'content':_0x485f49(_0x31a957,_0x137cc9,_0x485f49(_0x31a957,_0x5b6b('0x2')))};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4167a5[_0x5b6b('0xa')]&&(_0x137cc9='*Merge:*\x20%0',_0x545d38={'type':'deletion','content':_0x485f49(_0x31a957,_0x137cc9,_0x485f49(_0x31a957,_0x5b6b('0x2')))});}return _0x545d38;}),_0x3b6a4e[_0x5b6b('0x8')]['registerCustomCallback'](_0x5b6b('0x3c'),'documentList',_0x5b6b('0x30'),function(_0xcdc003,_0x34baf9){const _0x104b01=[];for(let _0x1ff3b9 of _0xcdc003)_0x1ff3b9[_0x5b6b('0x3d')][_0x5b6b('0x4')]===_0x1ff3b9['end']['parent']&&(_0x1ff3b9=_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x28')](_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x37')](_0x1ff3b9['start']['nodeAfter'],0x0))),_0x104b01[_0x5b6b('0x15')](_0x1ff3b9);_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x0')](_0x1456f3=>{const _0x32a6d9=_0x1e9b6f[_0x5b6b('0x34')][_0x5b6b('0x32')][_0x5b6b('0x16')],_0x4a1a67=Array[_0x5b6b('0xc')](_0x32a6d9[_0x5b6b('0x25')]())[_0x5b6b('0x3f')](_0x746bda=>_0x32a7b9[_0x5b6b('0x35')](_0x746bda));_0x1456f3[_0x5b6b('0x2e')](_0x104b01),_0x1e9b6f['commands'][_0x5b6b('0x33')](_0x34baf9['commandName'])[_0x5b6b('0x13')](),_0x34baf9[_0x5b6b('0x7')]['push']({'forceDefaultExecution':!0x0}),_0x1e9b6f[_0x5b6b('0x2d')](_0x34baf9['commandName'],..._0x34baf9['commandParams']),_0x1456f3[_0x5b6b('0x2e')](_0x4a1a67);for(const _0x59bd6c of _0x4a1a67)_0x59bd6c[_0x5b6b('0x1a')]();});});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, 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 _0x333d=['model','TrackChangesEditing','toUpperCase','getSelectedBlocks','get','listReversed','bind','expandListBlocksToCompleteList','format','filter','plugins','change','reversed','document','_LIST_','hasAttribute','replaceAll','list.properties','isListItemBlock','_getSuggestionBlocks','startIndex','type','listStart','DocumentListPropertiesUtils','editor','handleDescriptions','handleListStyleCommand','push','_getTranslationKeyForListStyle','config','DocumentListPropertiesEditing','listType','from','isFirstBlockOfListItem','has','*Format:*\x20set\x20order\x20to\x20regular','enableCommand','getAttribute','commandName','commandParams','DocumentListUtils','numbered','handleListReversedCommand','length','afterInit','*Format:*\x20set\x20start\x20index\x20to\x20%0','*Format:*\x20set\x20order\x20to\x20reversed','*Change\x20to:*\x20%0','markMultiRangeBlockFormat','listStyle'];(function(_0x324731,_0x333df){const _0x228d5e=function(_0x1ab0dc){while(--_0x1ab0dc){_0x324731['push'](_0x324731['shift']());}};_0x228d5e(++_0x333df);}(_0x333d,0x137));const _0x228d=function(_0x324731,_0x333df){_0x324731=_0x324731-0x0;let _0x228d5e=_0x333d[_0x324731];return _0x228d5e;};import{Plugin as _0x528d96}from'ckeditor5/src/core';import{getTranslation as _0x44e777}from'../utils/common-translations';export default class St extends _0x528d96{[_0x228d('0x21')](){if(!this[_0x228d('0xd')][_0x228d('0x31')][_0x228d('0x17')](_0x228d('0x13')))return;const _0x2b3678=this[_0x228d('0xd')][_0x228d('0x12')]['get'](_0x228d('0x6')),_0x14fbc3=this[_0x228d('0xd')]['plugins'][_0x228d('0x2b')](_0x228d('0x28'));_0x2b3678['styles']&&_0x14fbc3['enableCommand'](_0x228d('0x26'),this[_0x228d('0xf')][_0x228d('0x2d')](this)),_0x2b3678['reversed']&&_0x14fbc3[_0x228d('0x19')](_0x228d('0x2c'),this['handleListReversedCommand']['bind'](this)),_0x2b3678[_0x228d('0x9')]&&_0x14fbc3['enableCommand']('listStart',this['handleListStartCommand'][_0x228d('0x2d')](this)),_0x14fbc3['_descriptionFactory']['registerDescriptionCallback'](this[_0x228d('0xe')][_0x228d('0x2d')](this));}[_0x228d('0xf')](_0x10b5dd,_0x4dc281){const _0xc5860d=this[_0x228d('0xd')][_0x228d('0x31')][_0x228d('0x2b')](_0x228d('0x28')),_0x5cf106=this[_0x228d('0x8')](_0x5264bf=>_0x5264bf[_0x228d('0x4')]('listType'));null!==_0x5cf106&&this[_0x228d('0xd')]['model'][_0x228d('0x0')](()=>{_0xc5860d[_0x228d('0x25')](_0x5cf106,{'commandName':_0x228d('0x26'),'commandParams':[{'type':_0x4dc281[_0x228d('0xa')]}],'formatGroupId':_0x228d('0x26')});});}[_0x228d('0x1f')](_0x583d04,_0x37b376){const _0x60420a=this[_0x228d('0xd')][_0x228d('0x31')][_0x228d('0x2b')](_0x228d('0x28')),_0x460955=this[_0x228d('0xd')]['plugins'][_0x228d('0x2b')]('DocumentListUtils'),_0x24e287=this[_0x228d('0x8')](_0xef0085=>_0x460955[_0x228d('0x7')](_0xef0085)&&_0x228d('0x1e')===_0xef0085[_0x228d('0x1a')](_0x228d('0x14')));null!==_0x24e287&&this[_0x228d('0xd')][_0x228d('0x27')][_0x228d('0x0')](()=>{_0x60420a[_0x228d('0x25')](_0x24e287,{'commandName':'listReversed','commandParams':[{'reversed':_0x37b376[_0x228d('0x1')]}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35cd04,_0x241f48){const _0x278c7e=this[_0x228d('0xd')][_0x228d('0x31')]['get'](_0x228d('0x28')),_0x1828fc=this['editor'][_0x228d('0x31')][_0x228d('0x2b')](_0x228d('0x1d')),_0x56df28=this[_0x228d('0x8')](_0x4953a6=>_0x1828fc[_0x228d('0x7')](_0x4953a6)&&_0x228d('0x1e')===_0x4953a6['getAttribute']('listType'));null!==_0x56df28&&this[_0x228d('0xd')][_0x228d('0x27')][_0x228d('0x0')](()=>{_0x278c7e[_0x228d('0x25')](_0x56df28,{'commandName':_0x228d('0xb'),'commandParams':[{'startIndex':_0x241f48[_0x228d('0x9')]}],'formatGroupId':'listStart'});});}[_0x228d('0xe')](_0x26a96b){const _0x596abb=this['editor']['locale'],{data:_0x89b95c}=_0x26a96b;if(!_0x89b95c)return;let _0x588786,_0x4fa6bf;switch(_0x89b95c[_0x228d('0x1b')]){case _0x228d('0x26'):_0x588786=_0x228d('0x24'),_0x4fa6bf={'type':'format','content':_0x44e777(_0x596abb,_0x588786,_0x44e777(_0x596abb,this[_0x228d('0x11')](_0x89b95c[_0x228d('0x1c')][0x0][_0x228d('0xa')])))};break;case _0x228d('0x2c'):_0x588786=_0x89b95c[_0x228d('0x1c')][0x0][_0x228d('0x1')]?_0x228d('0x23'):_0x228d('0x18'),_0x4fa6bf={'type':_0x228d('0x2f'),'content':_0x44e777(_0x596abb,_0x588786)};break;case _0x228d('0xb'):_0x588786=_0x228d('0x22'),_0x4fa6bf={'type':_0x228d('0x2f'),'content':_0x44e777(_0x596abb,_0x588786,_0x89b95c[_0x228d('0x1c')][0x0][_0x228d('0x9')])};}return _0x4fa6bf;}[_0x228d('0x8')](_0x1a2949){const _0x18ae23=this[_0x228d('0xd')][_0x228d('0x31')][_0x228d('0x2b')]('DocumentListUtils');let _0x494aac=Array[_0x228d('0x15')](this[_0x228d('0xd')][_0x228d('0x27')][_0x228d('0x2')]['selection'][_0x228d('0x2a')]())[_0x228d('0x30')](_0x1a2949);if(!_0x494aac[_0x228d('0x20')])return null;_0x494aac=_0x18ae23[_0x228d('0x2e')](_0x494aac);const _0x22f606=[];for(const _0x552351 of _0x494aac)_0x18ae23[_0x228d('0x16')](_0x552351)&&_0x22f606[_0x228d('0x10')](_0x552351);return _0x22f606;}[_0x228d('0x11')](_0x5cfa42){return'ELEMENT_'+this[_0x228d('0xd')][_0x228d('0x31')][_0x228d('0x2b')](_0x228d('0xc'))['getListTypeFromListStyleType'](_0x5cfa42)[_0x228d('0x29')]()+_0x228d('0x3')+_0x5cfa42['toUpperCase']()[_0x228d('0x5')]('-','_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x384f=['remove','split','enter','markerName','writer','fromRange','document','nextSibling','addMarker:suggestion:insertion','afterExecute','plugins','editor','editing','markerNameToElements','fire','showSuggestionHighlights','createRange','detach','enableCommand','parent','model','getFirstPosition','init','removeMarker:suggestion:insertion','enterBlock','createPositionAt','get','ck-suggestion-marker-split','downcastDispatcher','end','unbindElementFromMarkerName','selection','mapper','commands','setSelection','markInsertion'];(function(_0x2d27ef,_0x384f13){const _0x4a4a5d=function(_0x515a82){while(--_0x515a82){_0x2d27ef['push'](_0x2d27ef['shift']());}};_0x4a4a5d(++_0x384f13);}(_0x384f,0x121));const _0x4a4a=function(_0x2d27ef,_0x384f13){_0x2d27ef=_0x2d27ef-0x0;let _0x4a4a5d=_0x384f[_0x2d27ef];return _0x4a4a5d;};import{Plugin as _0x47b7a1}from'ckeditor5/src/core';import{Enter as _0x40930b}from'ckeditor5/src/enter';import{LiveRange as _0x5dae19}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x3e7b2d}from'./utils';export default class H extends _0x47b7a1{static get['requires'](){return[_0x40930b];}[_0x4a4a('0x15')](){const _0x5d86a3=this[_0x4a4a('0xa')],_0x114180=_0x5d86a3[_0x4a4a('0x9')][_0x4a4a('0x19')]('TrackChangesEditing'),_0x3c4436=_0x5d86a3[_0x4a4a('0x20')]['get'](_0x4a4a('0x1'));_0x114180[_0x4a4a('0x11')](_0x4a4a('0x1'),()=>{_0x5d86a3[_0x4a4a('0x13')]['change'](_0x19f15b=>{const _0xc6728e=_0x5d86a3['model'][_0x4a4a('0x5')][_0x4a4a('0x1e')],_0x165e1e=_0xc6728e[_0x4a4a('0x14')](),_0x21fd6f=_0x5dae19[_0x4a4a('0x4')](_0xc6728e['getFirstRange']());if(_0x3c4436[_0x4a4a('0x17')](_0x19f15b)){const _0xac1da=_0x5d86a3[_0x4a4a('0x13')][_0x4a4a('0x18')](_0x165e1e[_0x4a4a('0x12')][_0x4a4a('0x6')],0x0),_0x2a04c9=_0x19f15b[_0x4a4a('0xf')](_0x165e1e,_0xac1da);_0x114180[_0x4a4a('0x22')](_0x2a04c9);}else _0x19f15b[_0x4a4a('0x21')](_0x19f15b[_0x4a4a('0xf')](_0x21fd6f[_0x4a4a('0x1c')]));_0x21fd6f[_0x4a4a('0x10')](),_0x3c4436[_0x4a4a('0xd')](_0x4a4a('0x8'),{'writer':_0x19f15b});});}),_0x5d86a3[_0x4a4a('0xb')][_0x4a4a('0x1b')]['on'](_0x4a4a('0x7'),_0x3e7b2d(_0x5d86a3,'split'),{'priority':'high'}),_0x5d86a3[_0x4a4a('0xb')][_0x4a4a('0x1b')]['on'](_0x4a4a('0x16'),(_0x1d7458,_0x1598d9,_0x4da716)=>{const _0x560add=_0x4da716[_0x4a4a('0x1f')][_0x4a4a('0xc')](_0x1598d9[_0x4a4a('0x2')]);if(_0x560add)for(const _0x5d483c of _0x560add)_0x5d483c['hasClass'](_0x4a4a('0x1a'))&&(_0x4da716[_0x4a4a('0x1f')][_0x4a4a('0x1d')](_0x5d483c,_0x1598d9['markerName']),_0x4da716[_0x4a4a('0x3')][_0x4a4a('0x23')](_0x5d483c));},{'priority':'high'}),_0x5d86a3['data']['downcastDispatcher']['on'](_0x4a4a('0x7'),(_0xd96263,_0x494326,_0x12ddf3)=>{_0x12ddf3['options'][_0x4a4a('0xe')]&&_0x3e7b2d(_0x5d86a3,_0x4a4a('0x0'),{'showActiveMarker':!0x1})(_0xd96263,_0x494326,_0x12ddf3);},{'priority':'high'});}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5880=['commandName','commandParams','registerDescriptionCallback','from','*Reset\x20font\x20background\x20color*','afterInit','*Reset\x20font\x20family*','fontSize','*Set\x20font\x20size:*\x20%0','TrackChangesEditing','title','selection','fontColor','FontBackgroundColorEditing','format','config','editor','isCollapsed','plugins','get','*Set\x20font\x20color:*\x20%0','toLowerCase','_enableCommand','locale','trim','enableCommand','getRanges','value','*Set\x20font\x20family:*\x20%0','label','has','_descriptionFactory','fontFamily','find','fontColor.colors','model','fontBackgroundColor'];(function(_0x7b1078,_0x58809f){const _0x3c5aa1=function(_0x167f46){while(--_0x167f46){_0x7b1078['push'](_0x7b1078['shift']());}};_0x3c5aa1(++_0x58809f);}(_0x5880,0x84));const _0x3c5a=function(_0x7b1078,_0x58809f){_0x7b1078=_0x7b1078-0x0;let _0x3c5aa1=_0x5880[_0x7b1078];return _0x3c5aa1;};import{Plugin as _0x98be4}from'ckeditor5/src/core';import{normalizeColorOptions as _0x45affd}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x421341}from'./utils';import{getTranslation as _0x3ab345}from'../utils/common-translations';const Jt=[{'pluginName':'FontSizeEditing','commandName':_0x3c5a('0x17')},{'pluginName':'FontFamilyEditing','commandName':_0x3c5a('0xb')},{'pluginName':'FontColorEditing','commandName':_0x3c5a('0x1c')},{'pluginName':_0x3c5a('0x1d'),'commandName':_0x3c5a('0xf')}];export default class W extends _0x98be4{[_0x3c5a('0x15')](){const _0x41e3c7=this[_0x3c5a('0x20')][_0x3c5a('0x2')];for(const {pluginName:_0x48c434,commandName:_0x268c46}of Jt)this[_0x3c5a('0x20')][_0x3c5a('0x22')][_0x3c5a('0x9')](_0x48c434)&&this[_0x3c5a('0x1')](_0x268c46);this['editor']['plugins'][_0x3c5a('0x23')](_0x3c5a('0x19'))[_0x3c5a('0xa')][_0x3c5a('0x12')](_0x379458=>{const {data:_0x96e129}=_0x379458;if(null!=_0x96e129){if('fontSize'==_0x96e129[_0x3c5a('0x10')]){const _0x43dff0=_0x96e129[_0x3c5a('0x11')][0x0][_0x3c5a('0x6')];if(_0x43dff0){const _0x2c1ba8=this[_0x3c5a('0x20')]['plugins'][_0x3c5a('0x23')]('FontSize')['normalizeSizeOptions'](this[_0x3c5a('0x20')][_0x3c5a('0x1f')]['get']('fontSize.options'))[_0x3c5a('0xc')](_0x195763=>_0x195763['model']==_0x43dff0)[_0x3c5a('0x1a')],_0x218b5d=this[_0x3c5a('0x20')][_0x3c5a('0x2')]['_t'](_0x2c1ba8)[_0x3c5a('0x0')]();return{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,_0x3c5a('0x18'),_0x218b5d)};}return{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,'*Reset\x20font\x20size*')};}if(_0x3c5a('0xb')==_0x96e129['commandName']){const _0x56ceb8=_0x96e129[_0x3c5a('0x11')][0x0][_0x3c5a('0x6')];return _0x56ceb8?{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,_0x3c5a('0x7'),_0x56ceb8)}:{'type':'format','content':_0x3ab345(_0x41e3c7,_0x3c5a('0x16'))};}if(_0x3c5a('0x1c')==_0x96e129['commandName']){const _0x4859fc=_0x96e129[_0x3c5a('0x11')][0x0][_0x3c5a('0x6')];if(_0x4859fc){const _0x1cfb62=_0x45affd(this[_0x3c5a('0x20')][_0x3c5a('0x1f')][_0x3c5a('0x23')](_0x3c5a('0xd')))[_0x3c5a('0xc')](_0x13c009=>_0x13c009[_0x3c5a('0xe')]==_0x4859fc);let _0x2321eb=_0x4859fc,_0x4c1b87='';return _0x1cfb62&&(_0x2321eb=_0x1cfb62[_0x3c5a('0x8')],_0x4c1b87=_0x41e3c7['_t'](_0x2321eb)[_0x3c5a('0x0')]()),{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,_0x3c5a('0x24'),_0x4c1b87)[_0x3c5a('0x3')](),'color':{'value':_0x4859fc,'title':_0x4c1b87||_0x2321eb}};}return{'type':_0x3c5a('0x1e'),'content':_0x3ab345(_0x41e3c7,'*Reset\x20font\x20color*')};}if(_0x3c5a('0xf')==_0x96e129[_0x3c5a('0x10')]){const _0x19d12e=_0x96e129[_0x3c5a('0x11')][0x0]['value'];if(_0x19d12e){const _0x541718=_0x45affd(this[_0x3c5a('0x20')]['config'][_0x3c5a('0x23')]('fontBackgroundColor.colors'))[_0x3c5a('0xc')](_0x145dca=>_0x145dca['model']==_0x19d12e);let _0x1caa3c=_0x19d12e,_0x3fd526='';return _0x541718&&(_0x1caa3c=_0x541718[_0x3c5a('0x8')],_0x3fd526=_0x41e3c7['_t'](_0x1caa3c)[_0x3c5a('0x0')]()),{'type':'format','content':_0x3ab345(_0x41e3c7,'*Set\x20font\x20background\x20color:*\x20%0',_0x3fd526)['trim'](),'color':{'value':_0x19d12e,'title':_0x3fd526||_0x1caa3c}};}return{'type':'format','content':_0x3ab345(_0x41e3c7,_0x3c5a('0x14'))};}}});}[_0x3c5a('0x1')](_0x499af0){const _0x5958c8=this[_0x3c5a('0x20')];_0x5958c8[_0x3c5a('0x22')][_0x3c5a('0x23')]('TrackChangesEditing')[_0x3c5a('0x4')](_0x499af0,(_0x265bd7,_0x3deaff={})=>{const _0x247e17=_0x5958c8[_0x3c5a('0xe')]['document'][_0x3c5a('0x1b')],_0x531786=_0x3deaff[_0x3c5a('0x6')];_0x247e17[_0x3c5a('0x21')]?_0x265bd7(_0x3deaff):_0x5958c8[_0x3c5a('0xe')]['change'](()=>{const _0x19e13e=Array[_0x3c5a('0x13')](_0x247e17[_0x3c5a('0x5')]());for(const _0xaf6a3f of _0x19e13e){const _0x4a1882=_0x531786?[_0xaf6a3f]:_0x421341(_0x499af0,_0xaf6a3f,_0x5958c8[_0x3c5a('0xe')]);for(const _0x1f377c of _0x4a1882)_0x5958c8[_0x3c5a('0x22')][_0x3c5a('0x23')](_0x3c5a('0x19'))['markInlineFormat'](_0x1f377c,{'commandName':_0x499af0,'commandParams':[{'value':_0x531786}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4562=['filter','checkChild','selection','name','parent','change','blockName','ELEMENT_HEADING_CUSTOM','paragraph','plugins','heading','find','has','enableCommand','_descriptionFactory','config','document','title','*Change\x20to:*\x20%0','from','match','model','afterInit','TrackChangesEditing','value','schema','editor','commandName','isObject','format','get','registerElementLabel','heading.options','registerDescriptionCallback'];(function(_0x182fee,_0x4562b5){const _0x48f633=function(_0x24644e){while(--_0x24644e){_0x182fee['push'](_0x182fee['shift']());}};_0x48f633(++_0x4562b5);}(_0x4562,0xc9));const _0x48f6=function(_0x182fee,_0x4562b5){_0x182fee=_0x182fee-0x0;let _0x48f633=_0x4562[_0x182fee];return _0x48f633;};import{Plugin as _0x2b30ba}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2a18fe}from'./utils';import{getTranslation as _0x2df148}from'../utils/common-translations';export default class J extends _0x2b30ba{[_0x48f6('0x19')](){const _0x447857=this[_0x48f6('0x1d')],_0x26a8d4=_0x447857['locale'],_0x4e53dc=_0x447857[_0x48f6('0x12')][_0x48f6('0x21')](_0x48f6('0x1'));if(!_0x447857[_0x48f6('0xc')][_0x48f6('0xf')]('HeadingEditing'))return;const _0xc9d3ed=_0x447857[_0x48f6('0xc')]['get'](_0x48f6('0x1a'));_0xc9d3ed[_0x48f6('0x10')](_0x48f6('0xd'),(_0x483cc4,_0x4cd2bf)=>{const _0x1ae19d=_0x4cd2bf[_0x48f6('0x1b')],_0x4353fa=Array[_0x48f6('0x16')](this[_0x48f6('0x1d')][_0x48f6('0x18')][_0x48f6('0x13')][_0x48f6('0x5')]['getSelectedBlocks']())[_0x48f6('0x3')](_0x43f913=>function(_0x4458c7,_0x26c0b2,_0x4e28c3){return _0x4e28c3[_0x48f6('0x4')](_0x4458c7[_0x48f6('0x7')],_0x26c0b2)&&!_0x4e28c3[_0x48f6('0x1f')](_0x4458c7)&&_0x4458c7[_0x48f6('0x6')]!=_0x26c0b2;}(_0x43f913,_0x1ae19d,this[_0x48f6('0x1d')][_0x48f6('0x18')][_0x48f6('0x1c')]));_0x447857[_0x48f6('0x18')][_0x48f6('0x8')](()=>{for(const _0x142e2c of _0x4353fa)_0xc9d3ed['markBlockFormat'](_0x142e2c,{'commandName':_0x48f6('0xd'),'commandParams':[_0x4cd2bf],'formatGroupId':_0x48f6('0x9')},_0x2a18fe(_0x142e2c));});});for(const _0x18bf2d of _0x4e53dc)_0x48f6('0xb')!=_0x18bf2d[_0x48f6('0x18')]&&_0xc9d3ed[_0x48f6('0x11')][_0x48f6('0x0')](_0x18bf2d[_0x48f6('0x18')],_0x5d2b1d=>{const _0x330716=Xt(_0x18bf2d[_0x48f6('0x18')]);return null!==_0x330716?_0x5b1c80(_0x5d2b1d,_0x330716):_0x21a91d(_0x5d2b1d,_0x18bf2d['title']);});function _0x5b1c80(_0x92474e,_0xf8acd6){return _0x2df148(_0x26a8d4,'ELEMENT_HEADING',[_0x92474e,_0xf8acd6]);}function _0x21a91d(_0x28709a,_0x4404bf){return _0x2df148(_0x26a8d4,_0x48f6('0xa'),[_0x28709a,_0x4404bf]);}_0xc9d3ed['_descriptionFactory'][_0x48f6('0x2')](_0x25a3ca=>{const {type:_0x71ec64,data:_0x4aad2d}=_0x25a3ca;if('formatBlock'==_0x71ec64&&_0x4aad2d&&_0x48f6('0xd')==_0x4aad2d[_0x48f6('0x1e')]){const _0x286aef=_0x4aad2d['commandParams'][0x0]['value'],_0x5b4a4a=Xt(_0x286aef);if(null!==_0x5b4a4a)return{'type':_0x48f6('0x20'),'content':_0x2df148(_0x26a8d4,_0x48f6('0x15'),_0x5b1c80(0x1,_0x5b4a4a))};const _0xba40fc=_0x4e53dc[_0x48f6('0xe')](_0x10b63b=>_0x10b63b[_0x48f6('0x18')]===_0x286aef)[_0x48f6('0x14')];return{'type':_0x48f6('0x20'),'content':_0x2df148(_0x26a8d4,'*Change\x20to:*\x20%0',_0x21a91d(0x1,_0xba40fc))};}});}}function Xt(_0x14b0b7){const _0x2d70d4=_0x14b0b7[_0x48f6('0x17')](/^heading(\d+)$/);return _0x2d70d4?_0x2d70d4[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57f6=['editor','backward','HighlightEditing','getLastMatchingPosition','find','enableCommand','hasAttribute','format','model','locale','get','item','registerDescriptionCallback','document','highlight','has','afterInit','getAttribute','formatInline','change','value','title','getRanges','toLowerCase','isCollapsed','color','_descriptionFactory','push','createRange','FORMAT_HIGHLIGHT','*Remove\x20highlight*'];(function(_0x388651,_0x57f6f8){const _0x566d5b=function(_0x3809e0){while(--_0x3809e0){_0x388651['push'](_0x388651['shift']());}};_0x566d5b(++_0x57f6f8);}(_0x57f6,0x151));const _0x566d=function(_0x388651,_0x57f6f8){_0x388651=_0x388651-0x0;let _0x566d5b=_0x57f6[_0x388651];return _0x566d5b;};import{Plugin as _0x4c8688}from'ckeditor5/src/core';import{getTranslation as _0x4cdbb5}from'../utils/common-translations';import{getRangesWithAttribute as _0x45c753}from'./utils';export default class K extends _0x4c8688{[_0x566d('0x14')](){const _0xa22a05=this[_0x566d('0x4')];if(!_0xa22a05['plugins'][_0x566d('0x13')](_0x566d('0x6')))return;const _0x37029a=_0xa22a05['plugins'][_0x566d('0xe')]('TrackChangesEditing');_0x37029a[_0x566d('0x9')]('highlight',(_0x10a147,_0x210214={})=>{const _0x3c2f92=_0xa22a05[_0x566d('0xc')][_0x566d('0x11')]['selection'],_0x5480cc=_0x3c2f92[_0x566d('0x15')](_0x566d('0x12'));let _0x58497c=_0x210214['value'],_0x612319=[];if(_0x3c2f92[_0x566d('0x1c')]){const _0x59f3ff=_0x3c2f92['getFirstPosition']();if(!_0x3c2f92[_0x566d('0xa')](_0x566d('0x12')))return void _0x10a147(_0x210214);{const _0x50e3cc=_0x223696=>_0x223696[_0x566d('0xf')]['getAttribute'](_0x566d('0x12'))===_0x5480cc,_0x379b1c=_0x59f3ff['getLastMatchingPosition'](_0x50e3cc,{'direction':_0x566d('0x5')}),_0x15d7ee=_0x59f3ff[_0x566d('0x7')](_0x50e3cc);_0x612319=[_0xa22a05[_0x566d('0xc')][_0x566d('0x1')](_0x379b1c,_0x15d7ee)],_0x58497c==_0x5480cc&&(_0x58497c=null);}}else for(const _0x22ba00 of _0x3c2f92[_0x566d('0x1a')]())_0x58497c?_0x612319[_0x566d('0x0')](_0x22ba00):_0x612319[_0x566d('0x0')](..._0x45c753('highlight',_0x22ba00,_0xa22a05['model']));_0xa22a05[_0x566d('0xc')][_0x566d('0x17')](()=>{for(const _0x32a62b of _0x612319)_0x37029a['markInlineFormat'](_0x32a62b,{'commandName':_0x566d('0x12'),'commandParams':[{'value':_0x58497c}]});});});const _0x2ed459=_0xa22a05[_0x566d('0xd')];_0x37029a[_0x566d('0x1e')][_0x566d('0x10')](_0x24b8ed=>{const {type:_0xae84a8,data:_0x12203b}=_0x24b8ed;if(_0x566d('0x16')==_0xae84a8&&_0x12203b&&'highlight'==_0x12203b['commandName']){const _0x5e2e7d=_0x12203b['commandParams'][0x0][_0x566d('0x18')];if(_0x5e2e7d){const _0x34d180=_0xa22a05['config']['get']('highlight.options')[_0x566d('0x8')](_0x4c91ec=>_0x4c91ec[_0x566d('0xc')]==_0x5e2e7d),_0x3795c3=_0x2ed459['_t'](_0x34d180['title'])[_0x566d('0x1b')]();return{'type':_0x566d('0xb'),'content':_0x4cdbb5(_0x2ed459,'*Set\x20highlight:*\x20%0',_0x3795c3),'color':{'value':_0x34d180[_0x566d('0x1d')],'title':_0x34d180[_0x566d('0x19')]}};}return{'type':'format','content':_0x4cdbb5(_0x2ed459,_0x566d('0x3'),_0x4cdbb5(_0x2ed459,_0x566d('0x2')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e44=['div','createPositionAt','enableCommand','elementToStructure','plugins','get','has','insert','showSuggestionHighlights','addClass','HorizontalLineEditing','conversion','for','createContainerElement','TrackChangesEditing','dataDowncast','registerElementLabel'];(function(_0x4d0875,_0x2e44dd){const _0xb84f3=function(_0x128dc2){while(--_0x128dc2){_0x4d0875['push'](_0x4d0875['shift']());}};_0xb84f3(++_0x2e44dd);}(_0x2e44,0x1a7));const _0xb84f=function(_0x4d0875,_0x2e44dd){_0x4d0875=_0x4d0875-0x0;let _0xb84f3=_0x2e44[_0x4d0875];return _0xb84f3;};import{Plugin as _0x4a1a6f}from'ckeditor5/src/core';import{getTranslation as _0x3ac9e3}from'../utils/common-translations';export default class Q extends _0x4a1a6f{['afterInit'](){const _0x383516=this['editor'];if(!_0x383516['plugins'][_0xb84f('0x8')](_0xb84f('0xc')))return;_0x383516[_0xb84f('0x6')][_0xb84f('0x7')](_0xb84f('0x10'))[_0xb84f('0x4')]('horizontalLine');const _0x487128=_0x383516[_0xb84f('0x6')]['get']('TrackChangesEditing'),_0x55319d=_0x383516['locale'];_0x487128['_descriptionFactory'][_0xb84f('0x1')]('horizontalLine',_0x45feee=>_0x3ac9e3(_0x55319d,'ELEMENT_HORIZONTAL_LINE',_0x45feee)),_0x383516[_0xb84f('0xd')][_0xb84f('0xe')](_0xb84f('0x0'))[_0xb84f('0x5')]({'model':'horizontalLine','view':(_0x41ef18,{writer:_0x506b78,options:_0x36f8b7})=>{if(!_0x36f8b7[_0xb84f('0xa')])return;const _0x460bbe=_0x506b78[_0xb84f('0xf')](_0xb84f('0x2')),_0x37a149=_0x506b78['createEmptyElement']('hr');return _0x506b78[_0xb84f('0xb')]('ck-horizontal-line',_0x460bbe),_0x506b78[_0xb84f('0x9')](_0x506b78[_0xb84f('0x3')](_0x460bbe,0x0),_0x37a149),_0x460bbe;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbb1e=['TrackChangesEditing','getCustomProperty','get','cancel','plugins','afterInit','ELEMENT_HTML_EMBED','getSelectedElement','format','document','has','commandName','_descriptionFactory','HtmlEmbed','model','rawHtml','rawHtmlApi','value','editor','markBlockFormat','registerDescriptionCallback','selection','htmlEmbed','editing','enableCommand'];(function(_0x9ef5c5,_0xbb1e9d){const _0x11b5da=function(_0x33be98){while(--_0x33be98){_0x9ef5c5['push'](_0x9ef5c5['shift']());}};_0x11b5da(++_0xbb1e9d);}(_0xbb1e,0x8d));const _0x11b5=function(_0x9ef5c5,_0xbb1e9d){_0x9ef5c5=_0x9ef5c5-0x0;let _0x11b5da=_0xbb1e[_0x9ef5c5];return _0x11b5da;};import{Plugin as _0x1dcaa4}from'ckeditor5/src/core';import{getTranslation as _0x641534}from'../utils/common-translations';export default class V extends _0x1dcaa4{[_0x11b5('0xe')](){const _0x392687=this[_0x11b5('0x2')];if(!_0x392687[_0x11b5('0xd')][_0x11b5('0x13')](_0x11b5('0x16')))return;const _0x3500fc=_0x392687[_0x11b5('0xd')][_0x11b5('0xb')]('TrackChangesEditing'),_0xef24d0=_0x392687['locale'],_0x4a828a=_0x392687[_0x11b5('0x7')]['view'][_0x11b5('0x12')][_0x11b5('0x5')];_0x3500fc[_0x11b5('0x15')]['registerElementLabel'](_0x11b5('0x18'),_0x1886d1=>_0x641534(_0xef24d0,_0x11b5('0xf'),_0x1886d1)),_0x392687[_0x11b5('0xd')]['get'](_0x11b5('0x9'))[_0x11b5('0x8')](_0x11b5('0x6'),(_0x36c8dc,_0x544304)=>{const _0x2ca0b6=_0x392687[_0x11b5('0x17')],_0x508055=_0x2ca0b6[_0x11b5('0x12')][_0x11b5('0x5')];_0x2ca0b6['change'](()=>{const _0x36fd94=function(_0x32cce1){const _0x5f5cc=_0x32cce1[_0x11b5('0x10')]();if(_0x5f5cc&&_0x5f5cc['is']('element',_0x11b5('0x18')))return _0x32cce1['getSelectedElement']();return null;}(_0x508055);if(!_0x36fd94)return void _0x36c8dc(null);const _0x1c1b84=_0x36fd94['getAttribute'](_0x11b5('0x1'))||'';if(void 0x0===_0x544304)return;if(_0x544304===_0x1c1b84)return;_0x3500fc[_0x11b5('0x3')](_0x36fd94,{'commandName':_0x11b5('0x6'),'commandParams':[_0x544304]}),_0x4a828a['getSelectedElement']()[_0x11b5('0xa')](_0x11b5('0x0'))[_0x11b5('0xc')]();});}),_0x3500fc[_0x11b5('0x15')][_0x11b5('0x4')](_0x777015=>{const {data:_0x3f783a}=_0x777015;if(_0x3f783a&&_0x11b5('0x6')==_0x3f783a[_0x11b5('0x14')]){const _0x51906a=_0x641534(_0xef24d0,_0x11b5('0xf'));return{'type':_0x11b5('0x11'),'content':_0x641534(_0xef24d0,'*Change\x20%0\x20content*',_0x51906a)};}});}}
|