@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231004.0 → 0.0.0-nightly-20231006.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.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-20231006.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-20231006.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231006.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 _0x2846=['acceptSuggestion','canEditAt','get','_isEnabledBasedOnSelection','_suggestions','editor','isEnabled','refresh','execute'];(function(_0x20caa1,_0x284634){const _0xc31412=function(_0x412fca){while(--_0x412fca){_0x20caa1['push'](_0x20caa1['shift']());}};_0xc31412(++_0x284634);}(_0x2846,0xed));const _0xc314=function(_0x20caa1,_0x284634){_0x20caa1=_0x20caa1-0x0;let _0xc31412=_0x2846[_0x20caa1];return _0xc31412;};import{Command as _0x3725d0}from'ckeditor5/src/core';import{CKEditorError as _0x59140b}from'ckeditor5/src/utils';export default class M extends _0x3725d0{constructor(_0x500c9a,_0x526b39){super(_0x500c9a),this['_suggestions']=_0x526b39,this[_0xc314('0x4')](),this[_0xc314('0x0')]=!0x1;}[_0xc314('0x4')](){this[_0xc314('0x3')]=!0x0;}[_0xc314('0x5')](_0x13d590){const _0x3a1a3a=this[_0xc314('0x1')][_0xc314('0x8')](_0x13d590);if(!_0x3a1a3a)throw new _0x59140b('track-changes-accept-suggestion-not-found',this);const _0x2861c4=_0x3a1a3a['getRanges']();this[_0xc314('0x2')]['model'][_0xc314('0x7')](_0x2861c4)&&this[_0xc314('0x2')]['plugins'][_0xc314('0x8')]('TrackChangesEditing')[_0xc314('0x6')](_0x3a1a3a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46f0=['plugins','execute','model','discardSuggestion','_isEnabledBasedOnSelection','getRanges','canEditAt','editor','TrackChangesEditing','get','track-changes-discard-suggestion-not-found','refresh'];(function(_0x201511,_0x46f0f6){const _0x16a110=function(_0x11b073){while(--_0x11b073){_0x201511['push'](_0x201511['shift']());}};_0x16a110(++_0x46f0f6);}(_0x46f0,0xea));const _0x16a1=function(_0x201511,_0x46f0f6){_0x201511=_0x201511-0x0;let _0x16a110=_0x46f0[_0x201511];return _0x16a110;};import{Command as _0x520cd7}from'ckeditor5/src/core';import{CKEditorError as _0x1455a0}from'ckeditor5/src/utils';export default class $ extends _0x520cd7{constructor(_0x2c2c25,_0x25a4ac){super(_0x2c2c25),this['_suggestions']=_0x25a4ac,this[_0x16a1('0x5')](),this[_0x16a1('0xa')]=!0x1;}[_0x16a1('0x5')](){this['isEnabled']=!0x0;}[_0x16a1('0x7')](_0x3dcfb7){const _0xda8ac8=this['_suggestions'][_0x16a1('0x3')](_0x3dcfb7);if(!_0xda8ac8)throw new _0x1455a0(_0x16a1('0x4'),this);const _0x2315bb=_0xda8ac8[_0x16a1('0xb')]();this[_0x16a1('0x1')][_0x16a1('0x8')][_0x16a1('0x0')](_0x2315bb)&&this[_0x16a1('0x1')][_0x16a1('0x6')]['get'](_0x16a1('0x2'))[_0x16a1('0x9')](_0xda8ac8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf98d=['_command','isEnabled','values','_suggestions','execute','refresh','some','isInContent','from','model','editor','canEditAt'];(function(_0x5e0314,_0xf98df7){const _0x4974f1=function(_0xe752fd){while(--_0xe752fd){_0x5e0314['push'](_0x5e0314['shift']());}};_0x4974f1(++_0xf98df7);}(_0xf98d,0x1ef));const _0x4974=function(_0x5e0314,_0xf98df7){_0x5e0314=_0x5e0314-0x0;let _0x4974f1=_0xf98d[_0x5e0314];return _0x4974f1;};import{Command as _0x500f47}from'ckeditor5/src/core';import{sortSuggestions as _0x11a771,executeCommandForSuggestions as _0x4e36df}from'../utils/utils';export default class N extends _0x500f47{constructor(_0x1dfd26,_0xb0207a,_0x233240){super(_0x1dfd26),this[_0x4974('0x9')]=_0xb0207a,this[_0x4974('0x0')]=_0x233240,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x4974('0x2')](){const _0x4f3baf=Array[_0x4974('0x5')](this[_0x4974('0x0')][_0x4974('0xb')]())[_0x4974('0x3')](_0x31809d=>_0x31809d[_0x4974('0x4')]);this[_0x4974('0xa')]=this[_0x4974('0x9')][_0x4974('0xa')]&&_0x4f3baf;}[_0x4974('0x1')](){const _0xb8cbe9=_0x11a771(Array[_0x4974('0x5')](this[_0x4974('0x0')]['values']()));for(const _0x1398d4 of _0xb8cbe9){const _0x28aa5c=_0x1398d4['getRanges']();if(!this[_0x4974('0x7')][_0x4974('0x6')][_0x4974('0x8')](_0x28aa5c))return;}_0x4e36df(this[_0x4974('0x7')][_0x4974('0x6')],this[_0x4974('0x9')],_0xb8cbe9);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41f1=['_selectedSuggestions','size','_suggestions','from','model','editor','refresh','values','isEnabled','execute','_command'];(function(_0x5c5f1d,_0x41f1a8){const _0x443d83=function(_0x58fb56){while(--_0x58fb56){_0x5c5f1d['push'](_0x5c5f1d['shift']());}};_0x443d83(++_0x41f1a8);}(_0x41f1,0x1e8));const _0x443d=function(_0x5c5f1d,_0x41f1a8){_0x5c5f1d=_0x5c5f1d-0x0;let _0x443d83=_0x41f1[_0x5c5f1d];return _0x443d83;};import{Command as _0x358b5f}from'ckeditor5/src/core';import{sortSuggestions as _0x464eed,getSelectedSuggestions as _0x5630d8,executeCommandForSuggestions as _0x3f8521}from'../utils/utils';export default class R extends _0x358b5f{constructor(_0x27e030,_0x543bef,_0xc8dfce){super(_0x27e030),this[_0x443d('0x6')]=_0x543bef,this['_suggestions']=_0xc8dfce,this[_0x443d('0x7')]=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x443d('0x2')](){const _0x437022=this[_0x443d('0x1')][_0x443d('0x0')]['document']['selection'],_0x3e637e=Array[_0x443d('0xa')](this[_0x443d('0x9')][_0x443d('0x3')]());this['_selectedSuggestions']=_0x5630d8(_0x437022,_0x3e637e),this['isEnabled']=this[_0x443d('0x6')][_0x443d('0x4')]&&!!this[_0x443d('0x7')][_0x443d('0x8')];}[_0x443d('0x5')](){const _0xda80ec=_0x464eed(Array[_0x443d('0xa')](this['_selectedSuggestions']));for(const _0x11dbe0 of _0xda80ec){const _0x3120eb=_0x11dbe0['getRanges']();if(!this[_0x443d('0x1')][_0x443d('0x0')]['canEditAt'](_0x3120eb))return;}_0x3f8521(this['editor']['model'],this[_0x443d('0x6')],_0xda80ec);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbbf9=['_isEnabledBasedOnSelection','_enabledCommands','isEnabled','forceDisabled','has','_disableUnsupportedCommands','clearForceDisabled','commands','execute','TrackChangesCommand','editor','refresh','value','affectsData','_enableCommands'];(function(_0x11b2ef,_0xbbf9f9){const _0x44c3d7=function(_0x4ce23b){while(--_0x4ce23b){_0x11b2ef['push'](_0x11b2ef['shift']());}};_0x44c3d7(++_0xbbf9f9);}(_0xbbf9,0xae));const _0x44c3=function(_0x11b2ef,_0xbbf9f9){_0x11b2ef=_0x11b2ef-0x0;let _0x44c3d7=_0xbbf9[_0x11b2ef];return _0x44c3d7;};import{Command as _0x4f0d43}from'ckeditor5/src/core';export default class _ extends _0x4f0d43{constructor(_0x34fa78,_0x19a696){super(_0x34fa78),this[_0x44c3('0x7')]=_0x19a696,this['value']=!0x1,this[_0x44c3('0x2')](),this[_0x44c3('0x6')]=!0x1;}[_0x44c3('0x2')](){this[_0x44c3('0x8')]=!0x0;}[_0x44c3('0xe')](){this[_0x44c3('0x3')]=!this[_0x44c3('0x3')],this[_0x44c3('0x3')]?this[_0x44c3('0xb')]():this['_enableCommands']();}[_0x44c3('0xb')](){for(const _0x512a29 of this[_0x44c3('0x1')][_0x44c3('0xd')]['commands']())_0x512a29[_0x44c3('0x4')]&&!this[_0x44c3('0x7')][_0x44c3('0xa')](_0x512a29)&&_0x512a29[_0x44c3('0x9')](_0x44c3('0x0'));}[_0x44c3('0x5')](){for(const _0x5ae161 of this[_0x44c3('0x1')]['commands'][_0x44c3('0xd')]())_0x5ae161[_0x44c3('0x4')]&&!this['_enabledCommands']['has'](_0x5ae161)&&_0x5ae161[_0x44c3('0xc')]('TrackChangesCommand');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x502f=['editor','enableCommand','plugins','get','afterInit','showAIAssistant'];(function(_0x2b66b2,_0x502f6e){const _0x450191=function(_0x8bdbb1){while(--_0x8bdbb1){_0x2b66b2['push'](_0x2b66b2['shift']());}};_0x450191(++_0x502f6e);}(_0x502f,0x11a));const _0x4501=function(_0x2b66b2,_0x502f6e){_0x2b66b2=_0x2b66b2-0x0;let _0x450191=_0x502f[_0x2b66b2];return _0x450191;};import{Plugin as _0x4fae64}from'ckeditor5/src/core';export default class j extends _0x4fae64{[_0x4501('0x4')](){const _0x29a17c=this[_0x4501('0x0')],_0x57afeb=_0x29a17c[_0x4501('0x2')][_0x4501('0x3')]('TrackChangesEditing');_0x29a17c['commands'][_0x4501('0x3')]('showAIAssistant')&&_0x57afeb[_0x4501('0x1')](_0x4501('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dec=['alignment','*Format:*\x20%0','_descriptionFactory','value','getAttribute','change','get','AlignmentEditing','selection','model','from','locale','commandParams','FORMAT_ALIGN_TO_RIGHT','left','center','FORMAT_ALIGN_TO_LEFT','markBlockFormat','TrackChangesEditing','document','registerDescriptionCallback','FORMAT_ALIGN_TO_CENTER','filter','schema','afterInit','editor','right','commandName'];(function(_0x5987de,_0x2decf0){const _0x16bd5b=function(_0x25e51c){while(--_0x25e51c){_0x5987de['push'](_0x5987de['shift']());}};_0x16bd5b(++_0x2decf0);}(_0x2dec,0x1dc));const _0x16bd=function(_0x5987de,_0x2decf0){_0x5987de=_0x5987de-0x0;let _0x16bd5b=_0x2dec[_0x5987de];return _0x16bd5b;};import{Plugin as _0x319b07}from'ckeditor5/src/core';import{getTranslation as _0xbc6245}from'../utils/common-translations';export default class x extends _0x319b07{[_0x16bd('0x18')](){const _0x4d0e04=this['editor'],_0x556d22=_0x4d0e04[_0x16bd('0xb')];if(!_0x4d0e04['plugins']['has'](_0x16bd('0x7')))return;const _0x3564fa=_0x4d0e04['plugins'][_0x16bd('0x6')](_0x16bd('0x12'));_0x3564fa['enableCommand']('alignment',(_0x303d55,_0x4f920f={})=>{let _0xfc9a68=_0x4f920f[_0x16bd('0x3')];_0x4f920f['value']||(_0xfc9a68='ltr'===_0x4d0e04['locale']['contentLanguageDirection']?_0x16bd('0xe'):'right');const _0x9be706=Array[_0x16bd('0xa')](this[_0x16bd('0x19')]['model'][_0x16bd('0x13')][_0x16bd('0x8')]['getSelectedBlocks']())[_0x16bd('0x16')](_0x2eb15a=>function(_0x41d97f,_0x16773a,_0xf9a67f){const _0x2586ba=_0x41d97f[_0x16bd('0x4')](_0x16bd('0x0'))||null;return _0x16773a['checkAttribute'](_0x41d97f,'alignment')&&_0xf9a67f!=_0x2586ba;}(_0x2eb15a,this['editor'][_0x16bd('0x9')][_0x16bd('0x17')],_0xfc9a68));_0x4d0e04[_0x16bd('0x9')][_0x16bd('0x5')](()=>{for(const _0x5d280e of _0x9be706)_0x3564fa[_0x16bd('0x11')](_0x5d280e,{'commandName':'alignment','commandParams':[{'value':_0xfc9a68}]});});}),_0x3564fa[_0x16bd('0x2')][_0x16bd('0x14')](_0x243be1=>{const {data:_0x10cfb4}=_0x243be1;if(_0x10cfb4&&'alignment'==_0x10cfb4[_0x16bd('0x1b')]){const _0x260399=_0x10cfb4[_0x16bd('0xc')][0x0][_0x16bd('0x3')];return{'type':'format','content':_0xbc6245(_0x556d22,_0x16bd('0x1'),function(_0x5f8bbb){switch(_0x5f8bbb){case'left':return _0xbc6245(_0x556d22,_0x16bd('0x10'));case _0x16bd('0x1a'):return _0xbc6245(_0x556d22,_0x16bd('0xd'));case _0x16bd('0xf'):return _0xbc6245(_0x556d22,_0x16bd('0x15'));case'justify':return _0xbc6245(_0x556d22,'FORMAT_JUSTIFY_TEXT');}}(_0x260399))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3030=['afterInit','commandParams','commandName','forceValue','CodeEditing','SuperscriptEditing','SubscriptEditing','getRanges','get','plugins','bold','format','FORMAT_SUBSCRIPT','UnderlineEditing','toLowerCase','code','subscript','_descriptionFactory','FORMAT_STRIKETHROUGH','from','strikethrough','superscript','italic','editor','ItalicEditing','isCollapsed','BoldEditing','enableCommand','FORMAT_SUPERSCRIPT','commands','FORMAT_ITALIC','StrikethroughEditing','FORMAT_BOLD','document'];(function(_0x1c32fc,_0x3030e1){const _0xf41db7=function(_0x6e0bfb){while(--_0x6e0bfb){_0x1c32fc['push'](_0x1c32fc['shift']());}};_0xf41db7(++_0x3030e1);}(_0x3030,0x6b));const _0xf41d=function(_0x1c32fc,_0x3030e1){_0x1c32fc=_0x1c32fc-0x0;let _0xf41db7=_0x3030[_0x1c32fc];return _0xf41db7;};import{Plugin as _0x45e138}from'ckeditor5/src/core';import{getTranslation as _0x304e71}from'../utils/common-translations';import{getRangesWithAttribute as _0x3a65dc}from'./utils';const Zt=[_0xf41d('0x15'),_0xf41d('0x13'),_0xf41d('0x8'),_0xf41d('0x21'),_0xf41d('0x1a'),_0xf41d('0x1'),_0xf41d('0x0')];export default class U extends _0x45e138{[_0xf41d('0x1d')](){const _0x734d1=this[_0xf41d('0x12')],_0x46252b=_0x734d1['model'],_0x44f941=_0x734d1[_0xf41d('0x4')][_0xf41d('0x3')]('TrackChangesEditing'),_0x3d6972=_0x734d1['locale'];for(const _0x4e1c3e of Zt){if(!_0x734d1[_0xf41d('0x4')]['has'](_0x4e1c3e))continue;const _0x1b579b=_0x4e1c3e['slice'](0x0,-0x7)[_0xf41d('0x9')](),_0xd382c8=_0x734d1[_0xf41d('0x18')][_0xf41d('0x3')](_0x1b579b);_0x44f941[_0xf41d('0x16')](_0x1b579b,(_0x1f141c,_0x23ff74={})=>{const _0x50edb3=_0x46252b[_0xf41d('0x1c')]['selection'];if(_0x50edb3[_0xf41d('0x14')])return void _0x1f141c(_0x23ff74);const _0x1eccfc=void 0x0!==_0x23ff74['forceValue']?_0x23ff74['forceValue']:!_0xd382c8['value'];_0x46252b['change'](()=>{const _0x24b471=Array[_0xf41d('0xe')](_0x50edb3[_0xf41d('0x2')]());for(const _0x15f8f5 of _0x24b471){const _0x5cc024=_0x1eccfc?[_0x15f8f5]:_0x3a65dc(_0x1b579b,_0x15f8f5,_0x46252b);for(const _0x3cdb44 of _0x5cc024)_0x44f941['markInlineFormat'](_0x3cdb44,{'commandName':_0x1b579b,'commandParams':[{'forceValue':_0x1eccfc}]});}});});}function _0x1de4ae(_0x23e1d8,_0x2ee9a8){_0x44f941[_0xf41d('0xc')]['registerDescriptionCallback'](_0x2aa13b=>{const {data:_0x4a0521}=_0x2aa13b;if(_0x4a0521&&_0x4a0521[_0xf41d('0x1f')]===_0x23e1d8)return _0x4a0521[_0xf41d('0x1e')][0x0][_0xf41d('0x20')]?{'type':_0xf41d('0x6'),'content':_0x304e71(_0x3d6972,'*Format:*\x20%0',_0x2ee9a8)}:{'type':_0xf41d('0x6'),'content':_0x304e71(_0x3d6972,'*Remove\x20format:*\x20%0',_0x2ee9a8)};});}_0x1de4ae(_0xf41d('0x5'),_0x304e71(_0x3d6972,_0xf41d('0x1b'))),_0x1de4ae(_0xf41d('0x11'),_0x304e71(_0x3d6972,_0xf41d('0x19'))),_0x1de4ae('underline',_0x304e71(_0x3d6972,'FORMAT_UNDERLINE')),_0x1de4ae(_0xf41d('0xa'),_0x304e71(_0x3d6972,'FORMAT_CODE')),_0x1de4ae(_0xf41d('0xf'),_0x304e71(_0x3d6972,_0xf41d('0xd'))),_0x1de4ae(_0xf41d('0xb'),_0x304e71(_0x3d6972,_0xf41d('0x7'))),_0x1de4ae(_0xf41d('0x10'),_0x304e71(_0x3d6972,_0xf41d('0x17')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x587c=['registerDescriptionCallback','parent','BlockQuoteEditing','get','model','checkChild','commandName','locale','getSelectedBlocks','plugins','format','commands','commandParams','$root','editor','afterInit','from','selection','TrackChangesEditing','change','name','markBlockFormat','blockQuote','filter','*Format:*\x20%0'];(function(_0x549daa,_0x587c36){const _0x18b8b9=function(_0x505a60){while(--_0x505a60){_0x549daa['push'](_0x549daa['shift']());}};_0x18b8b9(++_0x587c36);}(_0x587c,0x1c7));const _0x18b8=function(_0x549daa,_0x587c36){_0x549daa=_0x549daa-0x0;let _0x18b8b9=_0x587c[_0x549daa];return _0x18b8b9;};import{Plugin as _0x901845}from'ckeditor5/src/core';import{getTranslation as _0x18e6d3}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x5416d9}from'../utils/utils';export default class O extends _0x901845{[_0x18b8('0xa')](){const _0x40d82c=this[_0x18b8('0x9')],_0x2db1c9=_0x40d82c[_0x18b8('0x2')];if(!_0x40d82c[_0x18b8('0x4')]['has'](_0x18b8('0x16')))return;const _0x164c3e=_0x40d82c[_0x18b8('0x4')][_0x18b8('0x17')](_0x18b8('0xd')),_0x589a40=this[_0x18b8('0x9')][_0x18b8('0x6')][_0x18b8('0x17')](_0x18b8('0x11'));_0x164c3e['enableCommand'](_0x18b8('0x11'),(_0x29c71f,_0x1ce539={})=>{const _0x523d30=this[_0x18b8('0x9')][_0x18b8('0x18')]['document'][_0x18b8('0xc')],_0xe9b47f=_0x1ce539&&void 0x0!==_0x1ce539['forceValue']?_0x1ce539['forceValue']:!_0x589a40['value'];let _0x141383=[];if(_0xe9b47f){const _0x3a2274=Array[_0x18b8('0xb')](_0x523d30[_0x18b8('0x3')]())['filter'](_0x28abde=>oo(_0x28abde)||function(_0x4feed1,_0x171aa8){const _0x43a8b9=_0x171aa8[_0x18b8('0x0')](_0x4feed1[_0x18b8('0x15')],_0x18b8('0x11')),_0x344c0e=_0x171aa8['checkChild']([_0x18b8('0x8'),_0x18b8('0x11')],_0x4feed1);return _0x43a8b9&&_0x344c0e;}(_0x28abde,this['editor'][_0x18b8('0x18')]['schema']));_0x141383=_0x5416d9(_0x3a2274,_0x40d82c[_0x18b8('0x18')]);}else{const _0x201121=Array[_0x18b8('0xb')](_0x523d30[_0x18b8('0x3')]())[_0x18b8('0x12')](_0x4cd863=>oo(_0x4cd863));_0x141383=_0x5416d9(_0x201121,_0x40d82c[_0x18b8('0x18')]);}_0x40d82c[_0x18b8('0x18')][_0x18b8('0xe')](()=>{for(const _0x21ba8f of _0x141383)_0x164c3e[_0x18b8('0x10')](_0x21ba8f,{'commandName':_0x18b8('0x11'),'commandParams':[{'forceValue':_0xe9b47f}]});});}),_0x164c3e['_descriptionFactory'][_0x18b8('0x14')](_0x37e411=>{const {data:_0x2c3232}=_0x37e411;if(_0x2c3232&&_0x18b8('0x11')==_0x2c3232[_0x18b8('0x1')]){const _0x1ec7e8=_0x18e6d3(_0x2db1c9,'ELEMENT_BLOCK_QUOTE');return _0x2c3232[_0x18b8('0x7')][0x0]['forceValue']?{'type':_0x18b8('0x5'),'content':_0x18e6d3(_0x2db1c9,_0x18b8('0x13'),_0x1ec7e8)}:{'type':_0x18b8('0x5'),'content':_0x18e6d3(_0x2db1c9,'*Remove\x20format:*\x20%0',_0x1ec7e8)};}});}}function oo(_0x4e96c0){return _0x18b8('0x11')==_0x4e96c0[_0x18b8('0x15')][_0x18b8('0xf')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3768=['editor','enableCommand','afterInit','ckbox','commands','plugins','get','TrackChangesEditing'];(function(_0x49f137,_0x3768af){const _0x39bbb6=function(_0x39c9c8){while(--_0x39c9c8){_0x49f137['push'](_0x49f137['shift']());}};_0x39bbb6(++_0x3768af);}(_0x3768,0x19a));const _0x39bb=function(_0x49f137,_0x3768af){_0x49f137=_0x49f137-0x0;let _0x39bbb6=_0x3768[_0x49f137];return _0x39bbb6;};import{Plugin as _0x513bab}from'ckeditor5/src/core';export default class E extends _0x513bab{[_0x39bb('0x0')](){const _0x19af3d=this[_0x39bb('0x6')];_0x19af3d[_0x39bb('0x2')][_0x39bb('0x4')](_0x39bb('0x1'))&&_0x19af3d[_0x39bb('0x3')]['get'](_0x39bb('0x5'))[_0x39bb('0x7')](_0x39bb('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12d6=['markBlockFormat','model','codeBlock','languages','name','config','getSelectedBlocks','enableCommand','parent','forceValue','blockName','ELEMENT_CODE_BLOCK','plugins','CodeBlock','change','registerElementLabel','commandParams','language','outdentCodeBlock','value','registerDescriptionCallback','format','filter','get','afterInit','has','isLimit','TrackChangesEditing','document','checkChild','from','find','*Format:*\x20%0','*Remove\x20format:*\x20%0'];(function(_0x428ef5,_0x12d665){const _0x559a95=function(_0x35532f){while(--_0x35532f){_0x428ef5['push'](_0x428ef5['shift']());}};_0x559a95(++_0x12d665);}(_0x12d6,0x17b));const _0x559a=function(_0x428ef5,_0x12d665){_0x428ef5=_0x428ef5-0x0;let _0x559a95=_0x12d6[_0x428ef5];return _0x559a95;};import{Plugin as _0x49fa0e}from'ckeditor5/src/core';import{getTranslation as _0x43c682}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x5e3959}from'../utils/utils';export default class F extends _0x49fa0e{[_0x559a('0x13')](){const _0x1fb17c=this['editor'];if(!_0x1fb17c['plugins'][_0x559a('0x14')](_0x559a('0x8')))return;const _0x47c2e0=_0x1fb17c[_0x559a('0x7')][_0x559a('0x12')](_0x559a('0x16')),_0x3164c6=_0x1fb17c['locale'],_0xec4cfb=_0x1fb17c[_0x559a('0x0')]['get'](_0x559a('0x1f'))[_0x559a('0x20')],_0x2a9cbd=_0x1fb17c['commands']['get']('codeBlock');_0x47c2e0['enableCommand']('indentCodeBlock'),_0x47c2e0[_0x559a('0x2')](_0x559a('0xd')),_0x47c2e0['enableCommand'](_0x559a('0x1f'),(_0x37b141,_0x2ae787={})=>{const _0x43b16e=_0x1fb17c[_0x559a('0x1e')],_0x4447d2=_0x1fb17c[_0x559a('0x1e')][_0x559a('0x17')]['selection'],_0x3ecc71=_0x2ae787&&void 0x0!==_0x2ae787[_0x559a('0x4')]?_0x2ae787[_0x559a('0x4')]:!_0x2a9cbd[_0x559a('0xe')];let _0x4abd29;_0x2ae787[_0x559a('0xc')]||(_0x2ae787['language']=_0xec4cfb[0x0][_0x559a('0xc')]),_0x4abd29=_0x3ecc71?Array[_0x559a('0x19')](_0x4447d2[_0x559a('0x1')]())[_0x559a('0x11')](_0x5c3d76=>co(_0x5c3d76)||function(_0xe1803b,_0x4d1411){if(_0xe1803b['is']('rootElement')||_0x4d1411[_0x559a('0x15')](_0xe1803b))return!0x1;return _0x4d1411[_0x559a('0x18')](_0xe1803b[_0x559a('0x3')],_0x559a('0x1f'));}(_0x5c3d76,_0x43b16e['schema'])):Array['from'](_0x4447d2[_0x559a('0x1')]())[_0x559a('0x11')](_0x5544c5=>co(_0x5544c5));const _0xd7747=_0x5e3959(_0x4abd29,_0x43b16e);_0x43b16e[_0x559a('0x9')](()=>{for(const _0x58692b of _0xd7747)_0x47c2e0[_0x559a('0x1d')](_0x58692b,{'commandName':_0x559a('0x1f'),'commandParams':[{..._0x2ae787,'forceValue':_0x3ecc71}],'formatGroupId':_0x559a('0x5')});});}),(_0x47c2e0['_descriptionFactory'][_0x559a('0xa')]('codeBlock',_0x12579b=>_0x43c682(_0x3164c6,_0x559a('0x6'),_0x12579b)),_0x47c2e0['_descriptionFactory'][_0x559a('0xf')](_0x45ab6d=>{const _0x500414=_0x3164c6['t'],{type:_0x4860b5,data:_0x229bb5}=_0x45ab6d;if('formatBlock'==_0x4860b5&&_0x229bb5&&_0x559a('0x1f')==_0x229bb5['commandName']){const _0x1fd111=_0x229bb5[_0x559a('0xb')][0x0][_0x559a('0xc')],_0x5e41fb=_0x500414(_0xec4cfb[_0x559a('0x1a')](_0x1917f3=>_0x1917f3['language']===_0x1fd111)['label']);return _0x229bb5[_0x559a('0xb')][0x0]['forceValue']?{'type':_0x559a('0x10'),'content':_0x43c682(_0x3164c6,_0x559a('0x1b'),_0x43c682(_0x3164c6,_0x559a('0x6'),0x1)+'\x20('+_0x5e41fb+')')}:{'type':'format','content':_0x43c682(_0x3164c6,_0x559a('0x1c'),_0x43c682(_0x3164c6,_0x559a('0x6'),0x1))};}}));}}function co(_0x1d460c){return _0x559a('0x1f')==_0x1d460c[_0x559a('0x21')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2355=['has','TrackChangesEditing','get','editor','plugins','enableCommand','afterInit','addCommentThread','CommentsEditing'];(function(_0x223ae9,_0x235580){const _0x1e71f5=function(_0x4ea00e){while(--_0x4ea00e){_0x223ae9['push'](_0x223ae9['shift']());}};_0x1e71f5(++_0x235580);}(_0x2355,0xf3));const _0x1e71=function(_0x223ae9,_0x235580){_0x223ae9=_0x223ae9-0x0;let _0x1e71f5=_0x2355[_0x223ae9];return _0x1e71f5;};import{Plugin as _0x302a59}from'ckeditor5/src/core';export default class G extends _0x302a59{[_0x1e71('0x6')](){const _0x4095f9=this[_0x1e71('0x3')];if(!_0x4095f9[_0x1e71('0x4')][_0x1e71('0x0')](_0x1e71('0x8')))return;_0x4095f9[_0x1e71('0x4')][_0x1e71('0x2')](_0x1e71('0x1'))[_0x1e71('0x5')](_0x1e71('0x7'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x416b=['buffer','plugins','markerName','TrackChangesEditing','createRange','writer','unbindElementFromMarkerName','high','enableCommand','uiElement','modifySelection','forward','init','detach','root','rootName','markerNameToElements','editor','get','delete','removeMarker:suggestion:deletion','requires','data','remove','showSuggestionHighlights','selection','bind','setSelection','fromRange','deleteForward','isCollapsed','$graveyard','mapper','addMarker:suggestion:deletion','editing','downcastDispatcher','model','merge','unit'];(function(_0x383a2f,_0x416beb){const _0x22c57b=function(_0x2a35ce){while(--_0x2a35ce){_0x383a2f['push'](_0x383a2f['shift']());}};_0x22c57b(++_0x416beb);}(_0x416b,0x150));const _0x22c5=function(_0x383a2f,_0x416beb){_0x383a2f=_0x383a2f-0x0;let _0x22c57b=_0x416b[_0x383a2f];return _0x22c57b;};import{Plugin as _0x386f2f}from'ckeditor5/src/core';import{LiveRange as _0x1d8bc0}from'ckeditor5/src/engine';import{Delete as _0x2e30f4}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x386eac}from'./utils';export default class L extends _0x386f2f{static get[_0x22c5('0x24')](){return[_0x2e30f4];}[_0x22c5('0x1b')](){const _0x526d5b=this[_0x22c5('0x20')],_0x1257a4=_0x526d5b[_0x22c5('0x10')]['get'](_0x22c5('0x12'));_0x1257a4['enableCommand'](_0x22c5('0x22'));const _0x39d0cd=_0x526d5b['commands'][_0x22c5('0x21')](_0x22c5('0x5'));_0x1257a4[_0x22c5('0x17')]('deleteForward',(_0x156ca1,_0x1b9bf5={})=>{const _0x23747d=_0x526d5b[_0x22c5('0xc')]['createSelection'](_0x526d5b['model']['document'][_0x22c5('0x1')]);_0x23747d[_0x22c5('0x6')]&&_0x526d5b[_0x22c5('0xc')][_0x22c5('0x19')](_0x23747d,{'direction':_0x22c5('0x1a'),'unit':_0x1b9bf5[_0x22c5('0xe')]});const _0x5e36a2=_0x23747d['getFirstRange'](),_0x1f6dd0=_0x1d8bc0[_0x22c5('0x4')](_0x5e36a2);let _0x1cbb76;_0x156ca1(_0x1b9bf5),_0x1cbb76=_0x22c5('0x7')==_0x1f6dd0[_0x22c5('0x1d')][_0x22c5('0x1e')]?_0x526d5b[_0x22c5('0xc')][_0x22c5('0x13')](_0x5e36a2['start']):_0x526d5b[_0x22c5('0xc')][_0x22c5('0x13')](_0x1f6dd0['start'],_0x1f6dd0['end']),_0x1f6dd0[_0x22c5('0x1c')](),_0x526d5b[_0x22c5('0xc')]['enqueueChange'](_0x39d0cd[_0x22c5('0xf')]['batch'],_0x3a5e82=>{_0x39d0cd[_0x22c5('0xf')]['lock'](),_0x3a5e82[_0x22c5('0x3')](_0x3a5e82['createRange'](_0x1cbb76['end'])),_0x39d0cd[_0x22c5('0xf')]['unlock']();});}),_0x526d5b['editing'][_0x22c5('0xb')]['on'](_0x22c5('0x9'),_0x386eac(_0x526d5b,'merge'),{'priority':_0x22c5('0x16')}),_0x526d5b[_0x22c5('0x25')]['downcastDispatcher']['on'](_0x22c5('0x9'),(_0x53ead2,_0x256f82,_0x1a0b2f)=>{_0x1a0b2f['options'][_0x22c5('0x0')]&&_0x386eac(_0x526d5b,_0x22c5('0xd'),{'showActiveMarker':!0x1})[_0x22c5('0x2')](this)(_0x53ead2,_0x256f82,_0x1a0b2f);},{'priority':_0x22c5('0x16')}),_0x526d5b[_0x22c5('0xa')]['downcastDispatcher']['on'](_0x22c5('0x23'),(_0x2c67e5,_0x2fa638,_0x456854)=>{const _0x25fd03=_0x456854[_0x22c5('0x8')][_0x22c5('0x1f')](_0x2fa638['markerName']);if(_0x25fd03)for(const _0x318fd9 of _0x25fd03)_0x318fd9['is'](_0x22c5('0x18'))&&(_0x456854['mapper'][_0x22c5('0x15')](_0x318fd9,_0x2fa638[_0x22c5('0x11')]),_0x456854[_0x22c5('0x14')][_0x22c5('0x26')](_0x318fd9));},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25af=['fromRange','ELEMENT_NUMBERED_LIST','map','ELEMENT_','start','accept','bulletedList','ELEMENT_BULLETED_LIST','DocumentListEditing','*Format:*\x20insert\x20into\x20%0','list.multiBlock','mergeListItemBackward','numberedList','from','refresh','isFirstBlockOfListItem','commandName','ELEMENT_LIST_ITEM','getAttribute','slice','isObject','next','registerElementLabel','config','mergeListItemForward','before','markBlockFormat','detach','toUpperCase','TrackChangesEditing','execute','documentList','splitListItemBefore','add','outdentList','nodeAfter','plugins','forceValue','indentList','createPositionAt','parent','*Format:*\x20remove\x20from\x20%0','getSelectedBlocks','nextSibling','change','length','enableCommand','format','_LIST','createRange','multipleBlocks','formatBlock','splitListItemAfter','_descriptionFactory','editor','document','commands','after','containsItem','*Change\x20to:*\x20%0','schema','*Outdent:*\x20%0','getRanges','get','selection','setSelection','listType','value','registerDescriptionCallback','listItemId','registerCustomCallback','model','end','push','listIndent','commandParams'];(function(_0x451ed8,_0x25afff){const _0x21a118=function(_0x87480e){while(--_0x87480e){_0x451ed8['push'](_0x451ed8['shift']());}};_0x21a118(++_0x25afff);}(_0x25af,0x186));const _0x21a1=function(_0x451ed8,_0x25afff){_0x451ed8=_0x451ed8-0x0;let _0x21a118=_0x25af[_0x451ed8];return _0x21a118;};import{Plugin as _0x40360c}from'ckeditor5/src/core';import{getTranslation as _0xf2fa36}from'../utils/common-translations';import{LiveRange as _0x4039a1}from'ckeditor5/src/engine';export default class q extends _0x40360c{['afterInit'](){const _0x283432=this[_0x21a1('0x2c')];if(!_0x283432[_0x21a1('0x1a')]['has'](_0x21a1('0x4a')))return;const _0x4f42ae=_0x283432['locale'],_0x35b349=_0x283432['plugins'][_0x21a1('0x35')](_0x21a1('0x13')),_0xc81bf6=_0x283432[_0x21a1('0x1a')][_0x21a1('0x35')]('DocumentListUtils');function _0x38667e(_0x43889f){return()=>{const _0x32a4a0=_0x283432[_0x21a1('0x2e')][_0x21a1('0x35')](_0x43889f);if(_0x32a4a0[_0x21a1('0x39')]&&!_0x283432['config'][_0x21a1('0x35')](_0x21a1('0x0')))return void _0x283432[_0x21a1('0x14')]('paragraph',{});let _0x19dd3c=Array['from'](_0x283432[_0x21a1('0x3d')][_0x21a1('0x2d')][_0x21a1('0x36')][_0x21a1('0x20')]());if(_0x2032dc(_0x43889f)){_0x19dd3c=_0xc81bf6['expandListBlocksToCompleteList'](_0x19dd3c);const _0x39e8e7=[];for(const _0x3efa84 of _0x19dd3c)_0xc81bf6[_0x21a1('0x5')](_0x3efa84)&&_0x39e8e7[_0x21a1('0x3f')](_0x3efa84);_0x19dd3c=_0x39e8e7;}_0x283432[_0x21a1('0x3d')]['change'](()=>{_0x35b349['markMultiRangeBlockFormat'](_0x19dd3c,{'commandName':_0x43889f,'commandParams':[{'forceValue':!_0x32a4a0['value']}],'formatGroupId':_0x21a1('0x38')},[],_0x21a1('0x15'));});};}function _0x5abcd7(_0x5c2e7e){return()=>{const _0x4c9175=function(_0x39c3e4){let _0x21b537=Array['from'](_0x39c3e4);const _0x3ebf6f=_0x21b537['findIndex'](_0x2613e8=>!_0x2613e8['hasAttribute'](_0x21a1('0x3b')));return _0x3ebf6f>-0x1&&(_0x21b537=_0x21b537[_0x21a1('0x9')](0x0,_0x3ebf6f)),_0x21b537;}(_0x283432[_0x21a1('0x3d')][_0x21a1('0x2d')][_0x21a1('0x36')][_0x21a1('0x20')]()),_0x546345=_0x4c9175[_0x4c9175[_0x21a1('0x23')]-0x1],_0x18098d=_0x283432['model'][_0x21a1('0x32')][_0x21a1('0xa')](_0x546345)?_0x21a1('0x2f'):'end',_0x5e8aa8=_0x283432[_0x21a1('0x3d')][_0x21a1('0x27')](_0x283432[_0x21a1('0x3d')][_0x21a1('0x1d')](_0x4c9175[0x0],_0x21a1('0xf')),_0x283432['model'][_0x21a1('0x1d')](_0x546345,_0x18098d));_0x283432[_0x21a1('0x3d')][_0x21a1('0x22')](()=>{_0x35b349[_0x21a1('0x10')](_0x5e8aa8,{'commandName':_0x5c2e7e,'commandParams':[],'formatGroupId':_0x21a1('0x38')},function(_0x1f07ea){const _0x3523df=new Set();for(const _0x31a708 of _0x1f07ea){let _0x19b584=_0x31a708[_0x21a1('0x21')];for(;_0x19b584&&_0x19b584[_0x21a1('0x8')]('listIndent')>_0x31a708[_0x21a1('0x8')](_0x21a1('0x40'));)_0x3523df[_0x21a1('0x17')](_0x19b584),_0x19b584=_0x19b584[_0x21a1('0x21')];}return Array[_0x21a1('0x3')](_0x3523df);}(_0x4c9175));});};}function _0x180056(_0x5b417d){return()=>{const _0x458d4c=_0x283432[_0x21a1('0x3d')][_0x21a1('0x2d')][_0x21a1('0x36')][_0x21a1('0x20')]()[_0x21a1('0xb')]()['value'],_0x3cd267=_0x283432[_0x21a1('0x3d')][_0x21a1('0x1d')](_0x458d4c,_0x21a1('0xf')),_0x4b9379=_0x283432[_0x21a1('0x3d')][_0x21a1('0x1d')](_0x458d4c,0x0),_0x186d09=_0x283432[_0x21a1('0x3d')][_0x21a1('0x27')](_0x3cd267,_0x4b9379);_0x283432['model'][_0x21a1('0x22')](()=>{_0x35b349['markBlockFormat'](_0x186d09,{'commandName':_0x5b417d,'commandParams':[],'formatGroupId':_0x21a1('0x38')});});};}function _0x2032dc(_0x16aa9e){const _0x563169=_0x283432[_0x21a1('0x2e')][_0x21a1('0x35')](_0x21a1('0x48'))[_0x21a1('0x39')],_0x27137b=_0x283432[_0x21a1('0x2e')][_0x21a1('0x35')](_0x21a1('0x2'))[_0x21a1('0x39')];return _0x21a1('0x2')===_0x16aa9e?_0x563169:_0x27137b;}_0x35b349[_0x21a1('0x24')](_0x21a1('0x2'),_0x38667e(_0x21a1('0x2'))),_0x35b349[_0x21a1('0x24')]('bulletedList',_0x38667e(_0x21a1('0x48'))),_0x35b349['enableCommand'](_0x21a1('0x1c'),_0x5abcd7('indentList')),_0x35b349[_0x21a1('0x24')]('outdentList',_0x5abcd7(_0x21a1('0x18'))),_0x35b349[_0x21a1('0x24')](_0x21a1('0x2a'),_0x180056(_0x21a1('0x2a'))),_0x35b349['enableCommand'](_0x21a1('0x16'),_0x180056('splitListItemBefore')),_0x35b349['_descriptionFactory'][_0x21a1('0xc')](function(_0x56e210){const _0x656376=!_0x283432[_0x21a1('0x3d')][_0x21a1('0x32')]['isObject'](_0x56e210),_0xf97eb7=_0x56e210['previousSibling'],_0xc48331=_0x56e210['nextSibling'],_0x29cdd6=_0x56e210[_0x21a1('0x8')](_0x21a1('0x3b')),_0x12b1df=!_0xf97eb7||_0xf97eb7[_0x21a1('0x8')](_0x21a1('0x3b'))!==_0x29cdd6,_0xb9e606=!_0xc48331||_0xc48331[_0x21a1('0x8')]('listItemId')!==_0x29cdd6;return _0x656376&&Boolean(_0x29cdd6)&&_0x12b1df&&_0xb9e606;},_0x27289d=>_0xf2fa36(_0x4f42ae,_0x21a1('0x7'),_0x27289d)),_0x35b349[_0x21a1('0x2b')][_0x21a1('0x3a')](function(_0x1d07e4){const {data:_0xb4ea22}=_0x1d07e4;if(!_0xb4ea22)return;let _0x39e151,_0x108cc3,_0x4bf3be,_0x30c427;switch(_0xb4ea22['commandName']){case _0x21a1('0x48'):_0x4bf3be=_0xb4ea22[_0x21a1('0x41')][0x0][_0x21a1('0x1b')],_0x30c427=_0x2032dc(_0xb4ea22[_0x21a1('0x6')]),_0x39e151=_0x4bf3be?_0x21a1('0x4b'):'*Format:*\x20remove\x20from\x20%0',!_0x30c427&&_0x283432[_0x21a1('0xd')][_0x21a1('0x35')](_0x21a1('0x0'))||(_0x39e151='*Change\x20to:*\x20%0'),_0x108cc3={'type':_0x21a1('0x25'),'content':_0xf2fa36(_0x4f42ae,_0x39e151,_0xf2fa36(_0x4f42ae,_0x21a1('0x49')))};break;case _0x21a1('0x2'):_0x4bf3be=_0xb4ea22[_0x21a1('0x41')][0x0]['forceValue'],_0x30c427=_0x2032dc(_0xb4ea22[_0x21a1('0x6')]),_0x39e151=_0x4bf3be?_0x21a1('0x4b'):_0x21a1('0x1f'),!_0x30c427&&_0x283432[_0x21a1('0xd')]['get']('list.multiBlock')||(_0x39e151=_0x21a1('0x31')),_0x108cc3={'type':_0x21a1('0x25'),'content':_0xf2fa36(_0x4f42ae,_0x39e151,_0xf2fa36(_0x4f42ae,_0x21a1('0x43')))};break;case _0x21a1('0x1c'):_0x39e151='*Indent:*\x20%0',_0x108cc3={'type':'format','content':_0xf2fa36(_0x4f42ae,_0x39e151,_0xf2fa36(_0x4f42ae,'ELEMENT_LIST_ITEM'))};break;case _0x21a1('0x18'):_0x39e151=function(_0x507f5c){const _0x4e67cb=_0x507f5c['getFirstRange']();let _0x1d2e07=_0x4e67cb[_0x21a1('0x46')]['nodeAfter'];for(;_0x1d2e07&&_0x4e67cb[_0x21a1('0x30')](_0x1d2e07);){if(_0x1d2e07['getAttribute']('listIndent')>0x0)return!0x1;_0x1d2e07=_0x1d2e07[_0x21a1('0x21')];}return!0x0;}(_0x1d07e4)?_0xf2fa36(_0x4f42ae,_0x21a1('0x1f'),_0xf2fa36(_0x4f42ae,function(_0x6bff76){const _0x1d73ca=_0x6bff76['getFirstRange']()[_0x21a1('0x46')]['nodeAfter'];return _0x21a1('0x45')+_0x1d73ca['getAttribute'](_0x21a1('0x38'))[_0x21a1('0x12')]()+_0x21a1('0x26');}(_0x1d07e4))):_0xf2fa36(_0x4f42ae,_0x21a1('0x33'),_0xf2fa36(_0x4f42ae,_0x21a1('0x7'))),_0x108cc3={'type':_0x21a1('0x25'),'content':_0x39e151};break;case _0x21a1('0x1'):case _0x21a1('0xe'):!0x1===_0xb4ea22[_0x21a1('0x28')]&&(_0x39e151='*Merge:*\x20%0',_0x108cc3={'type':'deletion','content':_0xf2fa36(_0x4f42ae,_0x39e151,_0xf2fa36(_0x4f42ae,'ELEMENT_LIST_ITEM'))});}return _0x108cc3;}),_0x35b349['_suggestionFactory'][_0x21a1('0x3c')](_0x21a1('0x29'),_0x21a1('0x15'),_0x21a1('0x47'),function(_0x435443,_0x10c402){const _0x4a85ee=[];for(let _0x4333d1 of _0x435443)_0x4333d1[_0x21a1('0x46')]['nodeAfter']===_0x4333d1[_0x21a1('0x3e')][_0x21a1('0x1e')]&&(_0x4333d1=_0x283432[_0x21a1('0x3d')]['createRange'](_0x283432[_0x21a1('0x3d')]['createPositionAt'](_0x4333d1[_0x21a1('0x46')][_0x21a1('0x19')],0x0))),_0x4a85ee['push'](_0x4333d1);_0x283432[_0x21a1('0x3d')][_0x21a1('0x22')](_0x2429bd=>{const _0x5800b5=_0x283432[_0x21a1('0x3d')][_0x21a1('0x2d')][_0x21a1('0x36')],_0x28313a=Array[_0x21a1('0x3')](_0x5800b5[_0x21a1('0x34')]())[_0x21a1('0x44')](_0x3c0618=>_0x4039a1[_0x21a1('0x42')](_0x3c0618));_0x2429bd[_0x21a1('0x37')](_0x4a85ee),_0x283432['commands'][_0x21a1('0x35')](_0x10c402['commandName'])[_0x21a1('0x4')](),_0x10c402['commandParams'][_0x21a1('0x3f')]({'forceDefaultExecution':!0x0}),_0x283432['execute'](_0x10c402['commandName'],..._0x10c402['commandParams']),_0x2429bd[_0x21a1('0x37')](_0x28313a);for(const _0x4522a6 of _0x28313a)_0x4522a6[_0x21a1('0x11')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5266=['handleListReversedCommand','plugins','list.properties','DocumentListPropertiesUtils','toUpperCase','handleDescriptions','from','getSelectedBlocks','listStyle','numbered','*Format:*\x20set\x20order\x20to\x20reversed','config','enableCommand','format','model','change','commandParams','_LIST_','styles','_getTranslationKeyForListStyle','listStart','filter','DocumentListUtils','_descriptionFactory','getAttribute','startIndex','ELEMENT_','markMultiRangeBlockFormat','editor','_getSuggestionBlocks','type','get','bind','handleListStyleCommand','*Change\x20to:*\x20%0','replace','document','listType','DocumentListPropertiesEditing','has','TrackChangesEditing','_getSuggestionBlocksForListStyle','reversed','listReversed','length','handleListStartCommand','getListTypeFromListStyleType','expandListBlocksToCompleteList','push'];(function(_0x2a29da,_0x52663e){const _0x3e1fee=function(_0x1ac7fb){while(--_0x1ac7fb){_0x2a29da['push'](_0x2a29da['shift']());}};_0x3e1fee(++_0x52663e);}(_0x5266,0x115));const _0x3e1f=function(_0x2a29da,_0x52663e){_0x2a29da=_0x2a29da-0x0;let _0x3e1fee=_0x5266[_0x2a29da];return _0x3e1fee;};import{Plugin as _0x1e501a}from'ckeditor5/src/core';import{getTranslation as _0xbb246b}from'../utils/common-translations';export default class Ct extends _0x1e501a{['afterInit'](){if(!this[_0x3e1f('0x2d')][_0x3e1f('0x12')][_0x3e1f('0x7')](_0x3e1f('0x6')))return;const _0x3a6d67=this['editor'][_0x3e1f('0x1c')][_0x3e1f('0x30')](_0x3e1f('0x13')),_0x2122ae=this[_0x3e1f('0x2d')]['plugins']['get']('TrackChangesEditing');_0x3a6d67[_0x3e1f('0x23')]&&_0x2122ae[_0x3e1f('0x1d')]('listStyle',this[_0x3e1f('0x1')]['bind'](this)),_0x3a6d67[_0x3e1f('0xa')]&&_0x2122ae[_0x3e1f('0x1d')](_0x3e1f('0xb'),this[_0x3e1f('0x11')]['bind'](this)),_0x3a6d67[_0x3e1f('0x2a')]&&_0x2122ae[_0x3e1f('0x1d')](_0x3e1f('0x25'),this[_0x3e1f('0xd')][_0x3e1f('0x0')](this)),_0x2122ae[_0x3e1f('0x28')]['registerDescriptionCallback'](this['handleDescriptions'][_0x3e1f('0x0')](this));}[_0x3e1f('0x1')](_0xe6fda9,_0x10c7fd={}){const _0x3ee464=this[_0x3e1f('0x2d')]['plugins'][_0x3e1f('0x30')](_0x3e1f('0x8')),_0x49a227=this[_0x3e1f('0x9')]();this[_0x3e1f('0x2d')]['model'][_0x3e1f('0x20')](()=>{_0x3ee464[_0x3e1f('0x2c')](_0x49a227,{'commandName':_0x3e1f('0x19'),'commandParams':[{'type':_0x10c7fd[_0x3e1f('0x2f')]}],'formatGroupId':_0x3e1f('0x19')});});}[_0x3e1f('0x11')](_0xa85fb9,_0xc811a3={}){const _0x2dc490=this['editor'][_0x3e1f('0x12')]['get'](_0x3e1f('0x8')),_0x3c4cb8=this[_0x3e1f('0x2d')][_0x3e1f('0x12')][_0x3e1f('0x30')](_0x3e1f('0x27')),_0x579e46=this[_0x3e1f('0x2e')](_0x47bfa3=>_0x3c4cb8['isListItemBlock'](_0x47bfa3)&&'numbered'===_0x47bfa3[_0x3e1f('0x29')]('listType'));null!==_0x579e46&&this['editor'][_0x3e1f('0x1f')][_0x3e1f('0x20')](()=>{_0x2dc490['markMultiRangeBlockFormat'](_0x579e46,{'commandName':_0x3e1f('0xb'),'commandParams':[{'reversed':_0xc811a3[_0x3e1f('0xa')]}],'formatGroupId':_0x3e1f('0xb')});});}[_0x3e1f('0xd')](_0x43d0de,_0xbe8334={}){const _0x4c0cef=this[_0x3e1f('0x2d')][_0x3e1f('0x12')][_0x3e1f('0x30')](_0x3e1f('0x8')),_0x142579=this[_0x3e1f('0x2d')][_0x3e1f('0x12')][_0x3e1f('0x30')](_0x3e1f('0x27')),_0x47a218=this[_0x3e1f('0x2e')](_0x371961=>_0x142579['isListItemBlock'](_0x371961)&&_0x3e1f('0x1a')===_0x371961[_0x3e1f('0x29')](_0x3e1f('0x5')));null!==_0x47a218&&this['editor']['model']['change'](()=>{_0x4c0cef[_0x3e1f('0x2c')](_0x47a218,{'commandName':_0x3e1f('0x25'),'commandParams':[{'startIndex':_0xbe8334[_0x3e1f('0x2a')]}],'formatGroupId':_0x3e1f('0x25')});});}[_0x3e1f('0x16')](_0x389110){const _0x57db87=this[_0x3e1f('0x2d')]['locale'],{data:_0x275650}=_0x389110;if(!_0x275650)return;let _0x231157,_0x136b5b;switch(_0x275650['commandName']){case'listStyle':_0x231157=_0x3e1f('0x2'),_0x136b5b={'type':_0x3e1f('0x1e'),'content':_0xbb246b(_0x57db87,_0x231157,_0xbb246b(_0x57db87,this[_0x3e1f('0x24')](_0x275650[_0x3e1f('0x21')][0x0][_0x3e1f('0x2f')])))};break;case _0x3e1f('0xb'):_0x231157=_0x275650['commandParams'][0x0][_0x3e1f('0xa')]?_0x3e1f('0x1b'):'*Format:*\x20set\x20order\x20to\x20regular',_0x136b5b={'type':_0x3e1f('0x1e'),'content':_0xbb246b(_0x57db87,_0x231157)};break;case'listStart':_0x231157='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x136b5b={'type':_0x3e1f('0x1e'),'content':_0xbb246b(_0x57db87,_0x231157,_0x275650[_0x3e1f('0x21')][0x0][_0x3e1f('0x2a')])};}return _0x136b5b;}['_getSuggestionBlocksForListStyle'](){const _0x56e9d0=this[_0x3e1f('0x2d')][_0x3e1f('0x12')][_0x3e1f('0x30')](_0x3e1f('0x27'));let _0x1f25d0=Array[_0x3e1f('0x17')](this[_0x3e1f('0x2d')]['model']['document']['selection'][_0x3e1f('0x18')]());return _0x1f25d0[_0x3e1f('0x10')](..._0x56e9d0[_0x3e1f('0xf')](_0x1f25d0)),_0x1f25d0=[...new Set(_0x1f25d0)],_0x1f25d0;}['_getSuggestionBlocks'](_0x25192a){const _0x23d153=this[_0x3e1f('0x2d')][_0x3e1f('0x12')][_0x3e1f('0x30')](_0x3e1f('0x27'));let _0x305774=Array[_0x3e1f('0x17')](this[_0x3e1f('0x2d')][_0x3e1f('0x1f')][_0x3e1f('0x4')]['selection'][_0x3e1f('0x18')]())[_0x3e1f('0x26')](_0x25192a);if(!_0x305774[_0x3e1f('0xc')])return null;_0x305774=_0x23d153[_0x3e1f('0xf')](_0x305774);const _0x2038f1=[];for(const _0x2226b7 of _0x305774)_0x23d153['isFirstBlockOfListItem'](_0x2226b7)&&_0x2038f1[_0x3e1f('0x10')](_0x2226b7);return _0x2038f1;}[_0x3e1f('0x24')](_0x455005){return _0x3e1f('0x2b')+this[_0x3e1f('0x2d')]['plugins']['get'](_0x3e1f('0x14'))[_0x3e1f('0xe')](_0x455005)[_0x3e1f('0x15')]()+_0x3e1f('0x22')+_0x455005[_0x3e1f('0x15')]()[_0x3e1f('0x3')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37b9=['high','split','options','TrackChangesEditing','unbindElementFromMarkerName','fire','data','nextSibling','removeMarker:suggestion:insertion','createRange','enter','addMarker:suggestion:insertion','showSuggestionHighlights','enterBlock','markerName','editing','end','parent','remove','editor','document','init','downcastDispatcher','plugins','afterExecute','hasClass','markInsertion','commands','createPositionAt','mapper','selection','model','enableCommand','get'];(function(_0x54bdb0,_0x37b9af){const _0x7cf85f=function(_0x2b4a41){while(--_0x2b4a41){_0x54bdb0['push'](_0x54bdb0['shift']());}};_0x7cf85f(++_0x37b9af);}(_0x37b9,0x1c8));const _0x7cf8=function(_0x54bdb0,_0x37b9af){_0x54bdb0=_0x54bdb0-0x0;let _0x7cf85f=_0x37b9[_0x54bdb0];return _0x7cf85f;};import{Plugin as _0x36e04e}from'ckeditor5/src/core';import{Enter as _0x330f69}from'ckeditor5/src/enter';import{LiveRange as _0x34de7b}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x5d57ea}from'./utils';export default class z extends _0x36e04e{static get['requires'](){return[_0x330f69];}[_0x7cf8('0x7')](){const _0x450476=this[_0x7cf8('0x5')],_0x17da40=_0x450476[_0x7cf8('0x9')][_0x7cf8('0x13')](_0x7cf8('0x17')),_0x256964=_0x450476[_0x7cf8('0xd')][_0x7cf8('0x13')](_0x7cf8('0x1e'));_0x17da40[_0x7cf8('0x12')](_0x7cf8('0x1e'),()=>{_0x450476['model']['change'](_0x5a4d9e=>{const _0x406cb3=_0x450476[_0x7cf8('0x11')][_0x7cf8('0x6')][_0x7cf8('0x10')],_0x2eac65=_0x406cb3['getFirstPosition'](),_0x4aa235=_0x34de7b['fromRange'](_0x406cb3['getFirstRange']());if(_0x256964[_0x7cf8('0x21')](_0x5a4d9e)){const _0x345644=_0x450476['model'][_0x7cf8('0xe')](_0x2eac65[_0x7cf8('0x3')][_0x7cf8('0x1b')],0x0),_0x5537bb=_0x5a4d9e[_0x7cf8('0x1d')](_0x2eac65,_0x345644);_0x17da40[_0x7cf8('0xc')](_0x5537bb);}else _0x5a4d9e['setSelection'](_0x5a4d9e[_0x7cf8('0x1d')](_0x4aa235[_0x7cf8('0x2')]));_0x4aa235['detach'](),_0x256964[_0x7cf8('0x19')](_0x7cf8('0xa'),{'writer':_0x5a4d9e});});}),_0x450476[_0x7cf8('0x1')][_0x7cf8('0x8')]['on'](_0x7cf8('0x1f'),_0x5d57ea(_0x450476,_0x7cf8('0x15')),{'priority':_0x7cf8('0x14')}),_0x450476['editing']['downcastDispatcher']['on'](_0x7cf8('0x1c'),(_0x2f693d,_0x34cd9f,_0x548844)=>{const _0x148146=_0x548844[_0x7cf8('0xf')]['markerNameToElements'](_0x34cd9f[_0x7cf8('0x0')]);if(_0x148146)for(const _0x1a20cf of _0x148146)_0x1a20cf[_0x7cf8('0xb')]('ck-suggestion-marker-split')&&(_0x548844[_0x7cf8('0xf')][_0x7cf8('0x18')](_0x1a20cf,_0x34cd9f[_0x7cf8('0x0')]),_0x548844['writer'][_0x7cf8('0x4')](_0x1a20cf));},{'priority':'high'}),_0x450476[_0x7cf8('0x1a')][_0x7cf8('0x8')]['on'](_0x7cf8('0x1f'),(_0x2ebef2,_0x440014,_0x3cae50)=>{_0x3cae50[_0x7cf8('0x16')][_0x7cf8('0x20')]&&_0x5d57ea(_0x450476,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2ebef2,_0x440014,_0x3cae50);},{'priority':_0x7cf8('0x14')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb793=['start','findPrevious','item','afterInit','handleFindCommand','editor','enableCommand','getRange','plugins','getIntersection','FindAndReplaceEditing','FindAndReplaceUtils','replace','end','findByTextCallback','bind','markers','createPositionAt','string','findNext','getMarkersGroup','filter','_isInDeletionRange','has','model','TrackChangesEditing'];(function(_0x1e8f46,_0xb793ee){const _0x2a6fcc=function(_0x14e06b){while(--_0x14e06b){_0x1e8f46['push'](_0x1e8f46['shift']());}};_0x2a6fcc(++_0xb793ee);}(_0xb793,0xe4));const _0x2a6f=function(_0x1e8f46,_0xb793ee){_0x1e8f46=_0x1e8f46-0x0;let _0x2a6fcc=_0xb793[_0x1e8f46];return _0x2a6fcc;};import{Plugin as _0x398563}from'ckeditor5/src/core';export default class H extends _0x398563{[_0x2a6f('0x9')](){if(!this[_0x2a6f('0xb')][_0x2a6f('0xe')][_0x2a6f('0x3')](_0x2a6f('0x10')))return;const _0x57dffa=this[_0x2a6f('0xb')][_0x2a6f('0xe')]['get'](_0x2a6f('0x5'));_0x57dffa['enableCommand']('find',this[_0x2a6f('0xa')][_0x2a6f('0x15')](this)),_0x57dffa['enableCommand'](_0x2a6f('0x19')),_0x57dffa[_0x2a6f('0xc')](_0x2a6f('0x7')),_0x57dffa[_0x2a6f('0xc')](_0x2a6f('0x12')),_0x57dffa[_0x2a6f('0xc')]('replaceAll');}[_0x2a6f('0xa')](_0x4f0844,_0x4f408c,_0x3dcc8a={}){const _0x362c2d=this[_0x2a6f('0xb')][_0x2a6f('0xe')]['get'](_0x2a6f('0x11'));void 0x0!==_0x3dcc8a&&_0x4f0844(_0x3cc2be=>(_0x2a6f('0x18')==typeof _0x4f408c?_0x362c2d[_0x2a6f('0x14')](_0x4f408c,_0x3dcc8a):_0x4f408c)(_0x3cc2be)[_0x2a6f('0x1')](_0x2d4822=>!0x1===this['_isInDeletionRange'](_0x2d4822,_0x3cc2be[_0x2a6f('0x8')])),_0x3dcc8a);}[_0x2a6f('0x2')](_0x24ed5d,_0x270870){const _0x5b48af=this[_0x2a6f('0xb')][_0x2a6f('0x4')]['createRange'](this[_0x2a6f('0xb')][_0x2a6f('0x4')][_0x2a6f('0x17')](_0x270870,_0x24ed5d[_0x2a6f('0x6')]),this[_0x2a6f('0xb')]['model'][_0x2a6f('0x17')](_0x270870,_0x24ed5d[_0x2a6f('0x13')]));for(const _0x51a3f3 of this[_0x2a6f('0xb')][_0x2a6f('0x4')][_0x2a6f('0x16')][_0x2a6f('0x0')]('suggestion:deletion'))if(null!==_0x5b48af[_0x2a6f('0xf')](_0x51a3f3[_0x2a6f('0xd')]()))return!0x0;return!0x1;}}
|