@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230808.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- 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-20230808.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-20230808.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230808.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 _0x1fa4=['plugins','refresh','get','execute','editor','track-changes-accept-suggestion-not-found','TrackChangesEditing','model','_suggestions','_isEnabledBasedOnSelection','canEditAt'];(function(_0x13953a,_0x1fa4cf){const _0x254327=function(_0x4cad8e){while(--_0x4cad8e){_0x13953a['push'](_0x13953a['shift']());}};_0x254327(++_0x1fa4cf);}(_0x1fa4,0xb6));const _0x2543=function(_0x13953a,_0x1fa4cf){_0x13953a=_0x13953a-0x0;let _0x254327=_0x1fa4[_0x13953a];return _0x254327;};import{Command as _0x1057db}from'ckeditor5/src/core';import{CKEditorError as _0x4a68d9}from'ckeditor5/src/utils';export default class M extends _0x1057db{constructor(_0x479213,_0x266b9b){super(_0x479213),this[_0x2543('0x2')]=_0x266b9b,this[_0x2543('0x6')](),this[_0x2543('0x3')]=!0x1;}[_0x2543('0x6')](){this['isEnabled']=!0x0;}[_0x2543('0x8')](_0x4d8608){const _0x2c05ad=this[_0x2543('0x2')][_0x2543('0x7')](_0x4d8608);if(!_0x2c05ad)throw new _0x4a68d9(_0x2543('0xa'),this);const _0x30602d=_0x2c05ad['getRanges']();this[_0x2543('0x9')][_0x2543('0x1')][_0x2543('0x4')](_0x30602d)&&this[_0x2543('0x9')][_0x2543('0x5')]['get'](_0x2543('0x0'))['acceptSuggestion'](_0x2c05ad);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1314=['refresh','track-changes-discard-suggestion-not-found','TrackChangesEditing','get','getRanges','editor','canEditAt','_suggestions','_isEnabledBasedOnSelection','isEnabled','model'];(function(_0x5570e6,_0x13147a){const _0x54f2e8=function(_0xbe97c){while(--_0xbe97c){_0x5570e6['push'](_0x5570e6['shift']());}};_0x54f2e8(++_0x13147a);}(_0x1314,0x1cb));const _0x54f2=function(_0x5570e6,_0x13147a){_0x5570e6=_0x5570e6-0x0;let _0x54f2e8=_0x1314[_0x5570e6];return _0x54f2e8;};import{Command as _0x2a0968}from'ckeditor5/src/core';import{CKEditorError as _0x385075}from'ckeditor5/src/utils';export default class $ extends _0x2a0968{constructor(_0x4a8c62,_0x5155d5){super(_0x4a8c62),this[_0x54f2('0xa')]=_0x5155d5,this['refresh'](),this[_0x54f2('0x0')]=!0x1;}[_0x54f2('0x3')](){this[_0x54f2('0x1')]=!0x0;}['execute'](_0xa81f36){const _0x37adee=this['_suggestions'][_0x54f2('0x6')](_0xa81f36);if(!_0x37adee)throw new _0x385075(_0x54f2('0x4'),this);const _0x31dfe7=_0x37adee[_0x54f2('0x7')]();this[_0x54f2('0x8')][_0x54f2('0x2')][_0x54f2('0x9')](_0x31dfe7)&&this['editor']['plugins'][_0x54f2('0x6')](_0x54f2('0x5'))['discardSuggestion'](_0x37adee);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5658=['canEditAt','editor','_isEnabledBasedOnSelection','some','values','_suggestions','from','_command','isEnabled','refresh','getRanges','model','isInContent'];(function(_0x36fae7,_0x56583d){const _0x134b2d=function(_0x228bc7){while(--_0x228bc7){_0x36fae7['push'](_0x36fae7['shift']());}};_0x134b2d(++_0x56583d);}(_0x5658,0x14b));const _0x134b=function(_0x36fae7,_0x56583d){_0x36fae7=_0x36fae7-0x0;let _0x134b2d=_0x5658[_0x36fae7];return _0x134b2d;};import{Command as _0x261ed5}from'ckeditor5/src/core';import{sortSuggestions as _0x168313,executeCommandForSuggestions as _0x352fcb}from'../utils/utils';export default class N extends _0x261ed5{constructor(_0x13e452,_0x2144fb,_0x19864d){super(_0x13e452),this[_0x134b('0x1')]=_0x2144fb,this['_suggestions']=_0x19864d,this[_0x134b('0x3')](),this[_0x134b('0x9')]=!0x1;}[_0x134b('0x3')](){const _0x4e36ea=Array[_0x134b('0x0')](this[_0x134b('0xc')][_0x134b('0xb')]())[_0x134b('0xa')](_0x368d52=>_0x368d52[_0x134b('0x6')]);this['isEnabled']=this[_0x134b('0x1')][_0x134b('0x2')]&&_0x4e36ea;}['execute'](){const _0x16814b=_0x168313(Array[_0x134b('0x0')](this['_suggestions'][_0x134b('0xb')]()));for(const _0x45267b of _0x16814b){const _0x3cda81=_0x45267b[_0x134b('0x4')]();if(!this[_0x134b('0x8')][_0x134b('0x5')][_0x134b('0x7')](_0x3cda81))return;}_0x352fcb(this[_0x134b('0x8')][_0x134b('0x5')],this[_0x134b('0x1')],_0x16814b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45a3=['model','_selectedSuggestions','document','from','values','selection','refresh','_suggestions','execute','size','getRanges','_command','isEnabled','editor','canEditAt'];(function(_0x56c793,_0x45a35f){const _0xb443ce=function(_0x53e62d){while(--_0x53e62d){_0x56c793['push'](_0x56c793['shift']());}};_0xb443ce(++_0x45a35f);}(_0x45a3,0x1d0));const _0xb443=function(_0x56c793,_0x45a35f){_0x56c793=_0x56c793-0x0;let _0xb443ce=_0x45a3[_0x56c793];return _0xb443ce;};import{Command as _0xa3cc11}from'ckeditor5/src/core';import{sortSuggestions as _0x2cdca6,getSelectedSuggestions as _0x46316e,executeCommandForSuggestions as _0x22b355}from'../utils/utils';export default class R extends _0xa3cc11{constructor(_0x30d0a3,_0x4db59f,_0x3ef409){super(_0x30d0a3),this[_0xb443('0xc')]=_0x4db59f,this[_0xb443('0x8')]=_0x3ef409,this[_0xb443('0x2')]=new Set(),this[_0xb443('0x7')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0xb443('0x7')](){const _0x4b1198=this[_0xb443('0xe')][_0xb443('0x1')][_0xb443('0x3')][_0xb443('0x6')],_0x4e3326=Array[_0xb443('0x4')](this[_0xb443('0x8')][_0xb443('0x5')]());this[_0xb443('0x2')]=_0x46316e(_0x4b1198,_0x4e3326),this[_0xb443('0xd')]=this[_0xb443('0xc')]['isEnabled']&&!!this[_0xb443('0x2')][_0xb443('0xa')];}[_0xb443('0x9')](){const _0x4e3cf5=_0x2cdca6(Array[_0xb443('0x4')](this[_0xb443('0x2')]));for(const _0x3aa9e0 of _0x4e3cf5){const _0x4e8b7e=_0x3aa9e0[_0xb443('0xb')]();if(!this[_0xb443('0xe')][_0xb443('0x1')][_0xb443('0x0')](_0x4e8b7e))return;}_0x22b355(this[_0xb443('0xe')][_0xb443('0x1')],this['_command'],_0x4e3cf5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5edf=['isEnabled','_enableCommands','commands','clearForceDisabled','forceDisabled','value','editor','has','refresh','_isEnabledBasedOnSelection','_disableUnsupportedCommands','_enabledCommands','affectsData','TrackChangesCommand'];(function(_0x5343ce,_0x5edf5d){const _0x21d423=function(_0x2e7705){while(--_0x2e7705){_0x5343ce['push'](_0x5343ce['shift']());}};_0x21d423(++_0x5edf5d);}(_0x5edf,0x1c2));const _0x21d4=function(_0x5343ce,_0x5edf5d){_0x5343ce=_0x5343ce-0x0;let _0x21d423=_0x5edf[_0x5343ce];return _0x21d423;};import{Command as _0x47ad48}from'ckeditor5/src/core';export default class _ extends _0x47ad48{constructor(_0x5e7b03,_0x33a4ee){super(_0x5e7b03),this[_0x21d4('0x9')]=_0x33a4ee,this[_0x21d4('0x3')]=!0x1,this[_0x21d4('0x6')](),this[_0x21d4('0x7')]=!0x1;}[_0x21d4('0x6')](){this[_0x21d4('0xc')]=!0x0;}['execute'](){this[_0x21d4('0x3')]=!this[_0x21d4('0x3')],this[_0x21d4('0x3')]?this['_disableUnsupportedCommands']():this[_0x21d4('0xd')]();}[_0x21d4('0x8')](){for(const _0x5ceded of this[_0x21d4('0x4')][_0x21d4('0x0')][_0x21d4('0x0')]())_0x5ceded['affectsData']&&!this['_enabledCommands'][_0x21d4('0x5')](_0x5ceded)&&_0x5ceded[_0x21d4('0x2')](_0x21d4('0xb'));}[_0x21d4('0xd')](){for(const _0x5b3471 of this[_0x21d4('0x4')][_0x21d4('0x0')][_0x21d4('0x0')]())_0x5b3471[_0x21d4('0xa')]&&!this[_0x21d4('0x9')]['has'](_0x5b3471)&&_0x5b3471[_0x21d4('0x1')](_0x21d4('0xb'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x670a=['locale','getSelectedBlocks','FORMAT_ALIGN_TO_RIGHT','format','editor','afterInit','FORMAT_ALIGN_TO_CENTER','markBlockFormat','change','from','schema','right','model','TrackChangesEditing','center','checkAttribute','value','plugins','selection','getAttribute','registerDescriptionCallback','*Format:*\x20%0','commandParams','ltr','_descriptionFactory','FORMAT_ALIGN_TO_LEFT','contentLanguageDirection','left','enableCommand','document','FORMAT_JUSTIFY_TEXT','has','alignment'];(function(_0x527765,_0x670aab){const _0x14137a=function(_0x396695){while(--_0x396695){_0x527765['push'](_0x527765['shift']());}};_0x14137a(++_0x670aab);}(_0x670a,0x1be));const _0x1413=function(_0x527765,_0x670aab){_0x527765=_0x527765-0x0;let _0x14137a=_0x670a[_0x527765];return _0x14137a;};import{Plugin as _0x4aae59}from'ckeditor5/src/core';import{getTranslation as _0x3773e1}from'../utils/common-translations';export default class x extends _0x4aae59{[_0x1413('0x15')](){const _0x30ba4e=this['editor'],_0x3f128d=_0x30ba4e[_0x1413('0x10')];if(!_0x30ba4e[_0x1413('0x0')][_0x1413('0xe')]('AlignmentEditing'))return;const _0xe5de8d=_0x30ba4e[_0x1413('0x0')]['get'](_0x1413('0x1d'));_0xe5de8d[_0x1413('0xb')](_0x1413('0xf'),(_0x9f99cb,_0x4530df={})=>{let _0x3d35e6=_0x4530df[_0x1413('0x20')];_0x4530df['value']||(_0x3d35e6=_0x1413('0x6')===_0x30ba4e[_0x1413('0x10')][_0x1413('0x9')]?'left':_0x1413('0x1b'));const _0x42e393=Array[_0x1413('0x19')](this['editor']['model'][_0x1413('0xc')][_0x1413('0x1')][_0x1413('0x11')]())['filter'](_0x2f34df=>function(_0x5ac132,_0x457a43,_0x2e1aeb){const _0x544690=_0x5ac132[_0x1413('0x2')](_0x1413('0xf'))||null;return _0x457a43[_0x1413('0x1f')](_0x5ac132,_0x1413('0xf'))&&_0x2e1aeb!=_0x544690;}(_0x2f34df,this[_0x1413('0x14')][_0x1413('0x1c')][_0x1413('0x1a')],_0x3d35e6));_0x30ba4e[_0x1413('0x1c')][_0x1413('0x18')](()=>{for(const _0x49daaf of _0x42e393)_0xe5de8d[_0x1413('0x17')](_0x49daaf,{'commandName':'alignment','commandParams':[{'value':_0x3d35e6}]});});}),_0xe5de8d[_0x1413('0x7')][_0x1413('0x3')](_0x53dfce=>{const {data:_0x2bac6f}=_0x53dfce;if(_0x2bac6f&&_0x1413('0xf')==_0x2bac6f['commandName']){const _0x4bbe9d=_0x2bac6f[_0x1413('0x5')][0x0][_0x1413('0x20')];return{'type':_0x1413('0x13'),'content':_0x3773e1(_0x3f128d,_0x1413('0x4'),function(_0x3690e1){switch(_0x3690e1){case _0x1413('0xa'):return _0x3773e1(_0x3f128d,_0x1413('0x8'));case _0x1413('0x1b'):return _0x3773e1(_0x3f128d,_0x1413('0x12'));case _0x1413('0x1e'):return _0x3773e1(_0x3f128d,_0x1413('0x16'));case'justify':return _0x3773e1(_0x3f128d,_0x1413('0xd'));}}(_0x4bbe9d))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2308=['commands','afterInit','*Format:*\x20%0','plugins','CodeEditing','italic','bold','_descriptionFactory','FORMAT_UNDERLINE','forceValue','BoldEditing','slice','getRanges','FORMAT_ITALIC','has','SuperscriptEditing','get','FORMAT_STRIKETHROUGH','change','editor','toLowerCase','code','*Remove\x20format:*\x20%0','commandName','SubscriptEditing','format','UnderlineEditing','selection','commandParams','subscript','enableCommand','underline'];(function(_0x43289e,_0x2308d1){const _0x4f082e=function(_0x132e4a){while(--_0x132e4a){_0x43289e['push'](_0x43289e['shift']());}};_0x4f082e(++_0x2308d1);}(_0x2308,0x17e));const _0x4f08=function(_0x43289e,_0x2308d1){_0x43289e=_0x43289e-0x0;let _0x4f082e=_0x2308[_0x43289e];return _0x4f082e;};import{Plugin as _0x56f4e9}from'ckeditor5/src/core';import{getTranslation as _0x4089f9}from'../utils/common-translations';import{getRangesWithAttribute as _0x1da469}from'./utils';const Kt=[_0x4f08('0xc'),'ItalicEditing',_0x4f08('0x1c'),_0x4f08('0x6'),'StrikethroughEditing',_0x4f08('0x1a'),_0x4f08('0x11')];export default class U extends _0x56f4e9{[_0x4f08('0x3')](){const _0x937769=this[_0x4f08('0x15')],_0x30d926=_0x937769['model'],_0x10804e=_0x937769[_0x4f08('0x5')][_0x4f08('0x12')]('TrackChangesEditing'),_0x466dab=_0x937769['locale'];for(const _0x47ab77 of Kt){if(!_0x937769[_0x4f08('0x5')][_0x4f08('0x10')](_0x47ab77))continue;const _0x47d0c6=_0x47ab77[_0x4f08('0xd')](0x0,-0x7)[_0x4f08('0x16')](),_0x228ba3=_0x937769[_0x4f08('0x2')][_0x4f08('0x12')](_0x47d0c6);_0x10804e[_0x4f08('0x0')](_0x47d0c6,(_0x2c3b74,_0x46a439={})=>{const _0x3f2edd=_0x30d926['document'][_0x4f08('0x1d')];if(_0x3f2edd['isCollapsed'])return void _0x2c3b74(_0x46a439);const _0x2e1ae6=void 0x0!==_0x46a439[_0x4f08('0xb')]?_0x46a439[_0x4f08('0xb')]:!_0x228ba3['value'];_0x30d926[_0x4f08('0x14')](()=>{const _0x9a3359=Array['from'](_0x3f2edd[_0x4f08('0xe')]());for(const _0xf6ef72 of _0x9a3359){const _0x4e0953=_0x2e1ae6?[_0xf6ef72]:_0x1da469(_0x47d0c6,_0xf6ef72,_0x30d926);for(const _0x269bc3 of _0x4e0953)_0x10804e['markInlineFormat'](_0x269bc3,{'commandName':_0x47d0c6,'commandParams':[{'forceValue':_0x2e1ae6}]});}});});}function _0x19c7df(_0x18fb05,_0x3fa7ed){_0x10804e[_0x4f08('0x9')]['registerDescriptionCallback'](_0x33d284=>{const {data:_0x3c344f}=_0x33d284;if(_0x3c344f&&_0x3c344f[_0x4f08('0x19')]===_0x18fb05)return _0x3c344f[_0x4f08('0x1e')][0x0][_0x4f08('0xb')]?{'type':_0x4f08('0x1b'),'content':_0x4089f9(_0x466dab,_0x4f08('0x4'),_0x3fa7ed)}:{'type':_0x4f08('0x1b'),'content':_0x4089f9(_0x466dab,_0x4f08('0x18'),_0x3fa7ed)};});}_0x19c7df(_0x4f08('0x8'),_0x4089f9(_0x466dab,'FORMAT_BOLD')),_0x19c7df(_0x4f08('0x7'),_0x4089f9(_0x466dab,_0x4f08('0xf'))),_0x19c7df(_0x4f08('0x1'),_0x4089f9(_0x466dab,_0x4f08('0xa'))),_0x19c7df(_0x4f08('0x17'),_0x4089f9(_0x466dab,'FORMAT_CODE')),_0x19c7df('strikethrough',_0x4089f9(_0x466dab,_0x4f08('0x13'))),_0x19c7df(_0x4f08('0x1f'),_0x4089f9(_0x466dab,'FORMAT_SUBSCRIPT')),_0x19c7df('superscript',_0x4089f9(_0x466dab,'FORMAT_SUPERSCRIPT'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d87=['afterInit','format','*Remove\x20format:*\x20%0','enableCommand','plugins','markBlockFormat','TrackChangesEditing','BlockQuoteEditing','value','change','selection','name','ELEMENT_BLOCK_QUOTE','parent','*Format:*\x20%0','commands','editor','filter','getSelectedBlocks','forceValue','model','from','registerDescriptionCallback','checkChild','commandParams','$root','blockQuote'];(function(_0x5377b5,_0x1d87a2){const _0x4ec285=function(_0x5c8609){while(--_0x5c8609){_0x5377b5['push'](_0x5377b5['shift']());}};_0x4ec285(++_0x1d87a2);}(_0x1d87,0x1c2));const _0x4ec2=function(_0x5377b5,_0x1d87a2){_0x5377b5=_0x5377b5-0x0;let _0x4ec285=_0x1d87[_0x5377b5];return _0x4ec285;};import{Plugin as _0x44cf84}from'ckeditor5/src/core';import{getTranslation as _0x4e9772}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x4cac80}from'../utils/utils';export default class j extends _0x44cf84{[_0x4ec2('0x9')](){const _0x351627=this[_0x4ec2('0x19')],_0x449a7e=_0x351627['locale'];if(!_0x351627[_0x4ec2('0xd')]['has'](_0x4ec2('0x10')))return;const _0x4ad95f=_0x351627[_0x4ec2('0xd')]['get'](_0x4ec2('0xf')),_0x52e022=this[_0x4ec2('0x19')][_0x4ec2('0x18')]['get'](_0x4ec2('0x8'));_0x4ad95f[_0x4ec2('0xc')](_0x4ec2('0x8'),(_0x2bffe9,_0x3a8d37={})=>{const _0x432c6e=this[_0x4ec2('0x19')][_0x4ec2('0x2')]['document'][_0x4ec2('0x13')],_0x2b2de5=_0x3a8d37&&void 0x0!==_0x3a8d37[_0x4ec2('0x1')]?_0x3a8d37[_0x4ec2('0x1')]:!_0x52e022[_0x4ec2('0x11')];let _0x1e4f04=[];if(_0x2b2de5){const _0x8a445d=Array[_0x4ec2('0x3')](_0x432c6e[_0x4ec2('0x0')]())[_0x4ec2('0x1a')](_0x524247=>Xt(_0x524247)||function(_0x45beed,_0x3f6693){const _0x29f67d=_0x3f6693['checkChild'](_0x45beed[_0x4ec2('0x16')],_0x4ec2('0x8')),_0x2073e0=_0x3f6693[_0x4ec2('0x5')]([_0x4ec2('0x7'),'blockQuote'],_0x45beed);return _0x29f67d&&_0x2073e0;}(_0x524247,this['editor'][_0x4ec2('0x2')]['schema']));_0x1e4f04=_0x4cac80(_0x8a445d,_0x351627[_0x4ec2('0x2')]);}else{const _0x487b24=Array['from'](_0x432c6e[_0x4ec2('0x0')]())['filter'](_0x277e38=>Xt(_0x277e38));_0x1e4f04=_0x4cac80(_0x487b24,_0x351627[_0x4ec2('0x2')]);}_0x351627[_0x4ec2('0x2')][_0x4ec2('0x12')](()=>{for(const _0x8f5d68 of _0x1e4f04)_0x4ad95f[_0x4ec2('0xe')](_0x8f5d68,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b2de5}]});});}),_0x4ad95f['_descriptionFactory'][_0x4ec2('0x4')](_0x344280=>{const {data:_0x3162e4}=_0x344280;if(_0x3162e4&&_0x4ec2('0x8')==_0x3162e4['commandName']){const _0x426d8c=_0x4e9772(_0x449a7e,_0x4ec2('0x15'));return _0x3162e4[_0x4ec2('0x6')][0x0][_0x4ec2('0x1')]?{'type':_0x4ec2('0xa'),'content':_0x4e9772(_0x449a7e,_0x4ec2('0x17'),_0x426d8c)}:{'type':_0x4ec2('0xa'),'content':_0x4e9772(_0x449a7e,_0x4ec2('0xb'),_0x426d8c)};}});}}function Xt(_0xc1f5e0){return _0x4ec2('0x8')==_0xc1f5e0[_0x4ec2('0x16')][_0x4ec2('0x14')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a56=['get','ckbox','plugins','afterInit','enableCommand'];(function(_0x4b2e7b,_0x5a5632){const _0x5cc058=function(_0x5a5f48){while(--_0x5a5f48){_0x4b2e7b['push'](_0x4b2e7b['shift']());}};_0x5cc058(++_0x5a5632);}(_0x5a56,0x1a0));const _0x5cc0=function(_0x4b2e7b,_0x5a5632){_0x4b2e7b=_0x4b2e7b-0x0;let _0x5cc058=_0x5a56[_0x4b2e7b];return _0x5cc058;};import{Plugin as _0x4bbfd9}from'ckeditor5/src/core';export default class E extends _0x4bbfd9{[_0x5cc0('0x2')](){const _0x31a443=this['editor'];_0x31a443['commands'][_0x5cc0('0x4')](_0x5cc0('0x0'))&&_0x31a443[_0x5cc0('0x1')][_0x5cc0('0x4')]('TrackChangesEditing')[_0x5cc0('0x3')](_0x5cc0('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5093=['ELEMENT_CODE_BLOCK','enableCommand','languages','checkChild','commands','locale','plugins','format','name','editor','registerDescriptionCallback','commandName','formatBlock','selection','config','blockName','getSelectedBlocks','TrackChangesEditing','commandParams','*Format:*\x20%0','model','from','language','filter','isLimit','outdentCodeBlock','markBlockFormat','change','schema','get','codeBlock','has','forceValue'];(function(_0x20cef9,_0x50936c){const _0x1779bf=function(_0x3a5c3e){while(--_0x3a5c3e){_0x20cef9['push'](_0x20cef9['shift']());}};_0x1779bf(++_0x50936c);}(_0x5093,0xed));const _0x1779=function(_0x20cef9,_0x50936c){_0x20cef9=_0x20cef9-0x0;let _0x1779bf=_0x5093[_0x20cef9];return _0x1779bf;};import{Plugin as _0x79fbcb}from'ckeditor5/src/core';import{getTranslation as _0x2d79be}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x47669b}from'../utils/utils';export default class O extends _0x79fbcb{['afterInit'](){const _0x434099=this[_0x1779('0x3')];if(!_0x434099[_0x1779('0x0')][_0x1779('0x19')]('CodeBlock'))return;const _0x33001b=_0x434099['plugins'][_0x1779('0x17')](_0x1779('0xb')),_0x1e8c81=_0x434099[_0x1779('0x20')],_0x2ccb7e=_0x434099[_0x1779('0x8')][_0x1779('0x17')](_0x1779('0x18'))[_0x1779('0x1d')],_0x1b8dd9=_0x434099[_0x1779('0x1f')]['get'](_0x1779('0x18'));_0x33001b[_0x1779('0x1c')]('indentCodeBlock'),_0x33001b[_0x1779('0x1c')](_0x1779('0x13')),_0x33001b[_0x1779('0x1c')]('codeBlock',(_0x15776d,_0x2ab922={})=>{const _0x4a3127=_0x434099[_0x1779('0xe')],_0x38a55e=_0x434099[_0x1779('0xe')]['document'][_0x1779('0x7')],_0x6cf52c=_0x2ab922&&void 0x0!==_0x2ab922['forceValue']?_0x2ab922[_0x1779('0x1a')]:!_0x1b8dd9['value'];let _0x350eba;_0x2ab922[_0x1779('0x10')]||(_0x2ab922[_0x1779('0x10')]=_0x2ccb7e[0x0][_0x1779('0x10')]),_0x350eba=_0x6cf52c?Array[_0x1779('0xf')](_0x38a55e[_0x1779('0xa')]())[_0x1779('0x11')](_0x397219=>oo(_0x397219)||function(_0x39a166,_0x43ea0b){if(_0x39a166['is']('rootElement')||_0x43ea0b[_0x1779('0x12')](_0x39a166))return!0x1;return _0x43ea0b[_0x1779('0x1e')](_0x39a166['parent'],_0x1779('0x18'));}(_0x397219,_0x4a3127[_0x1779('0x16')])):Array[_0x1779('0xf')](_0x38a55e[_0x1779('0xa')]())[_0x1779('0x11')](_0xfdf016=>oo(_0xfdf016));const _0x19579f=_0x47669b(_0x350eba,_0x4a3127);_0x4a3127[_0x1779('0x15')](()=>{for(const _0x29c135 of _0x19579f)_0x33001b[_0x1779('0x14')](_0x29c135,{'commandName':_0x1779('0x18'),'commandParams':[{..._0x2ab922,'forceValue':_0x6cf52c}],'formatGroupId':_0x1779('0x9')});});}),(_0x33001b['_descriptionFactory']['registerElementLabel']('codeBlock',_0x236afa=>_0x2d79be(_0x1e8c81,'ELEMENT_CODE_BLOCK',_0x236afa)),_0x33001b['_descriptionFactory'][_0x1779('0x4')](_0xa7ffbb=>{const _0x374727=_0x1e8c81['t'],{type:_0x112fdb,data:_0x3163f3}=_0xa7ffbb;if(_0x1779('0x6')==_0x112fdb&&_0x3163f3&&_0x1779('0x18')==_0x3163f3[_0x1779('0x5')]){const _0x29e8e2=_0x3163f3[_0x1779('0xc')][0x0][_0x1779('0x10')],_0xe726f8=_0x374727(_0x2ccb7e['find'](_0x11d9e8=>_0x11d9e8['language']===_0x29e8e2)['label']);return _0x3163f3['commandParams'][0x0][_0x1779('0x1a')]?{'type':'format','content':_0x2d79be(_0x1e8c81,_0x1779('0xd'),_0x2d79be(_0x1e8c81,_0x1779('0x1b'),0x1)+'\x20('+_0xe726f8+')')}:{'type':_0x1779('0x1'),'content':_0x2d79be(_0x1e8c81,'*Remove\x20format:*\x20%0',_0x2d79be(_0x1e8c81,'ELEMENT_CODE_BLOCK',0x1))};}}));}}function oo(_0x4b46c5){return _0x1779('0x18')==_0x4b46c5[_0x1779('0x2')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23c1=['afterInit','get','TrackChangesEditing','enableCommand','plugins','has'];(function(_0x421cd6,_0x23c1cf){const _0x49d335=function(_0x2725bc){while(--_0x2725bc){_0x421cd6['push'](_0x421cd6['shift']());}};_0x49d335(++_0x23c1cf);}(_0x23c1,0x179));const _0x49d3=function(_0x421cd6,_0x23c1cf){_0x421cd6=_0x421cd6-0x0;let _0x49d335=_0x23c1[_0x421cd6];return _0x49d335;};import{Plugin as _0x33a6ad}from'ckeditor5/src/core';export default class F extends _0x33a6ad{[_0x49d3('0x1')](){const _0x469360=this['editor'];if(!_0x469360[_0x49d3('0x5')][_0x49d3('0x0')]('CommentsEditing'))return;_0x469360[_0x49d3('0x5')][_0x49d3('0x2')](_0x49d3('0x3'))[_0x49d3('0x4')]('addCommentThread');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3af3=['detach','uiElement','downcastDispatcher','editor','root','deleteForward','addMarker:suggestion:deletion','unit','unlock','forward','createSelection','showSuggestionHighlights','high','createRange','setSelection','selection','unbindElementFromMarkerName','isCollapsed','enableCommand','removeMarker:suggestion:deletion','markerName','remove','get','merge','modifySelection','options','rootName','data','buffer','fromRange','model','start','end','bind','mapper','requires','editing'];(function(_0x34c112,_0x3af31b){const _0x2f2826=function(_0x6286d6){while(--_0x6286d6){_0x34c112['push'](_0x34c112['shift']());}};_0x2f2826(++_0x3af31b);}(_0x3af3,0x141));const _0x2f28=function(_0x34c112,_0x3af31b){_0x34c112=_0x34c112-0x0;let _0x2f2826=_0x3af3[_0x34c112];return _0x2f2826;};import{Plugin as _0xe75cf6}from'ckeditor5/src/core';import{LiveRange as _0x432fb0}from'ckeditor5/src/engine';import{Delete as _0x4c15d6}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x25b142}from'./utils';export default class G extends _0xe75cf6{static get[_0x2f28('0xa')](){return[_0x4c15d6];}['init'](){const _0x9aaf4f=this[_0x2f28('0xf')],_0x51e91b=_0x9aaf4f['plugins'][_0x2f28('0x22')]('TrackChangesEditing');_0x51e91b[_0x2f28('0x1e')]('delete');const _0xa17c14=_0x9aaf4f['commands'][_0x2f28('0x22')](_0x2f28('0x11'));_0x51e91b[_0x2f28('0x1e')](_0x2f28('0x11'),(_0x33ec9f,_0x2fb0dd={})=>{const _0x41e417=_0x9aaf4f[_0x2f28('0x5')][_0x2f28('0x16')](_0x9aaf4f[_0x2f28('0x5')]['document'][_0x2f28('0x1b')]);_0x41e417[_0x2f28('0x1d')]&&_0x9aaf4f[_0x2f28('0x5')][_0x2f28('0x24')](_0x41e417,{'direction':_0x2f28('0x15'),'unit':_0x2fb0dd[_0x2f28('0x13')]});const _0x4bd4f0=_0x41e417['getFirstRange'](),_0x3671d8=_0x432fb0[_0x2f28('0x4')](_0x4bd4f0);let _0x73ccf2;_0x33ec9f(_0x2fb0dd),_0x73ccf2='$graveyard'==_0x3671d8[_0x2f28('0x10')][_0x2f28('0x1')]?_0x9aaf4f[_0x2f28('0x5')][_0x2f28('0x19')](_0x4bd4f0[_0x2f28('0x6')]):_0x9aaf4f[_0x2f28('0x5')][_0x2f28('0x19')](_0x3671d8[_0x2f28('0x6')],_0x3671d8[_0x2f28('0x7')]),_0x3671d8[_0x2f28('0xc')](),_0x9aaf4f['model']['enqueueChange'](_0xa17c14['buffer']['batch'],_0x47ed03=>{_0xa17c14[_0x2f28('0x3')]['lock'](),_0x47ed03[_0x2f28('0x1a')](_0x47ed03[_0x2f28('0x19')](_0x73ccf2['end'])),_0xa17c14[_0x2f28('0x3')][_0x2f28('0x14')]();});}),_0x9aaf4f[_0x2f28('0xb')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',_0x25b142(_0x9aaf4f,_0x2f28('0x23')),{'priority':_0x2f28('0x18')}),_0x9aaf4f[_0x2f28('0x2')][_0x2f28('0xe')]['on'](_0x2f28('0x12'),(_0xe18d1,_0x4bf25f,_0x5506f5)=>{_0x5506f5[_0x2f28('0x0')][_0x2f28('0x17')]&&_0x25b142(_0x9aaf4f,_0x2f28('0x23'),{'showActiveMarker':!0x1})[_0x2f28('0x8')](this)(_0xe18d1,_0x4bf25f,_0x5506f5);},{'priority':_0x2f28('0x18')}),_0x9aaf4f[_0x2f28('0xb')][_0x2f28('0xe')]['on'](_0x2f28('0x1f'),(_0x4eee3e,_0x426a6b,_0x205faf)=>{const _0x59305f=_0x205faf['mapper']['markerNameToElements'](_0x426a6b[_0x2f28('0x20')]);if(_0x59305f)for(const _0x11de31 of _0x59305f)_0x11de31['is'](_0x2f28('0xd'))&&(_0x205faf[_0x2f28('0x9')][_0x2f28('0x1c')](_0x11de31,_0x426a6b[_0x2f28('0x20')]),_0x205faf['writer'][_0x2f28('0x21')](_0x11de31));},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14eb=['getFirstRange','change','splitListItemAfter','document','*Format:*\x20remove\x20from\x20%0','*Format:*\x20insert\x20into\x20%0','registerElementLabel','_descriptionFactory','createRange','_LIST','after','next','ELEMENT_','locale','listIndent','deletion','add','get','splitListItemBefore','slice','DocumentListEditing','numberedList','commands','hasAttribute','nodeAfter','accept','listItemId','enableCommand','getAttribute','documentList','findIndex','multipleBlocks','editor','value','createPositionAt','expandListBlocksToCompleteList','schema','start','getSelectedBlocks','commandParams','isFirstBlockOfListItem','registerDescriptionCallback','DocumentListUtils','isObject','selection','length','forceValue','previousSibling','has','indentList','map','toUpperCase','listType','containsItem','commandName','model','TrackChangesEditing','ELEMENT_NUMBERED_LIST','end','from','ELEMENT_LIST_ITEM','bulletedList','*Change\x20to:*\x20%0','push','nextSibling','execute','_suggestionFactory','format','fromRange','before','outdentList','formatBlock','plugins','markBlockFormat'];(function(_0x1d2459,_0x14eb50){const _0x4645d1=function(_0x491e2c){while(--_0x491e2c){_0x1d2459['push'](_0x1d2459['shift']());}};_0x4645d1(++_0x14eb50);}(_0x14eb,0xde));const _0x4645=function(_0x1d2459,_0x14eb50){_0x1d2459=_0x1d2459-0x0;let _0x4645d1=_0x14eb[_0x1d2459];return _0x4645d1;};import{Plugin as _0x5840ca}from'ckeditor5/src/core';import{getTranslation as _0x2f352b}from'../utils/common-translations';import{LiveRange as _0x53995b}from'ckeditor5/src/engine';export default class L extends _0x5840ca{['afterInit'](){const _0x35341f=this[_0x4645('0x20')];if(!_0x35341f['plugins'][_0x4645('0x30')](_0x4645('0x14')))return;const _0x449f5e=_0x35341f[_0x4645('0xd')],_0x5a129f=_0x35341f[_0x4645('0x48')][_0x4645('0x11')](_0x4645('0x38')),_0xbe5bda=_0x35341f[_0x4645('0x48')][_0x4645('0x11')](_0x4645('0x2a'));function _0x1230f8(_0x5b0eff){return()=>{const _0x3cd3f1=_0x35341f[_0x4645('0x16')][_0x4645('0x11')](_0x5b0eff);let _0x3a699f=Array[_0x4645('0x3b')](_0x35341f['model']['document'][_0x4645('0x2c')][_0x4645('0x26')]());if(_0x55e5e6(_0x5b0eff)){_0x3a699f=_0xbe5bda[_0x4645('0x23')](_0x3a699f);const _0xc65e5e=[];for(const _0x4f3002 of _0x3a699f)_0xbe5bda[_0x4645('0x28')](_0x4f3002)&&_0xc65e5e[_0x4645('0x3f')](_0x4f3002);_0x3a699f=_0xc65e5e;}_0x35341f['model'][_0x4645('0x1')](()=>{_0x5a129f['markMultiRangeBlockFormat'](_0x3a699f,{'commandName':_0x5b0eff,'commandParams':[{'forceValue':!_0x3cd3f1[_0x4645('0x21')]}],'formatGroupId':_0x4645('0x34')},[],_0x4645('0x1d'));});};}function _0xc53936(_0x38452f){return()=>{const _0x1ec07a=function(_0x50467c){let _0x1bad93=Array[_0x4645('0x3b')](_0x50467c);const _0x827068=_0x1bad93[_0x4645('0x1e')](_0x556f3f=>!_0x556f3f[_0x4645('0x17')](_0x4645('0x1a')));return _0x827068>-0x1&&(_0x1bad93=_0x1bad93[_0x4645('0x13')](0x0,_0x827068)),_0x1bad93;}(_0x35341f[_0x4645('0x37')]['document'][_0x4645('0x2c')][_0x4645('0x26')]()),_0x5ae30c=_0x1ec07a[_0x1ec07a[_0x4645('0x2d')]-0x1],_0x1cc6e8=_0x35341f[_0x4645('0x37')]['schema']['isObject'](_0x5ae30c)?_0x4645('0xa'):_0x4645('0x3a'),_0x14c3a9=_0x35341f[_0x4645('0x37')]['createRange'](_0x35341f[_0x4645('0x37')][_0x4645('0x22')](_0x1ec07a[0x0],'before'),_0x35341f[_0x4645('0x37')][_0x4645('0x22')](_0x5ae30c,_0x1cc6e8));_0x35341f[_0x4645('0x37')][_0x4645('0x1')](()=>{_0x5a129f[_0x4645('0x49')](_0x14c3a9,{'commandName':_0x38452f,'commandParams':[],'formatGroupId':_0x4645('0x34')},function(_0x27a0ed){const _0x293a75=new Set();for(const _0x5704bf of _0x27a0ed){let _0x4ffa35=_0x5704bf[_0x4645('0x40')];for(;_0x4ffa35&&_0x4ffa35['getAttribute'](_0x4645('0xe'))>_0x5704bf[_0x4645('0x1c')](_0x4645('0xe'));)_0x293a75[_0x4645('0x10')](_0x4ffa35),_0x4ffa35=_0x4ffa35[_0x4645('0x40')];}return Array[_0x4645('0x3b')](_0x293a75);}(_0x1ec07a));});};}function _0x234da0(_0x4e4a72){return()=>{const _0x4a165a=_0x35341f[_0x4645('0x37')][_0x4645('0x3')][_0x4645('0x2c')][_0x4645('0x26')]()[_0x4645('0xb')]()['value'],_0x3e9403=_0x35341f[_0x4645('0x37')][_0x4645('0x22')](_0x4a165a,_0x4645('0x45')),_0x4f76cd=_0x35341f[_0x4645('0x37')][_0x4645('0x22')](_0x4a165a,0x0),_0x23f979=_0x35341f[_0x4645('0x37')][_0x4645('0x8')](_0x3e9403,_0x4f76cd);_0x35341f[_0x4645('0x37')][_0x4645('0x1')](()=>{_0x5a129f[_0x4645('0x49')](_0x23f979,{'commandName':_0x4e4a72,'commandParams':[],'formatGroupId':_0x4645('0x34')});});};}function _0x55e5e6(_0x133ece){const _0x157dab=_0x35341f[_0x4645('0x16')][_0x4645('0x11')](_0x4645('0x3d'))[_0x4645('0x21')],_0x16facf=_0x35341f[_0x4645('0x16')][_0x4645('0x11')](_0x4645('0x15'))['value'];return'numberedList'===_0x133ece?_0x157dab:_0x16facf;}_0x5a129f['enableCommand'](_0x4645('0x15'),_0x1230f8('numberedList')),_0x5a129f['enableCommand'](_0x4645('0x3d'),_0x1230f8('bulletedList')),_0x5a129f[_0x4645('0x1b')](_0x4645('0x31'),_0xc53936(_0x4645('0x31'))),_0x5a129f[_0x4645('0x1b')](_0x4645('0x46'),_0xc53936(_0x4645('0x46'))),_0x5a129f[_0x4645('0x1b')]('splitListItemAfter',_0x234da0(_0x4645('0x2'))),_0x5a129f[_0x4645('0x1b')](_0x4645('0x12'),_0x234da0(_0x4645('0x12'))),_0x5a129f[_0x4645('0x7')][_0x4645('0x6')](function(_0x17ac08){const _0x2875f6=!_0x35341f[_0x4645('0x37')][_0x4645('0x24')][_0x4645('0x2b')](_0x17ac08),_0x14a5dd=_0x17ac08[_0x4645('0x2f')],_0x2c9e47=_0x17ac08['nextSibling'],_0x3ea37e=_0x17ac08[_0x4645('0x1c')](_0x4645('0x1a')),_0x4f3c6d=!_0x14a5dd||_0x14a5dd['getAttribute'](_0x4645('0x1a'))!==_0x3ea37e,_0xa61d53=!_0x2c9e47||_0x2c9e47['getAttribute'](_0x4645('0x1a'))!==_0x3ea37e;return _0x2875f6&&Boolean(_0x3ea37e)&&_0x4f3c6d&&_0xa61d53;},_0xa71b77=>_0x2f352b(_0x449f5e,_0x4645('0x3c'),_0xa71b77)),_0x5a129f[_0x4645('0x7')][_0x4645('0x29')](function(_0x10a47d){const {data:_0x47f690}=_0x10a47d;if(!_0x47f690)return;let _0x15f11b,_0xd95a6,_0x2d5d01,_0x2dc838;switch(_0x47f690[_0x4645('0x36')]){case _0x4645('0x3d'):_0x2d5d01=_0x47f690[_0x4645('0x27')][0x0][_0x4645('0x2e')],_0x2dc838=_0x55e5e6(_0x47f690['commandName']),_0x15f11b=_0x2d5d01?_0x4645('0x5'):_0x4645('0x4'),_0x2dc838&&(_0x15f11b=_0x4645('0x3e')),_0xd95a6={'type':_0x4645('0x43'),'content':_0x2f352b(_0x449f5e,_0x15f11b,_0x2f352b(_0x449f5e,'ELEMENT_BULLETED_LIST'))};break;case _0x4645('0x15'):_0x2d5d01=_0x47f690[_0x4645('0x27')][0x0][_0x4645('0x2e')],_0x2dc838=_0x55e5e6(_0x47f690[_0x4645('0x36')]),_0x15f11b=_0x2d5d01?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',_0x2dc838&&(_0x15f11b=_0x4645('0x3e')),_0xd95a6={'type':_0x4645('0x43'),'content':_0x2f352b(_0x449f5e,_0x15f11b,_0x2f352b(_0x449f5e,_0x4645('0x39')))};break;case _0x4645('0x31'):_0x15f11b='*Indent:*\x20%0',_0xd95a6={'type':_0x4645('0x43'),'content':_0x2f352b(_0x449f5e,_0x15f11b,_0x2f352b(_0x449f5e,_0x4645('0x3c')))};break;case _0x4645('0x46'):_0x15f11b=function(_0x3c21bc){const _0x31ab9c=_0x3c21bc['getFirstRange']();let _0x4729e3=_0x31ab9c[_0x4645('0x25')][_0x4645('0x18')];for(;_0x4729e3&&_0x31ab9c[_0x4645('0x35')](_0x4729e3);){if(_0x4729e3[_0x4645('0x1c')](_0x4645('0xe'))>0x0)return!0x1;_0x4729e3=_0x4729e3['nextSibling'];}return!0x0;}(_0x10a47d)?_0x2f352b(_0x449f5e,'*Format:*\x20remove\x20from\x20%0',_0x2f352b(_0x449f5e,function(_0x148566){const _0x35c7aa=_0x148566[_0x4645('0x0')]()[_0x4645('0x25')]['nodeAfter'];return _0x4645('0xc')+_0x35c7aa[_0x4645('0x1c')](_0x4645('0x34'))[_0x4645('0x33')]()+_0x4645('0x9');}(_0x10a47d))):_0x2f352b(_0x449f5e,'*Outdent:*\x20%0',_0x2f352b(_0x449f5e,_0x4645('0x3c'))),_0xd95a6={'type':_0x4645('0x43'),'content':_0x15f11b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x47f690[_0x4645('0x1f')]&&(_0x15f11b='*Merge:*\x20%0',_0xd95a6={'type':_0x4645('0xf'),'content':_0x2f352b(_0x449f5e,_0x15f11b,_0x2f352b(_0x449f5e,_0x4645('0x3c')))});}return _0xd95a6;}),_0x5a129f[_0x4645('0x42')]['registerCustomCallback'](_0x4645('0x47'),'documentList',_0x4645('0x19'),function(_0x2528e3,_0x1890ac){const _0x5bcaab=[];for(let _0x70294 of _0x2528e3)_0x70294[_0x4645('0x25')][_0x4645('0x18')]===_0x70294['end']['parent']&&(_0x70294=_0x35341f[_0x4645('0x37')]['createRange'](_0x35341f[_0x4645('0x37')][_0x4645('0x22')](_0x70294[_0x4645('0x25')][_0x4645('0x18')],0x0))),_0x5bcaab['push'](_0x70294);_0x35341f[_0x4645('0x37')][_0x4645('0x1')](_0x4ea8fd=>{const _0x4dee56=_0x35341f[_0x4645('0x37')][_0x4645('0x3')][_0x4645('0x2c')],_0x5cacdc=Array[_0x4645('0x3b')](_0x4dee56['getRanges']())[_0x4645('0x32')](_0xa72a8e=>_0x53995b[_0x4645('0x44')](_0xa72a8e));_0x4ea8fd['setSelection'](_0x5bcaab),_0x35341f[_0x4645('0x16')][_0x4645('0x11')](_0x1890ac[_0x4645('0x36')])['refresh'](),_0x1890ac[_0x4645('0x27')][_0x4645('0x3f')]({'forceDefaultExecution':!0x0}),_0x35341f[_0x4645('0x41')](_0x1890ac[_0x4645('0x36')],..._0x1890ac[_0x4645('0x27')]),_0x4ea8fd['setSelection'](_0x5cacdc);for(const _0x9fc8db of _0x5cacdc)_0x9fc8db['detach']();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x410b=['editor','commandParams','_getTranslationKeyForListStyle','styles','getAttribute','reversed','from','change','plugins','startIndex','getSelectedBlocks','listReversed','type','*Format:*\x20set\x20start\x20index\x20to\x20%0','listType','markMultiRangeBlockFormat','commandName','toUpperCase','ELEMENT_','_getSuggestionBlocks','format','handleListStyleCommand','_descriptionFactory','bind','enableCommand','_getSuggestionBlocksForListStyle','numbered','filter','expandListBlocksToCompleteList','*Change\x20to:*\x20%0','model','TrackChangesEditing','handleDescriptions','listStyle','listStart','push','get','isFirstBlockOfListItem','isListItemBlock','document','list.properties','length','_LIST_','replace','*Format:*\x20set\x20order\x20to\x20regular','handleListStartCommand','DocumentListPropertiesEditing','DocumentListPropertiesUtils','registerDescriptionCallback','afterInit','DocumentListUtils'];(function(_0x4f1fa6,_0x410b3d){const _0x788670=function(_0x14cd43){while(--_0x14cd43){_0x4f1fa6['push'](_0x4f1fa6['shift']());}};_0x788670(++_0x410b3d);}(_0x410b,0x1b0));const _0x7886=function(_0x4f1fa6,_0x410b3d){_0x4f1fa6=_0x4f1fa6-0x0;let _0x788670=_0x410b[_0x4f1fa6];return _0x788670;};import{Plugin as _0x3a9fd4}from'ckeditor5/src/core';import{getTranslation as _0x11b9de}from'../utils/common-translations';export default class At extends _0x3a9fd4{[_0x7886('0x19')](){if(!this[_0x7886('0x1b')][_0x7886('0x23')]['has'](_0x7886('0x16')))return;const _0x1f5950=this[_0x7886('0x1b')]['config'][_0x7886('0xc')](_0x7886('0x10')),_0x241da9=this[_0x7886('0x1b')][_0x7886('0x23')][_0x7886('0xc')](_0x7886('0x7'));_0x1f5950[_0x7886('0x1e')]&&_0x241da9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f5950[_0x7886('0x20')]&&_0x241da9[_0x7886('0x0')](_0x7886('0x26'),this['handleListReversedCommand'][_0x7886('0x32')](this)),_0x1f5950['startIndex']&&_0x241da9['enableCommand'](_0x7886('0xa'),this[_0x7886('0x15')]['bind'](this)),_0x241da9[_0x7886('0x31')][_0x7886('0x18')](this[_0x7886('0x8')][_0x7886('0x32')](this));}[_0x7886('0x30')](_0x57c109,_0x1c3e2e={}){const _0x22de0d=this[_0x7886('0x1b')][_0x7886('0x23')]['get'](_0x7886('0x7')),_0x51384f=this['_getSuggestionBlocksForListStyle']();this['editor']['model'][_0x7886('0x22')](()=>{_0x22de0d[_0x7886('0x2a')](_0x51384f,{'commandName':_0x7886('0x9'),'commandParams':[{'type':_0x1c3e2e[_0x7886('0x27')]}],'formatGroupId':_0x7886('0x9')});});}['handleListReversedCommand'](_0x2e56fa,_0x423a21={}){const _0x3a8f01=this[_0x7886('0x1b')][_0x7886('0x23')]['get']('TrackChangesEditing'),_0x838a=this[_0x7886('0x1b')][_0x7886('0x23')][_0x7886('0xc')](_0x7886('0x1a')),_0x10a958=this['_getSuggestionBlocks'](_0x515068=>_0x838a['isListItemBlock'](_0x515068)&&_0x7886('0x2')===_0x515068[_0x7886('0x1f')](_0x7886('0x29')));null!==_0x10a958&&this[_0x7886('0x1b')][_0x7886('0x6')][_0x7886('0x22')](()=>{_0x3a8f01[_0x7886('0x2a')](_0x10a958,{'commandName':_0x7886('0x26'),'commandParams':[{'reversed':_0x423a21['reversed']}],'formatGroupId':_0x7886('0x26')});});}['handleListStartCommand'](_0x3fa34a,_0x5770e9={}){const _0x3c1e89=this[_0x7886('0x1b')][_0x7886('0x23')][_0x7886('0xc')](_0x7886('0x7')),_0x77ea11=this[_0x7886('0x1b')][_0x7886('0x23')]['get']('DocumentListUtils'),_0x437745=this[_0x7886('0x2e')](_0x43973f=>_0x77ea11[_0x7886('0xe')](_0x43973f)&&'numbered'===_0x43973f[_0x7886('0x1f')](_0x7886('0x29')));null!==_0x437745&&this[_0x7886('0x1b')][_0x7886('0x6')][_0x7886('0x22')](()=>{_0x3c1e89[_0x7886('0x2a')](_0x437745,{'commandName':'listStart','commandParams':[{'startIndex':_0x5770e9[_0x7886('0x24')]}],'formatGroupId':_0x7886('0xa')});});}[_0x7886('0x8')](_0x2015f3){const _0x59c88f=this[_0x7886('0x1b')]['locale'],{data:_0x51f60c}=_0x2015f3;if(!_0x51f60c)return;let _0x4bcb29,_0x3208aa;switch(_0x51f60c[_0x7886('0x2b')]){case _0x7886('0x9'):_0x4bcb29=_0x7886('0x5'),_0x3208aa={'type':_0x7886('0x2f'),'content':_0x11b9de(_0x59c88f,_0x4bcb29,_0x11b9de(_0x59c88f,this[_0x7886('0x1d')](_0x51f60c[_0x7886('0x1c')][0x0][_0x7886('0x27')])))};break;case _0x7886('0x26'):_0x4bcb29=_0x51f60c[_0x7886('0x1c')][0x0][_0x7886('0x20')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x7886('0x14'),_0x3208aa={'type':_0x7886('0x2f'),'content':_0x11b9de(_0x59c88f,_0x4bcb29)};break;case _0x7886('0xa'):_0x4bcb29=_0x7886('0x28'),_0x3208aa={'type':_0x7886('0x2f'),'content':_0x11b9de(_0x59c88f,_0x4bcb29,_0x51f60c[_0x7886('0x1c')][0x0][_0x7886('0x24')])};}return _0x3208aa;}[_0x7886('0x1')](){const _0x31131d=this['editor']['plugins'][_0x7886('0xc')](_0x7886('0x1a'));let _0x5bec7d=Array[_0x7886('0x21')](this[_0x7886('0x1b')]['model']['document']['selection'][_0x7886('0x25')]());return _0x5bec7d[_0x7886('0xb')](..._0x31131d[_0x7886('0x4')](_0x5bec7d)),_0x5bec7d=[...new Set(_0x5bec7d)],_0x5bec7d;}[_0x7886('0x2e')](_0x8ffa05){const _0x4405bb=this[_0x7886('0x1b')][_0x7886('0x23')][_0x7886('0xc')](_0x7886('0x1a'));let _0x2a7f4e=Array[_0x7886('0x21')](this['editor']['model'][_0x7886('0xf')]['selection'][_0x7886('0x25')]())[_0x7886('0x3')](_0x8ffa05);if(!_0x2a7f4e[_0x7886('0x11')])return null;_0x2a7f4e=_0x4405bb[_0x7886('0x4')](_0x2a7f4e);const _0x5e9705=[];for(const _0x24aee3 of _0x2a7f4e)_0x4405bb[_0x7886('0xd')](_0x24aee3)&&_0x5e9705['push'](_0x24aee3);return _0x5e9705;}[_0x7886('0x1d')](_0x4aab87){return _0x7886('0x2d')+this[_0x7886('0x1b')]['plugins']['get'](_0x7886('0x17'))['getListTypeFromListStyleType'](_0x4aab87)[_0x7886('0x2c')]()+_0x7886('0x12')+_0x4aab87['toUpperCase']()[_0x7886('0x13')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39ba=['downcastDispatcher','parent','hasClass','enterBlock','getFirstRange','writer','mapper','options','model','createRange','nextSibling','setSelection','get','addMarker:suggestion:insertion','remove','bind','commands','markerNameToElements','ck-suggestion-marker-split','TrackChangesEditing','getFirstPosition','showSuggestionHighlights','selection','detach','high','init','fromRange','enableCommand','split','data','afterExecute','markerName','enter'];(function(_0x557252,_0x39bab4){const _0x474bf4=function(_0x3dd85d){while(--_0x3dd85d){_0x557252['push'](_0x557252['shift']());}};_0x474bf4(++_0x39bab4);}(_0x39ba,0x1cb));const _0x474b=function(_0x557252,_0x39bab4){_0x557252=_0x557252-0x0;let _0x474bf4=_0x39ba[_0x557252];return _0x474bf4;};import{Plugin as _0x4d5f19}from'ckeditor5/src/core';import{Enter as _0x5a0c74}from'ckeditor5/src/enter';import{LiveRange as _0xe74d06}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x27b513}from'./utils';export default class q extends _0x4d5f19{static get['requires'](){return[_0x5a0c74];}[_0x474b('0x1c')](){const _0x152409=this['editor'],_0x593327=_0x152409['plugins'][_0x474b('0xf')](_0x474b('0x16')),_0x5e77ff=_0x152409[_0x474b('0x13')][_0x474b('0xf')](_0x474b('0x2'));_0x593327[_0x474b('0x1e')]('enter',()=>{_0x152409[_0x474b('0xb')]['change'](_0x242298=>{const _0x1d5e45=_0x152409['model']['document'][_0x474b('0x19')],_0x57c54b=_0x1d5e45[_0x474b('0x17')](),_0x16c73c=_0xe74d06[_0x474b('0x1d')](_0x1d5e45[_0x474b('0x7')]());if(_0x5e77ff[_0x474b('0x6')](_0x242298)){const _0x5f7acd=_0x152409[_0x474b('0xb')]['createPositionAt'](_0x57c54b[_0x474b('0x4')][_0x474b('0xd')],0x0),_0x26c74d=_0x242298[_0x474b('0xc')](_0x57c54b,_0x5f7acd);_0x593327['markInsertion'](_0x26c74d);}else _0x242298[_0x474b('0xe')](_0x242298[_0x474b('0xc')](_0x16c73c['end']));_0x16c73c[_0x474b('0x1a')](),_0x5e77ff['fire'](_0x474b('0x0'),{'writer':_0x242298});});}),_0x152409['editing'][_0x474b('0x3')]['on'](_0x474b('0x10'),_0x27b513(_0x152409,_0x474b('0x1f')),{'priority':_0x474b('0x1b')}),_0x152409['editing'][_0x474b('0x3')]['on']('removeMarker:suggestion:insertion',(_0x19f1aa,_0x224db5,_0x51289d)=>{const _0x1e406e=_0x51289d[_0x474b('0x9')][_0x474b('0x14')](_0x224db5[_0x474b('0x1')]);if(_0x1e406e)for(const _0x3f5b6e of _0x1e406e)_0x3f5b6e[_0x474b('0x5')](_0x474b('0x15'))&&(_0x51289d[_0x474b('0x9')]['unbindElementFromMarkerName'](_0x3f5b6e,_0x224db5[_0x474b('0x1')]),_0x51289d[_0x474b('0x8')][_0x474b('0x11')](_0x3f5b6e));},{'priority':_0x474b('0x1b')}),_0x152409[_0x474b('0x20')]['downcastDispatcher']['on'](_0x474b('0x10'),(_0x489a42,_0x41b419,_0x1f4a17)=>{_0x1f4a17[_0x474b('0xa')][_0x474b('0x18')]&&_0x27b513(_0x152409,_0x474b('0x1f'),{'showActiveMarker':!0x1})[_0x474b('0x12')](this)(_0x489a42,_0x41b419,_0x1f4a17);},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a54=['createRange','findPrevious','TrackChangesEditing','_isInDeletionRange','FindAndReplaceEditing','createPositionAt','getIntersection','FindAndReplaceUtils','handleFindCommand','end','enableCommand','filter','replace','get','afterInit','item','bind','markers','model','find','string','replaceAll','has','findByTextCallback','editor','plugins'];(function(_0x57cb2e,_0x3a54c0){const _0x4a95ef=function(_0x50c08){while(--_0x50c08){_0x57cb2e['push'](_0x57cb2e['shift']());}};_0x4a95ef(++_0x3a54c0);}(_0x3a54,0x1d5));const _0x4a95=function(_0x57cb2e,_0x3a54c0){_0x57cb2e=_0x57cb2e-0x0;let _0x4a95ef=_0x3a54[_0x57cb2e];return _0x4a95ef;};import{Plugin as _0x3116b8}from'ckeditor5/src/core';export default class z extends _0x3116b8{[_0x4a95('0xd')](){if(!this[_0x4a95('0x17')][_0x4a95('0x18')][_0x4a95('0x15')](_0x4a95('0x3')))return;const _0x221123=this['editor'][_0x4a95('0x18')][_0x4a95('0xc')](_0x4a95('0x1'));_0x221123[_0x4a95('0x9')](_0x4a95('0x12'),this[_0x4a95('0x7')][_0x4a95('0xf')](this)),_0x221123[_0x4a95('0x9')]('findNext'),_0x221123[_0x4a95('0x9')](_0x4a95('0x0')),_0x221123[_0x4a95('0x9')](_0x4a95('0xb')),_0x221123[_0x4a95('0x9')](_0x4a95('0x14'));}['handleFindCommand'](_0x50089a,_0xca60ca,_0x1e51d8={}){const _0x340fd6=this[_0x4a95('0x17')][_0x4a95('0x18')]['get'](_0x4a95('0x6'));void 0x0!==_0x1e51d8&&_0x50089a(_0x8d96d=>(_0x4a95('0x13')==typeof _0xca60ca?_0x340fd6[_0x4a95('0x16')](_0xca60ca,_0x1e51d8):_0xca60ca)(_0x8d96d)[_0x4a95('0xa')](_0x567720=>!0x1===this['_isInDeletionRange'](_0x567720,_0x8d96d[_0x4a95('0xe')])),_0x1e51d8);}[_0x4a95('0x2')](_0x481b4f,_0x159599){const _0x88a571=this[_0x4a95('0x17')][_0x4a95('0x11')][_0x4a95('0x19')](this[_0x4a95('0x17')][_0x4a95('0x11')][_0x4a95('0x4')](_0x159599,_0x481b4f['start']),this[_0x4a95('0x17')][_0x4a95('0x11')]['createPositionAt'](_0x159599,_0x481b4f[_0x4a95('0x8')]));for(const _0x4c9a6b of this[_0x4a95('0x17')][_0x4a95('0x11')][_0x4a95('0x10')]['getMarkersGroup']('suggestion:deletion'))if(null!==_0x88a571[_0x4a95('0x5')](_0x4c9a6b['getRange']()))return!0x0;return!0x1;}}
|