@ckeditor/ckeditor5-track-changes 38.0.0-rc.1 → 38.0.1
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.
|
|
3
|
+
"version": "38.0.1",
|
|
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.
|
|
45
|
-
"ckeditor5-collaboration": "^38.0.
|
|
44
|
+
"ckeditor5": "^38.0.1",
|
|
45
|
+
"ckeditor5-collaboration": "^38.0.1",
|
|
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 _0x15eb=['refresh','plugins','_suggestions','acceptSuggestion','execute','isEnabled','get','_isEnabledBasedOnSelection','editor','track-changes-accept-suggestion-not-found'];(function(_0x81e55a,_0x15eb7c){const _0xaa017b=function(_0x319dae){while(--_0x319dae){_0x81e55a['push'](_0x81e55a['shift']());}};_0xaa017b(++_0x15eb7c);}(_0x15eb,0x86));const _0xaa01=function(_0x81e55a,_0x15eb7c){_0x81e55a=_0x81e55a-0x0;let _0xaa017b=_0x15eb[_0x81e55a];return _0xaa017b;};import{Command as _0x4b364c}from'ckeditor5/src/core';import{CKEditorError as _0xbcfee6}from'ckeditor5/src/utils';export default class M extends _0x4b364c{constructor(_0x336f0a,_0x4c7f14){super(_0x336f0a),this[_0xaa01('0x8')]=_0x4c7f14,this[_0xaa01('0x6')](),this[_0xaa01('0x3')]=!0x1;}[_0xaa01('0x6')](){this[_0xaa01('0x1')]=!0x0;}[_0xaa01('0x0')](_0x23cb1d){const _0x25ddf2=this['_suggestions'][_0xaa01('0x2')](_0x23cb1d);if(!_0x25ddf2)throw new _0xbcfee6(_0xaa01('0x5'),this);const _0x43f206=_0x25ddf2['getRanges']();this[_0xaa01('0x4')]['model']['canEditAt'](_0x43f206)&&this[_0xaa01('0x4')][_0xaa01('0x7')][_0xaa01('0x2')]('TrackChangesEditing')[_0xaa01('0x9')](_0x25ddf2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20de=['model','get','getRanges','canEditAt','editor','_isEnabledBasedOnSelection','execute','_suggestions','plugins','refresh','discardSuggestion','isEnabled','TrackChangesEditing'];(function(_0x9c6040,_0x20deb3){const _0x10fc03=function(_0x3ee04c){while(--_0x3ee04c){_0x9c6040['push'](_0x9c6040['shift']());}};_0x10fc03(++_0x20deb3);}(_0x20de,0x8d));const _0x10fc=function(_0x9c6040,_0x20deb3){_0x9c6040=_0x9c6040-0x0;let _0x10fc03=_0x20de[_0x9c6040];return _0x10fc03;};import{Command as _0x207fbc}from'ckeditor5/src/core';import{CKEditorError as _0x4ac7c8}from'ckeditor5/src/utils';export default class $ extends _0x207fbc{constructor(_0x19cbfa,_0xbde7ec){super(_0x19cbfa),this[_0x10fc('0x9')]=_0xbde7ec,this[_0x10fc('0xb')](),this[_0x10fc('0x7')]=!0x1;}[_0x10fc('0xb')](){this[_0x10fc('0x0')]=!0x0;}[_0x10fc('0x8')](_0x3d71b3){const _0x500ab2=this['_suggestions'][_0x10fc('0x3')](_0x3d71b3);if(!_0x500ab2)throw new _0x4ac7c8('track-changes-discard-suggestion-not-found',this);const _0xdcf7dc=_0x500ab2[_0x10fc('0x4')]();this[_0x10fc('0x6')][_0x10fc('0x2')][_0x10fc('0x5')](_0xdcf7dc)&&this[_0x10fc('0x6')][_0x10fc('0xa')][_0x10fc('0x3')](_0x10fc('0x1'))[_0x10fc('0xc')](_0x500ab2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x564e=['from','_command','editor','model','canEditAt','values','execute','isInContent','isEnabled','_isEnabledBasedOnSelection','_suggestions'];(function(_0x726714,_0x564e55){const _0x32b904=function(_0x5a1c1c){while(--_0x5a1c1c){_0x726714['push'](_0x726714['shift']());}};_0x32b904(++_0x564e55);}(_0x564e,0x82));const _0x32b9=function(_0x726714,_0x564e55){_0x726714=_0x726714-0x0;let _0x32b904=_0x564e[_0x726714];return _0x32b904;};import{Command as _0x1602a0}from'ckeditor5/src/core';import{sortSuggestions as _0x2a22f8,executeCommandForSuggestions as _0x178eab}from'../utils/utils';export default class N extends _0x1602a0{constructor(_0x2e5f10,_0xd9fa33,_0x1a00fa){super(_0x2e5f10),this[_0x32b9('0x3')]=_0xd9fa33,this[_0x32b9('0x1')]=_0x1a00fa,this['refresh'](),this[_0x32b9('0x0')]=!0x1;}['refresh'](){const _0xb229b0=Array[_0x32b9('0x2')](this[_0x32b9('0x1')][_0x32b9('0x7')]())['some'](_0x555243=>_0x555243[_0x32b9('0x9')]);this[_0x32b9('0xa')]=this[_0x32b9('0x3')][_0x32b9('0xa')]&&_0xb229b0;}[_0x32b9('0x8')](){const _0x265d29=_0x2a22f8(Array[_0x32b9('0x2')](this[_0x32b9('0x1')][_0x32b9('0x7')]()));for(const _0x53c9fa of _0x265d29){const _0x2ed307=_0x53c9fa['getRanges']();if(!this[_0x32b9('0x4')][_0x32b9('0x5')][_0x32b9('0x6')](_0x2ed307))return;}_0x178eab(this[_0x32b9('0x4')][_0x32b9('0x5')],this['_command'],_0x265d29);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfd15=['_command','isEnabled','editor','model','_isEnabledBasedOnSelection','refresh','selection','execute','_suggestions','getRanges','from','_selectedSuggestions','values','document','size','canEditAt'];(function(_0x28a799,_0xfd1573){const _0x52f314=function(_0x2d0339){while(--_0x2d0339){_0x28a799['push'](_0x28a799['shift']());}};_0x52f314(++_0xfd1573);}(_0xfd15,0x10e));const _0x52f3=function(_0x28a799,_0xfd1573){_0x28a799=_0x28a799-0x0;let _0x52f314=_0xfd15[_0x28a799];return _0x52f314;};import{Command as _0x42dc4e}from'ckeditor5/src/core';import{sortSuggestions as _0x3a61bc,getSelectedSuggestions as _0x24221a,executeCommandForSuggestions as _0x22cc93}from'../utils/utils';export default class R extends _0x42dc4e{constructor(_0x217cc8,_0x751f33,_0x558323){super(_0x217cc8),this[_0x52f3('0x2')]=_0x751f33,this[_0x52f3('0xa')]=_0x558323,this[_0x52f3('0xd')]=new Set(),this[_0x52f3('0x7')](),this[_0x52f3('0x6')]=!0x1;}['refresh'](){const _0x5b0728=this[_0x52f3('0x4')][_0x52f3('0x5')][_0x52f3('0xf')][_0x52f3('0x8')],_0x11d719=Array[_0x52f3('0xc')](this['_suggestions'][_0x52f3('0xe')]());this[_0x52f3('0xd')]=_0x24221a(_0x5b0728,_0x11d719),this[_0x52f3('0x3')]=this[_0x52f3('0x2')]['isEnabled']&&!!this[_0x52f3('0xd')][_0x52f3('0x0')];}[_0x52f3('0x9')](){const _0x599314=_0x3a61bc(Array[_0x52f3('0xc')](this[_0x52f3('0xd')]));for(const _0x3c90b4 of _0x599314){const _0x574af0=_0x3c90b4[_0x52f3('0xb')]();if(!this[_0x52f3('0x4')][_0x52f3('0x5')][_0x52f3('0x1')](_0x574af0))return;}_0x22cc93(this['editor'][_0x52f3('0x5')],this['_command'],_0x599314);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4082=['clearForceDisabled','_enabledCommands','editor','_enableCommands','affectsData','has','commands','_disableUnsupportedCommands','execute','value','TrackChangesCommand','_isEnabledBasedOnSelection','refresh'];(function(_0x363e71,_0x408253){const _0x4e0dc8=function(_0x562a24){while(--_0x562a24){_0x363e71['push'](_0x363e71['shift']());}};_0x4e0dc8(++_0x408253);}(_0x4082,0x148));const _0x4e0d=function(_0x363e71,_0x408253){_0x363e71=_0x363e71-0x0;let _0x4e0dc8=_0x4082[_0x363e71];return _0x4e0dc8;};import{Command as _0xbb7c84}from'ckeditor5/src/core';export default class _ extends _0xbb7c84{constructor(_0x1c8d79,_0x3d1f5c){super(_0x1c8d79),this[_0x4e0d('0xb')]=_0x3d1f5c,this[_0x4e0d('0x6')]=!0x1,this[_0x4e0d('0x9')](),this[_0x4e0d('0x8')]=!0x1;}[_0x4e0d('0x9')](){this['isEnabled']=!0x0;}[_0x4e0d('0x5')](){this[_0x4e0d('0x6')]=!this[_0x4e0d('0x6')],this['value']?this[_0x4e0d('0x4')]():this['_enableCommands']();}[_0x4e0d('0x4')](){for(const _0x225b12 of this[_0x4e0d('0xc')][_0x4e0d('0x3')][_0x4e0d('0x3')]())_0x225b12[_0x4e0d('0x1')]&&!this[_0x4e0d('0xb')][_0x4e0d('0x2')](_0x225b12)&&_0x225b12['forceDisabled'](_0x4e0d('0x7'));}[_0x4e0d('0x0')](){for(const _0x56ac82 of this['editor'][_0x4e0d('0x3')][_0x4e0d('0x3')]())_0x56ac82[_0x4e0d('0x1')]&&!this['_enabledCommands'][_0x4e0d('0x2')](_0x56ac82)&&_0x56ac82[_0x4e0d('0xa')]('TrackChangesCommand');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2af2=['center','from','ltr','TrackChangesEditing','left','get','justify','commandParams','locale','model','selection','editor','markBlockFormat','alignment','FORMAT_ALIGN_TO_RIGHT','plugins','FORMAT_ALIGN_TO_CENTER','value','right','*Format:*\x20%0','change','afterInit','commandName','_descriptionFactory','enableCommand','has','AlignmentEditing','filter','getSelectedBlocks','schema','registerDescriptionCallback','getAttribute'];(function(_0x15df62,_0x2af256){const _0x2b5f6d=function(_0x502131){while(--_0x502131){_0x15df62['push'](_0x15df62['shift']());}};_0x2b5f6d(++_0x2af256);}(_0x2af2,0xbf));const _0x2b5f=function(_0x15df62,_0x2af256){_0x15df62=_0x15df62-0x0;let _0x2b5f6d=_0x2af2[_0x15df62];return _0x2b5f6d;};import{Plugin as _0x51e592}from'ckeditor5/src/core';import{getTranslation as _0x52ba5f}from'../utils/common-translations';export default class x extends _0x51e592{[_0x2b5f('0x16')](){const _0x23a38b=this[_0x2b5f('0xc')],_0xa8b99d=_0x23a38b[_0x2b5f('0x9')];if(!_0x23a38b[_0x2b5f('0x10')][_0x2b5f('0x1a')](_0x2b5f('0x1b')))return;const _0x5dc777=_0x23a38b[_0x2b5f('0x10')][_0x2b5f('0x6')](_0x2b5f('0x4'));_0x5dc777[_0x2b5f('0x19')](_0x2b5f('0xe'),(_0x7fff3a,_0x1ecf6e={})=>{let _0x186e07=_0x1ecf6e[_0x2b5f('0x12')];_0x1ecf6e['value']||(_0x186e07=_0x2b5f('0x3')===_0x23a38b[_0x2b5f('0x9')]['contentLanguageDirection']?_0x2b5f('0x5'):_0x2b5f('0x13'));const _0x2712b1=Array[_0x2b5f('0x2')](this[_0x2b5f('0xc')][_0x2b5f('0xa')]['document'][_0x2b5f('0xb')][_0x2b5f('0x1d')]())[_0x2b5f('0x1c')](_0x3c804b=>function(_0xb7bf16,_0x49cb1c,_0x439656){const _0x1cd675=_0xb7bf16[_0x2b5f('0x0')](_0x2b5f('0xe'))||null;return _0x49cb1c['checkAttribute'](_0xb7bf16,_0x2b5f('0xe'))&&_0x439656!=_0x1cd675;}(_0x3c804b,this[_0x2b5f('0xc')][_0x2b5f('0xa')][_0x2b5f('0x1e')],_0x186e07));_0x23a38b[_0x2b5f('0xa')][_0x2b5f('0x15')](()=>{for(const _0x2f565c of _0x2712b1)_0x5dc777[_0x2b5f('0xd')](_0x2f565c,{'commandName':'alignment','commandParams':[{'value':_0x186e07}]});});}),_0x5dc777[_0x2b5f('0x18')][_0x2b5f('0x1f')](_0x3110f1=>{const {data:_0x245eac}=_0x3110f1;if(_0x245eac&&_0x2b5f('0xe')==_0x245eac[_0x2b5f('0x17')]){const _0x542a9d=_0x245eac[_0x2b5f('0x8')][0x0][_0x2b5f('0x12')];return{'type':'format','content':_0x52ba5f(_0xa8b99d,_0x2b5f('0x14'),function(_0x566276){switch(_0x566276){case'left':return _0x52ba5f(_0xa8b99d,'FORMAT_ALIGN_TO_LEFT');case _0x2b5f('0x13'):return _0x52ba5f(_0xa8b99d,_0x2b5f('0xf'));case _0x2b5f('0x1'):return _0x52ba5f(_0xa8b99d,_0x2b5f('0x11'));case _0x2b5f('0x7'):return _0x52ba5f(_0xa8b99d,'FORMAT_JUSTIFY_TEXT');}}(_0x542a9d))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11c4=['plugins','slice','forceValue','markInlineFormat','bold','FORMAT_SUBSCRIPT','toLowerCase','subscript','get','from','commands','getRanges','isCollapsed','*Format:*\x20%0','UnderlineEditing','superscript','ItalicEditing','format','strikethrough','italic','FORMAT_STRIKETHROUGH','underline','locale','FORMAT_CODE','commandName','document','code','FORMAT_SUPERSCRIPT','selection','SuperscriptEditing'];(function(_0x3a68c2,_0x11c426){const _0x5c3309=function(_0xc07ad4){while(--_0xc07ad4){_0x3a68c2['push'](_0x3a68c2['shift']());}};_0x5c3309(++_0x11c426);}(_0x11c4,0x159));const _0x5c33=function(_0x3a68c2,_0x11c426){_0x3a68c2=_0x3a68c2-0x0;let _0x5c3309=_0x11c4[_0x3a68c2];return _0x5c3309;};import{Plugin as _0x2d8059}from'ckeditor5/src/core';import{getTranslation as _0x484f68}from'../utils/common-translations';import{getRangesWithAttribute as _0x2e809c}from'./utils';const Kt=['BoldEditing',_0x5c33('0x1'),_0x5c33('0x1d'),'CodeEditing','StrikethroughEditing','SubscriptEditing',_0x5c33('0xe')];export default class U extends _0x2d8059{['afterInit'](){const _0x299a87=this['editor'],_0x5219cb=_0x299a87['model'],_0x5be9d6=_0x299a87[_0x5c33('0xf')][_0x5c33('0x17')]('TrackChangesEditing'),_0x34aa05=_0x299a87[_0x5c33('0x7')];for(const _0x70a5e4 of Kt){if(!_0x299a87['plugins']['has'](_0x70a5e4))continue;const _0x4b96f0=_0x70a5e4[_0x5c33('0x10')](0x0,-0x7)[_0x5c33('0x15')](),_0x37433f=_0x299a87[_0x5c33('0x19')][_0x5c33('0x17')](_0x4b96f0);_0x5be9d6['enableCommand'](_0x4b96f0,(_0x1b6f1c,_0x166178={})=>{const _0x5b7b68=_0x5219cb[_0x5c33('0xa')][_0x5c33('0xd')];if(_0x5b7b68[_0x5c33('0x1b')])return void _0x1b6f1c(_0x166178);const _0x18fdd3=void 0x0!==_0x166178[_0x5c33('0x11')]?_0x166178[_0x5c33('0x11')]:!_0x37433f['value'];_0x5219cb['change'](()=>{const _0x556e14=Array[_0x5c33('0x18')](_0x5b7b68[_0x5c33('0x1a')]());for(const _0x50fe8e of _0x556e14){const _0x348171=_0x18fdd3?[_0x50fe8e]:_0x2e809c(_0x4b96f0,_0x50fe8e,_0x5219cb);for(const _0x4ee588 of _0x348171)_0x5be9d6[_0x5c33('0x12')](_0x4ee588,{'commandName':_0x4b96f0,'commandParams':[{'forceValue':_0x18fdd3}]});}});});}function _0x51deee(_0x396491,_0x2cb24f){_0x5be9d6['_descriptionFactory']['registerDescriptionCallback'](_0x4cc343=>{const {data:_0xc0ed7b}=_0x4cc343;if(_0xc0ed7b&&_0xc0ed7b[_0x5c33('0x9')]===_0x396491)return _0xc0ed7b['commandParams'][0x0][_0x5c33('0x11')]?{'type':_0x5c33('0x2'),'content':_0x484f68(_0x34aa05,_0x5c33('0x1c'),_0x2cb24f)}:{'type':_0x5c33('0x2'),'content':_0x484f68(_0x34aa05,'*Remove\x20format:*\x20%0',_0x2cb24f)};});}_0x51deee(_0x5c33('0x13'),_0x484f68(_0x34aa05,'FORMAT_BOLD')),_0x51deee(_0x5c33('0x4'),_0x484f68(_0x34aa05,'FORMAT_ITALIC')),_0x51deee(_0x5c33('0x6'),_0x484f68(_0x34aa05,'FORMAT_UNDERLINE')),_0x51deee(_0x5c33('0xb'),_0x484f68(_0x34aa05,_0x5c33('0x8'))),_0x51deee(_0x5c33('0x3'),_0x484f68(_0x34aa05,_0x5c33('0x5'))),_0x51deee(_0x5c33('0x16'),_0x484f68(_0x34aa05,_0x5c33('0x14'))),_0x51deee(_0x5c33('0x0'),_0x484f68(_0x34aa05,_0x5c33('0xc')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13a9=['markBlockFormat','value','getSelectedBlocks','model','afterInit','plugins','format','locale','*Remove\x20format:*\x20%0','editor','registerDescriptionCallback','get','parent','checkChild','selection','TrackChangesEditing','has','ELEMENT_BLOCK_QUOTE','_descriptionFactory','enableCommand','commandName','blockQuote','*Format:*\x20%0','BlockQuoteEditing','forceValue','from','commands','filter','name'];(function(_0x1c2708,_0x13a93c){const _0x16403a=function(_0x34d254){while(--_0x34d254){_0x1c2708['push'](_0x1c2708['shift']());}};_0x16403a(++_0x13a93c);}(_0x13a9,0x6b));const _0x1640=function(_0x1c2708,_0x13a93c){_0x1c2708=_0x1c2708-0x0;let _0x16403a=_0x13a9[_0x1c2708];return _0x16403a;};import{Plugin as _0x18657d}from'ckeditor5/src/core';import{getTranslation as _0x573406}from'../utils/common-translations';import{getRangesOfBlockGroups as _0xeac71c}from'../utils/utils';export default class j extends _0x18657d{[_0x1640('0xd')](){const _0x216c90=this[_0x1640('0x12')],_0x1479ac=_0x216c90[_0x1640('0x10')];if(!_0x216c90['plugins'][_0x1640('0x19')](_0x1640('0x3')))return;const _0x1c379c=_0x216c90[_0x1640('0xe')][_0x1640('0x14')](_0x1640('0x18')),_0x4777f8=this[_0x1640('0x12')][_0x1640('0x6')]['get'](_0x1640('0x1'));_0x1c379c[_0x1640('0x1c')](_0x1640('0x1'),(_0x3c3732,_0x110b29={})=>{const _0x482d6c=this[_0x1640('0x12')][_0x1640('0xc')]['document'][_0x1640('0x17')],_0x2dae29=_0x110b29&&void 0x0!==_0x110b29['forceValue']?_0x110b29[_0x1640('0x4')]:!_0x4777f8[_0x1640('0xa')];let _0x3f2464=[];if(_0x2dae29){const _0x2e1070=Array[_0x1640('0x5')](_0x482d6c[_0x1640('0xb')]())[_0x1640('0x7')](_0x3c284f=>Xt(_0x3c284f)||function(_0x112ae7,_0x59ed8a){const _0x430836=_0x59ed8a[_0x1640('0x16')](_0x112ae7['parent'],_0x1640('0x1')),_0x944c5a=_0x59ed8a[_0x1640('0x16')](['$root',_0x1640('0x1')],_0x112ae7);return _0x430836&&_0x944c5a;}(_0x3c284f,this['editor']['model']['schema']));_0x3f2464=_0xeac71c(_0x2e1070,_0x216c90[_0x1640('0xc')]);}else{const _0x52e7a7=Array[_0x1640('0x5')](_0x482d6c[_0x1640('0xb')]())['filter'](_0x41bfd7=>Xt(_0x41bfd7));_0x3f2464=_0xeac71c(_0x52e7a7,_0x216c90[_0x1640('0xc')]);}_0x216c90['model']['change'](()=>{for(const _0x466c6b of _0x3f2464)_0x1c379c[_0x1640('0x9')](_0x466c6b,{'commandName':_0x1640('0x1'),'commandParams':[{'forceValue':_0x2dae29}]});});}),_0x1c379c[_0x1640('0x1b')][_0x1640('0x13')](_0x1a9c77=>{const {data:_0x46f3af}=_0x1a9c77;if(_0x46f3af&&_0x1640('0x1')==_0x46f3af[_0x1640('0x0')]){const _0x4a4c88=_0x573406(_0x1479ac,_0x1640('0x1a'));return _0x46f3af['commandParams'][0x0][_0x1640('0x4')]?{'type':'format','content':_0x573406(_0x1479ac,_0x1640('0x2'),_0x4a4c88)}:{'type':_0x1640('0xf'),'content':_0x573406(_0x1479ac,_0x1640('0x11'),_0x4a4c88)};}});}}function Xt(_0x581575){return'blockQuote'==_0x581575[_0x1640('0x15')][_0x1640('0x8')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x337c=['editor','get','plugins','commands','afterInit','ckbox'];(function(_0x4c6871,_0x337c68){const _0x337da9=function(_0x117850){while(--_0x117850){_0x4c6871['push'](_0x4c6871['shift']());}};_0x337da9(++_0x337c68);}(_0x337c,0x1a5));const _0x337d=function(_0x4c6871,_0x337c68){_0x4c6871=_0x4c6871-0x0;let _0x337da9=_0x337c[_0x4c6871];return _0x337da9;};import{Plugin as _0x5a4e66}from'ckeditor5/src/core';export default class E extends _0x5a4e66{[_0x337d('0x3')](){const _0x498c29=this[_0x337d('0x5')];_0x498c29[_0x337d('0x2')][_0x337d('0x0')](_0x337d('0x4'))&&_0x498c29[_0x337d('0x1')][_0x337d('0x0')]('TrackChangesEditing')['enableCommand'](_0x337d('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4674=['commandName','plugins','editor','filter','languages','*Remove\x20format:*\x20%0','markBlockFormat','_descriptionFactory','format','enableCommand','change','value','find','commandParams','CodeBlock','indentCodeBlock','afterInit','registerDescriptionCallback','codeBlock','TrackChangesEditing','language','checkChild','schema','model','commands','formatBlock','config','selection','forceValue','isLimit','ELEMENT_CODE_BLOCK','registerElementLabel','name','document','getSelectedBlocks','outdentCodeBlock','from','parent','*Format:*\x20%0'];(function(_0x5db78c,_0x4674a8){const _0x3f6539=function(_0x1f6fd1){while(--_0x1f6fd1){_0x5db78c['push'](_0x5db78c['shift']());}};_0x3f6539(++_0x4674a8);}(_0x4674,0x1ee));const _0x3f65=function(_0x5db78c,_0x4674a8){_0x5db78c=_0x5db78c-0x0;let _0x3f6539=_0x4674[_0x5db78c];return _0x3f6539;};import{Plugin as _0x1862b7}from'ckeditor5/src/core';import{getTranslation as _0x31859c}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x2ff75d}from'../utils/utils';export default class O extends _0x1862b7{[_0x3f65('0x1d')](){const _0x526c02=this[_0x3f65('0xf')];if(!_0x526c02[_0x3f65('0xe')]['has'](_0x3f65('0x1b')))return;const _0x38c521=_0x526c02[_0x3f65('0xe')]['get'](_0x3f65('0x20')),_0x578c49=_0x526c02['locale'],_0x3c9b1a=_0x526c02[_0x3f65('0x0')]['get'](_0x3f65('0x1f'))[_0x3f65('0x11')],_0x1c24ce=_0x526c02[_0x3f65('0x25')]['get']('codeBlock');_0x38c521[_0x3f65('0x16')](_0x3f65('0x1c')),_0x38c521['enableCommand'](_0x3f65('0x9')),_0x38c521[_0x3f65('0x16')]('codeBlock',(_0x4f2ecc,_0x4daddf={})=>{const _0x226e5d=_0x526c02['model'],_0x10b322=_0x526c02[_0x3f65('0x24')][_0x3f65('0x7')][_0x3f65('0x1')],_0x32cbe8=_0x4daddf&&void 0x0!==_0x4daddf[_0x3f65('0x2')]?_0x4daddf[_0x3f65('0x2')]:!_0x1c24ce[_0x3f65('0x18')];let _0x42510c;_0x4daddf[_0x3f65('0x21')]||(_0x4daddf[_0x3f65('0x21')]=_0x3c9b1a[0x0][_0x3f65('0x21')]),_0x42510c=_0x32cbe8?Array[_0x3f65('0xa')](_0x10b322[_0x3f65('0x8')]())[_0x3f65('0x10')](_0x15ea0c=>oo(_0x15ea0c)||function(_0x359200,_0x1bde9f){if(_0x359200['is']('rootElement')||_0x1bde9f[_0x3f65('0x3')](_0x359200))return!0x1;return _0x1bde9f[_0x3f65('0x22')](_0x359200[_0x3f65('0xb')],_0x3f65('0x1f'));}(_0x15ea0c,_0x226e5d[_0x3f65('0x23')])):Array[_0x3f65('0xa')](_0x10b322[_0x3f65('0x8')]())[_0x3f65('0x10')](_0x4d8f44=>oo(_0x4d8f44));const _0x54952f=_0x2ff75d(_0x42510c,_0x226e5d);_0x226e5d[_0x3f65('0x17')](()=>{for(const _0x525c6d of _0x54952f)_0x38c521[_0x3f65('0x13')](_0x525c6d,{'commandName':_0x3f65('0x1f'),'commandParams':[{..._0x4daddf,'forceValue':_0x32cbe8}],'formatGroupId':'blockName'});});}),(_0x38c521[_0x3f65('0x14')][_0x3f65('0x5')](_0x3f65('0x1f'),_0x18fec8=>_0x31859c(_0x578c49,_0x3f65('0x4'),_0x18fec8)),_0x38c521[_0x3f65('0x14')][_0x3f65('0x1e')](_0x150a2a=>{const _0x436b7b=_0x578c49['t'],{type:_0x4b654d,data:_0x31ec2a}=_0x150a2a;if(_0x3f65('0x26')==_0x4b654d&&_0x31ec2a&&'codeBlock'==_0x31ec2a[_0x3f65('0xd')]){const _0x106c64=_0x31ec2a[_0x3f65('0x1a')][0x0][_0x3f65('0x21')],_0x36e55f=_0x436b7b(_0x3c9b1a[_0x3f65('0x19')](_0x383c0e=>_0x383c0e[_0x3f65('0x21')]===_0x106c64)['label']);return _0x31ec2a['commandParams'][0x0][_0x3f65('0x2')]?{'type':'format','content':_0x31859c(_0x578c49,_0x3f65('0xc'),_0x31859c(_0x578c49,_0x3f65('0x4'),0x1)+'\x20('+_0x36e55f+')')}:{'type':_0x3f65('0x15'),'content':_0x31859c(_0x578c49,_0x3f65('0x12'),_0x31859c(_0x578c49,_0x3f65('0x4'),0x1))};}}));}}function oo(_0x24402c){return'codeBlock'==_0x24402c[_0x3f65('0x6')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dc2=['TrackChangesEditing','get','addCommentThread','plugins','enableCommand','afterInit','editor'];(function(_0xa2ea7e,_0x5dc252){const _0x1877f2=function(_0x1da590){while(--_0x1da590){_0xa2ea7e['push'](_0xa2ea7e['shift']());}};_0x1877f2(++_0x5dc252);}(_0x5dc2,0x8e));const _0x1877=function(_0xa2ea7e,_0x5dc252){_0xa2ea7e=_0xa2ea7e-0x0;let _0x1877f2=_0x5dc2[_0xa2ea7e];return _0x1877f2;};import{Plugin as _0x42c003}from'ckeditor5/src/core';export default class F extends _0x42c003{[_0x1877('0x3')](){const _0x9f1342=this[_0x1877('0x4')];if(!_0x9f1342[_0x1877('0x1')]['has']('CommentsEditing'))return;_0x9f1342[_0x1877('0x1')][_0x1877('0x6')](_0x1877('0x5'))[_0x1877('0x2')](_0x1877('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51f0=['lock','end','writer','mapper','selection','document','unbindElementFromMarkerName','get','requires','$graveyard','buffer','remove','isCollapsed','detach','createRange','editing','markerName','bind','downcastDispatcher','high','TrackChangesEditing','forward','root','unit','getFirstRange','uiElement','model','enqueueChange','delete','init','deleteForward','unlock','showSuggestionHighlights','start','enableCommand','rootName','editor','merge','addMarker:suggestion:deletion','setSelection'];(function(_0x414d5b,_0x51f072){const _0x15e073=function(_0x24077f){while(--_0x24077f){_0x414d5b['push'](_0x414d5b['shift']());}};_0x15e073(++_0x51f072);}(_0x51f0,0x176));const _0x15e0=function(_0x414d5b,_0x51f072){_0x414d5b=_0x414d5b-0x0;let _0x15e073=_0x51f0[_0x414d5b];return _0x15e073;};import{Plugin as _0x432e25}from'ckeditor5/src/core';import{LiveRange as _0x59afc2}from'ckeditor5/src/engine';import{Delete as _0x348f91}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x3a89aa}from'./utils';export default class G extends _0x432e25{static get[_0x15e0('0x22')](){return[_0x348f91];}[_0x15e0('0xf')](){const _0x174f07=this[_0x15e0('0x16')],_0x395566=_0x174f07['plugins'][_0x15e0('0x21')](_0x15e0('0x6'));_0x395566[_0x15e0('0x14')](_0x15e0('0xe'));const _0x284431=_0x174f07['commands'][_0x15e0('0x21')](_0x15e0('0x10'));_0x395566['enableCommand']('deleteForward',(_0x515322,_0x2e9938={})=>{const _0x3c1a31=_0x174f07[_0x15e0('0xc')]['createSelection'](_0x174f07[_0x15e0('0xc')][_0x15e0('0x1f')][_0x15e0('0x1e')]);_0x3c1a31[_0x15e0('0x26')]&&_0x174f07[_0x15e0('0xc')]['modifySelection'](_0x3c1a31,{'direction':_0x15e0('0x7'),'unit':_0x2e9938[_0x15e0('0x9')]});const _0x1bbd6c=_0x3c1a31[_0x15e0('0xa')](),_0x1be8a6=_0x59afc2['fromRange'](_0x1bbd6c);let _0x477fac;_0x515322(_0x2e9938),_0x477fac=_0x15e0('0x23')==_0x1be8a6[_0x15e0('0x8')][_0x15e0('0x15')]?_0x174f07[_0x15e0('0xc')]['createRange'](_0x1bbd6c['start']):_0x174f07[_0x15e0('0xc')][_0x15e0('0x0')](_0x1be8a6[_0x15e0('0x13')],_0x1be8a6['end']),_0x1be8a6[_0x15e0('0x27')](),_0x174f07[_0x15e0('0xc')][_0x15e0('0xd')](_0x284431[_0x15e0('0x24')]['batch'],_0x7fe5d4=>{_0x284431[_0x15e0('0x24')][_0x15e0('0x1a')](),_0x7fe5d4[_0x15e0('0x19')](_0x7fe5d4[_0x15e0('0x0')](_0x477fac[_0x15e0('0x1b')])),_0x284431[_0x15e0('0x24')][_0x15e0('0x11')]();});}),_0x174f07[_0x15e0('0x1')][_0x15e0('0x4')]['on']('addMarker:suggestion:deletion',_0x3a89aa(_0x174f07,'merge'),{'priority':'high'}),_0x174f07['data'][_0x15e0('0x4')]['on'](_0x15e0('0x18'),(_0x221ea7,_0x546547,_0x3105ca)=>{_0x3105ca['options'][_0x15e0('0x12')]&&_0x3a89aa(_0x174f07,_0x15e0('0x17'),{'showActiveMarker':!0x1})[_0x15e0('0x3')](this)(_0x221ea7,_0x546547,_0x3105ca);},{'priority':_0x15e0('0x5')}),_0x174f07['editing'][_0x15e0('0x4')]['on']('removeMarker:suggestion:deletion',(_0x290e3d,_0x10e86d,_0x31f053)=>{const _0x28732a=_0x31f053[_0x15e0('0x1d')]['markerNameToElements'](_0x10e86d['markerName']);if(_0x28732a)for(const _0x1c62ca of _0x28732a)_0x1c62ca['is'](_0x15e0('0xb'))&&(_0x31f053[_0x15e0('0x1d')][_0x15e0('0x20')](_0x1c62ca,_0x10e86d[_0x15e0('0x2')]),_0x31f053[_0x15e0('0x1c')][_0x15e0('0x25')](_0x1c62ca));},{'priority':_0x15e0('0x5')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c1c=['splitListItemBefore','editor','ELEMENT_NUMBERED_LIST','listType','model','get','createRange','registerElementLabel','ELEMENT_','fromRange','outdentList','mergeListItemBackward','*Indent:*\x20%0','*Merge:*\x20%0','DocumentListEditing','DocumentListUtils','createPositionAt','registerDescriptionCallback','listItemId','map','findIndex','commandName','push','has','plugins','after','forceValue','schema','hasAttribute','*Format:*\x20insert\x20into\x20%0','commands','afterInit','getAttribute','documentList','*Outdent:*\x20%0','refresh','locale','_suggestionFactory','setSelection','document','getSelectedBlocks','_LIST','indentList','mergeListItemForward','value','toUpperCase','nodeAfter','start','splitListItemAfter','selection','before','markBlockFormat','*Format:*\x20remove\x20from\x20%0','commandParams','ELEMENT_LIST_ITEM','parent','ELEMENT_BULLETED_LIST','isObject','listIndent','deletion','enableCommand','slice','add','expandListBlocksToCompleteList','change','_descriptionFactory','numberedList','formatBlock','TrackChangesEditing','nextSibling','end','registerCustomCallback','from','format','getFirstRange','getRanges','*Change\x20to:*\x20%0','bulletedList','markMultiRangeBlockFormat'];(function(_0x59c520,_0x2c1ce2){const _0x526f3a=function(_0x3a074f){while(--_0x3a074f){_0x59c520['push'](_0x59c520['shift']());}};_0x526f3a(++_0x2c1ce2);}(_0x2c1c,0x1dd));const _0x526f=function(_0x59c520,_0x2c1ce2){_0x59c520=_0x59c520-0x0;let _0x526f3a=_0x2c1c[_0x59c520];return _0x526f3a;};import{Plugin as _0x2f2b18}from'ckeditor5/src/core';import{getTranslation as _0x32dd88}from'../utils/common-translations';import{LiveRange as _0x70cceb}from'ckeditor5/src/engine';export default class L extends _0x2f2b18{[_0x526f('0x1c')](){const _0x32f9be=this[_0x526f('0x4d')];if(!_0x32f9be[_0x526f('0x15')][_0x526f('0x14')](_0x526f('0xb')))return;const _0x1ed41e=_0x32f9be[_0x526f('0x21')],_0x5cc258=_0x32f9be['plugins'][_0x526f('0x2')](_0x526f('0x41')),_0x2b0e17=_0x32f9be['plugins'][_0x526f('0x2')](_0x526f('0xc'));function _0x16dff6(_0x193557){return()=>{const _0x4d3b46=_0x32f9be[_0x526f('0x1b')][_0x526f('0x2')](_0x193557);let _0xa3e45b=Array[_0x526f('0x45')](_0x32f9be[_0x526f('0x1')][_0x526f('0x24')][_0x526f('0x2e')][_0x526f('0x25')]());if(_0x41a0b8(_0x193557)){_0xa3e45b=_0x2b0e17[_0x526f('0x3c')](_0xa3e45b);const _0x5ed2cf=[];for(const _0x16a150 of _0xa3e45b)_0x2b0e17['isFirstBlockOfListItem'](_0x16a150)&&_0x5ed2cf['push'](_0x16a150);_0xa3e45b=_0x5ed2cf;}_0x32f9be[_0x526f('0x1')][_0x526f('0x3d')](()=>{_0x5cc258[_0x526f('0x4b')](_0xa3e45b,{'commandName':_0x193557,'commandParams':[{'forceValue':!_0x4d3b46[_0x526f('0x29')]}],'formatGroupId':'listType'},[],'documentList');});};}function _0x41d646(_0x1757f6){return()=>{const _0x20ed9d=function(_0x30cf76){let _0x4140c0=Array[_0x526f('0x45')](_0x30cf76);const _0x48ce6a=_0x4140c0[_0x526f('0x11')](_0x5972c2=>!_0x5972c2[_0x526f('0x19')](_0x526f('0xf')));return _0x48ce6a>-0x1&&(_0x4140c0=_0x4140c0[_0x526f('0x3a')](0x0,_0x48ce6a)),_0x4140c0;}(_0x32f9be['model']['document']['selection'][_0x526f('0x25')]()),_0x21a711=_0x20ed9d[_0x20ed9d['length']-0x1],_0x17f1dc=_0x32f9be[_0x526f('0x1')][_0x526f('0x18')]['isObject'](_0x21a711)?_0x526f('0x16'):_0x526f('0x43'),_0x2c42b9=_0x32f9be[_0x526f('0x1')][_0x526f('0x3')](_0x32f9be['model'][_0x526f('0xd')](_0x20ed9d[0x0],'before'),_0x32f9be[_0x526f('0x1')]['createPositionAt'](_0x21a711,_0x17f1dc));_0x32f9be[_0x526f('0x1')]['change'](()=>{_0x5cc258[_0x526f('0x30')](_0x2c42b9,{'commandName':_0x1757f6,'commandParams':[],'formatGroupId':_0x526f('0x0')},function(_0x3ad70c){const _0x1fccad=new Set();for(const _0x5ab275 of _0x3ad70c){let _0x1ffcc8=_0x5ab275[_0x526f('0x42')];for(;_0x1ffcc8&&_0x1ffcc8[_0x526f('0x1d')](_0x526f('0x37'))>_0x5ab275[_0x526f('0x1d')](_0x526f('0x37'));)_0x1fccad[_0x526f('0x3b')](_0x1ffcc8),_0x1ffcc8=_0x1ffcc8[_0x526f('0x42')];}return Array[_0x526f('0x45')](_0x1fccad);}(_0x20ed9d));});};}function _0x3679cb(_0x270247){return()=>{const _0x2cbfb4=_0x32f9be[_0x526f('0x1')][_0x526f('0x24')]['selection'][_0x526f('0x25')]()['next']()[_0x526f('0x29')],_0x41caf0=_0x32f9be['model'][_0x526f('0xd')](_0x2cbfb4,_0x526f('0x2f')),_0x598460=_0x32f9be[_0x526f('0x1')][_0x526f('0xd')](_0x2cbfb4,0x0),_0x570bcd=_0x32f9be['model'][_0x526f('0x3')](_0x41caf0,_0x598460);_0x32f9be[_0x526f('0x1')][_0x526f('0x3d')](()=>{_0x5cc258['markBlockFormat'](_0x570bcd,{'commandName':_0x270247,'commandParams':[],'formatGroupId':'listType'});});};}function _0x41a0b8(_0x54fd80){const _0x558a63=_0x32f9be[_0x526f('0x1b')][_0x526f('0x2')]('bulletedList')[_0x526f('0x29')],_0x4d458b=_0x32f9be[_0x526f('0x1b')][_0x526f('0x2')](_0x526f('0x3f'))['value'];return _0x526f('0x3f')===_0x54fd80?_0x558a63:_0x4d458b;}_0x5cc258[_0x526f('0x39')](_0x526f('0x3f'),_0x16dff6(_0x526f('0x3f'))),_0x5cc258['enableCommand'](_0x526f('0x4a'),_0x16dff6(_0x526f('0x4a'))),_0x5cc258[_0x526f('0x39')](_0x526f('0x27'),_0x41d646(_0x526f('0x27'))),_0x5cc258['enableCommand'](_0x526f('0x7'),_0x41d646(_0x526f('0x7'))),_0x5cc258[_0x526f('0x39')](_0x526f('0x2d'),_0x3679cb(_0x526f('0x2d'))),_0x5cc258['enableCommand'](_0x526f('0x4c'),_0x3679cb(_0x526f('0x4c'))),_0x5cc258['_descriptionFactory'][_0x526f('0x4')](function(_0x2db083){const _0x249ba7=!_0x32f9be[_0x526f('0x1')][_0x526f('0x18')][_0x526f('0x36')](_0x2db083),_0x2e9f2d=_0x2db083['previousSibling'],_0x10ac1f=_0x2db083[_0x526f('0x42')],_0x3f941a=_0x2db083[_0x526f('0x1d')](_0x526f('0xf')),_0x298234=!_0x2e9f2d||_0x2e9f2d[_0x526f('0x1d')]('listItemId')!==_0x3f941a,_0x1bdeec=!_0x10ac1f||_0x10ac1f['getAttribute'](_0x526f('0xf'))!==_0x3f941a;return _0x249ba7&&Boolean(_0x3f941a)&&_0x298234&&_0x1bdeec;},_0x201854=>_0x32dd88(_0x1ed41e,'ELEMENT_LIST_ITEM',_0x201854)),_0x5cc258[_0x526f('0x3e')][_0x526f('0xe')](function(_0x5defba){const {data:_0x220099}=_0x5defba;if(!_0x220099)return;let _0x1971f0,_0x55271d,_0x169083,_0x2bcc4e;switch(_0x220099[_0x526f('0x12')]){case _0x526f('0x4a'):_0x169083=_0x220099[_0x526f('0x32')][0x0][_0x526f('0x17')],_0x2bcc4e=_0x41a0b8(_0x220099['commandName']),_0x1971f0=_0x169083?_0x526f('0x1a'):_0x526f('0x31'),_0x2bcc4e&&(_0x1971f0='*Change\x20to:*\x20%0'),_0x55271d={'type':'format','content':_0x32dd88(_0x1ed41e,_0x1971f0,_0x32dd88(_0x1ed41e,_0x526f('0x35')))};break;case _0x526f('0x3f'):_0x169083=_0x220099['commandParams'][0x0][_0x526f('0x17')],_0x2bcc4e=_0x41a0b8(_0x220099[_0x526f('0x12')]),_0x1971f0=_0x169083?'*Format:*\x20insert\x20into\x20%0':_0x526f('0x31'),_0x2bcc4e&&(_0x1971f0=_0x526f('0x49')),_0x55271d={'type':_0x526f('0x46'),'content':_0x32dd88(_0x1ed41e,_0x1971f0,_0x32dd88(_0x1ed41e,_0x526f('0x4e')))};break;case _0x526f('0x27'):_0x1971f0=_0x526f('0x9'),_0x55271d={'type':_0x526f('0x46'),'content':_0x32dd88(_0x1ed41e,_0x1971f0,_0x32dd88(_0x1ed41e,_0x526f('0x33')))};break;case'outdentList':_0x1971f0=function(_0xf6e142){const _0x45609c=_0xf6e142[_0x526f('0x47')]();let _0x5c93e0=_0x45609c['start'][_0x526f('0x2b')];for(;_0x5c93e0&&_0x45609c['containsItem'](_0x5c93e0);){if(_0x5c93e0[_0x526f('0x1d')]('listIndent')>0x0)return!0x1;_0x5c93e0=_0x5c93e0[_0x526f('0x42')];}return!0x0;}(_0x5defba)?_0x32dd88(_0x1ed41e,_0x526f('0x31'),_0x32dd88(_0x1ed41e,function(_0x599f36){const _0x2c444d=_0x599f36[_0x526f('0x47')]()['start']['nodeAfter'];return _0x526f('0x5')+_0x2c444d[_0x526f('0x1d')](_0x526f('0x0'))[_0x526f('0x2a')]()+_0x526f('0x26');}(_0x5defba))):_0x32dd88(_0x1ed41e,_0x526f('0x1f'),_0x32dd88(_0x1ed41e,_0x526f('0x33'))),_0x55271d={'type':_0x526f('0x46'),'content':_0x1971f0};break;case _0x526f('0x8'):case _0x526f('0x28'):!0x1===_0x220099['multipleBlocks']&&(_0x1971f0=_0x526f('0xa'),_0x55271d={'type':_0x526f('0x38'),'content':_0x32dd88(_0x1ed41e,_0x1971f0,_0x32dd88(_0x1ed41e,_0x526f('0x33')))});}return _0x55271d;}),_0x5cc258[_0x526f('0x22')][_0x526f('0x44')](_0x526f('0x40'),_0x526f('0x1e'),'accept',function(_0x2c015c,_0x596276){const _0x1b32c8=[];for(let _0x4c47d7 of _0x2c015c)_0x4c47d7[_0x526f('0x2c')][_0x526f('0x2b')]===_0x4c47d7[_0x526f('0x43')][_0x526f('0x34')]&&(_0x4c47d7=_0x32f9be['model'][_0x526f('0x3')](_0x32f9be[_0x526f('0x1')]['createPositionAt'](_0x4c47d7[_0x526f('0x2c')][_0x526f('0x2b')],0x0))),_0x1b32c8[_0x526f('0x13')](_0x4c47d7);_0x32f9be[_0x526f('0x1')][_0x526f('0x3d')](_0x796535=>{const _0x427515=_0x32f9be[_0x526f('0x1')]['document'][_0x526f('0x2e')],_0x47f25e=Array[_0x526f('0x45')](_0x427515[_0x526f('0x48')]())[_0x526f('0x10')](_0x23a5df=>_0x70cceb[_0x526f('0x6')](_0x23a5df));_0x796535[_0x526f('0x23')](_0x1b32c8),_0x32f9be[_0x526f('0x1b')][_0x526f('0x2')](_0x596276['commandName'])[_0x526f('0x20')](),_0x596276['commandParams'][_0x526f('0x13')]({'forceDefaultExecution':!0x0}),_0x32f9be['execute'](_0x596276[_0x526f('0x12')],..._0x596276['commandParams']),_0x796535[_0x526f('0x23')](_0x47f25e);for(const _0x1d8736 of _0x47f25e)_0x1d8736['detach']();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bb0=['*Format:*\x20set\x20start\x20index\x20to\x20%0','*Change\x20to:*\x20%0','handleListReversedCommand','plugins','listReversed','document','_getTranslationKeyForListStyle','markMultiRangeBlockFormat','listStyle','config','from','_getSuggestionBlocks','DocumentListPropertiesUtils','expandListBlocksToCompleteList','list.properties','handleDescriptions','replace','editor','getAttribute','styles','listStart','change','startIndex','type','handleListStartCommand','TrackChangesEditing','filter','push','_LIST_','selection','enableCommand','afterInit','model','bind','format','numbered','length','DocumentListUtils','registerDescriptionCallback','_getSuggestionBlocksForListStyle','reversed','get','has','locale','commandParams','getListTypeFromListStyleType','*Format:*\x20set\x20order\x20to\x20reversed','commandName','toUpperCase','DocumentListPropertiesEditing'];(function(_0x1bcac1,_0x1bb0fd){const _0x548798=function(_0x4c9e36){while(--_0x4c9e36){_0x1bcac1['push'](_0x1bcac1['shift']());}};_0x548798(++_0x1bb0fd);}(_0x1bb0,0xd8));const _0x5487=function(_0x1bcac1,_0x1bb0fd){_0x1bcac1=_0x1bcac1-0x0;let _0x548798=_0x1bb0[_0x1bcac1];return _0x548798;};import{Plugin as _0x20173c}from'ckeditor5/src/core';import{getTranslation as _0x539416}from'../utils/common-translations';export default class At extends _0x20173c{[_0x5487('0xf')](){if(!this[_0x5487('0x1')][_0x5487('0x25')][_0x5487('0x1a')](_0x5487('0x21')))return;const _0x2210f1=this[_0x5487('0x1')][_0x5487('0x2b')]['get'](_0x5487('0x30')),_0x4e8714=this[_0x5487('0x1')][_0x5487('0x25')][_0x5487('0x19')](_0x5487('0x9'));_0x2210f1[_0x5487('0x3')]&&_0x4e8714[_0x5487('0xe')](_0x5487('0x2a'),this['handleListStyleCommand']['bind'](this)),_0x2210f1[_0x5487('0x18')]&&_0x4e8714[_0x5487('0xe')](_0x5487('0x26'),this[_0x5487('0x24')][_0x5487('0x11')](this)),_0x2210f1['startIndex']&&_0x4e8714[_0x5487('0xe')]('listStart',this[_0x5487('0x8')][_0x5487('0x11')](this)),_0x4e8714['_descriptionFactory'][_0x5487('0x16')](this[_0x5487('0x31')][_0x5487('0x11')](this));}['handleListStyleCommand'](_0x486f79,_0x3c6cd4={}){const _0x250b51=this['editor'][_0x5487('0x25')]['get']('TrackChangesEditing'),_0x39b5d5=this[_0x5487('0x17')]();this[_0x5487('0x1')][_0x5487('0x10')][_0x5487('0x5')](()=>{_0x250b51[_0x5487('0x29')](_0x39b5d5,{'commandName':'listStyle','commandParams':[{'type':_0x3c6cd4[_0x5487('0x7')]}],'formatGroupId':'listStyle'});});}[_0x5487('0x24')](_0x22ce61,_0x17b19d={}){const _0x50e18e=this[_0x5487('0x1')][_0x5487('0x25')]['get'](_0x5487('0x9')),_0x3d897d=this[_0x5487('0x1')][_0x5487('0x25')]['get'](_0x5487('0x15')),_0x4d9004=this[_0x5487('0x2d')](_0xe4efcd=>_0x3d897d['isListItemBlock'](_0xe4efcd)&&_0x5487('0x13')===_0xe4efcd[_0x5487('0x2')]('listType'));null!==_0x4d9004&&this[_0x5487('0x1')][_0x5487('0x10')][_0x5487('0x5')](()=>{_0x50e18e[_0x5487('0x29')](_0x4d9004,{'commandName':_0x5487('0x26'),'commandParams':[{'reversed':_0x17b19d[_0x5487('0x18')]}],'formatGroupId':_0x5487('0x26')});});}['handleListStartCommand'](_0x1d6a97,_0x3d7b2e={}){const _0x173ca8=this[_0x5487('0x1')][_0x5487('0x25')][_0x5487('0x19')]('TrackChangesEditing'),_0x39cf61=this['editor'][_0x5487('0x25')][_0x5487('0x19')](_0x5487('0x15')),_0xdc7674=this[_0x5487('0x2d')](_0x55e094=>_0x39cf61['isListItemBlock'](_0x55e094)&&_0x5487('0x13')===_0x55e094[_0x5487('0x2')]('listType'));null!==_0xdc7674&&this['editor'][_0x5487('0x10')][_0x5487('0x5')](()=>{_0x173ca8['markMultiRangeBlockFormat'](_0xdc7674,{'commandName':_0x5487('0x4'),'commandParams':[{'startIndex':_0x3d7b2e[_0x5487('0x6')]}],'formatGroupId':'listStart'});});}[_0x5487('0x31')](_0x1c4da9){const _0x2b2485=this[_0x5487('0x1')][_0x5487('0x1b')],{data:_0x25caf3}=_0x1c4da9;if(!_0x25caf3)return;let _0x12412a,_0x1f5e67;switch(_0x25caf3[_0x5487('0x1f')]){case _0x5487('0x2a'):_0x12412a=_0x5487('0x23'),_0x1f5e67={'type':_0x5487('0x12'),'content':_0x539416(_0x2b2485,_0x12412a,_0x539416(_0x2b2485,this[_0x5487('0x28')](_0x25caf3[_0x5487('0x1c')][0x0][_0x5487('0x7')])))};break;case'listReversed':_0x12412a=_0x25caf3['commandParams'][0x0][_0x5487('0x18')]?_0x5487('0x1e'):'*Format:*\x20set\x20order\x20to\x20regular',_0x1f5e67={'type':'format','content':_0x539416(_0x2b2485,_0x12412a)};break;case _0x5487('0x4'):_0x12412a=_0x5487('0x22'),_0x1f5e67={'type':_0x5487('0x12'),'content':_0x539416(_0x2b2485,_0x12412a,_0x25caf3[_0x5487('0x1c')][0x0][_0x5487('0x6')])};}return _0x1f5e67;}[_0x5487('0x17')](){const _0xa118d0=this['editor']['plugins'][_0x5487('0x19')]('DocumentListUtils');let _0x3f7564=Array['from'](this[_0x5487('0x1')][_0x5487('0x10')][_0x5487('0x27')][_0x5487('0xd')]['getSelectedBlocks']());return _0x3f7564[_0x5487('0xb')](..._0xa118d0[_0x5487('0x2f')](_0x3f7564)),_0x3f7564=[...new Set(_0x3f7564)],_0x3f7564;}[_0x5487('0x2d')](_0x1544d0){const _0x30c464=this[_0x5487('0x1')][_0x5487('0x25')][_0x5487('0x19')](_0x5487('0x15'));let _0x30bf14=Array[_0x5487('0x2c')](this[_0x5487('0x1')][_0x5487('0x10')][_0x5487('0x27')][_0x5487('0xd')]['getSelectedBlocks']())[_0x5487('0xa')](_0x1544d0);if(!_0x30bf14[_0x5487('0x14')])return null;_0x30bf14=_0x30c464[_0x5487('0x2f')](_0x30bf14);const _0x3fdb52=[];for(const _0x4a64c2 of _0x30bf14)_0x30c464['isFirstBlockOfListItem'](_0x4a64c2)&&_0x3fdb52[_0x5487('0xb')](_0x4a64c2);return _0x3fdb52;}[_0x5487('0x28')](_0x315861){return'ELEMENT_'+this[_0x5487('0x1')][_0x5487('0x25')]['get'](_0x5487('0x2e'))[_0x5487('0x1d')](_0x315861)['toUpperCase']()+_0x5487('0xc')+_0x315861[_0x5487('0x20')]()[_0x5487('0x0')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b8e=['commands','parent','markInsertion','addMarker:suggestion:insertion','fire','enterBlock','plugins','end','downcastDispatcher','get','writer','showSuggestionHighlights','bind','setSelection','markerName','mapper','createRange','afterExecute','nextSibling','change','model','init','high','hasClass','selection','document','unbindElementFromMarkerName','editing','getFirstPosition','remove','TrackChangesEditing','enableCommand','markerNameToElements','removeMarker:suggestion:insertion','requires','getFirstRange'];(function(_0x3d06db,_0x5b8eca){const _0x2af6ee=function(_0x3bbe1f){while(--_0x3bbe1f){_0x3d06db['push'](_0x3d06db['shift']());}};_0x2af6ee(++_0x5b8eca);}(_0x5b8e,0x164));const _0x2af6=function(_0x3d06db,_0x5b8eca){_0x3d06db=_0x3d06db-0x0;let _0x2af6ee=_0x5b8e[_0x3d06db];return _0x2af6ee;};import{Plugin as _0x329a81}from'ckeditor5/src/core';import{Enter as _0x3bc600}from'ckeditor5/src/enter';import{LiveRange as _0xc577f7}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0xa8ef3}from'./utils';export default class q extends _0x329a81{static get[_0x2af6('0x2')](){return[_0x3bc600];}[_0x2af6('0x19')](){const _0x1884be=this['editor'],_0x12239a=_0x1884be[_0x2af6('0xa')][_0x2af6('0xd')](_0x2af6('0x22')),_0xbe5bfc=_0x1884be[_0x2af6('0x4')]['get']('enter');_0x12239a[_0x2af6('0x23')]('enter',()=>{_0x1884be[_0x2af6('0x18')][_0x2af6('0x17')](_0xd4ca56=>{const _0x5c85f2=_0x1884be[_0x2af6('0x18')][_0x2af6('0x1d')][_0x2af6('0x1c')],_0x29cc94=_0x5c85f2[_0x2af6('0x20')](),_0xca5c0=_0xc577f7['fromRange'](_0x5c85f2[_0x2af6('0x3')]());if(_0xbe5bfc[_0x2af6('0x9')](_0xd4ca56)){const _0x3418c3=_0x1884be[_0x2af6('0x18')]['createPositionAt'](_0x29cc94[_0x2af6('0x5')][_0x2af6('0x16')],0x0),_0x520536=_0xd4ca56[_0x2af6('0x14')](_0x29cc94,_0x3418c3);_0x12239a[_0x2af6('0x6')](_0x520536);}else _0xd4ca56[_0x2af6('0x11')](_0xd4ca56['createRange'](_0xca5c0[_0x2af6('0xb')]));_0xca5c0['detach'](),_0xbe5bfc[_0x2af6('0x8')](_0x2af6('0x15'),{'writer':_0xd4ca56});});}),_0x1884be['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_0xa8ef3(_0x1884be,'split'),{'priority':_0x2af6('0x1a')}),_0x1884be[_0x2af6('0x1f')][_0x2af6('0xc')]['on'](_0x2af6('0x1'),(_0x239c79,_0x49f19b,_0x457109)=>{const _0x3a58fe=_0x457109[_0x2af6('0x13')][_0x2af6('0x0')](_0x49f19b['markerName']);if(_0x3a58fe)for(const _0x45c656 of _0x3a58fe)_0x45c656[_0x2af6('0x1b')]('ck-suggestion-marker-split')&&(_0x457109[_0x2af6('0x13')][_0x2af6('0x1e')](_0x45c656,_0x49f19b[_0x2af6('0x12')]),_0x457109[_0x2af6('0xe')][_0x2af6('0x21')](_0x45c656));},{'priority':_0x2af6('0x1a')}),_0x1884be['data'][_0x2af6('0xc')]['on'](_0x2af6('0x7'),(_0x1b1abf,_0x56956b,_0x5d4256)=>{_0x5d4256['options'][_0x2af6('0xf')]&&_0xa8ef3(_0x1884be,'split',{'showActiveMarker':!0x1})[_0x2af6('0x10')](this)(_0x1b1abf,_0x56956b,_0x5d4256);},{'priority':_0x2af6('0x1a')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2924=['getMarkersGroup','model','get','createPositionAt','has','markers','filter','handleFindCommand','FindAndReplaceEditing','end','bind','createRange','enableCommand','string','findPrevious','editor','replace','_isInDeletionRange','getIntersection','replaceAll','item'];(function(_0x5a9c1d,_0x29240b){const _0x5caedb=function(_0x24a3e7){while(--_0x24a3e7){_0x5a9c1d['push'](_0x5a9c1d['shift']());}};_0x5caedb(++_0x29240b);}(_0x2924,0x1e0));const _0x5cae=function(_0x5a9c1d,_0x29240b){_0x5a9c1d=_0x5a9c1d-0x0;let _0x5caedb=_0x2924[_0x5a9c1d];return _0x5caedb;};import{Plugin as _0x2838d8}from'ckeditor5/src/core';export default class z extends _0x2838d8{['afterInit'](){if(!this[_0x5cae('0x12')]['plugins'][_0x5cae('0x7')](_0x5cae('0xb')))return;const _0x2d586f=this[_0x5cae('0x12')]['plugins'][_0x5cae('0x5')]('TrackChangesEditing');_0x2d586f[_0x5cae('0xf')]('find',this[_0x5cae('0xa')][_0x5cae('0xd')](this)),_0x2d586f[_0x5cae('0xf')]('findNext'),_0x2d586f[_0x5cae('0xf')](_0x5cae('0x11')),_0x2d586f[_0x5cae('0xf')](_0x5cae('0x13')),_0x2d586f['enableCommand'](_0x5cae('0x1'));}[_0x5cae('0xa')](_0x52e3d6,_0x49bdbb,_0x137671={}){const _0x302112=this['editor']['plugins'][_0x5cae('0x5')]('FindAndReplaceUtils');void 0x0!==_0x137671&&_0x52e3d6(_0xa9e78f=>(_0x5cae('0x10')==typeof _0x49bdbb?_0x302112['findByTextCallback'](_0x49bdbb,_0x137671):_0x49bdbb)(_0xa9e78f)[_0x5cae('0x9')](_0x572ba2=>!0x1===this[_0x5cae('0x14')](_0x572ba2,_0xa9e78f[_0x5cae('0x2')])),_0x137671);}[_0x5cae('0x14')](_0x136da6,_0x1e27f5){const _0x8b6a2b=this[_0x5cae('0x12')][_0x5cae('0x4')][_0x5cae('0xe')](this[_0x5cae('0x12')][_0x5cae('0x4')][_0x5cae('0x6')](_0x1e27f5,_0x136da6['start']),this[_0x5cae('0x12')][_0x5cae('0x4')][_0x5cae('0x6')](_0x1e27f5,_0x136da6[_0x5cae('0xc')]));for(const _0x168d3c of this[_0x5cae('0x12')][_0x5cae('0x4')][_0x5cae('0x8')][_0x5cae('0x3')]('suggestion:deletion'))if(null!==_0x8b6a2b[_0x5cae('0x0')](_0x168d3c['getRange']()))return!0x0;return!0x1;}}
|