@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.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-20230818.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-20230818.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230818.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 _0x98b2=['plugins','refresh','_suggestions','_isEnabledBasedOnSelection','model','TrackChangesEditing','acceptSuggestion','get','isEnabled','canEditAt','editor','track-changes-accept-suggestion-not-found'];(function(_0x38b592,_0x98b28d){const _0x21e975=function(_0x69a384){while(--_0x69a384){_0x38b592['push'](_0x38b592['shift']());}};_0x21e975(++_0x98b28d);}(_0x98b2,0x152));const _0x21e9=function(_0x38b592,_0x98b28d){_0x38b592=_0x38b592-0x0;let _0x21e975=_0x98b2[_0x38b592];return _0x21e975;};import{Command as _0x526e76}from'ckeditor5/src/core';import{CKEditorError as _0x3d89da}from'ckeditor5/src/utils';export default class M extends _0x526e76{constructor(_0x440c5c,_0x264068){super(_0x440c5c),this[_0x21e9('0x0')]=_0x264068,this[_0x21e9('0xb')](),this[_0x21e9('0x1')]=!0x1;}[_0x21e9('0xb')](){this[_0x21e9('0x6')]=!0x0;}['execute'](_0x1b9548){const _0x15147c=this[_0x21e9('0x0')][_0x21e9('0x5')](_0x1b9548);if(!_0x15147c)throw new _0x3d89da(_0x21e9('0x9'),this);const _0x1269d8=_0x15147c['getRanges']();this['editor'][_0x21e9('0x2')][_0x21e9('0x7')](_0x1269d8)&&this[_0x21e9('0x8')][_0x21e9('0xa')][_0x21e9('0x5')](_0x21e9('0x3'))[_0x21e9('0x4')](_0x15147c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9780=['isEnabled','_suggestions','editor','getRanges','TrackChangesEditing','model','_isEnabledBasedOnSelection','refresh','execute','plugins','canEditAt','get'];(function(_0x4c7369,_0x978086){const _0x37861e=function(_0x5debff){while(--_0x5debff){_0x4c7369['push'](_0x4c7369['shift']());}};_0x37861e(++_0x978086);}(_0x9780,0x1a5));const _0x3786=function(_0x4c7369,_0x978086){_0x4c7369=_0x4c7369-0x0;let _0x37861e=_0x9780[_0x4c7369];return _0x37861e;};import{Command as _0x5b6cac}from'ckeditor5/src/core';import{CKEditorError as _0x4865d9}from'ckeditor5/src/utils';export default class $ extends _0x5b6cac{constructor(_0x186805,_0x44ea7d){super(_0x186805),this[_0x3786('0x0')]=_0x44ea7d,this[_0x3786('0x6')](),this[_0x3786('0x5')]=!0x1;}[_0x3786('0x6')](){this[_0x3786('0xb')]=!0x0;}[_0x3786('0x7')](_0x551ec7){const _0x11412a=this[_0x3786('0x0')]['get'](_0x551ec7);if(!_0x11412a)throw new _0x4865d9('track-changes-discard-suggestion-not-found',this);const _0x137270=_0x11412a[_0x3786('0x2')]();this[_0x3786('0x1')][_0x3786('0x4')][_0x3786('0x9')](_0x137270)&&this['editor'][_0x3786('0x8')][_0x3786('0xa')](_0x3786('0x3'))['discardSuggestion'](_0x11412a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x283a=['some','canEditAt','isEnabled','editor','getRanges','_suggestions','values','refresh','_command'];(function(_0x3e85f1,_0x283a9c){const _0x4b6f8f=function(_0x5de072){while(--_0x5de072){_0x3e85f1['push'](_0x3e85f1['shift']());}};_0x4b6f8f(++_0x283a9c);}(_0x283a,0x16a));const _0x4b6f=function(_0x3e85f1,_0x283a9c){_0x3e85f1=_0x3e85f1-0x0;let _0x4b6f8f=_0x283a[_0x3e85f1];return _0x4b6f8f;};import{Command as _0x504acd}from'ckeditor5/src/core';import{sortSuggestions as _0x533c08,executeCommandForSuggestions as _0x13c4b4}from'../utils/utils';export default class N extends _0x504acd{constructor(_0x170829,_0x5035ca,_0x1d0638){super(_0x170829),this[_0x4b6f('0x6')]=_0x5035ca,this['_suggestions']=_0x1d0638,this[_0x4b6f('0x5')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x4b6f('0x5')](){const _0x302b7b=Array['from'](this[_0x4b6f('0x3')][_0x4b6f('0x4')]())[_0x4b6f('0x7')](_0xa0129=>_0xa0129['isInContent']);this[_0x4b6f('0x0')]=this[_0x4b6f('0x6')][_0x4b6f('0x0')]&&_0x302b7b;}['execute'](){const _0x759cef=_0x533c08(Array['from'](this['_suggestions'][_0x4b6f('0x4')]()));for(const _0x498b6d of _0x759cef){const _0x17f02c=_0x498b6d[_0x4b6f('0x2')]();if(!this[_0x4b6f('0x1')]['model'][_0x4b6f('0x8')](_0x17f02c))return;}_0x13c4b4(this[_0x4b6f('0x1')]['model'],this[_0x4b6f('0x6')],_0x759cef);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2582=['_command','from','_suggestions','isEnabled','model','canEditAt','editor','getRanges','document','_selectedSuggestions','_isEnabledBasedOnSelection','refresh'];(function(_0x132cd9,_0x25821e){const _0xbffea5=function(_0x3b91a1){while(--_0x3b91a1){_0x132cd9['push'](_0x132cd9['shift']());}};_0xbffea5(++_0x25821e);}(_0x2582,0xb4));const _0xbffe=function(_0x132cd9,_0x25821e){_0x132cd9=_0x132cd9-0x0;let _0xbffea5=_0x2582[_0x132cd9];return _0xbffea5;};import{Command as _0x334216}from'ckeditor5/src/core';import{sortSuggestions as _0xeb20e4,getSelectedSuggestions as _0x38e11c,executeCommandForSuggestions as _0xa2af38}from'../utils/utils';export default class R extends _0x334216{constructor(_0x439c6a,_0x3793a1,_0x1e727f){super(_0x439c6a),this[_0xbffe('0x0')]=_0x3793a1,this[_0xbffe('0x2')]=_0x1e727f,this[_0xbffe('0x9')]=new Set(),this['refresh'](),this[_0xbffe('0xa')]=!0x1;}[_0xbffe('0xb')](){const _0x568f5d=this[_0xbffe('0x6')][_0xbffe('0x4')][_0xbffe('0x8')]['selection'],_0x270098=Array[_0xbffe('0x1')](this[_0xbffe('0x2')]['values']());this[_0xbffe('0x9')]=_0x38e11c(_0x568f5d,_0x270098),this['isEnabled']=this[_0xbffe('0x0')][_0xbffe('0x3')]&&!!this[_0xbffe('0x9')]['size'];}['execute'](){const _0xcf0b57=_0xeb20e4(Array[_0xbffe('0x1')](this['_selectedSuggestions']));for(const _0x38601c of _0xcf0b57){const _0x44b2a9=_0x38601c[_0xbffe('0x7')]();if(!this['editor'][_0xbffe('0x4')][_0xbffe('0x5')](_0x44b2a9))return;}_0xa2af38(this[_0xbffe('0x6')]['model'],this[_0xbffe('0x0')],_0xcf0b57);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3877=['_disableUnsupportedCommands','_enableCommands','value','_isEnabledBasedOnSelection','_enabledCommands','execute','refresh','forceDisabled','affectsData','commands','has','clearForceDisabled','TrackChangesCommand','isEnabled'];(function(_0x2e1c0e,_0x3877a3){const _0x12929a=function(_0x17f2d6){while(--_0x17f2d6){_0x2e1c0e['push'](_0x2e1c0e['shift']());}};_0x12929a(++_0x3877a3);}(_0x3877,0x125));const _0x1292=function(_0x2e1c0e,_0x3877a3){_0x2e1c0e=_0x2e1c0e-0x0;let _0x12929a=_0x3877[_0x2e1c0e];return _0x12929a;};import{Command as _0x27781f}from'ckeditor5/src/core';export default class _ extends _0x27781f{constructor(_0x2098f0,_0xf6177d){super(_0x2098f0),this[_0x1292('0x5')]=_0xf6177d,this[_0x1292('0x3')]=!0x1,this[_0x1292('0x7')](),this[_0x1292('0x4')]=!0x1;}[_0x1292('0x7')](){this[_0x1292('0x0')]=!0x0;}[_0x1292('0x6')](){this['value']=!this[_0x1292('0x3')],this[_0x1292('0x3')]?this[_0x1292('0x1')]():this['_enableCommands']();}[_0x1292('0x1')](){for(const _0x582da2 of this['editor']['commands'][_0x1292('0xa')]())_0x582da2[_0x1292('0x9')]&&!this[_0x1292('0x5')][_0x1292('0xb')](_0x582da2)&&_0x582da2[_0x1292('0x8')](_0x1292('0xd'));}[_0x1292('0x2')](){for(const _0x5d446c of this['editor']['commands'][_0x1292('0xa')]())_0x5d446c['affectsData']&&!this[_0x1292('0x5')][_0x1292('0xb')](_0x5d446c)&&_0x5d446c[_0x1292('0xc')]('TrackChangesCommand');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e18=['contentLanguageDirection','filter','TrackChangesEditing','FORMAT_ALIGN_TO_RIGHT','getSelectedBlocks','justify','editor','model','registerDescriptionCallback','AlignmentEditing','get','markBlockFormat','FORMAT_ALIGN_TO_CENTER','enableCommand','selection','schema','FORMAT_JUSTIFY_TEXT','center','*Format:*\x20%0','FORMAT_ALIGN_TO_LEFT','alignment','plugins','left','ltr','from','right','has','value','locale','checkAttribute','commandName','commandParams','afterInit'];(function(_0x514d6b,_0x1e1899){const _0x1d2536=function(_0x2ed415){while(--_0x2ed415){_0x514d6b['push'](_0x514d6b['shift']());}};_0x1d2536(++_0x1e1899);}(_0x1e18,0x1b9));const _0x1d25=function(_0x514d6b,_0x1e1899){_0x514d6b=_0x514d6b-0x0;let _0x1d2536=_0x1e18[_0x514d6b];return _0x1d2536;};import{Plugin as _0x90637}from'ckeditor5/src/core';import{getTranslation as _0x552ea1}from'../utils/common-translations';export default class x extends _0x90637{[_0x1d25('0x14')](){const _0x395bf9=this[_0x1d25('0x1b')],_0x38fc07=_0x395bf9[_0x1d25('0x10')];if(!_0x395bf9[_0x1d25('0x9')][_0x1d25('0xe')](_0x1d25('0x1e')))return;const _0x574662=_0x395bf9[_0x1d25('0x9')][_0x1d25('0x1f')](_0x1d25('0x17'));_0x574662[_0x1d25('0x1')](_0x1d25('0x8'),(_0x3d0697,_0x3009b6={})=>{let _0x2aa54d=_0x3009b6[_0x1d25('0xf')];_0x3009b6[_0x1d25('0xf')]||(_0x2aa54d=_0x1d25('0xb')===_0x395bf9[_0x1d25('0x10')][_0x1d25('0x15')]?_0x1d25('0xa'):_0x1d25('0xd'));const _0x4d9a75=Array[_0x1d25('0xc')](this[_0x1d25('0x1b')]['model']['document'][_0x1d25('0x2')][_0x1d25('0x19')]())[_0x1d25('0x16')](_0x3a2efc=>function(_0xebeb06,_0x270391,_0xb4ea3e){const _0x560bb5=_0xebeb06['getAttribute'](_0x1d25('0x8'))||null;return _0x270391[_0x1d25('0x11')](_0xebeb06,'alignment')&&_0xb4ea3e!=_0x560bb5;}(_0x3a2efc,this[_0x1d25('0x1b')]['model'][_0x1d25('0x3')],_0x2aa54d));_0x395bf9[_0x1d25('0x1c')]['change'](()=>{for(const _0x48efb5 of _0x4d9a75)_0x574662[_0x1d25('0x20')](_0x48efb5,{'commandName':_0x1d25('0x8'),'commandParams':[{'value':_0x2aa54d}]});});}),_0x574662['_descriptionFactory'][_0x1d25('0x1d')](_0x573ca6=>{const {data:_0x71be3a}=_0x573ca6;if(_0x71be3a&&_0x1d25('0x8')==_0x71be3a[_0x1d25('0x12')]){const _0x368a36=_0x71be3a[_0x1d25('0x13')][0x0]['value'];return{'type':'format','content':_0x552ea1(_0x38fc07,_0x1d25('0x6'),function(_0x330929){switch(_0x330929){case _0x1d25('0xa'):return _0x552ea1(_0x38fc07,_0x1d25('0x7'));case _0x1d25('0xd'):return _0x552ea1(_0x38fc07,_0x1d25('0x18'));case _0x1d25('0x5'):return _0x552ea1(_0x38fc07,_0x1d25('0x0'));case _0x1d25('0x1a'):return _0x552ea1(_0x38fc07,_0x1d25('0x4'));}}(_0x368a36))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5186=['FORMAT_UNDERLINE','SuperscriptEditing','FORMAT_CODE','plugins','commandParams','*Format:*\x20%0','slice','afterInit','superscript','StrikethroughEditing','forceValue','CodeEditing','underline','isCollapsed','markInlineFormat','strikethrough','italic','subscript','has','*Remove\x20format:*\x20%0','getRanges','FORMAT_ITALIC','toLowerCase','model','format','commands','FORMAT_SUBSCRIPT','get','SubscriptEditing','locale','_descriptionFactory','TrackChangesEditing'];(function(_0x3d674e,_0x51860b){const _0x154024=function(_0x116bb6){while(--_0x116bb6){_0x3d674e['push'](_0x3d674e['shift']());}};_0x154024(++_0x51860b);}(_0x5186,0x166));const _0x1540=function(_0x3d674e,_0x51860b){_0x3d674e=_0x3d674e-0x0;let _0x154024=_0x5186[_0x3d674e];return _0x154024;};import{Plugin as _0x5c2f3e}from'ckeditor5/src/core';import{getTranslation as _0x5d1935}from'../utils/common-translations';import{getRangesWithAttribute as _0x4e2285}from'./utils';const Kt=['BoldEditing','ItalicEditing','UnderlineEditing',_0x1540('0x5'),_0x1540('0x3'),_0x1540('0x16'),_0x1540('0x1b')];export default class U extends _0x5c2f3e{[_0x1540('0x1')](){const _0x46659b=this['editor'],_0x1eda1d=_0x46659b[_0x1540('0x11')],_0x15721c=_0x46659b[_0x1540('0x1d')][_0x1540('0x15')](_0x1540('0x19')),_0x36a31f=_0x46659b[_0x1540('0x17')];for(const _0x4dfb5d of Kt){if(!_0x46659b[_0x1540('0x1d')][_0x1540('0xc')](_0x4dfb5d))continue;const _0x903884=_0x4dfb5d[_0x1540('0x0')](0x0,-0x7)[_0x1540('0x10')](),_0x5355b0=_0x46659b[_0x1540('0x13')][_0x1540('0x15')](_0x903884);_0x15721c['enableCommand'](_0x903884,(_0xf64453,_0x498022={})=>{const _0x3fd3df=_0x1eda1d['document']['selection'];if(_0x3fd3df[_0x1540('0x7')])return void _0xf64453(_0x498022);const _0x8779bc=void 0x0!==_0x498022[_0x1540('0x4')]?_0x498022[_0x1540('0x4')]:!_0x5355b0['value'];_0x1eda1d['change'](()=>{const _0x5889f2=Array['from'](_0x3fd3df[_0x1540('0xe')]());for(const _0x513aaf of _0x5889f2){const _0x4252e1=_0x8779bc?[_0x513aaf]:_0x4e2285(_0x903884,_0x513aaf,_0x1eda1d);for(const _0x1f554c of _0x4252e1)_0x15721c[_0x1540('0x8')](_0x1f554c,{'commandName':_0x903884,'commandParams':[{'forceValue':_0x8779bc}]});}});});}function _0x435df8(_0x4a137b,_0x2e5211){_0x15721c[_0x1540('0x18')]['registerDescriptionCallback'](_0x233113=>{const {data:_0x35515b}=_0x233113;if(_0x35515b&&_0x35515b['commandName']===_0x4a137b)return _0x35515b[_0x1540('0x1e')][0x0][_0x1540('0x4')]?{'type':_0x1540('0x12'),'content':_0x5d1935(_0x36a31f,_0x1540('0x1f'),_0x2e5211)}:{'type':'format','content':_0x5d1935(_0x36a31f,_0x1540('0xd'),_0x2e5211)};});}_0x435df8('bold',_0x5d1935(_0x36a31f,'FORMAT_BOLD')),_0x435df8(_0x1540('0xa'),_0x5d1935(_0x36a31f,_0x1540('0xf'))),_0x435df8(_0x1540('0x6'),_0x5d1935(_0x36a31f,_0x1540('0x1a'))),_0x435df8('code',_0x5d1935(_0x36a31f,_0x1540('0x1c'))),_0x435df8(_0x1540('0x9'),_0x5d1935(_0x36a31f,'FORMAT_STRIKETHROUGH')),_0x435df8(_0x1540('0xb'),_0x5d1935(_0x36a31f,_0x1540('0x14'))),_0x435df8(_0x1540('0x2'),_0x5d1935(_0x36a31f,'FORMAT_SUPERSCRIPT'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a5e=['from','getSelectedBlocks','checkChild','schema','document','change','editor','commands','registerDescriptionCallback','forceValue','blockQuote','format','afterInit','$root','*Remove\x20format:*\x20%0','enableCommand','model','ELEMENT_BLOCK_QUOTE','has','BlockQuoteEditing','_descriptionFactory','get','filter','parent','name','*Format:*\x20%0','plugins'];(function(_0x2de4fa,_0x4a5e21){const _0x7ee739=function(_0x28764c){while(--_0x28764c){_0x2de4fa['push'](_0x2de4fa['shift']());}};_0x7ee739(++_0x4a5e21);}(_0x4a5e,0x124));const _0x7ee7=function(_0x2de4fa,_0x4a5e21){_0x2de4fa=_0x2de4fa-0x0;let _0x7ee739=_0x4a5e[_0x2de4fa];return _0x7ee739;};import{Plugin as _0xb466e0}from'ckeditor5/src/core';import{getTranslation as _0x314a63}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xcdc27}from'../utils/utils';export default class j extends _0xb466e0{[_0x7ee7('0x11')](){const _0xcd2e79=this['editor'],_0x24edbe=_0xcd2e79['locale'];if(!_0xcd2e79[_0x7ee7('0x4')][_0x7ee7('0x17')](_0x7ee7('0x18')))return;const _0x37a996=_0xcd2e79['plugins'][_0x7ee7('0x1a')]('TrackChangesEditing'),_0x34d51d=this['editor'][_0x7ee7('0xc')][_0x7ee7('0x1a')](_0x7ee7('0xf'));_0x37a996[_0x7ee7('0x14')]('blockQuote',(_0x380321,_0x30c514={})=>{const _0x50fb24=this[_0x7ee7('0xb')]['model'][_0x7ee7('0x9')]['selection'],_0x45c04b=_0x30c514&&void 0x0!==_0x30c514[_0x7ee7('0xe')]?_0x30c514[_0x7ee7('0xe')]:!_0x34d51d['value'];let _0x358a07=[];if(_0x45c04b){const _0x15b7d5=Array[_0x7ee7('0x5')](_0x50fb24['getSelectedBlocks']())[_0x7ee7('0x0')](_0x3ea9b0=>Xt(_0x3ea9b0)||function(_0x1b5a9f,_0x191ff2){const _0x5649a3=_0x191ff2[_0x7ee7('0x7')](_0x1b5a9f['parent'],_0x7ee7('0xf')),_0x167f93=_0x191ff2[_0x7ee7('0x7')]([_0x7ee7('0x12'),_0x7ee7('0xf')],_0x1b5a9f);return _0x5649a3&&_0x167f93;}(_0x3ea9b0,this[_0x7ee7('0xb')]['model'][_0x7ee7('0x8')]));_0x358a07=_0xcdc27(_0x15b7d5,_0xcd2e79['model']);}else{const _0x3ffcc6=Array[_0x7ee7('0x5')](_0x50fb24[_0x7ee7('0x6')]())['filter'](_0x90a1a4=>Xt(_0x90a1a4));_0x358a07=_0xcdc27(_0x3ffcc6,_0xcd2e79['model']);}_0xcd2e79[_0x7ee7('0x15')][_0x7ee7('0xa')](()=>{for(const _0x25d6f6 of _0x358a07)_0x37a996['markBlockFormat'](_0x25d6f6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x45c04b}]});});}),_0x37a996[_0x7ee7('0x19')][_0x7ee7('0xd')](_0x2f7b18=>{const {data:_0x32de89}=_0x2f7b18;if(_0x32de89&&_0x7ee7('0xf')==_0x32de89['commandName']){const _0x3035bb=_0x314a63(_0x24edbe,_0x7ee7('0x16'));return _0x32de89['commandParams'][0x0][_0x7ee7('0xe')]?{'type':'format','content':_0x314a63(_0x24edbe,_0x7ee7('0x3'),_0x3035bb)}:{'type':_0x7ee7('0x10'),'content':_0x314a63(_0x24edbe,_0x7ee7('0x13'),_0x3035bb)};}});}}function Xt(_0x23d972){return _0x7ee7('0xf')==_0x23d972[_0x7ee7('0x1')][_0x7ee7('0x2')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe5a8=['get','afterInit','plugins','TrackChangesEditing','editor','ckbox'];(function(_0x365dd1,_0xe5a879){const _0x1e1c07=function(_0x30847e){while(--_0x30847e){_0x365dd1['push'](_0x365dd1['shift']());}};_0x1e1c07(++_0xe5a879);}(_0xe5a8,0x148));const _0x1e1c=function(_0x365dd1,_0xe5a879){_0x365dd1=_0x365dd1-0x0;let _0x1e1c07=_0xe5a8[_0x365dd1];return _0x1e1c07;};import{Plugin as _0x360be7}from'ckeditor5/src/core';export default class E extends _0x360be7{[_0x1e1c('0x3')](){const _0x501a95=this[_0x1e1c('0x0')];_0x501a95['commands'][_0x1e1c('0x2')](_0x1e1c('0x1'))&&_0x501a95[_0x1e1c('0x4')]['get'](_0x1e1c('0x5'))['enableCommand'](_0x1e1c('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f1c=['commandParams','value','TrackChangesEditing','registerElementLabel','commandName','*Remove\x20format:*\x20%0','getSelectedBlocks','name','forceValue','blockName','change','ELEMENT_CODE_BLOCK','parent','format','locale','afterInit','enableCommand','registerDescriptionCallback','plugins','outdentCodeBlock','model','filter','markBlockFormat','language','_descriptionFactory','config','languages','editor','codeBlock','*Format:*\x20%0','checkChild','selection','isLimit','find','get','indentCodeBlock','CodeBlock','label'];(function(_0x524a2d,_0x3f1c62){const _0x1ff272=function(_0x17db36){while(--_0x17db36){_0x524a2d['push'](_0x524a2d['shift']());}};_0x1ff272(++_0x3f1c62);}(_0x3f1c,0x1be));const _0x1ff2=function(_0x524a2d,_0x3f1c62){_0x524a2d=_0x524a2d-0x0;let _0x1ff272=_0x3f1c[_0x524a2d];return _0x1ff272;};import{Plugin as _0x2a6f30}from'ckeditor5/src/core';import{getTranslation as _0x3d052b}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xe6422f}from'../utils/utils';export default class O extends _0x2a6f30{[_0x1ff2('0x19')](){const _0x206ec2=this[_0x1ff2('0x25')];if(!_0x206ec2['plugins']['has'](_0x1ff2('0x8')))return;const _0x1c8d0b=_0x206ec2[_0x1ff2('0x1c')][_0x1ff2('0x6')](_0x1ff2('0xc')),_0x57d981=_0x206ec2[_0x1ff2('0x18')],_0x571770=_0x206ec2[_0x1ff2('0x23')][_0x1ff2('0x6')](_0x1ff2('0x0'))[_0x1ff2('0x24')],_0x1728d1=_0x206ec2['commands'][_0x1ff2('0x6')]('codeBlock');_0x1c8d0b[_0x1ff2('0x1a')](_0x1ff2('0x7')),_0x1c8d0b[_0x1ff2('0x1a')](_0x1ff2('0x1d')),_0x1c8d0b['enableCommand'](_0x1ff2('0x0'),(_0x528d2b,_0xb2e69a={})=>{const _0x3f9934=_0x206ec2[_0x1ff2('0x1e')],_0x3d54ea=_0x206ec2['model']['document'][_0x1ff2('0x3')],_0x2c8bae=_0xb2e69a&&void 0x0!==_0xb2e69a[_0x1ff2('0x12')]?_0xb2e69a['forceValue']:!_0x1728d1[_0x1ff2('0xb')];let _0x5358b9;_0xb2e69a[_0x1ff2('0x21')]||(_0xb2e69a['language']=_0x571770[0x0][_0x1ff2('0x21')]),_0x5358b9=_0x2c8bae?Array['from'](_0x3d54ea[_0x1ff2('0x10')]())[_0x1ff2('0x1f')](_0x227a30=>oo(_0x227a30)||function(_0x4fd848,_0x2d2ec3){if(_0x4fd848['is']('rootElement')||_0x2d2ec3[_0x1ff2('0x4')](_0x4fd848))return!0x1;return _0x2d2ec3[_0x1ff2('0x2')](_0x4fd848[_0x1ff2('0x16')],_0x1ff2('0x0'));}(_0x227a30,_0x3f9934['schema'])):Array['from'](_0x3d54ea[_0x1ff2('0x10')]())[_0x1ff2('0x1f')](_0x1a9ff0=>oo(_0x1a9ff0));const _0x4839c7=_0xe6422f(_0x5358b9,_0x3f9934);_0x3f9934[_0x1ff2('0x14')](()=>{for(const _0x36ab31 of _0x4839c7)_0x1c8d0b[_0x1ff2('0x20')](_0x36ab31,{'commandName':_0x1ff2('0x0'),'commandParams':[{..._0xb2e69a,'forceValue':_0x2c8bae}],'formatGroupId':_0x1ff2('0x13')});});}),(_0x1c8d0b[_0x1ff2('0x22')][_0x1ff2('0xd')](_0x1ff2('0x0'),_0x194f53=>_0x3d052b(_0x57d981,'ELEMENT_CODE_BLOCK',_0x194f53)),_0x1c8d0b[_0x1ff2('0x22')][_0x1ff2('0x1b')](_0x198164=>{const _0x346473=_0x57d981['t'],{type:_0xa1de10,data:_0x271c45}=_0x198164;if('formatBlock'==_0xa1de10&&_0x271c45&&'codeBlock'==_0x271c45[_0x1ff2('0xe')]){const _0x26f959=_0x271c45[_0x1ff2('0xa')][0x0][_0x1ff2('0x21')],_0x4e08bc=_0x346473(_0x571770[_0x1ff2('0x5')](_0x1bf1fa=>_0x1bf1fa[_0x1ff2('0x21')]===_0x26f959)[_0x1ff2('0x9')]);return _0x271c45[_0x1ff2('0xa')][0x0][_0x1ff2('0x12')]?{'type':_0x1ff2('0x17'),'content':_0x3d052b(_0x57d981,_0x1ff2('0x1'),_0x3d052b(_0x57d981,_0x1ff2('0x15'),0x1)+'\x20('+_0x4e08bc+')')}:{'type':_0x1ff2('0x17'),'content':_0x3d052b(_0x57d981,_0x1ff2('0xf'),_0x3d052b(_0x57d981,_0x1ff2('0x15'),0x1))};}}));}}function oo(_0x145b11){return _0x1ff2('0x0')==_0x145b11[_0x1ff2('0x11')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5017=['CommentsEditing','addCommentThread','get','editor','has','TrackChangesEditing','plugins'];(function(_0x1efffb,_0x5017ef){const _0x4c5059=function(_0x24f64f){while(--_0x24f64f){_0x1efffb['push'](_0x1efffb['shift']());}};_0x4c5059(++_0x5017ef);}(_0x5017,0xe6));const _0x4c50=function(_0x1efffb,_0x5017ef){_0x1efffb=_0x1efffb-0x0;let _0x4c5059=_0x5017[_0x1efffb];return _0x4c5059;};import{Plugin as _0x203e53}from'ckeditor5/src/core';export default class F extends _0x203e53{['afterInit'](){const _0x3f398f=this[_0x4c50('0x4')];if(!_0x3f398f[_0x4c50('0x0')][_0x4c50('0x5')](_0x4c50('0x1')))return;_0x3f398f[_0x4c50('0x0')][_0x4c50('0x3')](_0x4c50('0x6'))['enableCommand'](_0x4c50('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc280=['forward','plugins','selection','enableCommand','mapper','getFirstRange','data','remove','document','options','unit','start','lock','high','end','buffer','model','createSelection','requires','enqueueChange','$graveyard','showSuggestionHighlights','rootName','commands','markerNameToElements','downcastDispatcher','TrackChangesEditing','unlock','get','deleteForward','createRange','batch','addMarker:suggestion:deletion','modifySelection'];(function(_0x16fefc,_0xc28031){const _0x3dc68b=function(_0x1c3e79){while(--_0x1c3e79){_0x16fefc['push'](_0x16fefc['shift']());}};_0x3dc68b(++_0xc28031);}(_0xc280,0xc4));const _0x3dc6=function(_0x16fefc,_0xc28031){_0x16fefc=_0x16fefc-0x0;let _0x3dc68b=_0xc280[_0x16fefc];return _0x3dc68b;};import{Plugin as _0x1e9754}from'ckeditor5/src/core';import{LiveRange as _0x540299}from'ckeditor5/src/engine';import{Delete as _0x541458}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0xc1920d}from'./utils';export default class G extends _0x1e9754{static get[_0x3dc6('0x1a')](){return[_0x541458];}['init'](){const _0x1f6cd9=this['editor'],_0x207ec1=_0x1f6cd9[_0x3dc6('0x9')]['get'](_0x3dc6('0x0'));_0x207ec1['enableCommand']('delete');const _0x3fe945=_0x1f6cd9[_0x3dc6('0x1f')][_0x3dc6('0x2')]('deleteForward');_0x207ec1[_0x3dc6('0xb')](_0x3dc6('0x3'),(_0xd18fa7,_0xb07638={})=>{const _0x2e6ce9=_0x1f6cd9['model'][_0x3dc6('0x19')](_0x1f6cd9[_0x3dc6('0x18')][_0x3dc6('0x10')][_0x3dc6('0xa')]);_0x2e6ce9['isCollapsed']&&_0x1f6cd9['model'][_0x3dc6('0x7')](_0x2e6ce9,{'direction':_0x3dc6('0x8'),'unit':_0xb07638[_0x3dc6('0x12')]});const _0x93633b=_0x2e6ce9[_0x3dc6('0xd')](),_0x2107f4=_0x540299['fromRange'](_0x93633b);let _0x4f5674;_0xd18fa7(_0xb07638),_0x4f5674=_0x3dc6('0x1c')==_0x2107f4['root'][_0x3dc6('0x1e')]?_0x1f6cd9[_0x3dc6('0x18')][_0x3dc6('0x4')](_0x93633b[_0x3dc6('0x13')]):_0x1f6cd9[_0x3dc6('0x18')][_0x3dc6('0x4')](_0x2107f4['start'],_0x2107f4[_0x3dc6('0x16')]),_0x2107f4['detach'](),_0x1f6cd9[_0x3dc6('0x18')][_0x3dc6('0x1b')](_0x3fe945[_0x3dc6('0x17')][_0x3dc6('0x5')],_0x1e48c7=>{_0x3fe945[_0x3dc6('0x17')][_0x3dc6('0x14')](),_0x1e48c7['setSelection'](_0x1e48c7[_0x3dc6('0x4')](_0x4f5674[_0x3dc6('0x16')])),_0x3fe945['buffer'][_0x3dc6('0x1')]();});}),_0x1f6cd9['editing'][_0x3dc6('0x21')]['on']('addMarker:suggestion:deletion',_0xc1920d(_0x1f6cd9,'merge'),{'priority':_0x3dc6('0x15')}),_0x1f6cd9[_0x3dc6('0xe')][_0x3dc6('0x21')]['on'](_0x3dc6('0x6'),(_0x131ca9,_0x5312ca,_0x1ad6c7)=>{_0x1ad6c7[_0x3dc6('0x11')][_0x3dc6('0x1d')]&&_0xc1920d(_0x1f6cd9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x131ca9,_0x5312ca,_0x1ad6c7);},{'priority':'high'}),_0x1f6cd9['editing'][_0x3dc6('0x21')]['on']('removeMarker:suggestion:deletion',(_0x54c3d5,_0x4b9d32,_0x5a37ef)=>{const _0x350a16=_0x5a37ef[_0x3dc6('0xc')][_0x3dc6('0x20')](_0x4b9d32['markerName']);if(_0x350a16)for(const _0x376795 of _0x350a16)_0x376795['is']('uiElement')&&(_0x5a37ef[_0x3dc6('0xc')]['unbindElementFromMarkerName'](_0x376795,_0x4b9d32['markerName']),_0x5a37ef['writer'][_0x3dc6('0xf')](_0x376795));},{'priority':_0x3dc6('0x15')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb7c5=['has','_suggestionFactory','numberedList','parent','listType','forceValue','toUpperCase','DocumentListEditing','value','before','commandName','*Merge:*\x20%0','editor','refresh','ELEMENT_NUMBERED_LIST','plugins','TrackChangesEditing','*Change\x20to:*\x20%0','ELEMENT_','hasAttribute','detach','nextSibling','model','indentList','createPositionAt','start','commands','markBlockFormat','registerDescriptionCallback','splitListItemAfter','splitListItemBefore','afterInit','fromRange','documentList','change','getFirstRange','listIndent','createRange','previousSibling','findIndex','ELEMENT_BULLETED_LIST','outdentList','nodeAfter','*Outdent:*\x20%0','*Format:*\x20remove\x20from\x20%0','mergeListItemForward','from','getAttribute','get','getSelectedBlocks','registerElementLabel','bulletedList','isObject','multipleBlocks','enableCommand','push','listItemId','commandParams','_descriptionFactory','setSelection','accept','_LIST','next','selection','*Format:*\x20insert\x20into\x20%0','after','schema','isFirstBlockOfListItem','mergeListItemBackward','end','format','document','markMultiRangeBlockFormat','expandListBlocksToCompleteList','length','registerCustomCallback','ELEMENT_LIST_ITEM','execute'];(function(_0x5e527c,_0xb7c5d){const _0x5ed099=function(_0x3cb55f){while(--_0x3cb55f){_0x5e527c['push'](_0x5e527c['shift']());}};_0x5ed099(++_0xb7c5d);}(_0xb7c5,0x1f0));const _0x5ed0=function(_0x5e527c,_0xb7c5d){_0x5e527c=_0x5e527c-0x0;let _0x5ed099=_0xb7c5[_0x5e527c];return _0x5ed099;};import{Plugin as _0x35395d}from'ckeditor5/src/core';import{getTranslation as _0x196651}from'../utils/common-translations';import{LiveRange as _0x102171}from'ckeditor5/src/engine';export default class L extends _0x35395d{[_0x5ed0('0x3')](){const _0x4bd0cf=this[_0x5ed0('0x3e')];if(!_0x4bd0cf[_0x5ed0('0x41')][_0x5ed0('0x32')](_0x5ed0('0x39')))return;const _0x9118b2=_0x4bd0cf['locale'],_0x3500b7=_0x4bd0cf[_0x5ed0('0x41')]['get'](_0x5ed0('0x42')),_0x45fb41=_0x4bd0cf['plugins'][_0x5ed0('0x14')]('DocumentListUtils');function _0x4e696d(_0x194b84){return()=>{const _0x46e4c5=_0x4bd0cf['commands'][_0x5ed0('0x14')](_0x194b84);let _0x119ba3=Array[_0x5ed0('0x12')](_0x4bd0cf['model'][_0x5ed0('0x2b')][_0x5ed0('0x23')][_0x5ed0('0x15')]());if(_0x1321ce(_0x194b84)){_0x119ba3=_0x45fb41[_0x5ed0('0x2d')](_0x119ba3);const _0x3d068d=[];for(const _0x2c6495 of _0x119ba3)_0x45fb41[_0x5ed0('0x27')](_0x2c6495)&&_0x3d068d[_0x5ed0('0x1b')](_0x2c6495);_0x119ba3=_0x3d068d;}_0x4bd0cf['model'][_0x5ed0('0x6')](()=>{_0x3500b7[_0x5ed0('0x2c')](_0x119ba3,{'commandName':_0x194b84,'commandParams':[{'forceValue':!_0x46e4c5[_0x5ed0('0x3a')]}],'formatGroupId':_0x5ed0('0x36')},[],_0x5ed0('0x5'));});};}function _0x1e2614(_0x22ba93){return()=>{const _0x1c1288=function(_0x300cd9){let _0x1307d2=Array[_0x5ed0('0x12')](_0x300cd9);const _0x2b03cd=_0x1307d2[_0x5ed0('0xb')](_0x2588d0=>!_0x2588d0[_0x5ed0('0x45')](_0x5ed0('0x1c')));return _0x2b03cd>-0x1&&(_0x1307d2=_0x1307d2['slice'](0x0,_0x2b03cd)),_0x1307d2;}(_0x4bd0cf['model'][_0x5ed0('0x2b')][_0x5ed0('0x23')][_0x5ed0('0x15')]()),_0x3bad6a=_0x1c1288[_0x1c1288[_0x5ed0('0x2e')]-0x1],_0x5da569=_0x4bd0cf['model'][_0x5ed0('0x26')][_0x5ed0('0x18')](_0x3bad6a)?_0x5ed0('0x25'):_0x5ed0('0x29'),_0x557e24=_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x9')](_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x4a')](_0x1c1288[0x0],_0x5ed0('0x3b')),_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x4a')](_0x3bad6a,_0x5da569));_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x6')](()=>{_0x3500b7[_0x5ed0('0x4d')](_0x557e24,{'commandName':_0x22ba93,'commandParams':[],'formatGroupId':_0x5ed0('0x36')},function(_0x20a4b6){const _0x2ea399=new Set();for(const _0x553292 of _0x20a4b6){let _0xf965a7=_0x553292[_0x5ed0('0x47')];for(;_0xf965a7&&_0xf965a7[_0x5ed0('0x13')](_0x5ed0('0x8'))>_0x553292['getAttribute'](_0x5ed0('0x8'));)_0x2ea399['add'](_0xf965a7),_0xf965a7=_0xf965a7[_0x5ed0('0x47')];}return Array[_0x5ed0('0x12')](_0x2ea399);}(_0x1c1288));});};}function _0x4896c9(_0x2c43a3){return()=>{const _0x5658bf=_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x2b')]['selection']['getSelectedBlocks']()[_0x5ed0('0x22')]()[_0x5ed0('0x3a')],_0x271d26=_0x4bd0cf['model'][_0x5ed0('0x4a')](_0x5658bf,_0x5ed0('0x3b')),_0x5af871=_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x4a')](_0x5658bf,0x0),_0x30a0a3=_0x4bd0cf[_0x5ed0('0x48')]['createRange'](_0x271d26,_0x5af871);_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x6')](()=>{_0x3500b7[_0x5ed0('0x4d')](_0x30a0a3,{'commandName':_0x2c43a3,'commandParams':[],'formatGroupId':'listType'});});};}function _0x1321ce(_0x31e8fc){const _0x580a1c=_0x4bd0cf[_0x5ed0('0x4c')]['get'](_0x5ed0('0x17'))[_0x5ed0('0x3a')],_0x5d4659=_0x4bd0cf[_0x5ed0('0x4c')]['get'](_0x5ed0('0x34'))[_0x5ed0('0x3a')];return _0x5ed0('0x34')===_0x31e8fc?_0x580a1c:_0x5d4659;}_0x3500b7[_0x5ed0('0x1a')](_0x5ed0('0x34'),_0x4e696d('numberedList')),_0x3500b7[_0x5ed0('0x1a')](_0x5ed0('0x17'),_0x4e696d('bulletedList')),_0x3500b7[_0x5ed0('0x1a')](_0x5ed0('0x49'),_0x1e2614(_0x5ed0('0x49'))),_0x3500b7[_0x5ed0('0x1a')](_0x5ed0('0xd'),_0x1e2614(_0x5ed0('0xd'))),_0x3500b7['enableCommand'](_0x5ed0('0x1'),_0x4896c9(_0x5ed0('0x1'))),_0x3500b7[_0x5ed0('0x1a')](_0x5ed0('0x2'),_0x4896c9(_0x5ed0('0x2'))),_0x3500b7[_0x5ed0('0x1e')][_0x5ed0('0x16')](function(_0x2e5144){const _0x340b46=!_0x4bd0cf['model'][_0x5ed0('0x26')][_0x5ed0('0x18')](_0x2e5144),_0x35c12d=_0x2e5144[_0x5ed0('0xa')],_0x17d2ae=_0x2e5144[_0x5ed0('0x47')],_0x5fd50b=_0x2e5144[_0x5ed0('0x13')](_0x5ed0('0x1c')),_0x111a1c=!_0x35c12d||_0x35c12d['getAttribute'](_0x5ed0('0x1c'))!==_0x5fd50b,_0x1a71c1=!_0x17d2ae||_0x17d2ae['getAttribute'](_0x5ed0('0x1c'))!==_0x5fd50b;return _0x340b46&&Boolean(_0x5fd50b)&&_0x111a1c&&_0x1a71c1;},_0x4841a9=>_0x196651(_0x9118b2,_0x5ed0('0x30'),_0x4841a9)),_0x3500b7['_descriptionFactory'][_0x5ed0('0x0')](function(_0x18b464){const {data:_0xd4e10f}=_0x18b464;if(!_0xd4e10f)return;let _0x2aaefd,_0x13707d,_0x1b90bf,_0x3c33f4;switch(_0xd4e10f[_0x5ed0('0x3c')]){case _0x5ed0('0x17'):_0x1b90bf=_0xd4e10f[_0x5ed0('0x1d')][0x0][_0x5ed0('0x37')],_0x3c33f4=_0x1321ce(_0xd4e10f['commandName']),_0x2aaefd=_0x1b90bf?_0x5ed0('0x24'):_0x5ed0('0x10'),_0x3c33f4&&(_0x2aaefd=_0x5ed0('0x43')),_0x13707d={'type':_0x5ed0('0x2a'),'content':_0x196651(_0x9118b2,_0x2aaefd,_0x196651(_0x9118b2,_0x5ed0('0xc')))};break;case _0x5ed0('0x34'):_0x1b90bf=_0xd4e10f[_0x5ed0('0x1d')][0x0][_0x5ed0('0x37')],_0x3c33f4=_0x1321ce(_0xd4e10f[_0x5ed0('0x3c')]),_0x2aaefd=_0x1b90bf?_0x5ed0('0x24'):_0x5ed0('0x10'),_0x3c33f4&&(_0x2aaefd=_0x5ed0('0x43')),_0x13707d={'type':_0x5ed0('0x2a'),'content':_0x196651(_0x9118b2,_0x2aaefd,_0x196651(_0x9118b2,_0x5ed0('0x40')))};break;case _0x5ed0('0x49'):_0x2aaefd='*Indent:*\x20%0',_0x13707d={'type':'format','content':_0x196651(_0x9118b2,_0x2aaefd,_0x196651(_0x9118b2,_0x5ed0('0x30')))};break;case _0x5ed0('0xd'):_0x2aaefd=function(_0x283556){const _0x51ea9b=_0x283556[_0x5ed0('0x7')]();let _0x359d35=_0x51ea9b[_0x5ed0('0x4b')][_0x5ed0('0xe')];for(;_0x359d35&&_0x51ea9b['containsItem'](_0x359d35);){if(_0x359d35[_0x5ed0('0x13')](_0x5ed0('0x8'))>0x0)return!0x1;_0x359d35=_0x359d35[_0x5ed0('0x47')];}return!0x0;}(_0x18b464)?_0x196651(_0x9118b2,_0x5ed0('0x10'),_0x196651(_0x9118b2,function(_0x8314bd){const _0x4023cf=_0x8314bd[_0x5ed0('0x7')]()['start'][_0x5ed0('0xe')];return _0x5ed0('0x44')+_0x4023cf[_0x5ed0('0x13')](_0x5ed0('0x36'))[_0x5ed0('0x38')]()+_0x5ed0('0x21');}(_0x18b464))):_0x196651(_0x9118b2,_0x5ed0('0xf'),_0x196651(_0x9118b2,_0x5ed0('0x30'))),_0x13707d={'type':_0x5ed0('0x2a'),'content':_0x2aaefd};break;case _0x5ed0('0x28'):case _0x5ed0('0x11'):!0x1===_0xd4e10f[_0x5ed0('0x19')]&&(_0x2aaefd=_0x5ed0('0x3d'),_0x13707d={'type':'deletion','content':_0x196651(_0x9118b2,_0x2aaefd,_0x196651(_0x9118b2,_0x5ed0('0x30')))});}return _0x13707d;}),_0x3500b7[_0x5ed0('0x33')][_0x5ed0('0x2f')]('formatBlock',_0x5ed0('0x5'),_0x5ed0('0x20'),function(_0x2d72b5,_0x1789aa){const _0x4fdaf1=[];for(let _0x508dd0 of _0x2d72b5)_0x508dd0[_0x5ed0('0x4b')]['nodeAfter']===_0x508dd0[_0x5ed0('0x29')][_0x5ed0('0x35')]&&(_0x508dd0=_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x9')](_0x4bd0cf[_0x5ed0('0x48')]['createPositionAt'](_0x508dd0[_0x5ed0('0x4b')]['nodeAfter'],0x0))),_0x4fdaf1['push'](_0x508dd0);_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x6')](_0x17e58b=>{const _0x104bdb=_0x4bd0cf[_0x5ed0('0x48')][_0x5ed0('0x2b')]['selection'],_0x5e4f18=Array[_0x5ed0('0x12')](_0x104bdb['getRanges']())['map'](_0x331ba4=>_0x102171[_0x5ed0('0x4')](_0x331ba4));_0x17e58b[_0x5ed0('0x1f')](_0x4fdaf1),_0x4bd0cf[_0x5ed0('0x4c')][_0x5ed0('0x14')](_0x1789aa[_0x5ed0('0x3c')])[_0x5ed0('0x3f')](),_0x1789aa[_0x5ed0('0x1d')]['push']({'forceDefaultExecution':!0x0}),_0x4bd0cf[_0x5ed0('0x31')](_0x1789aa['commandName'],..._0x1789aa['commandParams']),_0x17e58b[_0x5ed0('0x1f')](_0x5e4f18);for(const _0x281816 of _0x5e4f18)_0x281816[_0x5ed0('0x46')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9ef6=['DocumentListPropertiesEditing','*Change\x20to:*\x20%0','commandParams','DocumentListUtils','markMultiRangeBlockFormat','_LIST_','listReversed','getAttribute','has','*Format:*\x20set\x20order\x20to\x20regular','document','change','enableCommand','length','*Format:*\x20set\x20order\x20to\x20reversed','isFirstBlockOfListItem','replace','*Format:*\x20set\x20start\x20index\x20to\x20%0','expandListBlocksToCompleteList','_getTranslationKeyForListStyle','plugins','selection','isListItemBlock','getListTypeFromListStyleType','from','config','startIndex','DocumentListPropertiesUtils','locale','handleListReversedCommand','filter','handleListStartCommand','listStyle','getSelectedBlocks','numbered','model','listType','commandName','_getSuggestionBlocksForListStyle','handleDescriptions','toUpperCase','type','styles','handleListStyleCommand','_getSuggestionBlocks','get','list.properties','listStart','format','bind','TrackChangesEditing','reversed','registerDescriptionCallback','push','afterInit','_descriptionFactory','editor'];(function(_0xa28259,_0x9ef630){const _0x1c5857=function(_0x4e5436){while(--_0x4e5436){_0xa28259['push'](_0xa28259['shift']());}};_0x1c5857(++_0x9ef630);}(_0x9ef6,0x8e));const _0x1c58=function(_0xa28259,_0x9ef630){_0xa28259=_0xa28259-0x0;let _0x1c5857=_0x9ef6[_0xa28259];return _0x1c5857;};import{Plugin as _0x2c376c}from'ckeditor5/src/core';import{getTranslation as _0xe88956}from'../utils/common-translations';export default class At extends _0x2c376c{[_0x1c58('0x1a')](){if(!this[_0x1c58('0x1c')]['plugins'][_0x1c58('0x25')](_0x1c58('0x1d')))return;const _0x282e36=this['editor'][_0x1c58('0x36')]['get'](_0x1c58('0x12')),_0x586c73=this[_0x1c58('0x1c')][_0x1c58('0x31')][_0x1c58('0x11')]('TrackChangesEditing');_0x282e36[_0x1c58('0xe')]&&_0x586c73[_0x1c58('0x29')](_0x1c58('0x4'),this[_0x1c58('0xf')][_0x1c58('0x15')](this)),_0x282e36[_0x1c58('0x17')]&&_0x586c73[_0x1c58('0x29')]('listReversed',this[_0x1c58('0x1')]['bind'](this)),_0x282e36['startIndex']&&_0x586c73[_0x1c58('0x29')](_0x1c58('0x13'),this['handleListStartCommand']['bind'](this)),_0x586c73[_0x1c58('0x1b')][_0x1c58('0x18')](this[_0x1c58('0xb')]['bind'](this));}['handleListStyleCommand'](_0x6d476d,_0x2bd6ef={}){const _0x391627=this['editor'][_0x1c58('0x31')][_0x1c58('0x11')](_0x1c58('0x16')),_0x450db1=this['_getSuggestionBlocksForListStyle']();this[_0x1c58('0x1c')][_0x1c58('0x7')][_0x1c58('0x28')](()=>{_0x391627[_0x1c58('0x21')](_0x450db1,{'commandName':'listStyle','commandParams':[{'type':_0x2bd6ef[_0x1c58('0xd')]}],'formatGroupId':'listStyle'});});}[_0x1c58('0x1')](_0x4aea69,_0x39d223={}){const _0x49d82b=this[_0x1c58('0x1c')][_0x1c58('0x31')][_0x1c58('0x11')](_0x1c58('0x16')),_0x2fd360=this['editor']['plugins'][_0x1c58('0x11')](_0x1c58('0x20')),_0x62b38e=this['_getSuggestionBlocks'](_0x2234de=>_0x2fd360['isListItemBlock'](_0x2234de)&&'numbered'===_0x2234de[_0x1c58('0x24')](_0x1c58('0x8')));null!==_0x62b38e&&this[_0x1c58('0x1c')]['model'][_0x1c58('0x28')](()=>{_0x49d82b[_0x1c58('0x21')](_0x62b38e,{'commandName':_0x1c58('0x23'),'commandParams':[{'reversed':_0x39d223[_0x1c58('0x17')]}],'formatGroupId':_0x1c58('0x23')});});}[_0x1c58('0x3')](_0x287857,_0x10e473={}){const _0x18a020=this[_0x1c58('0x1c')]['plugins'][_0x1c58('0x11')]('TrackChangesEditing'),_0x4bf4e2=this['editor'][_0x1c58('0x31')]['get'](_0x1c58('0x20')),_0x14b49b=this['_getSuggestionBlocks'](_0x534923=>_0x4bf4e2[_0x1c58('0x33')](_0x534923)&&_0x1c58('0x6')===_0x534923[_0x1c58('0x24')](_0x1c58('0x8')));null!==_0x14b49b&&this['editor'][_0x1c58('0x7')][_0x1c58('0x28')](()=>{_0x18a020[_0x1c58('0x21')](_0x14b49b,{'commandName':_0x1c58('0x13'),'commandParams':[{'startIndex':_0x10e473[_0x1c58('0x37')]}],'formatGroupId':_0x1c58('0x13')});});}[_0x1c58('0xb')](_0x130bf3){const _0x2076a4=this[_0x1c58('0x1c')][_0x1c58('0x0')],{data:_0x4e8493}=_0x130bf3;if(!_0x4e8493)return;let _0x2f0c5c,_0x16858a;switch(_0x4e8493[_0x1c58('0x9')]){case _0x1c58('0x4'):_0x2f0c5c=_0x1c58('0x1e'),_0x16858a={'type':_0x1c58('0x14'),'content':_0xe88956(_0x2076a4,_0x2f0c5c,_0xe88956(_0x2076a4,this[_0x1c58('0x30')](_0x4e8493[_0x1c58('0x1f')][0x0][_0x1c58('0xd')])))};break;case'listReversed':_0x2f0c5c=_0x4e8493['commandParams'][0x0][_0x1c58('0x17')]?_0x1c58('0x2b'):_0x1c58('0x26'),_0x16858a={'type':_0x1c58('0x14'),'content':_0xe88956(_0x2076a4,_0x2f0c5c)};break;case _0x1c58('0x13'):_0x2f0c5c=_0x1c58('0x2e'),_0x16858a={'type':'format','content':_0xe88956(_0x2076a4,_0x2f0c5c,_0x4e8493['commandParams'][0x0][_0x1c58('0x37')])};}return _0x16858a;}[_0x1c58('0xa')](){const _0x38f763=this['editor'][_0x1c58('0x31')]['get'](_0x1c58('0x20'));let _0x27520f=Array[_0x1c58('0x35')](this[_0x1c58('0x1c')][_0x1c58('0x7')][_0x1c58('0x27')][_0x1c58('0x32')][_0x1c58('0x5')]());return _0x27520f[_0x1c58('0x19')](..._0x38f763[_0x1c58('0x2f')](_0x27520f)),_0x27520f=[...new Set(_0x27520f)],_0x27520f;}[_0x1c58('0x10')](_0x5869ea){const _0x47e17c=this[_0x1c58('0x1c')]['plugins'][_0x1c58('0x11')](_0x1c58('0x20'));let _0x43b57a=Array[_0x1c58('0x35')](this[_0x1c58('0x1c')][_0x1c58('0x7')]['document'][_0x1c58('0x32')][_0x1c58('0x5')]())[_0x1c58('0x2')](_0x5869ea);if(!_0x43b57a[_0x1c58('0x2a')])return null;_0x43b57a=_0x47e17c['expandListBlocksToCompleteList'](_0x43b57a);const _0x282f8e=[];for(const _0x278ee2 of _0x43b57a)_0x47e17c[_0x1c58('0x2c')](_0x278ee2)&&_0x282f8e['push'](_0x278ee2);return _0x282f8e;}[_0x1c58('0x30')](_0x487a89){return'ELEMENT_'+this[_0x1c58('0x1c')][_0x1c58('0x31')]['get'](_0x1c58('0x38'))[_0x1c58('0x34')](_0x487a89)['toUpperCase']()+_0x1c58('0x22')+_0x487a89[_0x1c58('0xc')]()[_0x1c58('0x2d')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42f6=['downcastDispatcher','requires','init','addMarker:suggestion:insertion','get','createRange','editing','options','parent','model','markerName','unbindElementFromMarkerName','commands','high','mapper','markInsertion','selection','TrackChangesEditing','document','plugins','ck-suggestion-marker-split','markerNameToElements','afterExecute','removeMarker:suggestion:insertion','createPositionAt','enter','end','getFirstPosition','writer','fromRange','editor','hasClass','data','setSelection','enterBlock','split'];(function(_0x36baf7,_0x42f62c){const _0x42427e=function(_0x578bd8){while(--_0x578bd8){_0x36baf7['push'](_0x36baf7['shift']());}};_0x42427e(++_0x42f62c);}(_0x42f6,0x14a));const _0x4242=function(_0x36baf7,_0x42f62c){_0x36baf7=_0x36baf7-0x0;let _0x42427e=_0x42f6[_0x36baf7];return _0x42427e;};import{Plugin as _0x1b957b}from'ckeditor5/src/core';import{Enter as _0xb434fa}from'ckeditor5/src/enter';import{LiveRange as _0x2392dc}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x311d29}from'./utils';export default class q extends _0x1b957b{static get[_0x4242('0x1f')](){return[_0xb434fa];}[_0x4242('0x20')](){const _0x56c2aa=this[_0x4242('0x18')],_0x2719ce=_0x56c2aa[_0x4242('0xd')][_0x4242('0x22')](_0x4242('0xb')),_0x7f246e=_0x56c2aa[_0x4242('0x6')][_0x4242('0x22')](_0x4242('0x13'));_0x2719ce['enableCommand'](_0x4242('0x13'),()=>{_0x56c2aa['model']['change'](_0x4b5883=>{const _0x54a9ce=_0x56c2aa[_0x4242('0x3')][_0x4242('0xc')][_0x4242('0xa')],_0x545776=_0x54a9ce[_0x4242('0x15')](),_0x29cc79=_0x2392dc[_0x4242('0x17')](_0x54a9ce['getFirstRange']());if(_0x7f246e[_0x4242('0x1c')](_0x4b5883)){const _0x2df459=_0x56c2aa['model'][_0x4242('0x12')](_0x545776[_0x4242('0x2')]['nextSibling'],0x0),_0x2e3130=_0x4b5883[_0x4242('0x23')](_0x545776,_0x2df459);_0x2719ce[_0x4242('0x9')](_0x2e3130);}else _0x4b5883[_0x4242('0x1b')](_0x4b5883[_0x4242('0x23')](_0x29cc79[_0x4242('0x14')]));_0x29cc79['detach'](),_0x7f246e['fire'](_0x4242('0x10'),{'writer':_0x4b5883});});}),_0x56c2aa['editing']['downcastDispatcher']['on'](_0x4242('0x21'),_0x311d29(_0x56c2aa,'split'),{'priority':_0x4242('0x7')}),_0x56c2aa[_0x4242('0x0')][_0x4242('0x1e')]['on'](_0x4242('0x11'),(_0x43356d,_0x4687d1,_0x16a6bc)=>{const _0x55a6b6=_0x16a6bc['mapper'][_0x4242('0xf')](_0x4687d1[_0x4242('0x4')]);if(_0x55a6b6)for(const _0x19a103 of _0x55a6b6)_0x19a103[_0x4242('0x19')](_0x4242('0xe'))&&(_0x16a6bc[_0x4242('0x8')][_0x4242('0x5')](_0x19a103,_0x4687d1[_0x4242('0x4')]),_0x16a6bc[_0x4242('0x16')]['remove'](_0x19a103));},{'priority':_0x4242('0x7')}),_0x56c2aa[_0x4242('0x1a')][_0x4242('0x1e')]['on'](_0x4242('0x21'),(_0xb06f46,_0x147e45,_0x47fb1d)=>{_0x47fb1d[_0x4242('0x1')]['showSuggestionHighlights']&&_0x311d29(_0x56c2aa,_0x4242('0x1d'),{'showActiveMarker':!0x1})['bind'](this)(_0xb06f46,_0x147e45,_0x47fb1d);},{'priority':_0x4242('0x7')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10e2=['plugins','get','filter','markers','suggestion:deletion','model','string','createRange','getRange','FindAndReplaceUtils','handleFindCommand','FindAndReplaceEditing','findByTextCallback','findNext','createPositionAt','_isInDeletionRange','getIntersection','enableCommand','find','getMarkersGroup','item','editor','TrackChangesEditing','replace'];(function(_0x2babf7,_0x10e22f){const _0x2a0de5=function(_0x1fa1ac){while(--_0x1fa1ac){_0x2babf7['push'](_0x2babf7['shift']());}};_0x2a0de5(++_0x10e22f);}(_0x10e2,0x11b));const _0x2a0d=function(_0x2babf7,_0x10e22f){_0x2babf7=_0x2babf7-0x0;let _0x2a0de5=_0x10e2[_0x2babf7];return _0x2a0de5;};import{Plugin as _0x213abd}from'ckeditor5/src/core';export default class z extends _0x213abd{['afterInit'](){if(!this['editor']['plugins']['has'](_0x2a0d('0x10')))return;const _0x3b68aa=this[_0x2a0d('0x2')][_0x2a0d('0x5')][_0x2a0d('0x6')](_0x2a0d('0x3'));_0x3b68aa[_0x2a0d('0x16')](_0x2a0d('0x17'),this[_0x2a0d('0xf')]['bind'](this)),_0x3b68aa[_0x2a0d('0x16')](_0x2a0d('0x12')),_0x3b68aa[_0x2a0d('0x16')]('findPrevious'),_0x3b68aa[_0x2a0d('0x16')](_0x2a0d('0x4')),_0x3b68aa[_0x2a0d('0x16')]('replaceAll');}['handleFindCommand'](_0x542d44,_0x314fa4,_0xe3cce7={}){const _0x59ade8=this[_0x2a0d('0x2')][_0x2a0d('0x5')]['get'](_0x2a0d('0xe'));void 0x0!==_0xe3cce7&&_0x542d44(_0x48d48=>(_0x2a0d('0xb')==typeof _0x314fa4?_0x59ade8[_0x2a0d('0x11')](_0x314fa4,_0xe3cce7):_0x314fa4)(_0x48d48)[_0x2a0d('0x7')](_0x44e15e=>!0x1===this[_0x2a0d('0x14')](_0x44e15e,_0x48d48[_0x2a0d('0x1')])),_0xe3cce7);}[_0x2a0d('0x14')](_0x551ff9,_0x13f3c9){const _0x2b2fa4=this[_0x2a0d('0x2')][_0x2a0d('0xa')][_0x2a0d('0xc')](this[_0x2a0d('0x2')][_0x2a0d('0xa')]['createPositionAt'](_0x13f3c9,_0x551ff9['start']),this[_0x2a0d('0x2')][_0x2a0d('0xa')][_0x2a0d('0x13')](_0x13f3c9,_0x551ff9['end']));for(const _0x484ca4 of this[_0x2a0d('0x2')][_0x2a0d('0xa')][_0x2a0d('0x8')][_0x2a0d('0x0')](_0x2a0d('0x9')))if(null!==_0x2b2fa4[_0x2a0d('0x15')](_0x484ca4[_0x2a0d('0xd')]()))return!0x0;return!0x1;}}
|