@ckeditor/ckeditor5-track-changes 38.0.0-rc.1 → 38.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- 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": "38.0.0
|
|
3
|
+
"version": "38.0.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"postversion": "npm run build"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"ckeditor5": "^38.0.0
|
|
45
|
-
"ckeditor5-collaboration": "^38.0.0
|
|
44
|
+
"ckeditor5": "^38.0.0",
|
|
45
|
+
"ckeditor5-collaboration": "^38.0.0",
|
|
46
46
|
"lodash-es": "^4.17.11"
|
|
47
47
|
},
|
|
48
48
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3df9=['isEnabled','refresh','_suggestions','acceptSuggestion','_isEnabledBasedOnSelection','canEditAt','TrackChangesEditing','getRanges','editor'];(function(_0x21350e,_0x3df954){const _0x10abc6=function(_0x153388){while(--_0x153388){_0x21350e['push'](_0x21350e['shift']());}};_0x10abc6(++_0x3df954);}(_0x3df9,0xef));const _0x10ab=function(_0x21350e,_0x3df954){_0x21350e=_0x21350e-0x0;let _0x10abc6=_0x3df9[_0x21350e];return _0x10abc6;};import{Command as _0x2db959}from'ckeditor5/src/core';import{CKEditorError as _0x522ba1}from'ckeditor5/src/utils';export default class M extends _0x2db959{constructor(_0x5f4396,_0x1695de){super(_0x5f4396),this[_0x10ab('0x6')]=_0x1695de,this[_0x10ab('0x5')](),this[_0x10ab('0x8')]=!0x1;}[_0x10ab('0x5')](){this[_0x10ab('0x4')]=!0x0;}['execute'](_0x3896c5){const _0x2dda7f=this[_0x10ab('0x6')]['get'](_0x3896c5);if(!_0x2dda7f)throw new _0x522ba1('track-changes-accept-suggestion-not-found',this);const _0x17cead=_0x2dda7f[_0x10ab('0x2')]();this[_0x10ab('0x3')]['model'][_0x10ab('0x0')](_0x17cead)&&this['editor']['plugins']['get'](_0x10ab('0x1'))[_0x10ab('0x7')](_0x2dda7f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4679=['execute','canEditAt','TrackChangesEditing','plugins','track-changes-discard-suggestion-not-found','refresh','model','isEnabled','getRanges','editor','get','_suggestions'];(function(_0x6817f8,_0x4679ca){const _0x521204=function(_0x48e5c3){while(--_0x48e5c3){_0x6817f8['push'](_0x6817f8['shift']());}};_0x521204(++_0x4679ca);}(_0x4679,0x7f));const _0x5212=function(_0x6817f8,_0x4679ca){_0x6817f8=_0x6817f8-0x0;let _0x521204=_0x4679[_0x6817f8];return _0x521204;};import{Command as _0x497fec}from'ckeditor5/src/core';import{CKEditorError as _0x361aa0}from'ckeditor5/src/utils';export default class $ extends _0x497fec{constructor(_0x4061d4,_0x508a70){super(_0x4061d4),this[_0x5212('0x4')]=_0x508a70,this[_0x5212('0xa')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5212('0xa')](){this[_0x5212('0x0')]=!0x0;}[_0x5212('0x5')](_0x1c43f7){const _0x2f96aa=this['_suggestions']['get'](_0x1c43f7);if(!_0x2f96aa)throw new _0x361aa0(_0x5212('0x9'),this);const _0x111368=_0x2f96aa[_0x5212('0x1')]();this[_0x5212('0x2')][_0x5212('0xb')][_0x5212('0x6')](_0x111368)&&this[_0x5212('0x2')][_0x5212('0x8')][_0x5212('0x3')](_0x5212('0x7'))['discardSuggestion'](_0x2f96aa);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a5a=['values','_suggestions','getRanges','execute','refresh','_command','editor','from','_isEnabledBasedOnSelection','model','isInContent'];(function(_0x42b59c,_0x4a5a03){const _0xf307f3=function(_0x2529a1){while(--_0x2529a1){_0x42b59c['push'](_0x42b59c['shift']());}};_0xf307f3(++_0x4a5a03);}(_0x4a5a,0x17c));const _0xf307=function(_0x42b59c,_0x4a5a03){_0x42b59c=_0x42b59c-0x0;let _0xf307f3=_0x4a5a[_0x42b59c];return _0xf307f3;};import{Command as _0x57909a}from'ckeditor5/src/core';import{sortSuggestions as _0x32bcdf,executeCommandForSuggestions as _0x2aa60c}from'../utils/utils';export default class N extends _0x57909a{constructor(_0x15974c,_0x2e3e6e,_0x12d992){super(_0x15974c),this['_command']=_0x2e3e6e,this[_0xf307('0x6')]=_0x12d992,this[_0xf307('0x9')](),this[_0xf307('0x2')]=!0x1;}[_0xf307('0x9')](){const _0x119c7a=Array[_0xf307('0x1')](this['_suggestions']['values']())['some'](_0x4645ce=>_0x4645ce[_0xf307('0x4')]);this['isEnabled']=this['_command']['isEnabled']&&_0x119c7a;}[_0xf307('0x8')](){const _0x494db0=_0x32bcdf(Array[_0xf307('0x1')](this['_suggestions'][_0xf307('0x5')]()));for(const _0xac4371 of _0x494db0){const _0x4e71f1=_0xac4371[_0xf307('0x7')]();if(!this['editor'][_0xf307('0x3')]['canEditAt'](_0x4e71f1))return;}_0x2aa60c(this[_0xf307('0x0')][_0xf307('0x3')],this[_0xf307('0xa')],_0x494db0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x357b=['_selectedSuggestions','document','isEnabled','size','model','_suggestions','values','execute','refresh','_command','canEditAt','selection','editor','_isEnabledBasedOnSelection','from','getRanges'];(function(_0x196d20,_0x357b5f){const _0x233ebe=function(_0x532806){while(--_0x532806){_0x196d20['push'](_0x196d20['shift']());}};_0x233ebe(++_0x357b5f);}(_0x357b,0xce));const _0x233e=function(_0x196d20,_0x357b5f){_0x196d20=_0x196d20-0x0;let _0x233ebe=_0x357b[_0x196d20];return _0x233ebe;};import{Command as _0x5cd6b0}from'ckeditor5/src/core';import{sortSuggestions as _0x3be547,getSelectedSuggestions as _0x22a48c,executeCommandForSuggestions as _0x54a517}from'../utils/utils';export default class R extends _0x5cd6b0{constructor(_0x1f45de,_0x18a926,_0x5514e0){super(_0x1f45de),this[_0x233e('0xb')]=_0x18a926,this[_0x233e('0x7')]=_0x5514e0,this['_selectedSuggestions']=new Set(),this[_0x233e('0xa')](),this[_0x233e('0xf')]=!0x1;}[_0x233e('0xa')](){const _0x442b71=this['editor'][_0x233e('0x6')][_0x233e('0x3')][_0x233e('0xd')],_0x36afbb=Array[_0x233e('0x0')](this[_0x233e('0x7')][_0x233e('0x8')]());this[_0x233e('0x2')]=_0x22a48c(_0x442b71,_0x36afbb),this[_0x233e('0x4')]=this[_0x233e('0xb')][_0x233e('0x4')]&&!!this[_0x233e('0x2')][_0x233e('0x5')];}[_0x233e('0x9')](){const _0x366915=_0x3be547(Array[_0x233e('0x0')](this[_0x233e('0x2')]));for(const _0x43e833 of _0x366915){const _0x114d57=_0x43e833[_0x233e('0x1')]();if(!this[_0x233e('0xe')][_0x233e('0x6')][_0x233e('0xc')](_0x114d57))return;}_0x54a517(this[_0x233e('0xe')][_0x233e('0x6')],this[_0x233e('0xb')],_0x366915);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x489c=['TrackChangesCommand','isEnabled','_disableUnsupportedCommands','_enableCommands','refresh','editor','affectsData','commands','value','_enabledCommands'];(function(_0x1add7e,_0x489c15){const _0x44364b=function(_0x2542f1){while(--_0x2542f1){_0x1add7e['push'](_0x1add7e['shift']());}};_0x44364b(++_0x489c15);}(_0x489c,0xd4));const _0x4436=function(_0x1add7e,_0x489c15){_0x1add7e=_0x1add7e-0x0;let _0x44364b=_0x489c[_0x1add7e];return _0x44364b;};import{Command as _0x2ba778}from'ckeditor5/src/core';export default class _ extends _0x2ba778{constructor(_0x106354,_0x3820a2){super(_0x106354),this[_0x4436('0x7')]=_0x3820a2,this['value']=!0x1,this[_0x4436('0x2')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x4436('0x2')](){this[_0x4436('0x9')]=!0x0;}['execute'](){this[_0x4436('0x6')]=!this[_0x4436('0x6')],this['value']?this['_disableUnsupportedCommands']():this[_0x4436('0x1')]();}[_0x4436('0x0')](){for(const _0x3a1832 of this[_0x4436('0x3')][_0x4436('0x5')][_0x4436('0x5')]())_0x3a1832[_0x4436('0x4')]&&!this['_enabledCommands']['has'](_0x3a1832)&&_0x3a1832['forceDisabled'](_0x4436('0x8'));}[_0x4436('0x1')](){for(const _0x1f53f3 of this['editor'][_0x4436('0x5')][_0x4436('0x5')]())_0x1f53f3[_0x4436('0x4')]&&!this['_enabledCommands']['has'](_0x1f53f3)&&_0x1f53f3['clearForceDisabled'](_0x4436('0x8'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c87=['commandParams','AlignmentEditing','afterInit','right','model','filter','registerDescriptionCallback','editor','has','alignment','locale','TrackChangesEditing','enableCommand','FORMAT_ALIGN_TO_RIGHT','document','FORMAT_JUSTIFY_TEXT','checkAttribute','center','ltr','change','FORMAT_ALIGN_TO_LEFT','plugins','markBlockFormat','justify','commandName','getAttribute','_descriptionFactory','FORMAT_ALIGN_TO_CENTER','left','from','*Format:*\x20%0','value','contentLanguageDirection'];(function(_0x54a65c,_0x4c8739){const _0x2fff88=function(_0x118878){while(--_0x118878){_0x54a65c['push'](_0x54a65c['shift']());}};_0x2fff88(++_0x4c8739);}(_0x4c87,0x1c7));const _0x2fff=function(_0x54a65c,_0x4c8739){_0x54a65c=_0x54a65c-0x0;let _0x2fff88=_0x4c87[_0x54a65c];return _0x2fff88;};import{Plugin as _0x441274}from'ckeditor5/src/core';import{getTranslation as _0x37df16}from'../utils/common-translations';export default class x extends _0x441274{[_0x2fff('0x9')](){const _0x3f674c=this[_0x2fff('0xe')],_0x350c29=_0x3f674c[_0x2fff('0x11')];if(!_0x3f674c[_0x2fff('0x1c')][_0x2fff('0xf')](_0x2fff('0x8')))return;const _0x343046=_0x3f674c['plugins']['get'](_0x2fff('0x12'));_0x343046[_0x2fff('0x13')](_0x2fff('0x10'),(_0x2d5035,_0x1b9f52={})=>{let _0x274fa7=_0x1b9f52[_0x2fff('0x5')];_0x1b9f52[_0x2fff('0x5')]||(_0x274fa7=_0x2fff('0x19')===_0x3f674c[_0x2fff('0x11')][_0x2fff('0x6')]?_0x2fff('0x2'):_0x2fff('0xa'));const _0x4c4f4d=Array[_0x2fff('0x3')](this[_0x2fff('0xe')][_0x2fff('0xb')][_0x2fff('0x15')]['selection']['getSelectedBlocks']())[_0x2fff('0xc')](_0x574cbc=>function(_0x33df5c,_0x51ccdf,_0x43653d){const _0x57495c=_0x33df5c[_0x2fff('0x20')](_0x2fff('0x10'))||null;return _0x51ccdf[_0x2fff('0x17')](_0x33df5c,_0x2fff('0x10'))&&_0x43653d!=_0x57495c;}(_0x574cbc,this[_0x2fff('0xe')][_0x2fff('0xb')]['schema'],_0x274fa7));_0x3f674c['model'][_0x2fff('0x1a')](()=>{for(const _0x3b302f of _0x4c4f4d)_0x343046[_0x2fff('0x1d')](_0x3b302f,{'commandName':_0x2fff('0x10'),'commandParams':[{'value':_0x274fa7}]});});}),_0x343046[_0x2fff('0x0')][_0x2fff('0xd')](_0x442643=>{const {data:_0x1d1f93}=_0x442643;if(_0x1d1f93&&_0x2fff('0x10')==_0x1d1f93[_0x2fff('0x1f')]){const _0x4150ff=_0x1d1f93[_0x2fff('0x7')][0x0][_0x2fff('0x5')];return{'type':'format','content':_0x37df16(_0x350c29,_0x2fff('0x4'),function(_0x37fe53){switch(_0x37fe53){case _0x2fff('0x2'):return _0x37df16(_0x350c29,_0x2fff('0x1b'));case _0x2fff('0xa'):return _0x37df16(_0x350c29,_0x2fff('0x14'));case _0x2fff('0x18'):return _0x37df16(_0x350c29,_0x2fff('0x1'));case _0x2fff('0x1e'):return _0x37df16(_0x350c29,_0x2fff('0x16'));}}(_0x4150ff))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f62=['commands','enableCommand','FORMAT_BOLD','plugins','value','StrikethroughEditing','bold','isCollapsed','TrackChangesEditing','editor','markInlineFormat','SubscriptEditing','toLowerCase','underline','has','forceValue','model','from','registerDescriptionCallback','FORMAT_SUBSCRIPT','FORMAT_CODE','document','afterInit','FORMAT_STRIKETHROUGH','commandName','getRanges','strikethrough','UnderlineEditing','format','italic','CodeEditing','ItalicEditing','superscript','get','subscript','BoldEditing','SuperscriptEditing'];(function(_0x4578f8,_0x4f621d){const _0x3d0f52=function(_0x4b28e9){while(--_0x4b28e9){_0x4578f8['push'](_0x4578f8['shift']());}};_0x3d0f52(++_0x4f621d);}(_0x4f62,0x188));const _0x3d0f=function(_0x4578f8,_0x4f621d){_0x4578f8=_0x4578f8-0x0;let _0x3d0f52=_0x4f62[_0x4578f8];return _0x3d0f52;};import{Plugin as _0x4e053c}from'ckeditor5/src/core';import{getTranslation as _0x106e06}from'../utils/common-translations';import{getRangesWithAttribute as _0x3319b5}from'./utils';const io=[_0x3d0f('0xd'),_0x3d0f('0x9'),_0x3d0f('0x5'),_0x3d0f('0x8'),_0x3d0f('0x14'),_0x3d0f('0x1a'),_0x3d0f('0xe')];export default class U extends _0x4e053c{[_0x3d0f('0x0')](){const _0x73c29b=this[_0x3d0f('0x18')],_0x178a3e=_0x73c29b[_0x3d0f('0x1f')],_0x16533a=_0x73c29b[_0x3d0f('0x12')]['get'](_0x3d0f('0x17')),_0xef365b=_0x73c29b['locale'];for(const _0x2922f0 of io){if(!_0x73c29b[_0x3d0f('0x12')][_0x3d0f('0x1d')](_0x2922f0))continue;const _0x4f95a8=_0x2922f0['slice'](0x0,-0x7)[_0x3d0f('0x1b')](),_0x45e77c=_0x73c29b[_0x3d0f('0xf')][_0x3d0f('0xb')](_0x4f95a8);_0x16533a[_0x3d0f('0x10')](_0x4f95a8,(_0x4a8b69,_0x4189a4={})=>{const _0x81a2a=_0x178a3e[_0x3d0f('0x24')]['selection'];if(_0x81a2a[_0x3d0f('0x16')])return void _0x4a8b69(_0x4189a4);const _0x4b1300=void 0x0!==_0x4189a4[_0x3d0f('0x1e')]?_0x4189a4[_0x3d0f('0x1e')]:!_0x45e77c[_0x3d0f('0x13')];_0x178a3e['change'](()=>{const _0x24c4be=Array[_0x3d0f('0x20')](_0x81a2a[_0x3d0f('0x3')]());for(const _0x4c28fd of _0x24c4be){const _0x693062=_0x4b1300?[_0x4c28fd]:_0x3319b5(_0x4f95a8,_0x4c28fd,_0x178a3e);for(const _0x2080fd of _0x693062)_0x16533a[_0x3d0f('0x19')](_0x2080fd,{'commandName':_0x4f95a8,'commandParams':[{'forceValue':_0x4b1300}]});}});});}function _0x36b9e4(_0x283a08,_0x379d8c){_0x16533a['_descriptionFactory'][_0x3d0f('0x21')](_0x33a987=>{const {data:_0x490d49}=_0x33a987;if(_0x490d49&&_0x490d49[_0x3d0f('0x2')]===_0x283a08)return _0x490d49['commandParams'][0x0][_0x3d0f('0x1e')]?{'type':'format','content':_0x106e06(_0xef365b,'*Format:*\x20%0',_0x379d8c)}:{'type':_0x3d0f('0x6'),'content':_0x106e06(_0xef365b,'*Remove\x20format:*\x20%0',_0x379d8c)};});}_0x36b9e4(_0x3d0f('0x15'),_0x106e06(_0xef365b,_0x3d0f('0x11'))),_0x36b9e4(_0x3d0f('0x7'),_0x106e06(_0xef365b,'FORMAT_ITALIC')),_0x36b9e4(_0x3d0f('0x1c'),_0x106e06(_0xef365b,'FORMAT_UNDERLINE')),_0x36b9e4('code',_0x106e06(_0xef365b,_0x3d0f('0x23'))),_0x36b9e4(_0x3d0f('0x4'),_0x106e06(_0xef365b,_0x3d0f('0x1'))),_0x36b9e4(_0x3d0f('0xc'),_0x106e06(_0xef365b,_0x3d0f('0x22'))),_0x36b9e4(_0x3d0f('0xa'),_0x106e06(_0xef365b,'FORMAT_SUPERSCRIPT'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fc9=['forceValue','filter','parent','_descriptionFactory','commandName','schema','has','*Remove\x20format:*\x20%0','plugins','change','afterInit','*Format:*\x20%0','$root','blockQuote','value','TrackChangesEditing','document','getSelectedBlocks','commandParams','from','markBlockFormat','format','editor','checkChild','get','model'];(function(_0x471589,_0x3fc928){const _0x5b0a06=function(_0x10e578){while(--_0x10e578){_0x471589['push'](_0x471589['shift']());}};_0x5b0a06(++_0x3fc928);}(_0x3fc9,0x18e));const _0x5b0a=function(_0x471589,_0x3fc928){_0x471589=_0x471589-0x0;let _0x5b0a06=_0x3fc9[_0x471589];return _0x5b0a06;};import{Plugin as _0x2adda2}from'ckeditor5/src/core';import{getTranslation as _0x1f18af}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xc049b0}from'../utils/utils';export default class j extends _0x2adda2{[_0x5b0a('0x2')](){const _0x1a521b=this['editor'],_0x112ba6=_0x1a521b['locale'];if(!_0x1a521b['plugins'][_0x5b0a('0x18')]('BlockQuoteEditing'))return;const _0x36a01e=_0x1a521b[_0x5b0a('0x0')][_0x5b0a('0x10')](_0x5b0a('0x7')),_0x13989a=this[_0x5b0a('0xe')]['commands']['get'](_0x5b0a('0x5'));_0x36a01e['enableCommand'](_0x5b0a('0x5'),(_0x66051e,_0xd84803={})=>{const _0x128250=this[_0x5b0a('0xe')]['model'][_0x5b0a('0x8')]['selection'],_0x4cdc8d=_0xd84803&&void 0x0!==_0xd84803['forceValue']?_0xd84803[_0x5b0a('0x12')]:!_0x13989a[_0x5b0a('0x6')];let _0x5a785f=[];if(_0x4cdc8d){const _0x54d12b=Array['from'](_0x128250['getSelectedBlocks']())[_0x5b0a('0x13')](_0xc47c88=>eo(_0xc47c88)||function(_0x142832,_0x1b4ae1){const _0x5b1193=_0x1b4ae1[_0x5b0a('0xf')](_0x142832[_0x5b0a('0x14')],'blockQuote'),_0x23adf9=_0x1b4ae1[_0x5b0a('0xf')]([_0x5b0a('0x4'),_0x5b0a('0x5')],_0x142832);return _0x5b1193&&_0x23adf9;}(_0xc47c88,this[_0x5b0a('0xe')]['model'][_0x5b0a('0x17')]));_0x5a785f=_0xc049b0(_0x54d12b,_0x1a521b[_0x5b0a('0x11')]);}else{const _0x558226=Array[_0x5b0a('0xb')](_0x128250[_0x5b0a('0x9')]())['filter'](_0x2b4ad2=>eo(_0x2b4ad2));_0x5a785f=_0xc049b0(_0x558226,_0x1a521b[_0x5b0a('0x11')]);}_0x1a521b[_0x5b0a('0x11')][_0x5b0a('0x1')](()=>{for(const _0x295180 of _0x5a785f)_0x36a01e[_0x5b0a('0xc')](_0x295180,{'commandName':_0x5b0a('0x5'),'commandParams':[{'forceValue':_0x4cdc8d}]});});}),_0x36a01e[_0x5b0a('0x15')]['registerDescriptionCallback'](_0x2860ce=>{const {data:_0x13dadb}=_0x2860ce;if(_0x13dadb&&_0x5b0a('0x5')==_0x13dadb[_0x5b0a('0x16')]){const _0x22d45f=_0x1f18af(_0x112ba6,'ELEMENT_BLOCK_QUOTE');return _0x13dadb[_0x5b0a('0xa')][0x0]['forceValue']?{'type':_0x5b0a('0xd'),'content':_0x1f18af(_0x112ba6,_0x5b0a('0x3'),_0x22d45f)}:{'type':_0x5b0a('0xd'),'content':_0x1f18af(_0x112ba6,_0x5b0a('0x19'),_0x22d45f)};}});}}function eo(_0x9feb3a){return _0x5b0a('0x5')==_0x9feb3a[_0x5b0a('0x14')]['name'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c73=['afterInit','get','editor','enableCommand','commands','ckbox'];(function(_0x4a3704,_0x5c73cc){const _0x2a1654=function(_0x5e8f0a){while(--_0x5e8f0a){_0x4a3704['push'](_0x4a3704['shift']());}};_0x2a1654(++_0x5c73cc);}(_0x5c73,0x19c));const _0x2a16=function(_0x4a3704,_0x5c73cc){_0x4a3704=_0x4a3704-0x0;let _0x2a1654=_0x5c73[_0x4a3704];return _0x2a1654;};import{Plugin as _0x198f5f}from'ckeditor5/src/core';export default class E extends _0x198f5f{[_0x2a16('0x2')](){const _0x3a0f13=this[_0x2a16('0x4')];_0x3a0f13[_0x2a16('0x0')][_0x2a16('0x3')]('ckbox')&&_0x3a0f13['plugins']['get']('TrackChangesEditing')[_0x2a16('0x5')](_0x2a16('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ef0=['document','commands','codeBlock','plugins','find','schema','selection','model','isLimit','commandParams','outdentCodeBlock','has','value','config','from','registerDescriptionCallback','locale','name','parent','afterInit','registerElementLabel','_descriptionFactory','blockName','commandName','get','enableCommand','ELEMENT_CODE_BLOCK','getSelectedBlocks','filter','*Format:*\x20%0','markBlockFormat','language','forceValue','change','rootElement','format','TrackChangesEditing','label'];(function(_0x1fd34a,_0x3ef0a1){const _0x19ad8d=function(_0x23f979){while(--_0x23f979){_0x1fd34a['push'](_0x1fd34a['shift']());}};_0x19ad8d(++_0x3ef0a1);}(_0x3ef0,0xe9));const _0x19ad=function(_0x1fd34a,_0x3ef0a1){_0x1fd34a=_0x1fd34a-0x0;let _0x19ad8d=_0x3ef0[_0x1fd34a];return _0x19ad8d;};import{Plugin as _0x3d61e5}from'ckeditor5/src/core';import{getTranslation as _0x15714f}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3ecf0d}from'../utils/utils';export default class O extends _0x3d61e5{[_0x19ad('0xe')](){const _0x20133f=this['editor'];if(!_0x20133f[_0x19ad('0x24')][_0x19ad('0x6')]('CodeBlock'))return;const _0x26942f=_0x20133f[_0x19ad('0x24')][_0x19ad('0x13')](_0x19ad('0x1f')),_0x349904=_0x20133f[_0x19ad('0xb')],_0x4ea8cb=_0x20133f[_0x19ad('0x8')][_0x19ad('0x13')](_0x19ad('0x23'))['languages'],_0x4e4cbe=_0x20133f[_0x19ad('0x22')][_0x19ad('0x13')](_0x19ad('0x23'));_0x26942f[_0x19ad('0x14')]('indentCodeBlock'),_0x26942f[_0x19ad('0x14')](_0x19ad('0x5')),_0x26942f[_0x19ad('0x14')]('codeBlock',(_0x4989d8,_0x5176f2={})=>{const _0x199817=_0x20133f[_0x19ad('0x2')],_0x551c59=_0x20133f['model'][_0x19ad('0x21')][_0x19ad('0x1')],_0xb8d6eb=_0x5176f2&&void 0x0!==_0x5176f2[_0x19ad('0x1b')]?_0x5176f2['forceValue']:!_0x4e4cbe[_0x19ad('0x7')];let _0x2b02eb;_0x5176f2[_0x19ad('0x1a')]||(_0x5176f2['language']=_0x4ea8cb[0x0]['language']),_0x2b02eb=_0xb8d6eb?Array[_0x19ad('0x9')](_0x551c59[_0x19ad('0x16')]())['filter'](_0xaf38ab=>co(_0xaf38ab)||function(_0x20099c,_0x2e1307){if(_0x20099c['is'](_0x19ad('0x1d'))||_0x2e1307[_0x19ad('0x3')](_0x20099c))return!0x1;return _0x2e1307['checkChild'](_0x20099c[_0x19ad('0xd')],_0x19ad('0x23'));}(_0xaf38ab,_0x199817[_0x19ad('0x0')])):Array[_0x19ad('0x9')](_0x551c59[_0x19ad('0x16')]())[_0x19ad('0x17')](_0x347c0f=>co(_0x347c0f));const _0x566bea=_0x3ecf0d(_0x2b02eb,_0x199817);_0x199817[_0x19ad('0x1c')](()=>{for(const _0x34cb33 of _0x566bea)_0x26942f[_0x19ad('0x19')](_0x34cb33,{'commandName':_0x19ad('0x23'),'commandParams':[{..._0x5176f2,'forceValue':_0xb8d6eb}],'formatGroupId':_0x19ad('0x11')});});}),(_0x26942f[_0x19ad('0x10')][_0x19ad('0xf')](_0x19ad('0x23'),_0x4c2e55=>_0x15714f(_0x349904,_0x19ad('0x15'),_0x4c2e55)),_0x26942f[_0x19ad('0x10')][_0x19ad('0xa')](_0x18e630=>{const _0x4f3d51=_0x349904['t'],{type:_0x56f044,data:_0x43e6ea}=_0x18e630;if('formatBlock'==_0x56f044&&_0x43e6ea&&'codeBlock'==_0x43e6ea[_0x19ad('0x12')]){const _0x32a927=_0x43e6ea[_0x19ad('0x4')][0x0][_0x19ad('0x1a')],_0x513920=_0x4f3d51(_0x4ea8cb[_0x19ad('0x25')](_0x189efc=>_0x189efc[_0x19ad('0x1a')]===_0x32a927)[_0x19ad('0x20')]);return _0x43e6ea[_0x19ad('0x4')][0x0][_0x19ad('0x1b')]?{'type':_0x19ad('0x1e'),'content':_0x15714f(_0x349904,_0x19ad('0x18'),_0x15714f(_0x349904,_0x19ad('0x15'),0x1)+'\x20('+_0x513920+')')}:{'type':_0x19ad('0x1e'),'content':_0x15714f(_0x349904,'*Remove\x20format:*\x20%0',_0x15714f(_0x349904,_0x19ad('0x15'),0x1))};}}));}}function co(_0x16900f){return _0x19ad('0x23')==_0x16900f[_0x19ad('0xc')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19ab=['addCommentThread','TrackChangesEditing','CommentsEditing','enableCommand','plugins'];(function(_0x2dd9ed,_0x19ab3f){const _0x2ad712=function(_0x12c8d8){while(--_0x12c8d8){_0x2dd9ed['push'](_0x2dd9ed['shift']());}};_0x2ad712(++_0x19ab3f);}(_0x19ab,0x124));const _0x2ad7=function(_0x2dd9ed,_0x19ab3f){_0x2dd9ed=_0x2dd9ed-0x0;let _0x2ad712=_0x19ab[_0x2dd9ed];return _0x2ad712;};import{Plugin as _0x1928bd}from'ckeditor5/src/core';export default class F extends _0x1928bd{['afterInit'](){const _0x5d57de=this['editor'];if(!_0x5d57de[_0x2ad7('0x2')]['has'](_0x2ad7('0x0')))return;_0x5d57de[_0x2ad7('0x2')]['get'](_0x2ad7('0x4'))[_0x2ad7('0x1')](_0x2ad7('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b12=['addMarker:suggestion:deletion','createRange','getFirstRange','merge','start','rootName','TrackChangesEditing','deleteForward','createSelection','plugins','editor','commands','modifySelection','root','editing','high','setSelection','uiElement','forward','buffer','fromRange','selection','writer','end','unit','downcastDispatcher','$graveyard','data','delete','requires','get','batch','options','detach','enableCommand','model','init','markerNameToElements','mapper','showSuggestionHighlights','removeMarker:suggestion:deletion','unbindElementFromMarkerName'];(function(_0x48124a,_0x1b1298){const _0x5d963b=function(_0x31b306){while(--_0x31b306){_0x48124a['push'](_0x48124a['shift']());}};_0x5d963b(++_0x1b1298);}(_0x1b12,0x193));const _0x5d96=function(_0x48124a,_0x1b1298){_0x48124a=_0x48124a-0x0;let _0x5d963b=_0x1b12[_0x48124a];return _0x5d963b;};import{Plugin as _0xf053b5}from'ckeditor5/src/core';import{LiveRange as _0x11883d}from'ckeditor5/src/engine';import{Delete as _0x10e177}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x3ec5d9}from'./utils';export default class G extends _0xf053b5{static get[_0x5d96('0x4')](){return[_0x10e177];}[_0x5d96('0xb')](){const _0xa04604=this[_0x5d96('0x1b')],_0x799382=_0xa04604[_0x5d96('0x1a')]['get'](_0x5d96('0x17'));_0x799382[_0x5d96('0x9')](_0x5d96('0x3'));const _0x52f56e=_0xa04604[_0x5d96('0x1c')][_0x5d96('0x5')](_0x5d96('0x18'));_0x799382[_0x5d96('0x9')](_0x5d96('0x18'),(_0x22f27d,_0xa797c7={})=>{const _0x52d19c=_0xa04604[_0x5d96('0xa')][_0x5d96('0x19')](_0xa04604['model']['document'][_0x5d96('0x26')]);_0x52d19c['isCollapsed']&&_0xa04604[_0x5d96('0xa')][_0x5d96('0x1d')](_0x52d19c,{'direction':_0x5d96('0x23'),'unit':_0xa797c7[_0x5d96('0x29')]});const _0x420b8a=_0x52d19c[_0x5d96('0x13')](),_0x27b8f2=_0x11883d[_0x5d96('0x25')](_0x420b8a);let _0x42ad97;_0x22f27d(_0xa797c7),_0x42ad97=_0x5d96('0x1')==_0x27b8f2[_0x5d96('0x1e')][_0x5d96('0x16')]?_0xa04604['model'][_0x5d96('0x12')](_0x420b8a[_0x5d96('0x15')]):_0xa04604[_0x5d96('0xa')]['createRange'](_0x27b8f2[_0x5d96('0x15')],_0x27b8f2[_0x5d96('0x28')]),_0x27b8f2[_0x5d96('0x8')](),_0xa04604['model']['enqueueChange'](_0x52f56e[_0x5d96('0x24')][_0x5d96('0x6')],_0x36b4d3=>{_0x52f56e[_0x5d96('0x24')]['lock'](),_0x36b4d3[_0x5d96('0x21')](_0x36b4d3['createRange'](_0x42ad97[_0x5d96('0x28')])),_0x52f56e[_0x5d96('0x24')]['unlock']();});}),_0xa04604[_0x5d96('0x1f')][_0x5d96('0x0')]['on'](_0x5d96('0x11'),_0x3ec5d9(_0xa04604,_0x5d96('0x14')),{'priority':_0x5d96('0x20')}),_0xa04604[_0x5d96('0x2')][_0x5d96('0x0')]['on'](_0x5d96('0x11'),(_0x2da47e,_0x1d8d24,_0x38578e)=>{_0x38578e[_0x5d96('0x7')][_0x5d96('0xe')]&&_0x3ec5d9(_0xa04604,_0x5d96('0x14'),{'showActiveMarker':!0x1})['bind'](this)(_0x2da47e,_0x1d8d24,_0x38578e);},{'priority':_0x5d96('0x20')}),_0xa04604['editing'][_0x5d96('0x0')]['on'](_0x5d96('0xf'),(_0x3d259c,_0x52fbc6,_0x50373b)=>{const _0x16b258=_0x50373b[_0x5d96('0xd')][_0x5d96('0xc')](_0x52fbc6['markerName']);if(_0x16b258)for(const _0x11a3b5 of _0x16b258)_0x11a3b5['is'](_0x5d96('0x22'))&&(_0x50373b[_0x5d96('0xd')][_0x5d96('0x10')](_0x11a3b5,_0x52fbc6['markerName']),_0x50373b[_0x5d96('0x27')]['remove'](_0x11a3b5));},{'priority':_0x5d96('0x20')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b74=['end','TrackChangesEditing','toUpperCase','plugins','listType','commandName','document','enableCommand','isObject','has','afterInit','before','from','schema','listIndent','_LIST','start','commandParams','map','setSelection','registerDescriptionCallback','slice','documentList','mergeListItemForward','forceValue','splitListItemAfter','containsItem','bulletedList','format','*Outdent:*\x20%0','parent','DocumentListUtils','push','hasAttribute','listItemId','findIndex','numberedList','indentList','*Format:*\x20insert\x20into\x20%0','outdentList','nextSibling','mergeListItemBackward','getFirstRange','value','getAttribute','change','ELEMENT_NUMBERED_LIST','registerCustomCallback','*Change\x20to:*\x20%0','previousSibling','get','selection','commands','nodeAfter','getSelectedBlocks','model','*Format:*\x20remove\x20from\x20%0','ELEMENT_LIST_ITEM','ELEMENT_','splitListItemBefore','getRanges','_suggestionFactory','_descriptionFactory','registerElementLabel','createRange','isFirstBlockOfListItem','deletion','createPositionAt'];(function(_0x58893d,_0x1b744d){const _0x1171cc=function(_0x34f306){while(--_0x34f306){_0x58893d['push'](_0x58893d['shift']());}};_0x1171cc(++_0x1b744d);}(_0x1b74,0x1d8));const _0x1171=function(_0x58893d,_0x1b744d){_0x58893d=_0x58893d-0x0;let _0x1171cc=_0x1b74[_0x58893d];return _0x1171cc;};import{Plugin as _0x8162cc}from'ckeditor5/src/core';import{getTranslation as _0x43e19e}from'../utils/common-translations';import{LiveRange as _0x212e1f}from'ckeditor5/src/engine';export default class L extends _0x8162cc{[_0x1171('0xe')](){const _0x26379d=this['editor'];if(!_0x26379d['plugins'][_0x1171('0xd')]('DocumentListEditing'))return;const _0x5074f2=_0x26379d['locale'],_0x30b13c=_0x26379d[_0x1171('0x7')]['get'](_0x1171('0x5')),_0x544dea=_0x26379d[_0x1171('0x7')][_0x1171('0x36')](_0x1171('0x23'));function _0x367987(_0x2da296){return()=>{const _0xa72e84=_0x26379d[_0x1171('0x38')]['get'](_0x2da296);let _0x16f873=Array[_0x1171('0x10')](_0x26379d[_0x1171('0x3b')][_0x1171('0xa')][_0x1171('0x37')][_0x1171('0x3a')]());if(_0x4c6395(_0x2da296)){_0x16f873=_0x544dea['expandListBlocksToCompleteList'](_0x16f873);const _0x3e7629=[];for(const _0x5c9a06 of _0x16f873)_0x544dea[_0x1171('0x1')](_0x5c9a06)&&_0x3e7629[_0x1171('0x24')](_0x5c9a06);_0x16f873=_0x3e7629;}_0x26379d['model'][_0x1171('0x31')](()=>{_0x30b13c['markMultiRangeBlockFormat'](_0x16f873,{'commandName':_0x2da296,'commandParams':[{'forceValue':!_0xa72e84[_0x1171('0x2f')]}],'formatGroupId':'listType'},[],_0x1171('0x1a'));});};}function _0x1035b5(_0x3ff2f9){return()=>{const _0xaf4181=function(_0x172131){let _0x3785f7=Array[_0x1171('0x10')](_0x172131);const _0x22c637=_0x3785f7[_0x1171('0x27')](_0x5dddda=>!_0x5dddda[_0x1171('0x25')](_0x1171('0x26')));return _0x22c637>-0x1&&(_0x3785f7=_0x3785f7[_0x1171('0x19')](0x0,_0x22c637)),_0x3785f7;}(_0x26379d['model'][_0x1171('0xa')][_0x1171('0x37')][_0x1171('0x3a')]()),_0x4510af=_0xaf4181[_0xaf4181['length']-0x1],_0x106ca0=_0x26379d[_0x1171('0x3b')][_0x1171('0x11')][_0x1171('0xc')](_0x4510af)?'after':_0x1171('0x4'),_0x55d99d=_0x26379d[_0x1171('0x3b')]['createRange'](_0x26379d[_0x1171('0x3b')][_0x1171('0x3')](_0xaf4181[0x0],_0x1171('0xf')),_0x26379d[_0x1171('0x3b')]['createPositionAt'](_0x4510af,_0x106ca0));_0x26379d[_0x1171('0x3b')][_0x1171('0x31')](()=>{_0x30b13c['markBlockFormat'](_0x55d99d,{'commandName':_0x3ff2f9,'commandParams':[],'formatGroupId':_0x1171('0x8')},function(_0x295539){const _0x4a3583=new Set();for(const _0x155a2b of _0x295539){let _0x34115e=_0x155a2b['nextSibling'];for(;_0x34115e&&_0x34115e[_0x1171('0x30')](_0x1171('0x12'))>_0x155a2b[_0x1171('0x30')](_0x1171('0x12'));)_0x4a3583['add'](_0x34115e),_0x34115e=_0x34115e[_0x1171('0x2c')];}return Array[_0x1171('0x10')](_0x4a3583);}(_0xaf4181));});};}function _0x1bcb60(_0x13e498){return()=>{const _0x898d04=_0x26379d[_0x1171('0x3b')][_0x1171('0xa')]['selection']['getSelectedBlocks']()['next']()[_0x1171('0x2f')],_0x7720bf=_0x26379d['model']['createPositionAt'](_0x898d04,_0x1171('0xf')),_0x543dbc=_0x26379d[_0x1171('0x3b')][_0x1171('0x3')](_0x898d04,0x0),_0x4641a7=_0x26379d['model'][_0x1171('0x0')](_0x7720bf,_0x543dbc);_0x26379d[_0x1171('0x3b')][_0x1171('0x31')](()=>{_0x30b13c['markBlockFormat'](_0x4641a7,{'commandName':_0x13e498,'commandParams':[],'formatGroupId':'listType'});});};}function _0x4c6395(_0x1f4ba9){const _0x1cfa36=_0x26379d[_0x1171('0x38')][_0x1171('0x36')](_0x1171('0x1f'))['value'],_0xd1f228=_0x26379d[_0x1171('0x38')]['get'](_0x1171('0x28'))['value'];return _0x1171('0x28')===_0x1f4ba9?_0x1cfa36:_0xd1f228;}_0x30b13c['enableCommand'](_0x1171('0x28'),_0x367987(_0x1171('0x28'))),_0x30b13c[_0x1171('0xb')]('bulletedList',_0x367987(_0x1171('0x1f'))),_0x30b13c[_0x1171('0xb')](_0x1171('0x29'),_0x1035b5(_0x1171('0x29'))),_0x30b13c['enableCommand'](_0x1171('0x2b'),_0x1035b5(_0x1171('0x2b'))),_0x30b13c[_0x1171('0xb')](_0x1171('0x1d'),_0x1bcb60(_0x1171('0x1d'))),_0x30b13c['enableCommand'](_0x1171('0x3f'),_0x1bcb60(_0x1171('0x3f'))),_0x30b13c['_descriptionFactory'][_0x1171('0x43')](function(_0x3e32a5){const _0x494ea4=!_0x26379d[_0x1171('0x3b')][_0x1171('0x11')][_0x1171('0xc')](_0x3e32a5),_0x214986=_0x3e32a5[_0x1171('0x35')],_0x40cb47=_0x3e32a5[_0x1171('0x2c')],_0x3983a3=_0x3e32a5[_0x1171('0x30')]('listItemId'),_0x35a1fb=!_0x214986||_0x214986[_0x1171('0x30')](_0x1171('0x26'))!==_0x3983a3,_0x3e9523=!_0x40cb47||_0x40cb47[_0x1171('0x30')](_0x1171('0x26'))!==_0x3983a3;return _0x494ea4&&Boolean(_0x3983a3)&&_0x35a1fb&&_0x3e9523;},_0x5cb364=>_0x43e19e(_0x5074f2,_0x1171('0x3d'),_0x5cb364)),_0x30b13c[_0x1171('0x42')][_0x1171('0x18')](function(_0x22261c){const {data:_0x5d4905}=_0x22261c;if(!_0x5d4905)return;let _0x170393,_0x1da584,_0x2bedb7,_0x1d4c16;switch(_0x5d4905[_0x1171('0x9')]){case _0x1171('0x1f'):_0x2bedb7=_0x5d4905[_0x1171('0x15')][0x0][_0x1171('0x1c')],_0x1d4c16=_0x4c6395(_0x5d4905['commandName']),_0x170393=_0x2bedb7?_0x1171('0x2a'):'*Format:*\x20remove\x20from\x20%0',_0x1d4c16&&(_0x170393='*Change\x20to:*\x20%0'),_0x1da584={'type':_0x1171('0x20'),'content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,'ELEMENT_BULLETED_LIST'))};break;case _0x1171('0x28'):_0x2bedb7=_0x5d4905['commandParams'][0x0]['forceValue'],_0x1d4c16=_0x4c6395(_0x5d4905[_0x1171('0x9')]),_0x170393=_0x2bedb7?_0x1171('0x2a'):_0x1171('0x3c'),_0x1d4c16&&(_0x170393=_0x1171('0x34')),_0x1da584={'type':_0x1171('0x20'),'content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,_0x1171('0x32')))};break;case _0x1171('0x29'):_0x170393='*Indent:*\x20%0',_0x1da584={'type':'format','content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,_0x1171('0x3d')))};break;case _0x1171('0x2b'):_0x170393=function(_0x607eb7){const _0x36378d=_0x607eb7[_0x1171('0x2e')]();let _0x5986df=_0x36378d[_0x1171('0x14')][_0x1171('0x39')];for(;_0x5986df&&_0x36378d[_0x1171('0x1e')](_0x5986df);){if(_0x5986df[_0x1171('0x30')](_0x1171('0x12'))>0x0)return!0x1;_0x5986df=_0x5986df[_0x1171('0x2c')];}return!0x0;}(_0x22261c)?_0x43e19e(_0x5074f2,_0x1171('0x3c'),_0x43e19e(_0x5074f2,function(_0x2a7500){const _0x4491db=_0x2a7500[_0x1171('0x2e')]()['start']['nodeAfter'];return _0x1171('0x3e')+_0x4491db['getAttribute'](_0x1171('0x8'))[_0x1171('0x6')]()+_0x1171('0x13');}(_0x22261c))):_0x43e19e(_0x5074f2,_0x1171('0x21'),_0x43e19e(_0x5074f2,_0x1171('0x3d'))),_0x1da584={'type':'format','content':_0x170393};break;case _0x1171('0x2d'):case _0x1171('0x1b'):!0x1===_0x5d4905['multipleBlocks']&&(_0x170393='*Merge:*\x20%0',_0x1da584={'type':_0x1171('0x2'),'content':_0x43e19e(_0x5074f2,_0x170393,_0x43e19e(_0x5074f2,_0x1171('0x3d')))});}return _0x1da584;}),_0x30b13c[_0x1171('0x41')][_0x1171('0x33')]('formatBlock','documentList','accept',function(_0x16b993,_0x3167ec){const _0x13df3b=[];for(let _0x28f890 of _0x16b993)_0x28f890[_0x1171('0x14')]['nodeAfter']===_0x28f890[_0x1171('0x4')][_0x1171('0x22')]&&(_0x28f890=_0x26379d[_0x1171('0x3b')][_0x1171('0x0')](_0x26379d[_0x1171('0x3b')][_0x1171('0x3')](_0x28f890[_0x1171('0x14')][_0x1171('0x39')],0x0))),_0x13df3b['push'](_0x28f890);_0x26379d[_0x1171('0x3b')][_0x1171('0x31')](_0x3c82ff=>{const _0x5503d5=_0x26379d[_0x1171('0x3b')][_0x1171('0xa')][_0x1171('0x37')],_0x400493=Array['from'](_0x5503d5[_0x1171('0x40')]())[_0x1171('0x16')](_0x8a5d7b=>_0x212e1f['fromRange'](_0x8a5d7b));_0x3c82ff['setSelection'](_0x13df3b),_0x26379d[_0x1171('0x38')][_0x1171('0x36')](_0x3167ec[_0x1171('0x9')])['refresh'](),_0x3167ec[_0x1171('0x15')][_0x1171('0x24')]({'forceDefaultExecution':!0x0}),_0x26379d['execute'](_0x3167ec['commandName'],..._0x3167ec[_0x1171('0x15')]),_0x3c82ff[_0x1171('0x17')](_0x400493);for(const _0x26a339 of _0x400493)_0x26a339['detach']();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1658=['getListTypeFromListStyleType','numbered','DocumentListPropertiesUtils','commandParams','_LIST_','enableCommand','handleListStartCommand','startIndex','replace','_descriptionFactory','list.properties','DocumentListUtils','commandName','bind','selection','document','registerDescriptionCallback','markMultiRangeBlockFormat','handleDescriptions','isFirstBlockOfListItem','handleListStyleCommand','type','listStyle','getAttribute','format','_getSuggestionBlocksForListStyle','getSelectedBlocks','locale','_getSuggestionBlocks','expandListBlocksToCompleteList','ELEMENT_','*Change\x20to:*\x20%0','model','isListItemBlock','from','push','plugins','TrackChangesEditing','*Format:*\x20set\x20order\x20to\x20regular','change','config','_getTranslationKeyForListStyle','reversed','handleListReversedCommand','has','listReversed','*Format:*\x20set\x20start\x20index\x20to\x20%0','get','toUpperCase','editor','listStart','styles'];(function(_0x2560d2,_0x16589b){const _0x410314=function(_0x2bd372){while(--_0x2bd372){_0x2560d2['push'](_0x2560d2['shift']());}};_0x410314(++_0x16589b);}(_0x1658,0x101));const _0x4103=function(_0x2560d2,_0x16589b){_0x2560d2=_0x2560d2-0x0;let _0x410314=_0x1658[_0x2560d2];return _0x410314;};import{Plugin as _0x22ecb7}from'ckeditor5/src/core';import{getTranslation as _0x3d5d56}from'../utils/common-translations';export default class At extends _0x22ecb7{['afterInit'](){if(!this[_0x4103('0x0')]['plugins'][_0x4103('0x2f')]('DocumentListPropertiesEditing'))return;const _0x2f6638=this[_0x4103('0x0')][_0x4103('0x2b')]['get'](_0x4103('0xd')),_0x4fecb0=this[_0x4103('0x0')]['plugins'][_0x4103('0x32')](_0x4103('0x28'));_0x2f6638[_0x4103('0x2')]&&_0x4fecb0[_0x4103('0x8')](_0x4103('0x19'),this[_0x4103('0x17')][_0x4103('0x10')](this)),_0x2f6638['reversed']&&_0x4fecb0[_0x4103('0x8')]('listReversed',this[_0x4103('0x2e')][_0x4103('0x10')](this)),_0x2f6638[_0x4103('0xa')]&&_0x4fecb0['enableCommand'](_0x4103('0x1'),this[_0x4103('0x9')][_0x4103('0x10')](this)),_0x4fecb0[_0x4103('0xc')][_0x4103('0x13')](this[_0x4103('0x15')][_0x4103('0x10')](this));}[_0x4103('0x17')](_0x1f9ab9,_0x3501d9={}){const _0xbc41f2=this['editor'][_0x4103('0x27')][_0x4103('0x32')]('TrackChangesEditing'),_0x5c45bd=this[_0x4103('0x1c')]();this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x2a')](()=>{_0xbc41f2[_0x4103('0x14')](_0x5c45bd,{'commandName':_0x4103('0x19'),'commandParams':[{'type':_0x3501d9[_0x4103('0x18')]}],'formatGroupId':_0x4103('0x19')});});}[_0x4103('0x2e')](_0x2e46fa,_0x5330e3={}){const _0x510f40=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0x28')),_0x471b6d=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')]('DocumentListUtils'),_0x4052b0=this[_0x4103('0x1f')](_0x359dde=>_0x471b6d[_0x4103('0x24')](_0x359dde)&&_0x4103('0x4')===_0x359dde[_0x4103('0x1a')]('listType'));null!==_0x4052b0&&this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x2a')](()=>{_0x510f40[_0x4103('0x14')](_0x4052b0,{'commandName':_0x4103('0x30'),'commandParams':[{'reversed':_0x5330e3[_0x4103('0x2d')]}],'formatGroupId':'listReversed'});});}[_0x4103('0x9')](_0xbab196,_0x784d02={}){const _0x15f9b6=this['editor'][_0x4103('0x27')]['get']('TrackChangesEditing'),_0x4497ee=this['editor']['plugins'][_0x4103('0x32')](_0x4103('0xe')),_0x512777=this[_0x4103('0x1f')](_0x380c5c=>_0x4497ee['isListItemBlock'](_0x380c5c)&&_0x4103('0x4')===_0x380c5c['getAttribute']('listType'));null!==_0x512777&&this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x2a')](()=>{_0x15f9b6[_0x4103('0x14')](_0x512777,{'commandName':_0x4103('0x1'),'commandParams':[{'startIndex':_0x784d02[_0x4103('0xa')]}],'formatGroupId':_0x4103('0x1')});});}['handleDescriptions'](_0x50cc93){const _0x1a66d4=this[_0x4103('0x0')][_0x4103('0x1e')],{data:_0x47ea95}=_0x50cc93;if(!_0x47ea95)return;let _0x336e10,_0x1185a0;switch(_0x47ea95[_0x4103('0xf')]){case _0x4103('0x19'):_0x336e10=_0x4103('0x22'),_0x1185a0={'type':_0x4103('0x1b'),'content':_0x3d5d56(_0x1a66d4,_0x336e10,_0x3d5d56(_0x1a66d4,this['_getTranslationKeyForListStyle'](_0x47ea95['commandParams'][0x0][_0x4103('0x18')])))};break;case _0x4103('0x30'):_0x336e10=_0x47ea95[_0x4103('0x6')][0x0][_0x4103('0x2d')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x4103('0x29'),_0x1185a0={'type':'format','content':_0x3d5d56(_0x1a66d4,_0x336e10)};break;case _0x4103('0x1'):_0x336e10=_0x4103('0x31'),_0x1185a0={'type':_0x4103('0x1b'),'content':_0x3d5d56(_0x1a66d4,_0x336e10,_0x47ea95[_0x4103('0x6')][0x0][_0x4103('0xa')])};}return _0x1185a0;}['_getSuggestionBlocksForListStyle'](){const _0x4d9665=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0xe'));let _0x756ef5=Array[_0x4103('0x25')](this['editor'][_0x4103('0x23')][_0x4103('0x12')][_0x4103('0x11')][_0x4103('0x1d')]());return _0x756ef5[_0x4103('0x26')](..._0x4d9665['expandListBlocksToCompleteList'](_0x756ef5)),_0x756ef5=[...new Set(_0x756ef5)],_0x756ef5;}[_0x4103('0x1f')](_0x1d33a2){const _0x4e267a=this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0xe'));let _0x48dd45=Array[_0x4103('0x25')](this[_0x4103('0x0')][_0x4103('0x23')][_0x4103('0x12')][_0x4103('0x11')]['getSelectedBlocks']())['filter'](_0x1d33a2);if(!_0x48dd45['length'])return null;_0x48dd45=_0x4e267a[_0x4103('0x20')](_0x48dd45);const _0x54f151=[];for(const _0x292590 of _0x48dd45)_0x4e267a[_0x4103('0x16')](_0x292590)&&_0x54f151[_0x4103('0x26')](_0x292590);return _0x54f151;}[_0x4103('0x2c')](_0x1c2aea){return _0x4103('0x21')+this[_0x4103('0x0')][_0x4103('0x27')][_0x4103('0x32')](_0x4103('0x5'))[_0x4103('0x3')](_0x1c2aea)['toUpperCase']()+_0x4103('0x7')+_0x1c2aea[_0x4103('0x33')]()[_0x4103('0xb')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3692=['enterBlock','addMarker:suggestion:insertion','mapper','get','requires','afterExecute','fromRange','parent','showSuggestionHighlights','split','selection','ck-suggestion-marker-split','end','change','markerName','setSelection','model','remove','editor','init','markInsertion','plugins','enableCommand','createPositionAt','TrackChangesEditing','hasClass','enter','bind','commands','detach','fire','editing','options','createRange','markerNameToElements','document','high','downcastDispatcher'];(function(_0x4a9108,_0x36925a){const _0x279aa1=function(_0x214981){while(--_0x214981){_0x4a9108['push'](_0x4a9108['shift']());}};_0x279aa1(++_0x36925a);}(_0x3692,0x19d));const _0x279a=function(_0x4a9108,_0x36925a){_0x4a9108=_0x4a9108-0x0;let _0x279aa1=_0x3692[_0x4a9108];return _0x279aa1;};import{Plugin as _0x2b2408}from'ckeditor5/src/core';import{Enter as _0x485a0a}from'ckeditor5/src/enter';import{LiveRange as _0x542f46}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x5bfe0c}from'./utils';export default class q extends _0x2b2408{static get[_0x279a('0x9')](){return[_0x485a0a];}[_0x279a('0x18')](){const _0x47fcd0=this[_0x279a('0x17')],_0x2d739e=_0x47fcd0[_0x279a('0x1a')]['get'](_0x279a('0x1d')),_0x4b8dcd=_0x47fcd0[_0x279a('0x21')][_0x279a('0x8')](_0x279a('0x1f'));_0x2d739e[_0x279a('0x1b')](_0x279a('0x1f'),()=>{_0x47fcd0[_0x279a('0x15')][_0x279a('0x12')](_0x2c5e62=>{const _0x59e09f=_0x47fcd0[_0x279a('0x15')][_0x279a('0x2')][_0x279a('0xf')],_0x10cbe0=_0x59e09f['getFirstPosition'](),_0x17c896=_0x542f46[_0x279a('0xb')](_0x59e09f['getFirstRange']());if(_0x4b8dcd[_0x279a('0x5')](_0x2c5e62)){const _0x43c92e=_0x47fcd0[_0x279a('0x15')][_0x279a('0x1c')](_0x10cbe0[_0x279a('0xc')]['nextSibling'],0x0),_0x58296b=_0x2c5e62['createRange'](_0x10cbe0,_0x43c92e);_0x2d739e[_0x279a('0x19')](_0x58296b);}else _0x2c5e62[_0x279a('0x14')](_0x2c5e62[_0x279a('0x0')](_0x17c896[_0x279a('0x11')]));_0x17c896[_0x279a('0x22')](),_0x4b8dcd[_0x279a('0x23')](_0x279a('0xa'),{'writer':_0x2c5e62});});}),_0x47fcd0[_0x279a('0x24')][_0x279a('0x4')]['on'](_0x279a('0x6'),_0x5bfe0c(_0x47fcd0,_0x279a('0xe')),{'priority':_0x279a('0x3')}),_0x47fcd0[_0x279a('0x24')]['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20bfd1,_0x5ca635,_0x1037f8)=>{const _0xbbec5=_0x1037f8[_0x279a('0x7')][_0x279a('0x1')](_0x5ca635[_0x279a('0x13')]);if(_0xbbec5)for(const _0x59dc7b of _0xbbec5)_0x59dc7b[_0x279a('0x1e')](_0x279a('0x10'))&&(_0x1037f8[_0x279a('0x7')]['unbindElementFromMarkerName'](_0x59dc7b,_0x5ca635[_0x279a('0x13')]),_0x1037f8['writer'][_0x279a('0x16')](_0x59dc7b));},{'priority':_0x279a('0x3')}),_0x47fcd0['data'][_0x279a('0x4')]['on'](_0x279a('0x6'),(_0x5eead7,_0x30e943,_0x387b4a)=>{_0x387b4a[_0x279a('0x25')][_0x279a('0xd')]&&_0x5bfe0c(_0x47fcd0,_0x279a('0xe'),{'showActiveMarker':!0x1})[_0x279a('0x20')](this)(_0x5eead7,_0x30e943,_0x387b4a);},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dbc=['getMarkersGroup','getIntersection','replaceAll','createPositionAt','string','FindAndReplaceEditing','editor','plugins','afterInit','handleFindCommand','suggestion:deletion','FindAndReplaceUtils','has','findPrevious','filter','get','enableCommand','findByTextCallback','bind','markers','TrackChangesEditing','_isInDeletionRange','find','getRange','end','model','start','item'];(function(_0x20b562,_0x5dbc8d){const _0x403f61=function(_0x22dd20){while(--_0x22dd20){_0x20b562['push'](_0x20b562['shift']());}};_0x403f61(++_0x5dbc8d);}(_0x5dbc,0xed));const _0x403f=function(_0x20b562,_0x5dbc8d){_0x20b562=_0x20b562-0x0;let _0x403f61=_0x5dbc[_0x20b562];return _0x403f61;};import{Plugin as _0x20b08b}from'ckeditor5/src/core';export default class z extends _0x20b08b{[_0x403f('0x17')](){if(!this['editor'][_0x403f('0x16')][_0x403f('0x1b')](_0x403f('0x14')))return;const _0x34cca5=this['editor'][_0x403f('0x16')]['get'](_0x403f('0x7'));_0x34cca5[_0x403f('0x3')](_0x403f('0x9'),this[_0x403f('0x18')][_0x403f('0x5')](this)),_0x34cca5[_0x403f('0x3')]('findNext'),_0x34cca5[_0x403f('0x3')](_0x403f('0x0')),_0x34cca5[_0x403f('0x3')]('replace'),_0x34cca5[_0x403f('0x3')](_0x403f('0x11'));}['handleFindCommand'](_0x477613,_0x42bc4a,_0x3f522e={}){const _0x578527=this['editor'][_0x403f('0x16')][_0x403f('0x2')](_0x403f('0x1a'));void 0x0!==_0x3f522e&&_0x477613(_0x236c8b=>(_0x403f('0x13')==typeof _0x42bc4a?_0x578527[_0x403f('0x4')](_0x42bc4a,_0x3f522e):_0x42bc4a)(_0x236c8b)[_0x403f('0x1')](_0x3bda08=>!0x1===this[_0x403f('0x8')](_0x3bda08,_0x236c8b[_0x403f('0xe')])),_0x3f522e);}[_0x403f('0x8')](_0xa57224,_0x2c48be){const _0xca99d4=this[_0x403f('0x15')][_0x403f('0xc')]['createRange'](this[_0x403f('0x15')][_0x403f('0xc')][_0x403f('0x12')](_0x2c48be,_0xa57224[_0x403f('0xd')]),this[_0x403f('0x15')][_0x403f('0xc')][_0x403f('0x12')](_0x2c48be,_0xa57224[_0x403f('0xb')]));for(const _0x3a6e8c of this['editor']['model'][_0x403f('0x6')][_0x403f('0xf')](_0x403f('0x19')))if(null!==_0xca99d4[_0x403f('0x10')](_0x3a6e8c[_0x403f('0xa')]()))return!0x0;return!0x1;}}
|