@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230829.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 +1 -1
- package/package.json +3 -3
- 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 +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.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/imagereplace.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 +1 -1
- 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 +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230829.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20230829.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230829.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20c6=['get','canEditAt','refresh','getRanges','plugins','_isEnabledBasedOnSelection','execute','TrackChangesEditing','track-changes-accept-suggestion-not-found','model','_suggestions'];(function(_0x5c243b,_0x20c694){const _0x3a1322=function(_0x58c9df){while(--_0x58c9df){_0x5c243b['push'](_0x5c243b['shift']());}};_0x3a1322(++_0x20c694);}(_0x20c6,0x7c));const _0x3a13=function(_0x5c243b,_0x20c694){_0x5c243b=_0x5c243b-0x0;let _0x3a1322=_0x20c6[_0x5c243b];return _0x3a1322;};import{Command as _0x315274}from'ckeditor5/src/core';import{CKEditorError as _0x2e02fe}from'ckeditor5/src/utils';export default class M extends _0x315274{constructor(_0x1ff8b6,_0x2d45bb){super(_0x1ff8b6),this[_0x3a13('0x7')]=_0x2d45bb,this[_0x3a13('0xa')](),this[_0x3a13('0x2')]=!0x1;}['refresh'](){this['isEnabled']=!0x0;}[_0x3a13('0x3')](_0x363cce){const _0x17ead6=this['_suggestions'][_0x3a13('0x8')](_0x363cce);if(!_0x17ead6)throw new _0x2e02fe(_0x3a13('0x5'),this);const _0x43ef37=_0x17ead6[_0x3a13('0x0')]();this['editor'][_0x3a13('0x6')][_0x3a13('0x9')](_0x43ef37)&&this['editor'][_0x3a13('0x1')]['get'](_0x3a13('0x4'))['acceptSuggestion'](_0x17ead6);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ea8=['TrackChangesEditing','execute','_isEnabledBasedOnSelection','canEditAt','refresh','plugins','discardSuggestion','get','getRanges','_suggestions','model'];(function(_0x6c697,_0x1ea856){const _0x5604c4=function(_0x29bc78){while(--_0x29bc78){_0x6c697['push'](_0x6c697['shift']());}};_0x5604c4(++_0x1ea856);}(_0x1ea8,0x65));const _0x5604=function(_0x6c697,_0x1ea856){_0x6c697=_0x6c697-0x0;let _0x5604c4=_0x1ea8[_0x6c697];return _0x5604c4;};import{Command as _0x5eb8e7}from'ckeditor5/src/core';import{CKEditorError as _0x4dff83}from'ckeditor5/src/utils';export default class $ extends _0x5eb8e7{constructor(_0x353b6c,_0x11401f){super(_0x353b6c),this[_0x5604('0x7')]=_0x11401f,this[_0x5604('0x2')](),this[_0x5604('0x0')]=!0x1;}[_0x5604('0x2')](){this['isEnabled']=!0x0;}[_0x5604('0xa')](_0x53c69){const _0x54e0e0=this[_0x5604('0x7')][_0x5604('0x5')](_0x53c69);if(!_0x54e0e0)throw new _0x4dff83('track-changes-discard-suggestion-not-found',this);const _0x22eedc=_0x54e0e0[_0x5604('0x6')]();this['editor'][_0x5604('0x8')][_0x5604('0x1')](_0x22eedc)&&this['editor'][_0x5604('0x3')][_0x5604('0x5')](_0x5604('0x9'))[_0x5604('0x4')](_0x54e0e0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13d1=['getRanges','_command','values','editor','refresh','isEnabled','execute','_suggestions','_isEnabledBasedOnSelection','some','from','model','isInContent'];(function(_0x25c123,_0x13d1da){const _0x58394c=function(_0x1bef4a){while(--_0x1bef4a){_0x25c123['push'](_0x25c123['shift']());}};_0x58394c(++_0x13d1da);}(_0x13d1,0x102));const _0x5839=function(_0x25c123,_0x13d1da){_0x25c123=_0x25c123-0x0;let _0x58394c=_0x13d1[_0x25c123];return _0x58394c;};import{Command as _0x5b5617}from'ckeditor5/src/core';import{sortSuggestions as _0x61d5cc,executeCommandForSuggestions as _0x1eb382}from'../utils/utils';export default class N extends _0x5b5617{constructor(_0x4ac718,_0x13f8f6,_0x8a1112){super(_0x4ac718),this[_0x5839('0x3')]=_0x13f8f6,this[_0x5839('0x9')]=_0x8a1112,this[_0x5839('0x6')](),this[_0x5839('0xa')]=!0x1;}[_0x5839('0x6')](){const _0x31d102=Array['from'](this[_0x5839('0x9')]['values']())[_0x5839('0xb')](_0x12968b=>_0x12968b[_0x5839('0x1')]);this[_0x5839('0x7')]=this[_0x5839('0x3')][_0x5839('0x7')]&&_0x31d102;}[_0x5839('0x8')](){const _0x41ad29=_0x61d5cc(Array[_0x5839('0xc')](this[_0x5839('0x9')][_0x5839('0x4')]()));for(const _0x14ee97 of _0x41ad29){const _0x4848ad=_0x14ee97[_0x5839('0x2')]();if(!this['editor'][_0x5839('0x0')]['canEditAt'](_0x4848ad))return;}_0x1eb382(this[_0x5839('0x5')][_0x5839('0x0')],this[_0x5839('0x3')],_0x41ad29);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d97=['_selectedSuggestions','values','from','size','canEditAt','_command','model','editor','refresh','_suggestions','getRanges','execute','isEnabled'];(function(_0x586b02,_0x3d979e){const _0x1b4285=function(_0x3f26a9){while(--_0x3f26a9){_0x586b02['push'](_0x586b02['shift']());}};_0x1b4285(++_0x3d979e);}(_0x3d97,0x1d7));const _0x1b42=function(_0x586b02,_0x3d979e){_0x586b02=_0x586b02-0x0;let _0x1b4285=_0x3d97[_0x586b02];return _0x1b4285;};import{Command as _0x411b42}from'ckeditor5/src/core';import{sortSuggestions as _0x371933,getSelectedSuggestions as _0x5962fd,executeCommandForSuggestions as _0x1dc05e}from'../utils/utils';export default class R extends _0x411b42{constructor(_0x1e9438,_0x188691,_0x536aea){super(_0x1e9438),this[_0x1b42('0x2')]=_0x188691,this[_0x1b42('0x6')]=_0x536aea,this[_0x1b42('0xa')]=new Set(),this[_0x1b42('0x5')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x1b42('0x5')](){const _0x53984e=this[_0x1b42('0x4')][_0x1b42('0x3')]['document']['selection'],_0x492156=Array[_0x1b42('0xc')](this[_0x1b42('0x6')][_0x1b42('0xb')]());this[_0x1b42('0xa')]=_0x5962fd(_0x53984e,_0x492156),this[_0x1b42('0x9')]=this['_command'][_0x1b42('0x9')]&&!!this[_0x1b42('0xa')][_0x1b42('0x0')];}[_0x1b42('0x8')](){const _0x1980a5=_0x371933(Array[_0x1b42('0xc')](this[_0x1b42('0xa')]));for(const _0x3350da of _0x1980a5){const _0x6a524a=_0x3350da[_0x1b42('0x7')]();if(!this['editor']['model'][_0x1b42('0x1')](_0x6a524a))return;}_0x1dc05e(this[_0x1b42('0x4')][_0x1b42('0x3')],this[_0x1b42('0x2')],_0x1980a5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52f0=['editor','_enabledCommands','_enableCommands','_disableUnsupportedCommands','affectsData','has','value','_isEnabledBasedOnSelection','commands','TrackChangesCommand','execute','forceDisabled'];(function(_0x5e8531,_0x52f096){const _0x1bdb05=function(_0x1614fa){while(--_0x1614fa){_0x5e8531['push'](_0x5e8531['shift']());}};_0x1bdb05(++_0x52f096);}(_0x52f0,0x1f1));const _0x1bdb=function(_0x5e8531,_0x52f096){_0x5e8531=_0x5e8531-0x0;let _0x1bdb05=_0x52f0[_0x5e8531];return _0x1bdb05;};import{Command as _0x396c58}from'ckeditor5/src/core';export default class _ extends _0x396c58{constructor(_0x5a2077,_0x5e82a8){super(_0x5a2077),this[_0x1bdb('0x8')]=_0x5e82a8,this[_0x1bdb('0x1')]=!0x1,this['refresh'](),this[_0x1bdb('0x2')]=!0x1;}['refresh'](){this['isEnabled']=!0x0;}[_0x1bdb('0x5')](){this[_0x1bdb('0x1')]=!this[_0x1bdb('0x1')],this[_0x1bdb('0x1')]?this['_disableUnsupportedCommands']():this[_0x1bdb('0x9')]();}[_0x1bdb('0xa')](){for(const _0x5d15e5 of this[_0x1bdb('0x7')][_0x1bdb('0x3')][_0x1bdb('0x3')]())_0x5d15e5[_0x1bdb('0xb')]&&!this['_enabledCommands'][_0x1bdb('0x0')](_0x5d15e5)&&_0x5d15e5[_0x1bdb('0x6')](_0x1bdb('0x4'));}[_0x1bdb('0x9')](){for(const _0x4a6567 of this['editor'][_0x1bdb('0x3')]['commands']())_0x4a6567[_0x1bdb('0xb')]&&!this[_0x1bdb('0x8')][_0x1bdb('0x0')](_0x4a6567)&&_0x4a6567['clearForceDisabled'](_0x1bdb('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5202=['contentLanguageDirection','selection','registerDescriptionCallback','FORMAT_ALIGN_TO_CENTER','checkAttribute','_descriptionFactory','afterInit','getAttribute','*Format:*\x20%0','FORMAT_ALIGN_TO_LEFT','markBlockFormat','locale','commandParams','model','AlignmentEditing','alignment','center','document','ltr','has','plugins','filter','FORMAT_ALIGN_TO_RIGHT','right','editor','get','value','left','TrackChangesEditing'];(function(_0x59448f,_0x520254){const _0x4f6e32=function(_0x563689){while(--_0x563689){_0x59448f['push'](_0x59448f['shift']());}};_0x4f6e32(++_0x520254);}(_0x5202,0x1db));const _0x4f6e=function(_0x59448f,_0x520254){_0x59448f=_0x59448f-0x0;let _0x4f6e32=_0x5202[_0x59448f];return _0x4f6e32;};import{Plugin as _0x374cb4}from'ckeditor5/src/core';import{getTranslation as _0x7001d8}from'../utils/common-translations';export default class x extends _0x374cb4{[_0x4f6e('0x18')](){const _0x547d72=this[_0x4f6e('0xd')],_0x434c78=_0x547d72[_0x4f6e('0x0')];if(!_0x547d72[_0x4f6e('0x9')][_0x4f6e('0x8')](_0x4f6e('0x3')))return;const _0x33d447=_0x547d72[_0x4f6e('0x9')][_0x4f6e('0xe')](_0x4f6e('0x11'));_0x33d447['enableCommand'](_0x4f6e('0x4'),(_0x153261,_0x234c5c={})=>{let _0x34fcb0=_0x234c5c['value'];_0x234c5c[_0x4f6e('0xf')]||(_0x34fcb0=_0x4f6e('0x7')===_0x547d72[_0x4f6e('0x0')][_0x4f6e('0x12')]?_0x4f6e('0x10'):'right');const _0x3898a8=Array['from'](this[_0x4f6e('0xd')][_0x4f6e('0x2')][_0x4f6e('0x6')][_0x4f6e('0x13')]['getSelectedBlocks']())[_0x4f6e('0xa')](_0x531bb7=>function(_0x3edf5d,_0x5154d1,_0x115c73){const _0x405162=_0x3edf5d[_0x4f6e('0x19')](_0x4f6e('0x4'))||null;return _0x5154d1[_0x4f6e('0x16')](_0x3edf5d,_0x4f6e('0x4'))&&_0x115c73!=_0x405162;}(_0x531bb7,this[_0x4f6e('0xd')]['model']['schema'],_0x34fcb0));_0x547d72['model']['change'](()=>{for(const _0x329b22 of _0x3898a8)_0x33d447[_0x4f6e('0x1c')](_0x329b22,{'commandName':_0x4f6e('0x4'),'commandParams':[{'value':_0x34fcb0}]});});}),_0x33d447[_0x4f6e('0x17')][_0x4f6e('0x14')](_0x5ed11d=>{const {data:_0x14c842}=_0x5ed11d;if(_0x14c842&&_0x4f6e('0x4')==_0x14c842['commandName']){const _0x351a51=_0x14c842[_0x4f6e('0x1')][0x0]['value'];return{'type':'format','content':_0x7001d8(_0x434c78,_0x4f6e('0x1a'),function(_0x30e077){switch(_0x30e077){case _0x4f6e('0x10'):return _0x7001d8(_0x434c78,_0x4f6e('0x1b'));case _0x4f6e('0xc'):return _0x7001d8(_0x434c78,_0x4f6e('0xb'));case _0x4f6e('0x5'):return _0x7001d8(_0x434c78,_0x4f6e('0x15'));case'justify':return _0x7001d8(_0x434c78,'FORMAT_JUSTIFY_TEXT');}}(_0x351a51))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x310a=['TrackChangesEditing','registerDescriptionCallback','change','has','format','StrikethroughEditing','superscript','subscript','FORMAT_STRIKETHROUGH','get','selection','FORMAT_CODE','plugins','FORMAT_UNDERLINE','*Format:*\x20%0','ItalicEditing','CodeEditing','model','getRanges','FORMAT_SUPERSCRIPT','from','commandParams','italic','afterInit','isCollapsed','FORMAT_BOLD','code','bold','enableCommand','forceValue','toLowerCase','strikethrough','slice','editor','UnderlineEditing','SuperscriptEditing','SubscriptEditing','commands','_descriptionFactory'];(function(_0x4d081c,_0x310a9f){const _0x2d92aa=function(_0x10847f){while(--_0x10847f){_0x4d081c['push'](_0x4d081c['shift']());}};_0x2d92aa(++_0x310a9f);}(_0x310a,0x1a7));const _0x2d92=function(_0x4d081c,_0x310a9f){_0x4d081c=_0x4d081c-0x0;let _0x2d92aa=_0x310a[_0x4d081c];return _0x2d92aa;};import{Plugin as _0x4b53b0}from'ckeditor5/src/core';import{getTranslation as _0x17379d}from'../utils/common-translations';import{getRangesWithAttribute as _0x234d62}from'./utils';const Kt=['BoldEditing',_0x2d92('0x15'),_0x2d92('0x1'),_0x2d92('0x16'),_0x2d92('0xb'),_0x2d92('0x3'),_0x2d92('0x2')];export default class U extends _0x4b53b0{[_0x2d92('0x1d')](){const _0x37b597=this[_0x2d92('0x0')],_0x2c18dc=_0x37b597[_0x2d92('0x17')],_0xcb52dd=_0x37b597[_0x2d92('0x12')]['get'](_0x2d92('0x6')),_0x4ec3f9=_0x37b597['locale'];for(const _0x44cace of Kt){if(!_0x37b597[_0x2d92('0x12')][_0x2d92('0x9')](_0x44cace))continue;const _0x12d6e4=_0x44cace[_0x2d92('0x26')](0x0,-0x7)[_0x2d92('0x24')](),_0x3eb741=_0x37b597[_0x2d92('0x4')][_0x2d92('0xf')](_0x12d6e4);_0xcb52dd[_0x2d92('0x22')](_0x12d6e4,(_0x50d80e,_0x417dba={})=>{const _0x1bdd08=_0x2c18dc['document'][_0x2d92('0x10')];if(_0x1bdd08[_0x2d92('0x1e')])return void _0x50d80e(_0x417dba);const _0x29db32=void 0x0!==_0x417dba[_0x2d92('0x23')]?_0x417dba[_0x2d92('0x23')]:!_0x3eb741['value'];_0x2c18dc[_0x2d92('0x8')](()=>{const _0x27cdd3=Array[_0x2d92('0x1a')](_0x1bdd08[_0x2d92('0x18')]());for(const _0x1a3dda of _0x27cdd3){const _0x10a2f5=_0x29db32?[_0x1a3dda]:_0x234d62(_0x12d6e4,_0x1a3dda,_0x2c18dc);for(const _0x305a9b of _0x10a2f5)_0xcb52dd['markInlineFormat'](_0x305a9b,{'commandName':_0x12d6e4,'commandParams':[{'forceValue':_0x29db32}]});}});});}function _0x443771(_0x4adf57,_0x4e7461){_0xcb52dd[_0x2d92('0x5')][_0x2d92('0x7')](_0x3a4f9e=>{const {data:_0x52adcd}=_0x3a4f9e;if(_0x52adcd&&_0x52adcd['commandName']===_0x4adf57)return _0x52adcd[_0x2d92('0x1b')][0x0][_0x2d92('0x23')]?{'type':_0x2d92('0xa'),'content':_0x17379d(_0x4ec3f9,_0x2d92('0x14'),_0x4e7461)}:{'type':_0x2d92('0xa'),'content':_0x17379d(_0x4ec3f9,'*Remove\x20format:*\x20%0',_0x4e7461)};});}_0x443771(_0x2d92('0x21'),_0x17379d(_0x4ec3f9,_0x2d92('0x1f'))),_0x443771(_0x2d92('0x1c'),_0x17379d(_0x4ec3f9,'FORMAT_ITALIC')),_0x443771('underline',_0x17379d(_0x4ec3f9,_0x2d92('0x13'))),_0x443771(_0x2d92('0x20'),_0x17379d(_0x4ec3f9,_0x2d92('0x11'))),_0x443771(_0x2d92('0x25'),_0x17379d(_0x4ec3f9,_0x2d92('0xe'))),_0x443771(_0x2d92('0xd'),_0x17379d(_0x4ec3f9,'FORMAT_SUBSCRIPT')),_0x443771(_0x2d92('0xc'),_0x17379d(_0x4ec3f9,_0x2d92('0x19')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcddd=['from','ELEMENT_BLOCK_QUOTE','forceValue','afterInit','format','locale','filter','_descriptionFactory','editor','enableCommand','plugins','parent','commandName','BlockQuoteEditing','model','checkChild','change','*Remove\x20format:*\x20%0','markBlockFormat','blockQuote','document','value','name','schema','commands','get','$root','commandParams'];(function(_0x1ccb89,_0xcddd79){const _0x2a0b5a=function(_0x51f281){while(--_0x51f281){_0x1ccb89['push'](_0x1ccb89['shift']());}};_0x2a0b5a(++_0xcddd79);}(_0xcddd,0xdd));const _0x2a0b=function(_0x1ccb89,_0xcddd79){_0x1ccb89=_0x1ccb89-0x0;let _0x2a0b5a=_0xcddd[_0x1ccb89];return _0x2a0b5a;};import{Plugin as _0x543769}from'ckeditor5/src/core';import{getTranslation as _0xe6d217}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x478fa6}from'../utils/utils';export default class j extends _0x543769{[_0x2a0b('0x6')](){const _0x2e0002=this[_0x2a0b('0xb')],_0x2e5ce7=_0x2e0002[_0x2a0b('0x8')];if(!_0x2e0002[_0x2a0b('0xd')]['has'](_0x2a0b('0x10')))return;const _0x2cf576=_0x2e0002[_0x2a0b('0xd')][_0x2a0b('0x0')]('TrackChangesEditing'),_0xedd0d8=this[_0x2a0b('0xb')][_0x2a0b('0x1b')][_0x2a0b('0x0')](_0x2a0b('0x16'));_0x2cf576[_0x2a0b('0xc')]('blockQuote',(_0x40a88f,_0x553d22={})=>{const _0x151dc3=this[_0x2a0b('0xb')]['model'][_0x2a0b('0x17')]['selection'],_0x194366=_0x553d22&&void 0x0!==_0x553d22[_0x2a0b('0x5')]?_0x553d22[_0x2a0b('0x5')]:!_0xedd0d8[_0x2a0b('0x18')];let _0x480222=[];if(_0x194366){const _0x4d67f6=Array[_0x2a0b('0x3')](_0x151dc3['getSelectedBlocks']())[_0x2a0b('0x9')](_0x285c51=>Xt(_0x285c51)||function(_0x256e1e,_0x7c2e8c){const _0x3dbbba=_0x7c2e8c['checkChild'](_0x256e1e[_0x2a0b('0xe')],_0x2a0b('0x16')),_0x225b71=_0x7c2e8c[_0x2a0b('0x12')]([_0x2a0b('0x1'),_0x2a0b('0x16')],_0x256e1e);return _0x3dbbba&&_0x225b71;}(_0x285c51,this[_0x2a0b('0xb')][_0x2a0b('0x11')][_0x2a0b('0x1a')]));_0x480222=_0x478fa6(_0x4d67f6,_0x2e0002[_0x2a0b('0x11')]);}else{const _0x4093a2=Array[_0x2a0b('0x3')](_0x151dc3['getSelectedBlocks']())[_0x2a0b('0x9')](_0x202add=>Xt(_0x202add));_0x480222=_0x478fa6(_0x4093a2,_0x2e0002['model']);}_0x2e0002['model'][_0x2a0b('0x13')](()=>{for(const _0x4f9010 of _0x480222)_0x2cf576[_0x2a0b('0x15')](_0x4f9010,{'commandName':_0x2a0b('0x16'),'commandParams':[{'forceValue':_0x194366}]});});}),_0x2cf576[_0x2a0b('0xa')]['registerDescriptionCallback'](_0x45fa14=>{const {data:_0x4ac7c9}=_0x45fa14;if(_0x4ac7c9&&_0x2a0b('0x16')==_0x4ac7c9[_0x2a0b('0xf')]){const _0x3edf2c=_0xe6d217(_0x2e5ce7,_0x2a0b('0x4'));return _0x4ac7c9[_0x2a0b('0x2')][0x0][_0x2a0b('0x5')]?{'type':_0x2a0b('0x7'),'content':_0xe6d217(_0x2e5ce7,'*Format:*\x20%0',_0x3edf2c)}:{'type':_0x2a0b('0x7'),'content':_0xe6d217(_0x2e5ce7,_0x2a0b('0x14'),_0x3edf2c)};}});}}function Xt(_0x3fa70b){return _0x2a0b('0x16')==_0x3fa70b['parent'][_0x2a0b('0x19')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4de1=['get','ckbox','editor','afterInit','commands'];(function(_0x4e7e48,_0x4de10c){const _0x15571a=function(_0x2e301e){while(--_0x2e301e){_0x4e7e48['push'](_0x4e7e48['shift']());}};_0x15571a(++_0x4de10c);}(_0x4de1,0x1ae));const _0x1557=function(_0x4e7e48,_0x4de10c){_0x4e7e48=_0x4e7e48-0x0;let _0x15571a=_0x4de1[_0x4e7e48];return _0x15571a;};import{Plugin as _0x409ff1}from'ckeditor5/src/core';export default class E extends _0x409ff1{[_0x1557('0x3')](){const _0x48785a=this[_0x1557('0x2')];_0x48785a[_0x1557('0x4')][_0x1557('0x0')](_0x1557('0x1'))&&_0x48785a['plugins'][_0x1557('0x0')]('TrackChangesEditing')['enableCommand'](_0x1557('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ed0=['*Format:*\x20%0','from','getSelectedBlocks','config','isLimit','enableCommand','*Remove\x20format:*\x20%0','get','schema','find','value','commands','ELEMENT_CODE_BLOCK','language','CodeBlock','_descriptionFactory','filter','formatBlock','checkChild','commandParams','forceValue','codeBlock','document','blockName','registerElementLabel','editor','plugins','afterInit','commandName','model','outdentCodeBlock','locale','TrackChangesEditing','languages','registerDescriptionCallback','has','format','indentCodeBlock','markBlockFormat'];(function(_0x12f015,_0x4ed0f3){const _0x5f57a5=function(_0x15abd3){while(--_0x15abd3){_0x12f015['push'](_0x12f015['shift']());}};_0x5f57a5(++_0x4ed0f3);}(_0x4ed0,0xb3));const _0x5f57=function(_0x12f015,_0x4ed0f3){_0x12f015=_0x12f015-0x0;let _0x5f57a5=_0x4ed0[_0x12f015];return _0x5f57a5;};import{Plugin as _0x46d262}from'ckeditor5/src/core';import{getTranslation as _0x3d4618}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x43b4cb}from'../utils/utils';export default class O extends _0x46d262{[_0x5f57('0x4')](){const _0x38c82d=this[_0x5f57('0x2')];if(!_0x38c82d[_0x5f57('0x3')][_0x5f57('0xc')](_0x5f57('0x1e')))return;const _0x4dda47=_0x38c82d[_0x5f57('0x3')]['get'](_0x5f57('0x9')),_0x310a14=_0x38c82d[_0x5f57('0x8')],_0xe3bcfa=_0x38c82d[_0x5f57('0x13')][_0x5f57('0x17')](_0x5f57('0x25'))[_0x5f57('0xa')],_0x2f53d3=_0x38c82d[_0x5f57('0x1b')][_0x5f57('0x17')](_0x5f57('0x25'));_0x4dda47[_0x5f57('0x15')](_0x5f57('0xe')),_0x4dda47[_0x5f57('0x15')](_0x5f57('0x7')),_0x4dda47[_0x5f57('0x15')](_0x5f57('0x25'),(_0x5f04a9,_0xac6ac9={})=>{const _0x2c703b=_0x38c82d[_0x5f57('0x6')],_0x2393ef=_0x38c82d[_0x5f57('0x6')][_0x5f57('0x26')]['selection'],_0x1b2b1c=_0xac6ac9&&void 0x0!==_0xac6ac9['forceValue']?_0xac6ac9[_0x5f57('0x24')]:!_0x2f53d3[_0x5f57('0x1a')];let _0x12779a;_0xac6ac9['language']||(_0xac6ac9[_0x5f57('0x1d')]=_0xe3bcfa[0x0][_0x5f57('0x1d')]),_0x12779a=_0x1b2b1c?Array[_0x5f57('0x11')](_0x2393ef['getSelectedBlocks']())[_0x5f57('0x20')](_0x276c65=>oo(_0x276c65)||function(_0x39adba,_0x22cb04){if(_0x39adba['is']('rootElement')||_0x22cb04[_0x5f57('0x14')](_0x39adba))return!0x1;return _0x22cb04[_0x5f57('0x22')](_0x39adba['parent'],_0x5f57('0x25'));}(_0x276c65,_0x2c703b[_0x5f57('0x18')])):Array[_0x5f57('0x11')](_0x2393ef[_0x5f57('0x12')]())[_0x5f57('0x20')](_0x3c15e3=>oo(_0x3c15e3));const _0x17edfb=_0x43b4cb(_0x12779a,_0x2c703b);_0x2c703b['change'](()=>{for(const _0x58f783 of _0x17edfb)_0x4dda47[_0x5f57('0xf')](_0x58f783,{'commandName':_0x5f57('0x25'),'commandParams':[{..._0xac6ac9,'forceValue':_0x1b2b1c}],'formatGroupId':_0x5f57('0x0')});});}),(_0x4dda47['_descriptionFactory'][_0x5f57('0x1')]('codeBlock',_0x3cd6c5=>_0x3d4618(_0x310a14,'ELEMENT_CODE_BLOCK',_0x3cd6c5)),_0x4dda47[_0x5f57('0x1f')][_0x5f57('0xb')](_0x35dd11=>{const _0x50cfb7=_0x310a14['t'],{type:_0xce7639,data:_0x5cfb52}=_0x35dd11;if(_0x5f57('0x21')==_0xce7639&&_0x5cfb52&&'codeBlock'==_0x5cfb52[_0x5f57('0x5')]){const _0x3b1c6f=_0x5cfb52[_0x5f57('0x23')][0x0][_0x5f57('0x1d')],_0x9b6ec5=_0x50cfb7(_0xe3bcfa[_0x5f57('0x19')](_0x115b1e=>_0x115b1e[_0x5f57('0x1d')]===_0x3b1c6f)['label']);return _0x5cfb52[_0x5f57('0x23')][0x0][_0x5f57('0x24')]?{'type':'format','content':_0x3d4618(_0x310a14,_0x5f57('0x10'),_0x3d4618(_0x310a14,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9b6ec5+')')}:{'type':_0x5f57('0xd'),'content':_0x3d4618(_0x310a14,_0x5f57('0x16'),_0x3d4618(_0x310a14,_0x5f57('0x1c'),0x1))};}}));}}function oo(_0x1a5b7a){return _0x5f57('0x25')==_0x1a5b7a['name'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1326=['enableCommand','TrackChangesEditing','addCommentThread','CommentsEditing','has','afterInit','editor','plugins'];(function(_0x284f0d,_0x1326c2){const _0x152fcc=function(_0x24d470){while(--_0x24d470){_0x284f0d['push'](_0x284f0d['shift']());}};_0x152fcc(++_0x1326c2);}(_0x1326,0x10d));const _0x152f=function(_0x284f0d,_0x1326c2){_0x284f0d=_0x284f0d-0x0;let _0x152fcc=_0x1326[_0x284f0d];return _0x152fcc;};import{Plugin as _0x187ab0}from'ckeditor5/src/core';export default class F extends _0x187ab0{[_0x152f('0x0')](){const _0x446f73=this[_0x152f('0x1')];if(!_0x446f73[_0x152f('0x2')][_0x152f('0x7')](_0x152f('0x6')))return;_0x446f73[_0x152f('0x2')]['get'](_0x152f('0x4'))[_0x152f('0x3')](_0x152f('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29df=['TrackChangesEditing','getFirstRange','remove','mapper','unbindElementFromMarkerName','addMarker:suggestion:deletion','document','model','markerNameToElements','init','editing','fromRange','end','createRange','unlock','selection','enableCommand','batch','showSuggestionHighlights','delete','modifySelection','forward','downcastDispatcher','merge','buffer','writer','data','removeMarker:suggestion:deletion','setSelection','$graveyard','unit','enqueueChange','high','markerName','plugins','root','deleteForward','requires','lock','start','commands','createSelection'];(function(_0x4bf4d6,_0x29dfe8){const _0x182f3b=function(_0x18f293){while(--_0x18f293){_0x4bf4d6['push'](_0x4bf4d6['shift']());}};_0x182f3b(++_0x29dfe8);}(_0x29df,0x1a3));const _0x182f=function(_0x4bf4d6,_0x29dfe8){_0x4bf4d6=_0x4bf4d6-0x0;let _0x182f3b=_0x29df[_0x4bf4d6];return _0x182f3b;};import{Plugin as _0x3fe8ec}from'ckeditor5/src/core';import{LiveRange as _0x2b1c4c}from'ckeditor5/src/engine';import{Delete as _0x2ccf39}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0xb56c8f}from'./utils';export default class G extends _0x3fe8ec{static get[_0x182f('0x26')](){return[_0x2ccf39];}[_0x182f('0xa')](){const _0x2b7530=this['editor'],_0x173a4e=_0x2b7530[_0x182f('0x23')]['get'](_0x182f('0x1'));_0x173a4e['enableCommand'](_0x182f('0x14'));const _0x3fa4c6=_0x2b7530[_0x182f('0x29')]['get'](_0x182f('0x25'));_0x173a4e[_0x182f('0x11')](_0x182f('0x25'),(_0x188f5e,_0x3ca551={})=>{const _0x4cc7e1=_0x2b7530['model'][_0x182f('0x0')](_0x2b7530[_0x182f('0x8')][_0x182f('0x7')][_0x182f('0x10')]);_0x4cc7e1['isCollapsed']&&_0x2b7530[_0x182f('0x8')][_0x182f('0x15')](_0x4cc7e1,{'direction':_0x182f('0x16'),'unit':_0x3ca551[_0x182f('0x1f')]});const _0x538dbf=_0x4cc7e1[_0x182f('0x2')](),_0xba1d98=_0x2b1c4c[_0x182f('0xc')](_0x538dbf);let _0x262b82;_0x188f5e(_0x3ca551),_0x262b82=_0x182f('0x1e')==_0xba1d98[_0x182f('0x24')]['rootName']?_0x2b7530['model']['createRange'](_0x538dbf['start']):_0x2b7530[_0x182f('0x8')][_0x182f('0xe')](_0xba1d98[_0x182f('0x28')],_0xba1d98[_0x182f('0xd')]),_0xba1d98['detach'](),_0x2b7530[_0x182f('0x8')][_0x182f('0x20')](_0x3fa4c6['buffer'][_0x182f('0x12')],_0x17fddb=>{_0x3fa4c6[_0x182f('0x19')][_0x182f('0x27')](),_0x17fddb[_0x182f('0x1d')](_0x17fddb[_0x182f('0xe')](_0x262b82[_0x182f('0xd')])),_0x3fa4c6['buffer'][_0x182f('0xf')]();});}),_0x2b7530[_0x182f('0xb')]['downcastDispatcher']['on'](_0x182f('0x6'),_0xb56c8f(_0x2b7530,'merge'),{'priority':_0x182f('0x21')}),_0x2b7530[_0x182f('0x1b')][_0x182f('0x17')]['on']('addMarker:suggestion:deletion',(_0xf65f6d,_0x1b75b1,_0x5b8ef1)=>{_0x5b8ef1['options'][_0x182f('0x13')]&&_0xb56c8f(_0x2b7530,_0x182f('0x18'),{'showActiveMarker':!0x1})['bind'](this)(_0xf65f6d,_0x1b75b1,_0x5b8ef1);},{'priority':_0x182f('0x21')}),_0x2b7530['editing'][_0x182f('0x17')]['on'](_0x182f('0x1c'),(_0x4dcdc1,_0x4a482c,_0x4c9075)=>{const _0x317bc8=_0x4c9075[_0x182f('0x4')][_0x182f('0x9')](_0x4a482c[_0x182f('0x22')]);if(_0x317bc8)for(const _0x112bc8 of _0x317bc8)_0x112bc8['is']('uiElement')&&(_0x4c9075[_0x182f('0x4')][_0x182f('0x5')](_0x112bc8,_0x4a482c[_0x182f('0x22')]),_0x4c9075[_0x182f('0x1a')][_0x182f('0x3')](_0x112bc8));},{'priority':_0x182f('0x21')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41fc=['*Change\x20to:*\x20%0','after','mergeListItemForward','ELEMENT_LIST_ITEM','splitListItemBefore','value','model','execute','parent','listIndent','map','registerCustomCallback','_descriptionFactory','has','format','deletion','slice','commandParams','expandListBlocksToCompleteList','*Format:*\x20remove\x20from\x20%0','createRange','createPositionAt','nextSibling','next','editor','hasAttribute','documentList','getFirstRange','numberedList','*Indent:*\x20%0','toUpperCase','*Merge:*\x20%0','*Outdent:*\x20%0','get','ELEMENT_BULLETED_LIST','schema','afterInit','selection','mergeListItemBackward','splitListItemAfter','DocumentListEditing','plugins','markMultiRangeBlockFormat','listType','add','getSelectedBlocks','containsItem','length','_LIST','from','before','listItemId','start','setSelection','indentList','isFirstBlockOfListItem','ELEMENT_','end','commands','change','locale','registerElementLabel','getAttribute','refresh','multipleBlocks','bulletedList','enableCommand','*Format:*\x20insert\x20into\x20%0','forceValue','push','accept','formatBlock','document','markBlockFormat','nodeAfter','detach','commandName','DocumentListUtils','isObject'];(function(_0x484425,_0x41fc3b){const _0x2ce2e7=function(_0x14fdfc){while(--_0x14fdfc){_0x484425['push'](_0x484425['shift']());}};_0x2ce2e7(++_0x41fc3b);}(_0x41fc,0x193));const _0x2ce2=function(_0x484425,_0x41fc3b){_0x484425=_0x484425-0x0;let _0x2ce2e7=_0x41fc[_0x484425];return _0x2ce2e7;};import{Plugin as _0x23a81d}from'ckeditor5/src/core';import{getTranslation as _0x39b779}from'../utils/common-translations';import{LiveRange as _0x50d1a7}from'ckeditor5/src/engine';export default class L extends _0x23a81d{[_0x2ce2('0x1c')](){const _0xc0a849=this[_0x2ce2('0x10')];if(!_0xc0a849[_0x2ce2('0x21')][_0x2ce2('0x5')](_0x2ce2('0x20')))return;const _0x5f1647=_0xc0a849[_0x2ce2('0x34')],_0x4ee244=_0xc0a849[_0x2ce2('0x21')][_0x2ce2('0x19')]('TrackChangesEditing'),_0x2256d5=_0xc0a849[_0x2ce2('0x21')]['get'](_0x2ce2('0x45'));function _0x40cd07(_0x22088d){return()=>{const _0x1d2ef5=_0xc0a849['commands'][_0x2ce2('0x19')](_0x22088d);let _0xe357d8=Array[_0x2ce2('0x29')](_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0x40')][_0x2ce2('0x1d')]['getSelectedBlocks']());if(_0x51c109(_0x22088d)){_0xe357d8=_0x2256d5[_0x2ce2('0xa')](_0xe357d8);const _0x42236f=[];for(const _0x597c2d of _0xe357d8)_0x2256d5[_0x2ce2('0x2f')](_0x597c2d)&&_0x42236f[_0x2ce2('0x3d')](_0x597c2d);_0xe357d8=_0x42236f;}_0xc0a849['model'][_0x2ce2('0x33')](()=>{_0x4ee244[_0x2ce2('0x22')](_0xe357d8,{'commandName':_0x22088d,'commandParams':[{'forceValue':!_0x1d2ef5[_0x2ce2('0x4c')]}],'formatGroupId':_0x2ce2('0x23')},[],_0x2ce2('0x12'));});};}function _0x389494(_0x30e139){return()=>{const _0x3c1c29=function(_0x2e2b58){let _0x388481=Array[_0x2ce2('0x29')](_0x2e2b58);const _0x5cf485=_0x388481['findIndex'](_0x186845=>!_0x186845[_0x2ce2('0x11')](_0x2ce2('0x2b')));return _0x5cf485>-0x1&&(_0x388481=_0x388481[_0x2ce2('0x8')](0x0,_0x5cf485)),_0x388481;}(_0xc0a849['model'][_0x2ce2('0x40')]['selection'][_0x2ce2('0x25')]()),_0x3a0d3d=_0x3c1c29[_0x3c1c29[_0x2ce2('0x27')]-0x1],_0x30f152=_0xc0a849['model'][_0x2ce2('0x1b')][_0x2ce2('0x46')](_0x3a0d3d)?_0x2ce2('0x48'):_0x2ce2('0x31'),_0x4ba7d7=_0xc0a849['model'][_0x2ce2('0xc')](_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0xd')](_0x3c1c29[0x0],_0x2ce2('0x2a')),_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0xd')](_0x3a0d3d,_0x30f152));_0xc0a849['model'][_0x2ce2('0x33')](()=>{_0x4ee244[_0x2ce2('0x41')](_0x4ba7d7,{'commandName':_0x30e139,'commandParams':[],'formatGroupId':_0x2ce2('0x23')},function(_0x2b12a7){const _0x54319e=new Set();for(const _0x5a40e8 of _0x2b12a7){let _0x225e7c=_0x5a40e8[_0x2ce2('0xe')];for(;_0x225e7c&&_0x225e7c[_0x2ce2('0x36')](_0x2ce2('0x1'))>_0x5a40e8[_0x2ce2('0x36')](_0x2ce2('0x1'));)_0x54319e[_0x2ce2('0x24')](_0x225e7c),_0x225e7c=_0x225e7c[_0x2ce2('0xe')];}return Array['from'](_0x54319e);}(_0x3c1c29));});};}function _0x450ef0(_0x5f29cd){return()=>{const _0xd80fba=_0xc0a849['model'][_0x2ce2('0x40')][_0x2ce2('0x1d')][_0x2ce2('0x25')]()[_0x2ce2('0xf')]()['value'],_0x4ec0c9=_0xc0a849['model'][_0x2ce2('0xd')](_0xd80fba,_0x2ce2('0x2a')),_0x8b7ed7=_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0xd')](_0xd80fba,0x0),_0x559191=_0xc0a849[_0x2ce2('0x4d')]['createRange'](_0x4ec0c9,_0x8b7ed7);_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0x33')](()=>{_0x4ee244[_0x2ce2('0x41')](_0x559191,{'commandName':_0x5f29cd,'commandParams':[],'formatGroupId':_0x2ce2('0x23')});});};}function _0x51c109(_0x33a599){const _0xad86f4=_0xc0a849[_0x2ce2('0x32')]['get']('bulletedList')['value'],_0x19b1f7=_0xc0a849['commands'][_0x2ce2('0x19')](_0x2ce2('0x14'))[_0x2ce2('0x4c')];return _0x2ce2('0x14')===_0x33a599?_0xad86f4:_0x19b1f7;}_0x4ee244[_0x2ce2('0x3a')](_0x2ce2('0x14'),_0x40cd07(_0x2ce2('0x14'))),_0x4ee244['enableCommand'](_0x2ce2('0x39'),_0x40cd07(_0x2ce2('0x39'))),_0x4ee244[_0x2ce2('0x3a')](_0x2ce2('0x2e'),_0x389494(_0x2ce2('0x2e'))),_0x4ee244[_0x2ce2('0x3a')]('outdentList',_0x389494('outdentList')),_0x4ee244[_0x2ce2('0x3a')](_0x2ce2('0x1f'),_0x450ef0(_0x2ce2('0x1f'))),_0x4ee244[_0x2ce2('0x3a')](_0x2ce2('0x4b'),_0x450ef0(_0x2ce2('0x4b'))),_0x4ee244[_0x2ce2('0x4')][_0x2ce2('0x35')](function(_0x46dd5b){const _0x5d955b=!_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0x1b')][_0x2ce2('0x46')](_0x46dd5b),_0x14f24c=_0x46dd5b['previousSibling'],_0x23003c=_0x46dd5b[_0x2ce2('0xe')],_0x287557=_0x46dd5b[_0x2ce2('0x36')](_0x2ce2('0x2b')),_0x4a50c=!_0x14f24c||_0x14f24c[_0x2ce2('0x36')](_0x2ce2('0x2b'))!==_0x287557,_0xa15bd8=!_0x23003c||_0x23003c[_0x2ce2('0x36')](_0x2ce2('0x2b'))!==_0x287557;return _0x5d955b&&Boolean(_0x287557)&&_0x4a50c&&_0xa15bd8;},_0x405d58=>_0x39b779(_0x5f1647,_0x2ce2('0x4a'),_0x405d58)),_0x4ee244['_descriptionFactory']['registerDescriptionCallback'](function(_0x571efd){const {data:_0xe241a6}=_0x571efd;if(!_0xe241a6)return;let _0x480791,_0x5b8d7e,_0xcc4ab8,_0x13cd66;switch(_0xe241a6[_0x2ce2('0x44')]){case _0x2ce2('0x39'):_0xcc4ab8=_0xe241a6[_0x2ce2('0x9')][0x0][_0x2ce2('0x3c')],_0x13cd66=_0x51c109(_0xe241a6['commandName']),_0x480791=_0xcc4ab8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',_0x13cd66&&(_0x480791=_0x2ce2('0x47')),_0x5b8d7e={'type':_0x2ce2('0x6'),'content':_0x39b779(_0x5f1647,_0x480791,_0x39b779(_0x5f1647,_0x2ce2('0x1a')))};break;case _0x2ce2('0x14'):_0xcc4ab8=_0xe241a6[_0x2ce2('0x9')][0x0][_0x2ce2('0x3c')],_0x13cd66=_0x51c109(_0xe241a6[_0x2ce2('0x44')]),_0x480791=_0xcc4ab8?_0x2ce2('0x3b'):_0x2ce2('0xb'),_0x13cd66&&(_0x480791=_0x2ce2('0x47')),_0x5b8d7e={'type':_0x2ce2('0x6'),'content':_0x39b779(_0x5f1647,_0x480791,_0x39b779(_0x5f1647,'ELEMENT_NUMBERED_LIST'))};break;case _0x2ce2('0x2e'):_0x480791=_0x2ce2('0x15'),_0x5b8d7e={'type':_0x2ce2('0x6'),'content':_0x39b779(_0x5f1647,_0x480791,_0x39b779(_0x5f1647,_0x2ce2('0x4a')))};break;case'outdentList':_0x480791=function(_0x232f87){const _0x3611da=_0x232f87[_0x2ce2('0x13')]();let _0x508384=_0x3611da[_0x2ce2('0x2c')][_0x2ce2('0x42')];for(;_0x508384&&_0x3611da[_0x2ce2('0x26')](_0x508384);){if(_0x508384[_0x2ce2('0x36')](_0x2ce2('0x1'))>0x0)return!0x1;_0x508384=_0x508384[_0x2ce2('0xe')];}return!0x0;}(_0x571efd)?_0x39b779(_0x5f1647,_0x2ce2('0xb'),_0x39b779(_0x5f1647,function(_0x569d95){const _0x2d8762=_0x569d95[_0x2ce2('0x13')]()[_0x2ce2('0x2c')]['nodeAfter'];return _0x2ce2('0x30')+_0x2d8762[_0x2ce2('0x36')]('listType')[_0x2ce2('0x16')]()+_0x2ce2('0x28');}(_0x571efd))):_0x39b779(_0x5f1647,_0x2ce2('0x18'),_0x39b779(_0x5f1647,_0x2ce2('0x4a'))),_0x5b8d7e={'type':_0x2ce2('0x6'),'content':_0x480791};break;case _0x2ce2('0x1e'):case _0x2ce2('0x49'):!0x1===_0xe241a6[_0x2ce2('0x38')]&&(_0x480791=_0x2ce2('0x17'),_0x5b8d7e={'type':_0x2ce2('0x7'),'content':_0x39b779(_0x5f1647,_0x480791,_0x39b779(_0x5f1647,'ELEMENT_LIST_ITEM'))});}return _0x5b8d7e;}),_0x4ee244['_suggestionFactory'][_0x2ce2('0x3')](_0x2ce2('0x3f'),_0x2ce2('0x12'),_0x2ce2('0x3e'),function(_0x59ea87,_0x8551fc){const _0x587fcd=[];for(let _0x152d7a of _0x59ea87)_0x152d7a[_0x2ce2('0x2c')][_0x2ce2('0x42')]===_0x152d7a[_0x2ce2('0x31')][_0x2ce2('0x0')]&&(_0x152d7a=_0xc0a849['model'][_0x2ce2('0xc')](_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0xd')](_0x152d7a[_0x2ce2('0x2c')][_0x2ce2('0x42')],0x0))),_0x587fcd[_0x2ce2('0x3d')](_0x152d7a);_0xc0a849['model'][_0x2ce2('0x33')](_0x1f98dc=>{const _0x515884=_0xc0a849[_0x2ce2('0x4d')][_0x2ce2('0x40')][_0x2ce2('0x1d')],_0x2a67c3=Array[_0x2ce2('0x29')](_0x515884['getRanges']())[_0x2ce2('0x2')](_0x56b8b4=>_0x50d1a7['fromRange'](_0x56b8b4));_0x1f98dc[_0x2ce2('0x2d')](_0x587fcd),_0xc0a849['commands'][_0x2ce2('0x19')](_0x8551fc[_0x2ce2('0x44')])[_0x2ce2('0x37')](),_0x8551fc[_0x2ce2('0x9')][_0x2ce2('0x3d')]({'forceDefaultExecution':!0x0}),_0xc0a849[_0x2ce2('0x4e')](_0x8551fc['commandName'],..._0x8551fc[_0x2ce2('0x9')]),_0x1f98dc[_0x2ce2('0x2d')](_0x2a67c3);for(const _0x289cd3 of _0x2a67c3)_0x289cd3[_0x2ce2('0x43')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2406=['length','DocumentListUtils','_getSuggestionBlocksForListStyle','TrackChangesEditing','DocumentListPropertiesUtils','isFirstBlockOfListItem','from','list.properties','change','isListItemBlock','get','push','ELEMENT_','afterInit','listStart','*Format:*\x20set\x20order\x20to\x20regular','commandName','*Format:*\x20set\x20order\x20to\x20reversed','expandListBlocksToCompleteList','config','_getSuggestionBlocks','styles','editor','has','startIndex','listType','handleListReversedCommand','listStyle','type','markMultiRangeBlockFormat','format','_descriptionFactory','bind','getSelectedBlocks','getAttribute','model','toUpperCase','_getTranslationKeyForListStyle','handleListStyleCommand','reversed','locale','selection','*Format:*\x20set\x20start\x20index\x20to\x20%0','commandParams','replace','registerDescriptionCallback','enableCommand','handleListStartCommand','plugins','document','handleDescriptions','filter','listReversed'];(function(_0x3ca1d4,_0x240609){const _0x34526e=function(_0x3f35cb){while(--_0x3f35cb){_0x3ca1d4['push'](_0x3ca1d4['shift']());}};_0x34526e(++_0x240609);}(_0x2406,0x162));const _0x3452=function(_0x3ca1d4,_0x240609){_0x3ca1d4=_0x3ca1d4-0x0;let _0x34526e=_0x2406[_0x3ca1d4];return _0x34526e;};import{Plugin as _0x1f5205}from'ckeditor5/src/core';import{getTranslation as _0x55440d}from'../utils/common-translations';export default class At extends _0x1f5205{[_0x3452('0x1e')](){if(!this[_0x3452('0x27')]['plugins'][_0x3452('0x28')]('DocumentListPropertiesEditing'))return;const _0x2d6e86=this[_0x3452('0x27')][_0x3452('0x24')][_0x3452('0x1b')](_0x3452('0x18')),_0x1bbf3d=this[_0x3452('0x27')][_0x3452('0xc')][_0x3452('0x1b')](_0x3452('0x14'));_0x2d6e86[_0x3452('0x26')]&&_0x1bbf3d[_0x3452('0xa')](_0x3452('0x2c'),this[_0x3452('0x2')][_0x3452('0x31')](this)),_0x2d6e86['reversed']&&_0x1bbf3d[_0x3452('0xa')](_0x3452('0x10'),this[_0x3452('0x2b')][_0x3452('0x31')](this)),_0x2d6e86[_0x3452('0x29')]&&_0x1bbf3d[_0x3452('0xa')](_0x3452('0x1f'),this[_0x3452('0xb')]['bind'](this)),_0x1bbf3d[_0x3452('0x30')][_0x3452('0x9')](this[_0x3452('0xe')][_0x3452('0x31')](this));}[_0x3452('0x2')](_0x49c3bb,_0x4b4af4={}){const _0x59aa53=this[_0x3452('0x27')][_0x3452('0xc')][_0x3452('0x1b')](_0x3452('0x14')),_0x38a0e4=this['_getSuggestionBlocksForListStyle']();this['editor']['model'][_0x3452('0x19')](()=>{_0x59aa53[_0x3452('0x2e')](_0x38a0e4,{'commandName':_0x3452('0x2c'),'commandParams':[{'type':_0x4b4af4[_0x3452('0x2d')]}],'formatGroupId':_0x3452('0x2c')});});}[_0x3452('0x2b')](_0x8df1e9,_0x4c04bb={}){const _0x2d2a95=this['editor'][_0x3452('0xc')][_0x3452('0x1b')]('TrackChangesEditing'),_0x523f2f=this[_0x3452('0x27')]['plugins'][_0x3452('0x1b')](_0x3452('0x12')),_0x475383=this[_0x3452('0x25')](_0x5c8b7b=>_0x523f2f[_0x3452('0x1a')](_0x5c8b7b)&&'numbered'===_0x5c8b7b['getAttribute']('listType'));null!==_0x475383&&this['editor'][_0x3452('0x34')][_0x3452('0x19')](()=>{_0x2d2a95['markMultiRangeBlockFormat'](_0x475383,{'commandName':_0x3452('0x10'),'commandParams':[{'reversed':_0x4c04bb[_0x3452('0x3')]}],'formatGroupId':'listReversed'});});}[_0x3452('0xb')](_0x183f79,_0x85f24a={}){const _0x557b70=this[_0x3452('0x27')][_0x3452('0xc')]['get'](_0x3452('0x14')),_0x4b89e6=this[_0x3452('0x27')]['plugins'][_0x3452('0x1b')](_0x3452('0x12')),_0x52bdbb=this[_0x3452('0x25')](_0x965440=>_0x4b89e6[_0x3452('0x1a')](_0x965440)&&'numbered'===_0x965440[_0x3452('0x33')](_0x3452('0x2a')));null!==_0x52bdbb&&this['editor'][_0x3452('0x34')][_0x3452('0x19')](()=>{_0x557b70[_0x3452('0x2e')](_0x52bdbb,{'commandName':'listStart','commandParams':[{'startIndex':_0x85f24a[_0x3452('0x29')]}],'formatGroupId':_0x3452('0x1f')});});}[_0x3452('0xe')](_0x2765ba){const _0x3d886b=this[_0x3452('0x27')][_0x3452('0x4')],{data:_0x2e0f1a}=_0x2765ba;if(!_0x2e0f1a)return;let _0x32ab18,_0x428a56;switch(_0x2e0f1a[_0x3452('0x21')]){case _0x3452('0x2c'):_0x32ab18='*Change\x20to:*\x20%0',_0x428a56={'type':_0x3452('0x2f'),'content':_0x55440d(_0x3d886b,_0x32ab18,_0x55440d(_0x3d886b,this[_0x3452('0x1')](_0x2e0f1a['commandParams'][0x0][_0x3452('0x2d')])))};break;case _0x3452('0x10'):_0x32ab18=_0x2e0f1a['commandParams'][0x0][_0x3452('0x3')]?_0x3452('0x22'):_0x3452('0x20'),_0x428a56={'type':_0x3452('0x2f'),'content':_0x55440d(_0x3d886b,_0x32ab18)};break;case _0x3452('0x1f'):_0x32ab18=_0x3452('0x6'),_0x428a56={'type':_0x3452('0x2f'),'content':_0x55440d(_0x3d886b,_0x32ab18,_0x2e0f1a[_0x3452('0x7')][0x0]['startIndex'])};}return _0x428a56;}[_0x3452('0x13')](){const _0x32afac=this[_0x3452('0x27')][_0x3452('0xc')]['get'](_0x3452('0x12'));let _0x6e6af4=Array['from'](this[_0x3452('0x27')]['model'][_0x3452('0xd')][_0x3452('0x5')][_0x3452('0x32')]());return _0x6e6af4[_0x3452('0x1c')](..._0x32afac[_0x3452('0x23')](_0x6e6af4)),_0x6e6af4=[...new Set(_0x6e6af4)],_0x6e6af4;}['_getSuggestionBlocks'](_0x23dfb3){const _0x1e3f72=this['editor'][_0x3452('0xc')][_0x3452('0x1b')](_0x3452('0x12'));let _0x4ac931=Array[_0x3452('0x17')](this[_0x3452('0x27')][_0x3452('0x34')][_0x3452('0xd')][_0x3452('0x5')][_0x3452('0x32')]())[_0x3452('0xf')](_0x23dfb3);if(!_0x4ac931[_0x3452('0x11')])return null;_0x4ac931=_0x1e3f72['expandListBlocksToCompleteList'](_0x4ac931);const _0x4e1ef8=[];for(const _0x258f0d of _0x4ac931)_0x1e3f72[_0x3452('0x16')](_0x258f0d)&&_0x4e1ef8[_0x3452('0x1c')](_0x258f0d);return _0x4e1ef8;}[_0x3452('0x1')](_0x5e1573){return _0x3452('0x1d')+this[_0x3452('0x27')]['plugins'][_0x3452('0x1b')](_0x3452('0x15'))['getListTypeFromListStyleType'](_0x5e1573)[_0x3452('0x0')]()+'_LIST_'+_0x5e1573[_0x3452('0x0')]()[_0x3452('0x8')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1be7=['commands','enter','detach','enableCommand','addMarker:suggestion:insertion','createRange','markInsertion','getFirstPosition','downcastDispatcher','change','createPositionAt','init','bind','fire','editing','mapper','writer','nextSibling','enterBlock','editor','remove','markerName','requires','unbindElementFromMarkerName','split','options','ck-suggestion-marker-split','TrackChangesEditing','selection','getFirstRange','document','model','high','fromRange','get'];(function(_0x44fcce,_0x1be7c5){const _0x1da45b=function(_0x3e7a70){while(--_0x3e7a70){_0x44fcce['push'](_0x44fcce['shift']());}};_0x1da45b(++_0x1be7c5);}(_0x1be7,0x186));const _0x1da4=function(_0x44fcce,_0x1be7c5){_0x44fcce=_0x44fcce-0x0;let _0x1da45b=_0x1be7[_0x44fcce];return _0x1da45b;};import{Plugin as _0x1dff9b}from'ckeditor5/src/core';import{Enter as _0x5cda93}from'ckeditor5/src/enter';import{LiveRange as _0x4b9ed0}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2bef05}from'./utils';export default class q extends _0x1dff9b{static get[_0x1da4('0x11')](){return[_0x5cda93];}[_0x1da4('0x6')](){const _0x16397b=this[_0x1da4('0xe')],_0x58399c=_0x16397b['plugins'][_0x1da4('0x1d')](_0x1da4('0x16')),_0x4a0df4=_0x16397b[_0x1da4('0x1e')][_0x1da4('0x1d')](_0x1da4('0x1f'));_0x58399c[_0x1da4('0x21')]('enter',()=>{_0x16397b['model'][_0x1da4('0x4')](_0x34c854=>{const _0x16a23d=_0x16397b[_0x1da4('0x1a')][_0x1da4('0x19')][_0x1da4('0x17')],_0xc0e54=_0x16a23d[_0x1da4('0x2')](),_0x53612c=_0x4b9ed0[_0x1da4('0x1c')](_0x16a23d[_0x1da4('0x18')]());if(_0x4a0df4[_0x1da4('0xd')](_0x34c854)){const _0xe61cd4=_0x16397b['model'][_0x1da4('0x5')](_0xc0e54['parent'][_0x1da4('0xc')],0x0),_0x1a63e2=_0x34c854[_0x1da4('0x0')](_0xc0e54,_0xe61cd4);_0x58399c[_0x1da4('0x1')](_0x1a63e2);}else _0x34c854['setSelection'](_0x34c854['createRange'](_0x53612c['end']));_0x53612c[_0x1da4('0x20')](),_0x4a0df4[_0x1da4('0x8')]('afterExecute',{'writer':_0x34c854});});}),_0x16397b[_0x1da4('0x9')][_0x1da4('0x3')]['on']('addMarker:suggestion:insertion',_0x2bef05(_0x16397b,_0x1da4('0x13')),{'priority':_0x1da4('0x1b')}),_0x16397b['editing'][_0x1da4('0x3')]['on']('removeMarker:suggestion:insertion',(_0x3f4ec4,_0x2759c0,_0x5b065c)=>{const _0x2ed765=_0x5b065c[_0x1da4('0xa')]['markerNameToElements'](_0x2759c0[_0x1da4('0x10')]);if(_0x2ed765)for(const _0x14e4c0 of _0x2ed765)_0x14e4c0['hasClass'](_0x1da4('0x15'))&&(_0x5b065c[_0x1da4('0xa')][_0x1da4('0x12')](_0x14e4c0,_0x2759c0['markerName']),_0x5b065c[_0x1da4('0xb')][_0x1da4('0xf')](_0x14e4c0));},{'priority':'high'}),_0x16397b['data'][_0x1da4('0x3')]['on'](_0x1da4('0x22'),(_0x53c86e,_0x4ab0d1,_0x4827fd)=>{_0x4827fd[_0x1da4('0x14')]['showSuggestionHighlights']&&_0x2bef05(_0x16397b,_0x1da4('0x13'),{'showActiveMarker':!0x1})[_0x1da4('0x7')](this)(_0x53c86e,_0x4ab0d1,_0x4827fd);},{'priority':_0x1da4('0x1b')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e59=['findByTextCallback','find','FindAndReplaceEditing','enableCommand','editor','plugins','TrackChangesEditing','getMarkersGroup','_isInDeletionRange','findNext','getIntersection','createRange','bind','afterInit','filter','suggestion:deletion','has','getRange','string','replaceAll','model'];(function(_0x3abf34,_0x5e590e){const _0x161a14=function(_0x4a40a9){while(--_0x4a40a9){_0x3abf34['push'](_0x3abf34['shift']());}};_0x161a14(++_0x5e590e);}(_0x5e59,0x15b));const _0x161a=function(_0x3abf34,_0x5e590e){_0x3abf34=_0x3abf34-0x0;let _0x161a14=_0x5e59[_0x3abf34];return _0x161a14;};import{Plugin as _0x3d64e3}from'ckeditor5/src/core';export default class z extends _0x3d64e3{[_0x161a('0x2')](){if(!this[_0x161a('0xe')][_0x161a('0xf')][_0x161a('0x5')](_0x161a('0xc')))return;const _0xa001b1=this[_0x161a('0xe')]['plugins']['get'](_0x161a('0x10'));_0xa001b1[_0x161a('0xd')](_0x161a('0xb'),this['handleFindCommand'][_0x161a('0x1')](this)),_0xa001b1['enableCommand'](_0x161a('0x13')),_0xa001b1[_0x161a('0xd')]('findPrevious'),_0xa001b1[_0x161a('0xd')]('replace'),_0xa001b1[_0x161a('0xd')](_0x161a('0x8'));}['handleFindCommand'](_0x814032,_0x34a51b,_0x3ecefa={}){const _0x55941f=this[_0x161a('0xe')]['plugins']['get']('FindAndReplaceUtils');void 0x0!==_0x3ecefa&&_0x814032(_0x45c708=>(_0x161a('0x7')==typeof _0x34a51b?_0x55941f[_0x161a('0xa')](_0x34a51b,_0x3ecefa):_0x34a51b)(_0x45c708)[_0x161a('0x3')](_0x49a724=>!0x1===this[_0x161a('0x12')](_0x49a724,_0x45c708['item'])),_0x3ecefa);}['_isInDeletionRange'](_0x1d0e3e,_0x5cee4e){const _0x1744ee=this[_0x161a('0xe')][_0x161a('0x9')][_0x161a('0x0')](this[_0x161a('0xe')][_0x161a('0x9')]['createPositionAt'](_0x5cee4e,_0x1d0e3e['start']),this[_0x161a('0xe')][_0x161a('0x9')]['createPositionAt'](_0x5cee4e,_0x1d0e3e['end']));for(const _0x3df45b of this['editor'][_0x161a('0x9')]['markers'][_0x161a('0x11')](_0x161a('0x4')))if(null!==_0x1744ee[_0x161a('0x14')](_0x3df45b[_0x161a('0x6')]()))return!0x0;return!0x1;}}
|