@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230903.0 → 0.0.0-nightly-20230905.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-20230905.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-20230905.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230905.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 _0x299b=['execute','model','TrackChangesEditing','_suggestions','refresh','track-changes-accept-suggestion-not-found','canEditAt','editor','acceptSuggestion','get','getRanges'];(function(_0x340e20,_0x299ba6){const _0x41a54a=function(_0x2d4a54){while(--_0x2d4a54){_0x340e20['push'](_0x340e20['shift']());}};_0x41a54a(++_0x299ba6);}(_0x299b,0x13e));const _0x41a5=function(_0x340e20,_0x299ba6){_0x340e20=_0x340e20-0x0;let _0x41a54a=_0x299b[_0x340e20];return _0x41a54a;};import{Command as _0x30f46c}from'ckeditor5/src/core';import{CKEditorError as _0xc02def}from'ckeditor5/src/utils';export default class M extends _0x30f46c{constructor(_0x2dcc08,_0x4a5d69){super(_0x2dcc08),this[_0x41a5('0x4')]=_0x4a5d69,this[_0x41a5('0x5')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x41a5('0x5')](){this['isEnabled']=!0x0;}[_0x41a5('0x1')](_0x4ef479){const _0x4a73e1=this[_0x41a5('0x4')]['get'](_0x4ef479);if(!_0x4a73e1)throw new _0xc02def(_0x41a5('0x6'),this);const _0x42590c=_0x4a73e1[_0x41a5('0x0')]();this[_0x41a5('0x8')][_0x41a5('0x2')][_0x41a5('0x7')](_0x42590c)&&this[_0x41a5('0x8')]['plugins'][_0x41a5('0xa')](_0x41a5('0x3'))[_0x41a5('0x9')](_0x4a73e1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54a8=['refresh','editor','model','track-changes-discard-suggestion-not-found','isEnabled','execute','discardSuggestion','TrackChangesEditing','plugins','get','_isEnabledBasedOnSelection'];(function(_0x5a4faa,_0x54a80c){const _0x9dae82=function(_0x555672){while(--_0x555672){_0x5a4faa['push'](_0x5a4faa['shift']());}};_0x9dae82(++_0x54a80c);}(_0x54a8,0x1df));const _0x9dae=function(_0x5a4faa,_0x54a80c){_0x5a4faa=_0x5a4faa-0x0;let _0x9dae82=_0x54a8[_0x5a4faa];return _0x9dae82;};import{Command as _0x3a4b6d}from'ckeditor5/src/core';import{CKEditorError as _0x4d99ad}from'ckeditor5/src/utils';export default class $ extends _0x3a4b6d{constructor(_0x221f6a,_0x389071){super(_0x221f6a),this['_suggestions']=_0x389071,this[_0x9dae('0x5')](),this[_0x9dae('0x4')]=!0x1;}[_0x9dae('0x5')](){this[_0x9dae('0x9')]=!0x0;}[_0x9dae('0xa')](_0x14163d){const _0x5fdd70=this['_suggestions'][_0x9dae('0x3')](_0x14163d);if(!_0x5fdd70)throw new _0x4d99ad(_0x9dae('0x8'),this);const _0x21d674=_0x5fdd70['getRanges']();this['editor'][_0x9dae('0x7')]['canEditAt'](_0x21d674)&&this[_0x9dae('0x6')][_0x9dae('0x2')][_0x9dae('0x3')](_0x9dae('0x1'))[_0x9dae('0x0')](_0x5fdd70);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1877=['isEnabled','model','refresh','canEditAt','_command','_isEnabledBasedOnSelection','from','isInContent','_suggestions','values','editor'];(function(_0x53b2a5,_0x1877e7){const _0x99b1fa=function(_0x441626){while(--_0x441626){_0x53b2a5['push'](_0x53b2a5['shift']());}};_0x99b1fa(++_0x1877e7);}(_0x1877,0x1c3));const _0x99b1=function(_0x53b2a5,_0x1877e7){_0x53b2a5=_0x53b2a5-0x0;let _0x99b1fa=_0x1877[_0x53b2a5];return _0x99b1fa;};import{Command as _0x4d7a97}from'ckeditor5/src/core';import{sortSuggestions as _0x15a774,executeCommandForSuggestions as _0x2257cb}from'../utils/utils';export default class N extends _0x4d7a97{constructor(_0x2b6eb3,_0x121081,_0x294298){super(_0x2b6eb3),this[_0x99b1('0x4')]=_0x121081,this['_suggestions']=_0x294298,this[_0x99b1('0x2')](),this[_0x99b1('0x5')]=!0x1;}['refresh'](){const _0x181c6b=Array['from'](this[_0x99b1('0x8')]['values']())['some'](_0x49e4f1=>_0x49e4f1[_0x99b1('0x7')]);this[_0x99b1('0x0')]=this[_0x99b1('0x4')]['isEnabled']&&_0x181c6b;}['execute'](){const _0x1fa41d=_0x15a774(Array[_0x99b1('0x6')](this[_0x99b1('0x8')][_0x99b1('0x9')]()));for(const _0xd4d408 of _0x1fa41d){const _0x29ba7b=_0xd4d408['getRanges']();if(!this[_0x99b1('0xa')][_0x99b1('0x1')][_0x99b1('0x3')](_0x29ba7b))return;}_0x2257cb(this[_0x99b1('0xa')]['model'],this[_0x99b1('0x4')],_0x1fa41d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x563e=['document','isEnabled','size','editor','_suggestions','values','refresh','getRanges','execute','model','_command','from','_selectedSuggestions'];(function(_0x5a404b,_0x563efa){const _0x8cbf77=function(_0x4591d4){while(--_0x4591d4){_0x5a404b['push'](_0x5a404b['shift']());}};_0x8cbf77(++_0x563efa);}(_0x563e,0x1df));const _0x8cbf=function(_0x5a404b,_0x563efa){_0x5a404b=_0x5a404b-0x0;let _0x8cbf77=_0x563e[_0x5a404b];return _0x8cbf77;};import{Command as _0x59ee71}from'ckeditor5/src/core';import{sortSuggestions as _0x3e0a9a,getSelectedSuggestions as _0x38a85d,executeCommandForSuggestions as _0x56ee1e}from'../utils/utils';export default class R extends _0x59ee71{constructor(_0x19465f,_0x4dd1b0,_0x12a430){super(_0x19465f),this[_0x8cbf('0xc')]=_0x4dd1b0,this['_suggestions']=_0x12a430,this[_0x8cbf('0x1')]=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x8cbf('0x8')](){const _0x504d73=this['editor'][_0x8cbf('0xb')][_0x8cbf('0x2')]['selection'],_0x5812a7=Array['from'](this[_0x8cbf('0x6')][_0x8cbf('0x7')]());this[_0x8cbf('0x1')]=_0x38a85d(_0x504d73,_0x5812a7),this[_0x8cbf('0x3')]=this['_command'][_0x8cbf('0x3')]&&!!this[_0x8cbf('0x1')][_0x8cbf('0x4')];}[_0x8cbf('0xa')](){const _0x424297=_0x3e0a9a(Array[_0x8cbf('0x0')](this[_0x8cbf('0x1')]));for(const _0x492317 of _0x424297){const _0x318f93=_0x492317[_0x8cbf('0x9')]();if(!this[_0x8cbf('0x5')][_0x8cbf('0xb')]['canEditAt'](_0x318f93))return;}_0x56ee1e(this['editor']['model'],this[_0x8cbf('0xc')],_0x424297);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16d9=['editor','forceDisabled','TrackChangesCommand','clearForceDisabled','commands','value','_isEnabledBasedOnSelection','_enabledCommands','isEnabled','execute','affectsData','refresh','_enableCommands','has','_disableUnsupportedCommands'];(function(_0x697791,_0x16d9a6){const _0x3003ab=function(_0x35a63c){while(--_0x35a63c){_0x697791['push'](_0x697791['shift']());}};_0x3003ab(++_0x16d9a6);}(_0x16d9,0x7f));const _0x3003=function(_0x697791,_0x16d9a6){_0x697791=_0x697791-0x0;let _0x3003ab=_0x16d9[_0x697791];return _0x3003ab;};import{Command as _0x9a04ee}from'ckeditor5/src/core';export default class _ extends _0x9a04ee{constructor(_0x4763c6,_0x73682a){super(_0x4763c6),this['_enabledCommands']=_0x73682a,this[_0x3003('0xd')]=!0x1,this['refresh'](),this[_0x3003('0xe')]=!0x1;}[_0x3003('0x4')](){this[_0x3003('0x1')]=!0x0;}[_0x3003('0x2')](){this[_0x3003('0xd')]=!this[_0x3003('0xd')],this[_0x3003('0xd')]?this[_0x3003('0x7')]():this[_0x3003('0x5')]();}[_0x3003('0x7')](){for(const _0x5eb46b of this[_0x3003('0x8')][_0x3003('0xc')][_0x3003('0xc')]())_0x5eb46b[_0x3003('0x3')]&&!this[_0x3003('0x0')]['has'](_0x5eb46b)&&_0x5eb46b[_0x3003('0x9')](_0x3003('0xa'));}[_0x3003('0x5')](){for(const _0x21b5bc of this['editor'][_0x3003('0xc')][_0x3003('0xc')]())_0x21b5bc[_0x3003('0x3')]&&!this[_0x3003('0x0')][_0x3003('0x6')](_0x21b5bc)&&_0x21b5bc[_0x3003('0xb')](_0x3003('0xa'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2860=['document','checkAttribute','AlignmentEditing','getAttribute','editor','justify','has','getSelectedBlocks','format','_descriptionFactory','center','right','model','markBlockFormat','locale','TrackChangesEditing','from','value','get','FORMAT_ALIGN_TO_CENTER','FORMAT_ALIGN_TO_LEFT','alignment','change'];(function(_0x2a1206,_0x286002){const _0x3dfe19=function(_0x580588){while(--_0x580588){_0x2a1206['push'](_0x2a1206['shift']());}};_0x3dfe19(++_0x286002);}(_0x2860,0x114));const _0x3dfe=function(_0x2a1206,_0x286002){_0x2a1206=_0x2a1206-0x0;let _0x3dfe19=_0x2860[_0x2a1206];return _0x3dfe19;};import{Plugin as _0x1a8e38}from'ckeditor5/src/core';import{getTranslation as _0x171e86}from'../utils/common-translations';export default class j extends _0x1a8e38{['afterInit'](){const _0x41fd41=this['editor'],_0x562b1f=_0x41fd41[_0x3dfe('0xe')];if(!_0x41fd41['plugins'][_0x3dfe('0x6')](_0x3dfe('0x2')))return;const _0x3e9f1b=_0x41fd41['plugins'][_0x3dfe('0x12')](_0x3dfe('0xf'));_0x3e9f1b['enableCommand'](_0x3dfe('0x15'),(_0x2cd506,_0x56d401={})=>{let _0x101d82=_0x56d401['value'];_0x56d401[_0x3dfe('0x11')]||(_0x101d82='ltr'===_0x41fd41['locale']['contentLanguageDirection']?'left':_0x3dfe('0xb'));const _0x51b21f=Array[_0x3dfe('0x10')](this[_0x3dfe('0x4')]['model'][_0x3dfe('0x0')]['selection'][_0x3dfe('0x7')]())['filter'](_0x44a11a=>function(_0x57fd0c,_0x3da021,_0x228b9e){const _0x50b1bb=_0x57fd0c[_0x3dfe('0x3')](_0x3dfe('0x15'))||null;return _0x3da021[_0x3dfe('0x1')](_0x57fd0c,'alignment')&&_0x228b9e!=_0x50b1bb;}(_0x44a11a,this[_0x3dfe('0x4')][_0x3dfe('0xc')]['schema'],_0x101d82));_0x41fd41['model'][_0x3dfe('0x16')](()=>{for(const _0x3cf345 of _0x51b21f)_0x3e9f1b[_0x3dfe('0xd')](_0x3cf345,{'commandName':_0x3dfe('0x15'),'commandParams':[{'value':_0x101d82}]});});}),_0x3e9f1b[_0x3dfe('0x9')]['registerDescriptionCallback'](_0x4f570e=>{const {data:_0x5bd75e}=_0x4f570e;if(_0x5bd75e&&_0x3dfe('0x15')==_0x5bd75e['commandName']){const _0xf7dae=_0x5bd75e['commandParams'][0x0][_0x3dfe('0x11')];return{'type':_0x3dfe('0x8'),'content':_0x171e86(_0x562b1f,'*Format:*\x20%0',function(_0x31fb0e){switch(_0x31fb0e){case'left':return _0x171e86(_0x562b1f,_0x3dfe('0x14'));case'right':return _0x171e86(_0x562b1f,'FORMAT_ALIGN_TO_RIGHT');case _0x3dfe('0xa'):return _0x171e86(_0x562b1f,_0x3dfe('0x13'));case _0x3dfe('0x5'):return _0x171e86(_0x562b1f,'FORMAT_JUSTIFY_TEXT');}}(_0xf7dae))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa38b=['*Remove\x20format:*\x20%0','FORMAT_SUBSCRIPT','BoldEditing','FORMAT_ITALIC','format','value','ItalicEditing','StrikethroughEditing','italic','from','isCollapsed','SubscriptEditing','slice','locale','*Format:*\x20%0','model','TrackChangesEditing','FORMAT_SUPERSCRIPT','superscript','document','markInlineFormat','registerDescriptionCallback','has','SuperscriptEditing','get','FORMAT_BOLD','FORMAT_UNDERLINE','CodeEditing','underline','commandParams','commands','forceValue','subscript','strikethrough','toLowerCase','_descriptionFactory','plugins','getRanges','selection'];(function(_0x58aa39,_0xa38ba6){const _0x2848b7=function(_0x47ca1e){while(--_0x47ca1e){_0x58aa39['push'](_0x58aa39['shift']());}};_0x2848b7(++_0xa38ba6);}(_0xa38b,0x1d8));const _0x2848=function(_0x58aa39,_0xa38ba6){_0x58aa39=_0x58aa39-0x0;let _0x2848b7=_0xa38b[_0x58aa39];return _0x2848b7;};import{Plugin as _0x3b8b77}from'ckeditor5/src/core';import{getTranslation as _0x540486}from'../utils/common-translations';import{getRangesWithAttribute as _0x5584bc}from'./utils';const Yt=[_0x2848('0x25'),_0x2848('0x2'),'UnderlineEditing',_0x2848('0x17'),_0x2848('0x3'),_0x2848('0x7'),_0x2848('0x13')];export default class x extends _0x3b8b77{['afterInit'](){const _0x2b1ce8=this['editor'],_0x504159=_0x2b1ce8[_0x2848('0xb')],_0x31426c=_0x2b1ce8[_0x2848('0x20')][_0x2848('0x14')](_0x2848('0xc')),_0x580227=_0x2b1ce8[_0x2848('0x9')];for(const _0x4f8a3a of Yt){if(!_0x2b1ce8[_0x2848('0x20')][_0x2848('0x12')](_0x4f8a3a))continue;const _0x3eaf64=_0x4f8a3a[_0x2848('0x8')](0x0,-0x7)[_0x2848('0x1e')](),_0x512e1d=_0x2b1ce8[_0x2848('0x1a')][_0x2848('0x14')](_0x3eaf64);_0x31426c['enableCommand'](_0x3eaf64,(_0x172073,_0x3e03e0={})=>{const _0x5c8f87=_0x504159[_0x2848('0xf')][_0x2848('0x22')];if(_0x5c8f87[_0x2848('0x6')])return void _0x172073(_0x3e03e0);const _0x4dbb98=void 0x0!==_0x3e03e0['forceValue']?_0x3e03e0[_0x2848('0x1b')]:!_0x512e1d[_0x2848('0x1')];_0x504159['change'](()=>{const _0x35886d=Array[_0x2848('0x5')](_0x5c8f87[_0x2848('0x21')]());for(const _0x38c821 of _0x35886d){const _0x1691e7=_0x4dbb98?[_0x38c821]:_0x5584bc(_0x3eaf64,_0x38c821,_0x504159);for(const _0x18f8b3 of _0x1691e7)_0x31426c[_0x2848('0x10')](_0x18f8b3,{'commandName':_0x3eaf64,'commandParams':[{'forceValue':_0x4dbb98}]});}});});}function _0x283ffd(_0x5aee83,_0x524290){_0x31426c[_0x2848('0x1f')][_0x2848('0x11')](_0x96ea32=>{const {data:_0x28dfd9}=_0x96ea32;if(_0x28dfd9&&_0x28dfd9['commandName']===_0x5aee83)return _0x28dfd9[_0x2848('0x19')][0x0]['forceValue']?{'type':_0x2848('0x0'),'content':_0x540486(_0x580227,_0x2848('0xa'),_0x524290)}:{'type':_0x2848('0x0'),'content':_0x540486(_0x580227,_0x2848('0x23'),_0x524290)};});}_0x283ffd('bold',_0x540486(_0x580227,_0x2848('0x15'))),_0x283ffd(_0x2848('0x4'),_0x540486(_0x580227,_0x2848('0x26'))),_0x283ffd(_0x2848('0x18'),_0x540486(_0x580227,_0x2848('0x16'))),_0x283ffd('code',_0x540486(_0x580227,'FORMAT_CODE')),_0x283ffd(_0x2848('0x1d'),_0x540486(_0x580227,'FORMAT_STRIKETHROUGH')),_0x283ffd(_0x2848('0x1c'),_0x540486(_0x580227,_0x2848('0x24'))),_0x283ffd(_0x2848('0xe'),_0x540486(_0x580227,_0x2848('0xd')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5019=['from','getSelectedBlocks','editor','commands','document','name','$root','model','parent','TrackChangesEditing','value','checkChild','BlockQuoteEditing','change','filter','locale','schema','forceValue','get','registerDescriptionCallback','markBlockFormat','blockQuote','commandParams','*Remove\x20format:*\x20%0','afterInit','*Format:*\x20%0'];(function(_0x4d261f,_0x501943){const _0x3c743b=function(_0x2d6d78){while(--_0x2d6d78){_0x4d261f['push'](_0x4d261f['shift']());}};_0x3c743b(++_0x501943);}(_0x5019,0x1a8));const _0x3c74=function(_0x4d261f,_0x501943){_0x4d261f=_0x4d261f-0x0;let _0x3c743b=_0x5019[_0x4d261f];return _0x3c743b;};import{Plugin as _0x3d0369}from'ckeditor5/src/core';import{getTranslation as _0x219ee3}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x7185a}from'../utils/utils';export default class U extends _0x3d0369{[_0x3c74('0x10')](){const _0x4f6509=this[_0x3c74('0x14')],_0x5be60b=_0x4f6509[_0x3c74('0x7')];if(!_0x4f6509['plugins']['has'](_0x3c74('0x4')))return;const _0x1dc928=_0x4f6509['plugins'][_0x3c74('0xa')](_0x3c74('0x1')),_0x24b587=this[_0x3c74('0x14')][_0x3c74('0x15')][_0x3c74('0xa')](_0x3c74('0xd'));_0x1dc928['enableCommand'](_0x3c74('0xd'),(_0x36b641,_0xa01934={})=>{const _0x5c811c=this[_0x3c74('0x14')][_0x3c74('0x19')][_0x3c74('0x16')]['selection'],_0x4bbda3=_0xa01934&&void 0x0!==_0xa01934[_0x3c74('0x9')]?_0xa01934[_0x3c74('0x9')]:!_0x24b587[_0x3c74('0x2')];let _0x5e6787=[];if(_0x4bbda3){const _0x45104b=Array[_0x3c74('0x12')](_0x5c811c[_0x3c74('0x13')]())[_0x3c74('0x6')](_0x50b5aa=>to(_0x50b5aa)||function(_0x52dcae,_0x54fe0a){const _0x1e3582=_0x54fe0a['checkChild'](_0x52dcae['parent'],'blockQuote'),_0x438a3f=_0x54fe0a[_0x3c74('0x3')]([_0x3c74('0x18'),_0x3c74('0xd')],_0x52dcae);return _0x1e3582&&_0x438a3f;}(_0x50b5aa,this['editor']['model'][_0x3c74('0x8')]));_0x5e6787=_0x7185a(_0x45104b,_0x4f6509[_0x3c74('0x19')]);}else{const _0x2d13e1=Array[_0x3c74('0x12')](_0x5c811c[_0x3c74('0x13')]())['filter'](_0x4ef4ac=>to(_0x4ef4ac));_0x5e6787=_0x7185a(_0x2d13e1,_0x4f6509[_0x3c74('0x19')]);}_0x4f6509[_0x3c74('0x19')][_0x3c74('0x5')](()=>{for(const _0x36e735 of _0x5e6787)_0x1dc928[_0x3c74('0xc')](_0x36e735,{'commandName':_0x3c74('0xd'),'commandParams':[{'forceValue':_0x4bbda3}]});});}),_0x1dc928['_descriptionFactory'][_0x3c74('0xb')](_0x9fd060=>{const {data:_0x228ff4}=_0x9fd060;if(_0x228ff4&&_0x3c74('0xd')==_0x228ff4['commandName']){const _0x18c391=_0x219ee3(_0x5be60b,'ELEMENT_BLOCK_QUOTE');return _0x228ff4[_0x3c74('0xe')][0x0][_0x3c74('0x9')]?{'type':'format','content':_0x219ee3(_0x5be60b,_0x3c74('0x11'),_0x18c391)}:{'type':'format','content':_0x219ee3(_0x5be60b,_0x3c74('0xf'),_0x18c391)};}});}}function to(_0x954d41){return _0x3c74('0xd')==_0x954d41[_0x3c74('0x0')][_0x3c74('0x17')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x354a=['enableCommand','get','TrackChangesEditing','ckbox','plugins','commands'];(function(_0x15dedf,_0x354af6){const _0x463ec2=function(_0x4b642a){while(--_0x4b642a){_0x15dedf['push'](_0x15dedf['shift']());}};_0x463ec2(++_0x354af6);}(_0x354a,0xbf));const _0x463e=function(_0x15dedf,_0x354af6){_0x15dedf=_0x15dedf-0x0;let _0x463ec2=_0x354a[_0x15dedf];return _0x463ec2;};import{Plugin as _0x2e7efb}from'ckeditor5/src/core';export default class O extends _0x2e7efb{['afterInit'](){const _0x1bfdaa=this['editor'];_0x1bfdaa[_0x463e('0x0')][_0x463e('0x2')](_0x463e('0x4'))&&_0x1bfdaa[_0x463e('0x5')]['get'](_0x463e('0x3'))[_0x463e('0x1')](_0x463e('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53d2=['editor','commands','plugins','checkChild','registerDescriptionCallback','formatBlock','codeBlock','get','from','locale','model','TrackChangesEditing','format','registerElementLabel','blockName','_descriptionFactory','enableCommand','*Format:*\x20%0','label','language','languages','commandParams','markBlockFormat','indentCodeBlock','ELEMENT_CODE_BLOCK','afterInit','parent','name','value','find','getSelectedBlocks','config','CodeBlock','forceValue','*Remove\x20format:*\x20%0','isLimit'];(function(_0x2953e1,_0x53d2ae){const _0x33af9e=function(_0x57c3de){while(--_0x57c3de){_0x2953e1['push'](_0x2953e1['shift']());}};_0x33af9e(++_0x53d2ae);}(_0x53d2,0x111));const _0x33af=function(_0x2953e1,_0x53d2ae){_0x2953e1=_0x2953e1-0x0;let _0x33af9e=_0x53d2[_0x2953e1];return _0x33af9e;};import{Plugin as _0x4df47f}from'ckeditor5/src/core';import{getTranslation as _0x4cfd88}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x11ed1f}from'../utils/utils';export default class E extends _0x4df47f{[_0x33af('0x4')](){const _0x20a8f3=this[_0x33af('0xf')];if(!_0x20a8f3['plugins']['has'](_0x33af('0xb')))return;const _0x2520f2=_0x20a8f3[_0x33af('0x11')][_0x33af('0x16')](_0x33af('0x1a')),_0xf1cf70=_0x20a8f3[_0x33af('0x18')],_0x4246da=_0x20a8f3[_0x33af('0xa')][_0x33af('0x16')](_0x33af('0x15'))[_0x33af('0x23')],_0x51789c=_0x20a8f3[_0x33af('0x10')]['get'](_0x33af('0x15'));_0x2520f2['enableCommand'](_0x33af('0x2')),_0x2520f2[_0x33af('0x1f')]('outdentCodeBlock'),_0x2520f2[_0x33af('0x1f')]('codeBlock',(_0x30519c,_0xbe4866={})=>{const _0x3d87df=_0x20a8f3['model'],_0x486702=_0x20a8f3[_0x33af('0x19')]['document']['selection'],_0x70d9ca=_0xbe4866&&void 0x0!==_0xbe4866[_0x33af('0xc')]?_0xbe4866[_0x33af('0xc')]:!_0x51789c[_0x33af('0x7')];let _0x1d4bac;_0xbe4866[_0x33af('0x22')]||(_0xbe4866[_0x33af('0x22')]=_0x4246da[0x0][_0x33af('0x22')]),_0x1d4bac=_0x70d9ca?Array['from'](_0x486702[_0x33af('0x9')]())['filter'](_0x55fb2b=>oo(_0x55fb2b)||function(_0x54b103,_0x20bb2d){if(_0x54b103['is']('rootElement')||_0x20bb2d[_0x33af('0xe')](_0x54b103))return!0x1;return _0x20bb2d[_0x33af('0x12')](_0x54b103[_0x33af('0x5')],'codeBlock');}(_0x55fb2b,_0x3d87df['schema'])):Array[_0x33af('0x17')](_0x486702[_0x33af('0x9')]())['filter'](_0x58e0c9=>oo(_0x58e0c9));const _0xbc70ee=_0x11ed1f(_0x1d4bac,_0x3d87df);_0x3d87df['change'](()=>{for(const _0x365408 of _0xbc70ee)_0x2520f2[_0x33af('0x1')](_0x365408,{'commandName':'codeBlock','commandParams':[{..._0xbe4866,'forceValue':_0x70d9ca}],'formatGroupId':_0x33af('0x1d')});});}),(_0x2520f2[_0x33af('0x1e')][_0x33af('0x1c')](_0x33af('0x15'),_0x3a228f=>_0x4cfd88(_0xf1cf70,'ELEMENT_CODE_BLOCK',_0x3a228f)),_0x2520f2['_descriptionFactory'][_0x33af('0x13')](_0x3baf3c=>{const _0x13c54e=_0xf1cf70['t'],{type:_0x54a280,data:_0x1ba555}=_0x3baf3c;if(_0x33af('0x14')==_0x54a280&&_0x1ba555&&_0x33af('0x15')==_0x1ba555['commandName']){const _0x2990da=_0x1ba555[_0x33af('0x0')][0x0][_0x33af('0x22')],_0x4e1613=_0x13c54e(_0x4246da[_0x33af('0x8')](_0x4f0f47=>_0x4f0f47['language']===_0x2990da)[_0x33af('0x21')]);return _0x1ba555[_0x33af('0x0')][0x0]['forceValue']?{'type':_0x33af('0x1b'),'content':_0x4cfd88(_0xf1cf70,_0x33af('0x20'),_0x4cfd88(_0xf1cf70,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4e1613+')')}:{'type':'format','content':_0x4cfd88(_0xf1cf70,_0x33af('0xd'),_0x4cfd88(_0xf1cf70,_0x33af('0x3'),0x1))};}}));}}function oo(_0xfa99fd){return _0x33af('0x15')==_0xfa99fd[_0x33af('0x6')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19e5=['enableCommand','get','plugins','TrackChangesEditing','afterInit','editor','addCommentThread'];(function(_0x55fb79,_0x19e50f){const _0x1382ac=function(_0x3a7ae0){while(--_0x3a7ae0){_0x55fb79['push'](_0x55fb79['shift']());}};_0x1382ac(++_0x19e50f);}(_0x19e5,0x1cd));const _0x1382=function(_0x55fb79,_0x19e50f){_0x55fb79=_0x55fb79-0x0;let _0x1382ac=_0x19e5[_0x55fb79];return _0x1382ac;};import{Plugin as _0x4fea27}from'ckeditor5/src/core';export default class F extends _0x4fea27{[_0x1382('0x5')](){const _0xdcdbf1=this[_0x1382('0x6')];if(!_0xdcdbf1[_0x1382('0x3')]['has']('CommentsEditing'))return;_0xdcdbf1[_0x1382('0x3')][_0x1382('0x2')](_0x1382('0x4'))[_0x1382('0x1')](_0x1382('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2cdf=['showSuggestionHighlights','buffer','editing','isCollapsed','fromRange','enableCommand','forward','unbindElementFromMarkerName','commands','uiElement','merge','requires','unit','mapper','get','remove','high','end','bind','markerName','plugins','options','writer','setSelection','model','deleteForward','addMarker:suggestion:deletion','enqueueChange','removeMarker:suggestion:deletion','$graveyard','lock','start','batch','downcastDispatcher','rootName','createRange'];(function(_0x3c1a52,_0x2cdf09){const _0x1654e4=function(_0x44f981){while(--_0x44f981){_0x3c1a52['push'](_0x3c1a52['shift']());}};_0x1654e4(++_0x2cdf09);}(_0x2cdf,0x160));const _0x1654=function(_0x3c1a52,_0x2cdf09){_0x3c1a52=_0x3c1a52-0x0;let _0x1654e4=_0x2cdf[_0x3c1a52];return _0x1654e4;};import{Plugin as _0x1b1418}from'ckeditor5/src/core';import{LiveRange as _0x4753f7}from'ckeditor5/src/engine';import{Delete as _0x4276fb}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x3fbc2a}from'./utils';export default class G extends _0x1b1418{static get[_0x1654('0x13')](){return[_0x4276fb];}['init'](){const _0x54b608=this['editor'],_0x3af535=_0x54b608[_0x1654('0x1c')][_0x1654('0x16')]('TrackChangesEditing');_0x3af535[_0x1654('0xd')]('delete');const _0x5579dd=_0x54b608[_0x1654('0x10')][_0x1654('0x16')]('deleteForward');_0x3af535[_0x1654('0xd')](_0x1654('0x21'),(_0x141d6c,_0x5e988c={})=>{const _0x1b1948=_0x54b608[_0x1654('0x20')]['createSelection'](_0x54b608[_0x1654('0x20')]['document']['selection']);_0x1b1948[_0x1654('0xb')]&&_0x54b608[_0x1654('0x20')]['modifySelection'](_0x1b1948,{'direction':_0x1654('0xe'),'unit':_0x5e988c[_0x1654('0x14')]});const _0x5a0e87=_0x1b1948['getFirstRange'](),_0x2e30ac=_0x4753f7[_0x1654('0xc')](_0x5a0e87);let _0x4099c7;_0x141d6c(_0x5e988c),_0x4099c7=_0x1654('0x1')==_0x2e30ac['root'][_0x1654('0x6')]?_0x54b608[_0x1654('0x20')]['createRange'](_0x5a0e87[_0x1654('0x3')]):_0x54b608[_0x1654('0x20')]['createRange'](_0x2e30ac[_0x1654('0x3')],_0x2e30ac[_0x1654('0x19')]),_0x2e30ac['detach'](),_0x54b608[_0x1654('0x20')][_0x1654('0x23')](_0x5579dd[_0x1654('0x9')][_0x1654('0x4')],_0x39f32c=>{_0x5579dd[_0x1654('0x9')][_0x1654('0x2')](),_0x39f32c[_0x1654('0x1f')](_0x39f32c[_0x1654('0x7')](_0x4099c7[_0x1654('0x19')])),_0x5579dd['buffer']['unlock']();});}),_0x54b608[_0x1654('0xa')][_0x1654('0x5')]['on'](_0x1654('0x22'),_0x3fbc2a(_0x54b608,'merge'),{'priority':_0x1654('0x18')}),_0x54b608['data'][_0x1654('0x5')]['on']('addMarker:suggestion:deletion',(_0x4df8eb,_0x9b6e19,_0x3770cb)=>{_0x3770cb[_0x1654('0x1d')][_0x1654('0x8')]&&_0x3fbc2a(_0x54b608,_0x1654('0x12'),{'showActiveMarker':!0x1})[_0x1654('0x1a')](this)(_0x4df8eb,_0x9b6e19,_0x3770cb);},{'priority':_0x1654('0x18')}),_0x54b608[_0x1654('0xa')][_0x1654('0x5')]['on'](_0x1654('0x0'),(_0x48b49d,_0x5e5074,_0x5e8546)=>{const _0x511123=_0x5e8546[_0x1654('0x15')]['markerNameToElements'](_0x5e5074[_0x1654('0x1b')]);if(_0x511123)for(const _0x364dc3 of _0x511123)_0x364dc3['is'](_0x1654('0x11'))&&(_0x5e8546[_0x1654('0x15')][_0x1654('0xf')](_0x364dc3,_0x5e5074[_0x1654('0x1b')]),_0x5e8546[_0x1654('0x1e')][_0x1654('0x17')](_0x364dc3));},{'priority':_0x1654('0x18')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53f6=['numberedList','getAttribute','forceValue','ELEMENT_LIST_ITEM','*Change\x20to:*\x20%0','mergeListItemForward','splitListItemBefore','registerCustomCallback','listItemId','commands','end','bulletedList','detach','_descriptionFactory','commandName','deletion','ELEMENT_NUMBERED_LIST','plugins','markBlockFormat','listIndent','has','getFirstRange','findIndex','commandParams','add','nextSibling','schema','map','registerElementLabel','before','value','createRange','toUpperCase','DocumentListUtils','get','locale','documentList','change','splitListItemAfter','isObject','parent','length','slice','model','indentList','start','format','from','TrackChangesEditing','ELEMENT_','fromRange','push','DocumentListEditing','expandListBlocksToCompleteList','nodeAfter','mergeListItemBackward','getSelectedBlocks','refresh','setSelection','document','markMultiRangeBlockFormat','createPositionAt','outdentList','registerDescriptionCallback','after','listType','hasAttribute','enableCommand','selection','execute','*Format:*\x20remove\x20from\x20%0','previousSibling'];(function(_0x3d923a,_0x53f67c){const _0x2d2c95=function(_0x1a1596){while(--_0x1a1596){_0x3d923a['push'](_0x3d923a['shift']());}};_0x2d2c95(++_0x53f67c);}(_0x53f6,0x166));const _0x2d2c=function(_0x3d923a,_0x53f67c){_0x3d923a=_0x3d923a-0x0;let _0x2d2c95=_0x53f6[_0x3d923a];return _0x2d2c95;};import{Plugin as _0x1b1281}from'ckeditor5/src/core';import{getTranslation as _0x155f31}from'../utils/common-translations';import{LiveRange as _0x258a64}from'ckeditor5/src/engine';export default class L extends _0x1b1281{['afterInit'](){const _0x586ab9=this['editor'];if(!_0x586ab9['plugins'][_0x2d2c('0x16')](_0x2d2c('0x36')))return;const _0x58d27d=_0x586ab9[_0x2d2c('0x25')],_0x719477=_0x586ab9[_0x2d2c('0x13')]['get'](_0x2d2c('0x32')),_0x57cb77=_0x586ab9[_0x2d2c('0x13')][_0x2d2c('0x24')](_0x2d2c('0x23'));function _0x1392a9(_0x12a091){return()=>{const _0x39ecec=_0x586ab9[_0x2d2c('0xb')][_0x2d2c('0x24')](_0x12a091);let _0x116ad4=Array[_0x2d2c('0x31')](_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x3d')][_0x2d2c('0x46')][_0x2d2c('0x3a')]());if(_0x1684b7(_0x12a091)){_0x116ad4=_0x57cb77[_0x2d2c('0x37')](_0x116ad4);const _0x4e652d=[];for(const _0x4a5bcb of _0x116ad4)_0x57cb77['isFirstBlockOfListItem'](_0x4a5bcb)&&_0x4e652d[_0x2d2c('0x35')](_0x4a5bcb);_0x116ad4=_0x4e652d;}_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x27')](()=>{_0x719477[_0x2d2c('0x3e')](_0x116ad4,{'commandName':_0x12a091,'commandParams':[{'forceValue':!_0x39ecec[_0x2d2c('0x20')]}],'formatGroupId':_0x2d2c('0x43')},[],_0x2d2c('0x26'));});};}function _0x5e05c4(_0x493e9e){return()=>{const _0x3ae582=function(_0x18d6e0){let _0x5dbac5=Array[_0x2d2c('0x31')](_0x18d6e0);const _0x28ccb5=_0x5dbac5[_0x2d2c('0x18')](_0x2ba4cc=>!_0x2ba4cc[_0x2d2c('0x44')]('listItemId'));return _0x28ccb5>-0x1&&(_0x5dbac5=_0x5dbac5[_0x2d2c('0x2c')](0x0,_0x28ccb5)),_0x5dbac5;}(_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x3d')][_0x2d2c('0x46')][_0x2d2c('0x3a')]()),_0x3229c3=_0x3ae582[_0x3ae582[_0x2d2c('0x2b')]-0x1],_0x56c99a=_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x1c')][_0x2d2c('0x29')](_0x3229c3)?_0x2d2c('0x42'):_0x2d2c('0xc'),_0x17470c=_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x21')](_0x586ab9['model'][_0x2d2c('0x3f')](_0x3ae582[0x0],'before'),_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x3f')](_0x3229c3,_0x56c99a));_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x27')](()=>{_0x719477[_0x2d2c('0x14')](_0x17470c,{'commandName':_0x493e9e,'commandParams':[],'formatGroupId':'listType'},function(_0x2af4c3){const _0x534573=new Set();for(const _0x57bc57 of _0x2af4c3){let _0x332cd2=_0x57bc57[_0x2d2c('0x1b')];for(;_0x332cd2&&_0x332cd2[_0x2d2c('0x3')](_0x2d2c('0x15'))>_0x57bc57[_0x2d2c('0x3')](_0x2d2c('0x15'));)_0x534573[_0x2d2c('0x1a')](_0x332cd2),_0x332cd2=_0x332cd2[_0x2d2c('0x1b')];}return Array[_0x2d2c('0x31')](_0x534573);}(_0x3ae582));});};}function _0x426add(_0x3ea7a5){return()=>{const _0x1c1f3f=_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x3d')][_0x2d2c('0x46')]['getSelectedBlocks']()['next']()[_0x2d2c('0x20')],_0x433260=_0x586ab9['model'][_0x2d2c('0x3f')](_0x1c1f3f,_0x2d2c('0x1f')),_0x303afc=_0x586ab9[_0x2d2c('0x2d')]['createPositionAt'](_0x1c1f3f,0x0),_0x1c05d7=_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x21')](_0x433260,_0x303afc);_0x586ab9[_0x2d2c('0x2d')]['change'](()=>{_0x719477[_0x2d2c('0x14')](_0x1c05d7,{'commandName':_0x3ea7a5,'commandParams':[],'formatGroupId':_0x2d2c('0x43')});});};}function _0x1684b7(_0x552390){const _0x77ca38=_0x586ab9[_0x2d2c('0xb')][_0x2d2c('0x24')](_0x2d2c('0xd'))['value'],_0x1095d0=_0x586ab9[_0x2d2c('0xb')][_0x2d2c('0x24')](_0x2d2c('0x2'))[_0x2d2c('0x20')];return _0x2d2c('0x2')===_0x552390?_0x77ca38:_0x1095d0;}_0x719477[_0x2d2c('0x45')](_0x2d2c('0x2'),_0x1392a9(_0x2d2c('0x2'))),_0x719477[_0x2d2c('0x45')](_0x2d2c('0xd'),_0x1392a9(_0x2d2c('0xd'))),_0x719477[_0x2d2c('0x45')](_0x2d2c('0x2e'),_0x5e05c4(_0x2d2c('0x2e'))),_0x719477[_0x2d2c('0x45')](_0x2d2c('0x40'),_0x5e05c4('outdentList')),_0x719477[_0x2d2c('0x45')](_0x2d2c('0x28'),_0x426add('splitListItemAfter')),_0x719477['enableCommand'](_0x2d2c('0x8'),_0x426add('splitListItemBefore')),_0x719477[_0x2d2c('0xf')][_0x2d2c('0x1e')](function(_0x347426){const _0x140941=!_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x1c')][_0x2d2c('0x29')](_0x347426),_0xf26b33=_0x347426[_0x2d2c('0x1')],_0x4a514f=_0x347426[_0x2d2c('0x1b')],_0xe1d200=_0x347426[_0x2d2c('0x3')](_0x2d2c('0xa')),_0x40f90a=!_0xf26b33||_0xf26b33[_0x2d2c('0x3')](_0x2d2c('0xa'))!==_0xe1d200,_0x12fe1d=!_0x4a514f||_0x4a514f[_0x2d2c('0x3')](_0x2d2c('0xa'))!==_0xe1d200;return _0x140941&&Boolean(_0xe1d200)&&_0x40f90a&&_0x12fe1d;},_0x36f86c=>_0x155f31(_0x58d27d,'ELEMENT_LIST_ITEM',_0x36f86c)),_0x719477[_0x2d2c('0xf')][_0x2d2c('0x41')](function(_0x2ecc5b){const {data:_0x235ac6}=_0x2ecc5b;if(!_0x235ac6)return;let _0xe39429,_0x3f407f,_0x106f31,_0xba8cd6;switch(_0x235ac6[_0x2d2c('0x10')]){case _0x2d2c('0xd'):_0x106f31=_0x235ac6[_0x2d2c('0x19')][0x0][_0x2d2c('0x4')],_0xba8cd6=_0x1684b7(_0x235ac6['commandName']),_0xe39429=_0x106f31?'*Format:*\x20insert\x20into\x20%0':_0x2d2c('0x0'),_0xba8cd6&&(_0xe39429=_0x2d2c('0x6')),_0x3f407f={'type':_0x2d2c('0x30'),'content':_0x155f31(_0x58d27d,_0xe39429,_0x155f31(_0x58d27d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x106f31=_0x235ac6[_0x2d2c('0x19')][0x0][_0x2d2c('0x4')],_0xba8cd6=_0x1684b7(_0x235ac6[_0x2d2c('0x10')]),_0xe39429=_0x106f31?'*Format:*\x20insert\x20into\x20%0':_0x2d2c('0x0'),_0xba8cd6&&(_0xe39429=_0x2d2c('0x6')),_0x3f407f={'type':_0x2d2c('0x30'),'content':_0x155f31(_0x58d27d,_0xe39429,_0x155f31(_0x58d27d,_0x2d2c('0x12')))};break;case'indentList':_0xe39429='*Indent:*\x20%0',_0x3f407f={'type':_0x2d2c('0x30'),'content':_0x155f31(_0x58d27d,_0xe39429,_0x155f31(_0x58d27d,_0x2d2c('0x5')))};break;case'outdentList':_0xe39429=function(_0x50379f){const _0x3cc5ee=_0x50379f[_0x2d2c('0x17')]();let _0x45b529=_0x3cc5ee[_0x2d2c('0x2f')]['nodeAfter'];for(;_0x45b529&&_0x3cc5ee['containsItem'](_0x45b529);){if(_0x45b529['getAttribute'](_0x2d2c('0x15'))>0x0)return!0x1;_0x45b529=_0x45b529[_0x2d2c('0x1b')];}return!0x0;}(_0x2ecc5b)?_0x155f31(_0x58d27d,_0x2d2c('0x0'),_0x155f31(_0x58d27d,function(_0x39f467){const _0x38a810=_0x39f467[_0x2d2c('0x17')]()[_0x2d2c('0x2f')][_0x2d2c('0x38')];return _0x2d2c('0x33')+_0x38a810[_0x2d2c('0x3')](_0x2d2c('0x43'))[_0x2d2c('0x22')]()+'_LIST';}(_0x2ecc5b))):_0x155f31(_0x58d27d,'*Outdent:*\x20%0',_0x155f31(_0x58d27d,_0x2d2c('0x5'))),_0x3f407f={'type':_0x2d2c('0x30'),'content':_0xe39429};break;case _0x2d2c('0x39'):case _0x2d2c('0x7'):!0x1===_0x235ac6['multipleBlocks']&&(_0xe39429='*Merge:*\x20%0',_0x3f407f={'type':_0x2d2c('0x11'),'content':_0x155f31(_0x58d27d,_0xe39429,_0x155f31(_0x58d27d,'ELEMENT_LIST_ITEM'))});}return _0x3f407f;}),_0x719477['_suggestionFactory'][_0x2d2c('0x9')]('formatBlock',_0x2d2c('0x26'),'accept',function(_0x4ae589,_0x1f9eee){const _0x461cf8=[];for(let _0x3e875b of _0x4ae589)_0x3e875b[_0x2d2c('0x2f')][_0x2d2c('0x38')]===_0x3e875b[_0x2d2c('0xc')][_0x2d2c('0x2a')]&&(_0x3e875b=_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x21')](_0x586ab9['model'][_0x2d2c('0x3f')](_0x3e875b[_0x2d2c('0x2f')][_0x2d2c('0x38')],0x0))),_0x461cf8[_0x2d2c('0x35')](_0x3e875b);_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x27')](_0x4afb08=>{const _0x54c764=_0x586ab9[_0x2d2c('0x2d')][_0x2d2c('0x3d')]['selection'],_0x5a2d3b=Array[_0x2d2c('0x31')](_0x54c764['getRanges']())[_0x2d2c('0x1d')](_0x5576a0=>_0x258a64[_0x2d2c('0x34')](_0x5576a0));_0x4afb08[_0x2d2c('0x3c')](_0x461cf8),_0x586ab9['commands'][_0x2d2c('0x24')](_0x1f9eee[_0x2d2c('0x10')])[_0x2d2c('0x3b')](),_0x1f9eee[_0x2d2c('0x19')][_0x2d2c('0x35')]({'forceDefaultExecution':!0x0}),_0x586ab9[_0x2d2c('0x47')](_0x1f9eee['commandName'],..._0x1f9eee[_0x2d2c('0x19')]),_0x4afb08[_0x2d2c('0x3c')](_0x5a2d3b);for(const _0x3988d7 of _0x5a2d3b)_0x3988d7[_0x2d2c('0xe')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfc6c=['change','_getTranslationKeyForListStyle','styles','get','toUpperCase','bind','_getSuggestionBlocksForListStyle','numbered','startIndex','isFirstBlockOfListItem','*Format:*\x20set\x20order\x20to\x20regular','replace','editor','TrackChangesEditing','*Format:*\x20set\x20order\x20to\x20reversed','listReversed','format','locale','commandParams','listStyle','handleListStyleCommand','has','expandListBlocksToCompleteList','_getSuggestionBlocks','length','model','getListTypeFromListStyleType','ELEMENT_','isListItemBlock','commandName','enableCommand','document','DocumentListPropertiesUtils','list.properties','getSelectedBlocks','getAttribute','reversed','handleListStartCommand','*Format:*\x20set\x20start\x20index\x20to\x20%0','selection','handleListReversedCommand','*Change\x20to:*\x20%0','listStart','markMultiRangeBlockFormat','DocumentListUtils','DocumentListPropertiesEditing','push','type','plugins','config','handleDescriptions'];(function(_0x4757ef,_0xfc6cdf){const _0xe0cded=function(_0x4a7f8b){while(--_0x4a7f8b){_0x4757ef['push'](_0x4757ef['shift']());}};_0xe0cded(++_0xfc6cdf);}(_0xfc6c,0x76));const _0xe0cd=function(_0x4757ef,_0xfc6cdf){_0x4757ef=_0x4757ef-0x0;let _0xe0cded=_0xfc6c[_0x4757ef];return _0xe0cded;};import{Plugin as _0x3b8b06}from'ckeditor5/src/core';import{getTranslation as _0x232ad5}from'../utils/common-translations';export default class At extends _0x3b8b06{['afterInit'](){if(!this['editor']['plugins'][_0xe0cd('0x5')](_0xe0cd('0x1d')))return;const _0x3b7dfa=this[_0xe0cd('0x2f')][_0xe0cd('0x21')]['get'](_0xe0cd('0x11')),_0x1450f6=this[_0xe0cd('0x2f')][_0xe0cd('0x20')][_0xe0cd('0x26')]('TrackChangesEditing');_0x3b7dfa[_0xe0cd('0x25')]&&_0x1450f6['enableCommand'](_0xe0cd('0x3'),this[_0xe0cd('0x4')]['bind'](this)),_0x3b7dfa[_0xe0cd('0x14')]&&_0x1450f6[_0xe0cd('0xe')](_0xe0cd('0x32'),this[_0xe0cd('0x18')][_0xe0cd('0x28')](this)),_0x3b7dfa[_0xe0cd('0x2b')]&&_0x1450f6[_0xe0cd('0xe')](_0xe0cd('0x1a'),this[_0xe0cd('0x15')][_0xe0cd('0x28')](this)),_0x1450f6['_descriptionFactory']['registerDescriptionCallback'](this[_0xe0cd('0x22')][_0xe0cd('0x28')](this));}['handleListStyleCommand'](_0x4ddb25,_0xcf036e={}){const _0x7dd7d8=this[_0xe0cd('0x2f')][_0xe0cd('0x20')][_0xe0cd('0x26')]('TrackChangesEditing'),_0x11af1d=this['_getSuggestionBlocksForListStyle']();this[_0xe0cd('0x2f')][_0xe0cd('0x9')]['change'](()=>{_0x7dd7d8[_0xe0cd('0x1b')](_0x11af1d,{'commandName':_0xe0cd('0x3'),'commandParams':[{'type':_0xcf036e['type']}],'formatGroupId':_0xe0cd('0x3')});});}[_0xe0cd('0x18')](_0x1ff0f1,_0x517fcd={}){const _0x289ed5=this[_0xe0cd('0x2f')]['plugins'][_0xe0cd('0x26')](_0xe0cd('0x30')),_0x1fe4f8=this['editor'][_0xe0cd('0x20')]['get'](_0xe0cd('0x1c')),_0x275891=this[_0xe0cd('0x7')](_0x1a93c2=>_0x1fe4f8[_0xe0cd('0xc')](_0x1a93c2)&&_0xe0cd('0x2a')===_0x1a93c2[_0xe0cd('0x13')]('listType'));null!==_0x275891&&this[_0xe0cd('0x2f')][_0xe0cd('0x9')][_0xe0cd('0x23')](()=>{_0x289ed5['markMultiRangeBlockFormat'](_0x275891,{'commandName':_0xe0cd('0x32'),'commandParams':[{'reversed':_0x517fcd[_0xe0cd('0x14')]}],'formatGroupId':_0xe0cd('0x32')});});}[_0xe0cd('0x15')](_0x1d2ecc,_0x3fb7e2={}){const _0x1a462b=this[_0xe0cd('0x2f')][_0xe0cd('0x20')][_0xe0cd('0x26')](_0xe0cd('0x30')),_0x23b254=this['editor'][_0xe0cd('0x20')][_0xe0cd('0x26')](_0xe0cd('0x1c')),_0x4ea72b=this[_0xe0cd('0x7')](_0x5372c6=>_0x23b254['isListItemBlock'](_0x5372c6)&&'numbered'===_0x5372c6[_0xe0cd('0x13')]('listType'));null!==_0x4ea72b&&this[_0xe0cd('0x2f')][_0xe0cd('0x9')]['change'](()=>{_0x1a462b[_0xe0cd('0x1b')](_0x4ea72b,{'commandName':_0xe0cd('0x1a'),'commandParams':[{'startIndex':_0x3fb7e2[_0xe0cd('0x2b')]}],'formatGroupId':_0xe0cd('0x1a')});});}[_0xe0cd('0x22')](_0x532274){const _0x68cfc9=this[_0xe0cd('0x2f')][_0xe0cd('0x1')],{data:_0x1a06ec}=_0x532274;if(!_0x1a06ec)return;let _0x3875fe,_0x1516ed;switch(_0x1a06ec[_0xe0cd('0xd')]){case'listStyle':_0x3875fe=_0xe0cd('0x19'),_0x1516ed={'type':_0xe0cd('0x0'),'content':_0x232ad5(_0x68cfc9,_0x3875fe,_0x232ad5(_0x68cfc9,this[_0xe0cd('0x24')](_0x1a06ec[_0xe0cd('0x2')][0x0][_0xe0cd('0x1f')])))};break;case _0xe0cd('0x32'):_0x3875fe=_0x1a06ec[_0xe0cd('0x2')][0x0][_0xe0cd('0x14')]?_0xe0cd('0x31'):_0xe0cd('0x2d'),_0x1516ed={'type':_0xe0cd('0x0'),'content':_0x232ad5(_0x68cfc9,_0x3875fe)};break;case _0xe0cd('0x1a'):_0x3875fe=_0xe0cd('0x16'),_0x1516ed={'type':'format','content':_0x232ad5(_0x68cfc9,_0x3875fe,_0x1a06ec[_0xe0cd('0x2')][0x0]['startIndex'])};}return _0x1516ed;}[_0xe0cd('0x29')](){const _0x526941=this[_0xe0cd('0x2f')][_0xe0cd('0x20')]['get'](_0xe0cd('0x1c'));let _0x215df9=Array['from'](this['editor']['model'][_0xe0cd('0xf')][_0xe0cd('0x17')][_0xe0cd('0x12')]());return _0x215df9['push'](..._0x526941[_0xe0cd('0x6')](_0x215df9)),_0x215df9=[...new Set(_0x215df9)],_0x215df9;}[_0xe0cd('0x7')](_0x4339d3){const _0x5f3b7b=this[_0xe0cd('0x2f')][_0xe0cd('0x20')][_0xe0cd('0x26')](_0xe0cd('0x1c'));let _0x45eff1=Array['from'](this['editor'][_0xe0cd('0x9')]['document']['selection'][_0xe0cd('0x12')]())['filter'](_0x4339d3);if(!_0x45eff1[_0xe0cd('0x8')])return null;_0x45eff1=_0x5f3b7b['expandListBlocksToCompleteList'](_0x45eff1);const _0x487177=[];for(const _0x3f24d8 of _0x45eff1)_0x5f3b7b[_0xe0cd('0x2c')](_0x3f24d8)&&_0x487177[_0xe0cd('0x1e')](_0x3f24d8);return _0x487177;}[_0xe0cd('0x24')](_0x1002a7){return _0xe0cd('0xb')+this[_0xe0cd('0x2f')]['plugins']['get'](_0xe0cd('0x10'))[_0xe0cd('0xa')](_0x1002a7)[_0xe0cd('0x27')]()+'_LIST_'+_0x1002a7[_0xe0cd('0x27')]()[_0xe0cd('0x2e')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x550b=['mapper','addMarker:suggestion:insertion','commands','init','editing','markerNameToElements','afterExecute','remove','createPositionAt','split','data','enableCommand','writer','high','model','removeMarker:suggestion:insertion','getFirstRange','unbindElementFromMarkerName','change','enter','document','markerName','plugins','ck-suggestion-marker-split','downcastDispatcher','fire','detach','getFirstPosition','fromRange','markInsertion','TrackChangesEditing','showSuggestionHighlights','setSelection'];(function(_0x1e0768,_0x550b9){const _0x1fccf4=function(_0x4f5fb0){while(--_0x4f5fb0){_0x1e0768['push'](_0x1e0768['shift']());}};_0x1fccf4(++_0x550b9);}(_0x550b,0xe2));const _0x1fcc=function(_0x1e0768,_0x550b9){_0x1e0768=_0x1e0768-0x0;let _0x1fccf4=_0x550b[_0x1e0768];return _0x1fccf4;};import{Plugin as _0x51754b}from'ckeditor5/src/core';import{Enter as _0x73e043}from'ckeditor5/src/enter';import{LiveRange as _0x23a9d6}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2a8578}from'./utils';export default class q extends _0x51754b{static get['requires'](){return[_0x73e043];}[_0x1fcc('0x8')](){const _0x358488=this['editor'],_0x54b1c1=_0x358488[_0x1fcc('0x1b')]['get'](_0x1fcc('0x2')),_0x42f4bf=_0x358488[_0x1fcc('0x7')]['get'](_0x1fcc('0x18'));_0x54b1c1[_0x1fcc('0x10')]('enter',()=>{_0x358488[_0x1fcc('0x13')][_0x1fcc('0x17')](_0x230524=>{const _0x3269a9=_0x358488[_0x1fcc('0x13')][_0x1fcc('0x19')]['selection'],_0x28b84d=_0x3269a9[_0x1fcc('0x20')](),_0x368ef9=_0x23a9d6[_0x1fcc('0x0')](_0x3269a9[_0x1fcc('0x15')]());if(_0x42f4bf['enterBlock'](_0x230524)){const _0x57d87c=_0x358488[_0x1fcc('0x13')][_0x1fcc('0xd')](_0x28b84d['parent']['nextSibling'],0x0),_0x326b3d=_0x230524['createRange'](_0x28b84d,_0x57d87c);_0x54b1c1[_0x1fcc('0x1')](_0x326b3d);}else _0x230524[_0x1fcc('0x4')](_0x230524['createRange'](_0x368ef9['end']));_0x368ef9[_0x1fcc('0x1f')](),_0x42f4bf[_0x1fcc('0x1e')](_0x1fcc('0xb'),{'writer':_0x230524});});}),_0x358488[_0x1fcc('0x9')][_0x1fcc('0x1d')]['on'](_0x1fcc('0x6'),_0x2a8578(_0x358488,'split'),{'priority':_0x1fcc('0x12')}),_0x358488[_0x1fcc('0x9')]['downcastDispatcher']['on'](_0x1fcc('0x14'),(_0x51fa2a,_0x1e90ac,_0x44f8d1)=>{const _0x361697=_0x44f8d1[_0x1fcc('0x5')][_0x1fcc('0xa')](_0x1e90ac['markerName']);if(_0x361697)for(const _0x4700be of _0x361697)_0x4700be['hasClass'](_0x1fcc('0x1c'))&&(_0x44f8d1[_0x1fcc('0x5')][_0x1fcc('0x16')](_0x4700be,_0x1e90ac[_0x1fcc('0x1a')]),_0x44f8d1[_0x1fcc('0x11')][_0x1fcc('0xc')](_0x4700be));},{'priority':_0x1fcc('0x12')}),_0x358488[_0x1fcc('0xf')][_0x1fcc('0x1d')]['on'](_0x1fcc('0x6'),(_0x5071ae,_0x91954c,_0xb51880)=>{_0xb51880['options'][_0x1fcc('0x3')]&&_0x2a8578(_0x358488,_0x1fcc('0xe'),{'showActiveMarker':!0x1})['bind'](this)(_0x5071ae,_0x91954c,_0xb51880);},{'priority':_0x1fcc('0x12')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x556b=['_isInDeletionRange','replaceAll','end','TrackChangesEditing','enableCommand','string','findPrevious','createPositionAt','getMarkersGroup','find','replace','item','editor','findNext','createRange','findByTextCallback','get','suggestion:deletion','markers','handleFindCommand','model','plugins','start','getIntersection'];(function(_0x53b965,_0x556b28){const _0x1eaf20=function(_0x31c2e9){while(--_0x31c2e9){_0x53b965['push'](_0x53b965['shift']());}};_0x1eaf20(++_0x556b28);}(_0x556b,0x1c4));const _0x1eaf=function(_0x53b965,_0x556b28){_0x53b965=_0x53b965-0x0;let _0x1eaf20=_0x556b[_0x53b965];return _0x1eaf20;};import{Plugin as _0x5e62ca}from'ckeditor5/src/core';export default class z extends _0x5e62ca{['afterInit'](){if(!this[_0x1eaf('0x10')]['plugins']['has']('FindAndReplaceEditing'))return;const _0x2167ca=this[_0x1eaf('0x10')][_0x1eaf('0x1')]['get'](_0x1eaf('0x7'));_0x2167ca[_0x1eaf('0x8')](_0x1eaf('0xd'),this[_0x1eaf('0x17')]['bind'](this)),_0x2167ca['enableCommand'](_0x1eaf('0x11')),_0x2167ca[_0x1eaf('0x8')](_0x1eaf('0xa')),_0x2167ca[_0x1eaf('0x8')](_0x1eaf('0xe')),_0x2167ca[_0x1eaf('0x8')](_0x1eaf('0x5'));}[_0x1eaf('0x17')](_0x2d5387,_0x30c12c,_0x51131a={}){const _0x39ef65=this[_0x1eaf('0x10')][_0x1eaf('0x1')][_0x1eaf('0x14')]('FindAndReplaceUtils');void 0x0!==_0x51131a&&_0x2d5387(_0x182a1f=>(_0x1eaf('0x9')==typeof _0x30c12c?_0x39ef65[_0x1eaf('0x13')](_0x30c12c,_0x51131a):_0x30c12c)(_0x182a1f)['filter'](_0x48a246=>!0x1===this[_0x1eaf('0x4')](_0x48a246,_0x182a1f[_0x1eaf('0xf')])),_0x51131a);}[_0x1eaf('0x4')](_0x53a818,_0x24c70b){const _0x3b6ac1=this['editor'][_0x1eaf('0x0')][_0x1eaf('0x12')](this['editor']['model'][_0x1eaf('0xb')](_0x24c70b,_0x53a818[_0x1eaf('0x2')]),this[_0x1eaf('0x10')][_0x1eaf('0x0')][_0x1eaf('0xb')](_0x24c70b,_0x53a818[_0x1eaf('0x6')]));for(const _0x25c790 of this[_0x1eaf('0x10')][_0x1eaf('0x0')][_0x1eaf('0x16')][_0x1eaf('0xc')](_0x1eaf('0x15')))if(null!==_0x3b6ac1[_0x1eaf('0x3')](_0x25c790['getRange']()))return!0x0;return!0x1;}}
|