@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230808.0 → 0.0.0-nightly-20230809.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230809.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-20230809.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230809.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 _0x48cd=['TrackChangesEditing','canEditAt','editor','_isEnabledBasedOnSelection','acceptSuggestion','get','model','refresh','track-changes-accept-suggestion-not-found','_suggestions'];(function(_0xeac4e3,_0x48cdcf){const _0x23197a=function(_0xa45005){while(--_0xa45005){_0xeac4e3['push'](_0xeac4e3['shift']());}};_0x23197a(++_0x48cdcf);}(_0x48cd,0xa1));const _0x2319=function(_0xeac4e3,_0x48cdcf){_0xeac4e3=_0xeac4e3-0x0;let _0x23197a=_0x48cd[_0xeac4e3];return _0x23197a;};import{Command as _0x33c7cb}from'ckeditor5/src/core';import{CKEditorError as _0x42a4b3}from'ckeditor5/src/utils';export default class M extends _0x33c7cb{constructor(_0x514227,_0x30f6cf){super(_0x514227),this[_0x2319('0x8')]=_0x30f6cf,this[_0x2319('0x6')](),this[_0x2319('0x2')]=!0x1;}[_0x2319('0x6')](){this['isEnabled']=!0x0;}['execute'](_0x1323f0){const _0x41964e=this['_suggestions'][_0x2319('0x4')](_0x1323f0);if(!_0x41964e)throw new _0x42a4b3(_0x2319('0x7'),this);const _0x1dc319=_0x41964e['getRanges']();this['editor'][_0x2319('0x5')][_0x2319('0x0')](_0x1dc319)&&this[_0x2319('0x1')]['plugins']['get'](_0x2319('0x9'))[_0x2319('0x3')](_0x41964e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dc1=['canEditAt','execute','model','_isEnabledBasedOnSelection','isEnabled','track-changes-discard-suggestion-not-found','get','refresh','editor','plugins','TrackChangesEditing'];(function(_0xe3c1d,_0x1dc1e5){const _0xdd7c03=function(_0x46de06){while(--_0x46de06){_0xe3c1d['push'](_0xe3c1d['shift']());}};_0xdd7c03(++_0x1dc1e5);}(_0x1dc1,0x67));const _0xdd7c=function(_0xe3c1d,_0x1dc1e5){_0xe3c1d=_0xe3c1d-0x0;let _0xdd7c03=_0x1dc1[_0xe3c1d];return _0xdd7c03;};import{Command as _0x4cf7c5}from'ckeditor5/src/core';import{CKEditorError as _0x128a77}from'ckeditor5/src/utils';export default class $ extends _0x4cf7c5{constructor(_0x8dcea0,_0x903e5e){super(_0x8dcea0),this['_suggestions']=_0x903e5e,this[_0xdd7c('0x3')](),this[_0xdd7c('0xa')]=!0x1;}[_0xdd7c('0x3')](){this[_0xdd7c('0x0')]=!0x0;}[_0xdd7c('0x8')](_0x11695f){const _0x456b4f=this['_suggestions'][_0xdd7c('0x2')](_0x11695f);if(!_0x456b4f)throw new _0x128a77(_0xdd7c('0x1'),this);const _0x335412=_0x456b4f['getRanges']();this[_0xdd7c('0x4')][_0xdd7c('0x9')][_0xdd7c('0x7')](_0x335412)&&this[_0xdd7c('0x4')][_0xdd7c('0x5')][_0xdd7c('0x2')](_0xdd7c('0x6'))['discardSuggestion'](_0x456b4f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42fe=['editor','from','model','isEnabled','_command','_suggestions','values','refresh','some'];(function(_0x3b0946,_0x42fec5){const _0x50ff19=function(_0x4f749b){while(--_0x4f749b){_0x3b0946['push'](_0x3b0946['shift']());}};_0x50ff19(++_0x42fec5);}(_0x42fe,0x15c));const _0x50ff=function(_0x3b0946,_0x42fec5){_0x3b0946=_0x3b0946-0x0;let _0x50ff19=_0x42fe[_0x3b0946];return _0x50ff19;};import{Command as _0x32ba91}from'ckeditor5/src/core';import{sortSuggestions as _0x5ca4ff,executeCommandForSuggestions as _0x294d88}from'../utils/utils';export default class N extends _0x32ba91{constructor(_0x3b4601,_0x10da6e,_0x22aa96){super(_0x3b4601),this[_0x50ff('0x7')]=_0x10da6e,this[_0x50ff('0x8')]=_0x22aa96,this[_0x50ff('0x1')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x50ff('0x1')](){const _0x3b8cdd=Array[_0x50ff('0x4')](this['_suggestions'][_0x50ff('0x0')]())[_0x50ff('0x2')](_0x2a66a8=>_0x2a66a8['isInContent']);this[_0x50ff('0x6')]=this[_0x50ff('0x7')][_0x50ff('0x6')]&&_0x3b8cdd;}['execute'](){const _0x46f57c=_0x5ca4ff(Array[_0x50ff('0x4')](this[_0x50ff('0x8')][_0x50ff('0x0')]()));for(const _0x43938d of _0x46f57c){const _0x57e58f=_0x43938d['getRanges']();if(!this['editor'][_0x50ff('0x5')]['canEditAt'](_0x57e58f))return;}_0x294d88(this[_0x50ff('0x3')][_0x50ff('0x5')],this['_command'],_0x46f57c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27bc=['_suggestions','refresh','execute','model','from','isEnabled','canEditAt','document','getRanges','editor','values','selection','_command','_selectedSuggestions'];(function(_0x5e9ee2,_0x27bc21){const _0x5d6c65=function(_0x2de84f){while(--_0x2de84f){_0x5e9ee2['push'](_0x5e9ee2['shift']());}};_0x5d6c65(++_0x27bc21);}(_0x27bc,0x7c));const _0x5d6c=function(_0x5e9ee2,_0x27bc21){_0x5e9ee2=_0x5e9ee2-0x0;let _0x5d6c65=_0x27bc[_0x5e9ee2];return _0x5d6c65;};import{Command as _0x3b3a88}from'ckeditor5/src/core';import{sortSuggestions as _0x30e455,getSelectedSuggestions as _0xdb4dea,executeCommandForSuggestions as _0x43b0e9}from'../utils/utils';export default class R extends _0x3b3a88{constructor(_0x481a9d,_0x47b05f,_0x1cd256){super(_0x481a9d),this[_0x5d6c('0x0')]=_0x47b05f,this[_0x5d6c('0x2')]=_0x1cd256,this[_0x5d6c('0x1')]=new Set(),this[_0x5d6c('0x3')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x5d6c('0x3')](){const _0x1acc71=this[_0x5d6c('0xb')][_0x5d6c('0x5')][_0x5d6c('0x9')][_0x5d6c('0xd')],_0x2d7ff2=Array[_0x5d6c('0x6')](this[_0x5d6c('0x2')][_0x5d6c('0xc')]());this[_0x5d6c('0x1')]=_0xdb4dea(_0x1acc71,_0x2d7ff2),this[_0x5d6c('0x7')]=this[_0x5d6c('0x0')][_0x5d6c('0x7')]&&!!this[_0x5d6c('0x1')]['size'];}[_0x5d6c('0x4')](){const _0xd87fcf=_0x30e455(Array[_0x5d6c('0x6')](this[_0x5d6c('0x1')]));for(const _0x26e6c7 of _0xd87fcf){const _0x17d664=_0x26e6c7[_0x5d6c('0xa')]();if(!this['editor'][_0x5d6c('0x5')][_0x5d6c('0x8')](_0x17d664))return;}_0x43b0e9(this[_0x5d6c('0xb')][_0x5d6c('0x5')],this['_command'],_0xd87fcf);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x155a=['_disableUnsupportedCommands','execute','refresh','forceDisabled','_enabledCommands','_isEnabledBasedOnSelection','isEnabled','commands','editor','clearForceDisabled','affectsData','_enableCommands','value','TrackChangesCommand','has'];(function(_0x821af2,_0x155a21){const _0x44f2ac=function(_0x3f849b){while(--_0x3f849b){_0x821af2['push'](_0x821af2['shift']());}};_0x44f2ac(++_0x155a21);}(_0x155a,0x86));const _0x44f2=function(_0x821af2,_0x155a21){_0x821af2=_0x821af2-0x0;let _0x44f2ac=_0x155a[_0x821af2];return _0x44f2ac;};import{Command as _0x4486a8}from'ckeditor5/src/core';export default class _ extends _0x4486a8{constructor(_0x209c3c,_0x380768){super(_0x209c3c),this['_enabledCommands']=_0x380768,this[_0x44f2('0xd')]=!0x1,this[_0x44f2('0x3')](),this[_0x44f2('0x6')]=!0x1;}[_0x44f2('0x3')](){this[_0x44f2('0x7')]=!0x0;}[_0x44f2('0x2')](){this[_0x44f2('0xd')]=!this[_0x44f2('0xd')],this[_0x44f2('0xd')]?this[_0x44f2('0x1')]():this['_enableCommands']();}[_0x44f2('0x1')](){for(const _0x22bf44 of this[_0x44f2('0x9')][_0x44f2('0x8')][_0x44f2('0x8')]())_0x22bf44[_0x44f2('0xb')]&&!this[_0x44f2('0x5')][_0x44f2('0x0')](_0x22bf44)&&_0x22bf44[_0x44f2('0x4')](_0x44f2('0xe'));}[_0x44f2('0xc')](){for(const _0xc03b1c of this[_0x44f2('0x9')]['commands']['commands']())_0xc03b1c[_0x44f2('0xb')]&&!this['_enabledCommands'][_0x44f2('0x0')](_0xc03b1c)&&_0xc03b1c[_0x44f2('0xa')](_0x44f2('0xe'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f84=['change','right','model','editor','contentLanguageDirection','_descriptionFactory','getSelectedBlocks','center','FORMAT_ALIGN_TO_RIGHT','AlignmentEditing','locale','value','left','schema','checkAttribute','FORMAT_JUSTIFY_TEXT','alignment','filter','document','selection','FORMAT_ALIGN_TO_LEFT','enableCommand','get','ltr','afterInit','format','justify','commandName','*Format:*\x20%0'];(function(_0x4001c4,_0x3f84e2){const _0x45222b=function(_0x19fee2){while(--_0x19fee2){_0x4001c4['push'](_0x4001c4['shift']());}};_0x45222b(++_0x3f84e2);}(_0x3f84,0x171));const _0x4522=function(_0x4001c4,_0x3f84e2){_0x4001c4=_0x4001c4-0x0;let _0x45222b=_0x3f84[_0x4001c4];return _0x45222b;};import{Plugin as _0x2aea69}from'ckeditor5/src/core';import{getTranslation as _0x18f7a1}from'../utils/common-translations';export default class x extends _0x2aea69{[_0x4522('0x3')](){const _0x597613=this[_0x4522('0xb')],_0x4f2251=_0x597613[_0x4522('0x12')];if(!_0x597613['plugins']['has'](_0x4522('0x11')))return;const _0x3148ee=_0x597613['plugins'][_0x4522('0x1')]('TrackChangesEditing');_0x3148ee[_0x4522('0x0')](_0x4522('0x18'),(_0x40d612,_0x13c42e={})=>{let _0x15ab90=_0x13c42e['value'];_0x13c42e[_0x4522('0x13')]||(_0x15ab90=_0x4522('0x2')===_0x597613[_0x4522('0x12')][_0x4522('0xc')]?'left':_0x4522('0x9'));const _0x37a03e=Array['from'](this[_0x4522('0xb')][_0x4522('0xa')][_0x4522('0x1a')][_0x4522('0x1b')][_0x4522('0xe')]())[_0x4522('0x19')](_0x5d5c2b=>function(_0x6a6cf4,_0x1312ee,_0x4c270e){const _0x476afa=_0x6a6cf4['getAttribute'](_0x4522('0x18'))||null;return _0x1312ee[_0x4522('0x16')](_0x6a6cf4,_0x4522('0x18'))&&_0x4c270e!=_0x476afa;}(_0x5d5c2b,this[_0x4522('0xb')]['model'][_0x4522('0x15')],_0x15ab90));_0x597613[_0x4522('0xa')][_0x4522('0x8')](()=>{for(const _0x194aee of _0x37a03e)_0x3148ee['markBlockFormat'](_0x194aee,{'commandName':_0x4522('0x18'),'commandParams':[{'value':_0x15ab90}]});});}),_0x3148ee[_0x4522('0xd')]['registerDescriptionCallback'](_0x58568d=>{const {data:_0x43e6a7}=_0x58568d;if(_0x43e6a7&&_0x4522('0x18')==_0x43e6a7[_0x4522('0x6')]){const _0x35b5db=_0x43e6a7['commandParams'][0x0][_0x4522('0x13')];return{'type':_0x4522('0x4'),'content':_0x18f7a1(_0x4f2251,_0x4522('0x7'),function(_0x39acaf){switch(_0x39acaf){case _0x4522('0x14'):return _0x18f7a1(_0x4f2251,_0x4522('0x1c'));case _0x4522('0x9'):return _0x18f7a1(_0x4f2251,_0x4522('0x10'));case _0x4522('0xf'):return _0x18f7a1(_0x4f2251,'FORMAT_ALIGN_TO_CENTER');case _0x4522('0x5'):return _0x18f7a1(_0x4f2251,_0x4522('0x17'));}}(_0x35b5db))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x230b=['has','subscript','plugins','enableCommand','FORMAT_ITALIC','forceValue','FORMAT_BOLD','italic','code','editor','underline','*Remove\x20format:*\x20%0','UnderlineEditing','FORMAT_STRIKETHROUGH','FORMAT_UNDERLINE','format','ItalicEditing','selection','StrikethroughEditing','SuperscriptEditing','bold','strikethrough','get','superscript','_descriptionFactory','model','locale','document','markInlineFormat','CodeEditing','commands','value','from','afterInit','registerDescriptionCallback','getRanges','FORMAT_CODE','isCollapsed'];(function(_0x3f1687,_0x230b7c){const _0x94577c=function(_0x18ad8b){while(--_0x18ad8b){_0x3f1687['push'](_0x3f1687['shift']());}};_0x94577c(++_0x230b7c);}(_0x230b,0x16d));const _0x9457=function(_0x3f1687,_0x230b7c){_0x3f1687=_0x3f1687-0x0;let _0x94577c=_0x230b[_0x3f1687];return _0x94577c;};import{Plugin as _0x69fc89}from'ckeditor5/src/core';import{getTranslation as _0x4192ea}from'../utils/common-translations';import{getRangesWithAttribute as _0x4269df}from'./utils';const Kt=['BoldEditing',_0x9457('0x1f'),_0x9457('0x1b'),_0x9457('0x6'),_0x9457('0x21'),'SubscriptEditing',_0x9457('0x22')];export default class U extends _0x69fc89{[_0x9457('0xa')](){const _0x51e1ca=this[_0x9457('0x18')],_0x1ee116=_0x51e1ca[_0x9457('0x2')],_0x328c00=_0x51e1ca[_0x9457('0x11')]['get']('TrackChangesEditing'),_0x5a6d33=_0x51e1ca[_0x9457('0x3')];for(const _0x1e6a7e of Kt){if(!_0x51e1ca[_0x9457('0x11')][_0x9457('0xf')](_0x1e6a7e))continue;const _0x2dd73e=_0x1e6a7e['slice'](0x0,-0x7)['toLowerCase'](),_0x29e58a=_0x51e1ca[_0x9457('0x7')][_0x9457('0x25')](_0x2dd73e);_0x328c00[_0x9457('0x12')](_0x2dd73e,(_0x33b2eb,_0x23ac1f={})=>{const _0x1c024b=_0x1ee116[_0x9457('0x4')][_0x9457('0x20')];if(_0x1c024b[_0x9457('0xe')])return void _0x33b2eb(_0x23ac1f);const _0xb2d046=void 0x0!==_0x23ac1f[_0x9457('0x14')]?_0x23ac1f[_0x9457('0x14')]:!_0x29e58a[_0x9457('0x8')];_0x1ee116['change'](()=>{const _0x5a30c6=Array[_0x9457('0x9')](_0x1c024b[_0x9457('0xc')]());for(const _0xe5c8e of _0x5a30c6){const _0x1e95e7=_0xb2d046?[_0xe5c8e]:_0x4269df(_0x2dd73e,_0xe5c8e,_0x1ee116);for(const _0x7034c0 of _0x1e95e7)_0x328c00[_0x9457('0x5')](_0x7034c0,{'commandName':_0x2dd73e,'commandParams':[{'forceValue':_0xb2d046}]});}});});}function _0x1b0520(_0x1a5b57,_0x29d12a){_0x328c00[_0x9457('0x1')][_0x9457('0xb')](_0x19a678=>{const {data:_0x79d21f}=_0x19a678;if(_0x79d21f&&_0x79d21f['commandName']===_0x1a5b57)return _0x79d21f['commandParams'][0x0][_0x9457('0x14')]?{'type':_0x9457('0x1e'),'content':_0x4192ea(_0x5a6d33,'*Format:*\x20%0',_0x29d12a)}:{'type':'format','content':_0x4192ea(_0x5a6d33,_0x9457('0x1a'),_0x29d12a)};});}_0x1b0520(_0x9457('0x23'),_0x4192ea(_0x5a6d33,_0x9457('0x15'))),_0x1b0520(_0x9457('0x16'),_0x4192ea(_0x5a6d33,_0x9457('0x13'))),_0x1b0520(_0x9457('0x19'),_0x4192ea(_0x5a6d33,_0x9457('0x1d'))),_0x1b0520(_0x9457('0x17'),_0x4192ea(_0x5a6d33,_0x9457('0xd'))),_0x1b0520(_0x9457('0x24'),_0x4192ea(_0x5a6d33,_0x9457('0x1c'))),_0x1b0520(_0x9457('0x10'),_0x4192ea(_0x5a6d33,'FORMAT_SUBSCRIPT')),_0x1b0520(_0x9457('0x0'),_0x4192ea(_0x5a6d33,'FORMAT_SUPERSCRIPT'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c2b=['getSelectedBlocks','parent','model','$root','blockQuote','forceValue','document','filter','format','enableCommand','name','selection','has','locale','commands','get','from','plugins','change','editor','commandName','checkChild','_descriptionFactory','TrackChangesEditing','markBlockFormat'];(function(_0x169b93,_0x2c2b7f){const _0x9879e6=function(_0xae3832){while(--_0xae3832){_0x169b93['push'](_0x169b93['shift']());}};_0x9879e6(++_0x2c2b7f);}(_0x2c2b,0xc3));const _0x9879=function(_0x169b93,_0x2c2b7f){_0x169b93=_0x169b93-0x0;let _0x9879e6=_0x2c2b[_0x169b93];return _0x9879e6;};import{Plugin as _0x317a66}from'ckeditor5/src/core';import{getTranslation as _0x23d8f2}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x1a0c38}from'../utils/utils';export default class j extends _0x317a66{['afterInit'](){const _0x30eb85=this['editor'],_0xad27bb=_0x30eb85[_0x9879('0x12')];if(!_0x30eb85[_0x9879('0x16')][_0x9879('0x11')]('BlockQuoteEditing'))return;const _0x1bef5f=_0x30eb85['plugins'][_0x9879('0x14')](_0x9879('0x3')),_0x62b90=this['editor'][_0x9879('0x13')][_0x9879('0x14')](_0x9879('0x9'));_0x1bef5f[_0x9879('0xe')]('blockQuote',(_0x939715,_0x1ab80f={})=>{const _0x3e2567=this['editor']['model'][_0x9879('0xb')][_0x9879('0x10')],_0xf4d578=_0x1ab80f&&void 0x0!==_0x1ab80f['forceValue']?_0x1ab80f[_0x9879('0xa')]:!_0x62b90['value'];let _0x48ee75=[];if(_0xf4d578){const _0x5f3937=Array[_0x9879('0x15')](_0x3e2567['getSelectedBlocks']())[_0x9879('0xc')](_0xc02cf4=>Xt(_0xc02cf4)||function(_0x4b41b7,_0x20eeff){const _0x34f919=_0x20eeff[_0x9879('0x1')](_0x4b41b7[_0x9879('0x6')],_0x9879('0x9')),_0x581cbb=_0x20eeff[_0x9879('0x1')]([_0x9879('0x8'),_0x9879('0x9')],_0x4b41b7);return _0x34f919&&_0x581cbb;}(_0xc02cf4,this[_0x9879('0x18')][_0x9879('0x7')]['schema']));_0x48ee75=_0x1a0c38(_0x5f3937,_0x30eb85[_0x9879('0x7')]);}else{const _0x52045e=Array['from'](_0x3e2567[_0x9879('0x5')]())['filter'](_0x371351=>Xt(_0x371351));_0x48ee75=_0x1a0c38(_0x52045e,_0x30eb85['model']);}_0x30eb85[_0x9879('0x7')][_0x9879('0x17')](()=>{for(const _0x24e492 of _0x48ee75)_0x1bef5f[_0x9879('0x4')](_0x24e492,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xf4d578}]});});}),_0x1bef5f[_0x9879('0x2')]['registerDescriptionCallback'](_0x36d0c4=>{const {data:_0x2bcf44}=_0x36d0c4;if(_0x2bcf44&&'blockQuote'==_0x2bcf44[_0x9879('0x0')]){const _0x19f7ea=_0x23d8f2(_0xad27bb,'ELEMENT_BLOCK_QUOTE');return _0x2bcf44['commandParams'][0x0][_0x9879('0xa')]?{'type':_0x9879('0xd'),'content':_0x23d8f2(_0xad27bb,'*Format:*\x20%0',_0x19f7ea)}:{'type':_0x9879('0xd'),'content':_0x23d8f2(_0xad27bb,'*Remove\x20format:*\x20%0',_0x19f7ea)};}});}}function Xt(_0x4980ea){return _0x9879('0x9')==_0x4980ea[_0x9879('0x6')][_0x9879('0xf')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcd68=['commands','afterInit','ckbox','plugins','TrackChangesEditing','enableCommand','get','editor'];(function(_0x1da04c,_0xcd68f0){const _0x5f5b87=function(_0x4bf623){while(--_0x4bf623){_0x1da04c['push'](_0x1da04c['shift']());}};_0x5f5b87(++_0xcd68f0);}(_0xcd68,0xe0));const _0x5f5b=function(_0x1da04c,_0xcd68f0){_0x1da04c=_0x1da04c-0x0;let _0x5f5b87=_0xcd68[_0x1da04c];return _0x5f5b87;};import{Plugin as _0x227da9}from'ckeditor5/src/core';export default class E extends _0x227da9{[_0x5f5b('0x1')](){const _0x2015f3=this[_0x5f5b('0x7')];_0x2015f3[_0x5f5b('0x0')][_0x5f5b('0x6')](_0x5f5b('0x2'))&&_0x2015f3[_0x5f5b('0x3')]['get'](_0x5f5b('0x4'))[_0x5f5b('0x5')](_0x5f5b('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55c8=['get','schema','change','from','config','registerDescriptionCallback','format','locale','commands','filter','blockName','ELEMENT_CODE_BLOCK','enableCommand','TrackChangesEditing','name','formatBlock','getSelectedBlocks','value','has','CodeBlock','outdentCodeBlock','commandParams','commandName','language','registerElementLabel','plugins','forceValue','isLimit','languages','afterInit','markBlockFormat','model','_descriptionFactory','editor','*Format:*\x20%0','parent','checkChild','codeBlock','document'];(function(_0x38baaa,_0x55c8e6){const _0x294ce1=function(_0x5b6eea){while(--_0x5b6eea){_0x38baaa['push'](_0x38baaa['shift']());}};_0x294ce1(++_0x55c8e6);}(_0x55c8,0x152));const _0x294c=function(_0x38baaa,_0x55c8e6){_0x38baaa=_0x38baaa-0x0;let _0x294ce1=_0x55c8[_0x38baaa];return _0x294ce1;};import{Plugin as _0x277e96}from'ckeditor5/src/core';import{getTranslation as _0x37c988}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x411d77}from'../utils/utils';export default class O extends _0x277e96{[_0x294c('0x3')](){const _0x488c2f=this[_0x294c('0x7')];if(!_0x488c2f['plugins'][_0x294c('0x1f')](_0x294c('0x20')))return;const _0x1efb96=_0x488c2f[_0x294c('0x26')][_0x294c('0xd')](_0x294c('0x1a')),_0x3d1966=_0x488c2f[_0x294c('0x14')],_0x1978ce=_0x488c2f[_0x294c('0x11')]['get'](_0x294c('0xb'))[_0x294c('0x2')],_0x487a57=_0x488c2f[_0x294c('0x15')][_0x294c('0xd')](_0x294c('0xb'));_0x1efb96[_0x294c('0x19')]('indentCodeBlock'),_0x1efb96['enableCommand'](_0x294c('0x21')),_0x1efb96[_0x294c('0x19')](_0x294c('0xb'),(_0x4d1d,_0x3c3c04={})=>{const _0x4edb10=_0x488c2f['model'],_0x4b86d3=_0x488c2f[_0x294c('0x5')][_0x294c('0xc')]['selection'],_0x50150d=_0x3c3c04&&void 0x0!==_0x3c3c04[_0x294c('0x0')]?_0x3c3c04['forceValue']:!_0x487a57[_0x294c('0x1e')];let _0x3c248f;_0x3c3c04[_0x294c('0x24')]||(_0x3c3c04['language']=_0x1978ce[0x0][_0x294c('0x24')]),_0x3c248f=_0x50150d?Array[_0x294c('0x10')](_0x4b86d3[_0x294c('0x1d')]())[_0x294c('0x16')](_0x48122c=>oo(_0x48122c)||function(_0x2b4104,_0x88bc86){if(_0x2b4104['is']('rootElement')||_0x88bc86[_0x294c('0x1')](_0x2b4104))return!0x1;return _0x88bc86[_0x294c('0xa')](_0x2b4104[_0x294c('0x9')],_0x294c('0xb'));}(_0x48122c,_0x4edb10[_0x294c('0xe')])):Array[_0x294c('0x10')](_0x4b86d3['getSelectedBlocks']())['filter'](_0x2699f8=>oo(_0x2699f8));const _0x546b8b=_0x411d77(_0x3c248f,_0x4edb10);_0x4edb10[_0x294c('0xf')](()=>{for(const _0x215607 of _0x546b8b)_0x1efb96[_0x294c('0x4')](_0x215607,{'commandName':'codeBlock','commandParams':[{..._0x3c3c04,'forceValue':_0x50150d}],'formatGroupId':_0x294c('0x17')});});}),(_0x1efb96[_0x294c('0x6')][_0x294c('0x25')](_0x294c('0xb'),_0x210868=>_0x37c988(_0x3d1966,_0x294c('0x18'),_0x210868)),_0x1efb96[_0x294c('0x6')][_0x294c('0x12')](_0x2d565f=>{const _0x10d998=_0x3d1966['t'],{type:_0x58fed7,data:_0x2da373}=_0x2d565f;if(_0x294c('0x1c')==_0x58fed7&&_0x2da373&&_0x294c('0xb')==_0x2da373[_0x294c('0x23')]){const _0xb872ad=_0x2da373['commandParams'][0x0][_0x294c('0x24')],_0x50c372=_0x10d998(_0x1978ce['find'](_0x2e0d85=>_0x2e0d85[_0x294c('0x24')]===_0xb872ad)['label']);return _0x2da373[_0x294c('0x22')][0x0][_0x294c('0x0')]?{'type':'format','content':_0x37c988(_0x3d1966,_0x294c('0x8'),_0x37c988(_0x3d1966,_0x294c('0x18'),0x1)+'\x20('+_0x50c372+')')}:{'type':_0x294c('0x13'),'content':_0x37c988(_0x3d1966,'*Remove\x20format:*\x20%0',_0x37c988(_0x3d1966,_0x294c('0x18'),0x1))};}}));}}function oo(_0x4dcbd9){return _0x294c('0xb')==_0x4dcbd9[_0x294c('0x1b')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56ae=['has','get','enableCommand','editor','TrackChangesEditing','afterInit','CommentsEditing','plugins','addCommentThread'];(function(_0x170fbf,_0x56ae16){const _0x14a921=function(_0x1379e8){while(--_0x1379e8){_0x170fbf['push'](_0x170fbf['shift']());}};_0x14a921(++_0x56ae16);}(_0x56ae,0xc4));const _0x14a9=function(_0x170fbf,_0x56ae16){_0x170fbf=_0x170fbf-0x0;let _0x14a921=_0x56ae[_0x170fbf];return _0x14a921;};import{Plugin as _0x3f1a3a}from'ckeditor5/src/core';export default class F extends _0x3f1a3a{[_0x14a9('0x7')](){const _0x537f26=this[_0x14a9('0x5')];if(!_0x537f26[_0x14a9('0x0')][_0x14a9('0x2')](_0x14a9('0x8')))return;_0x537f26[_0x14a9('0x0')][_0x14a9('0x3')](_0x14a9('0x6'))[_0x14a9('0x4')](_0x14a9('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b93=['fromRange','detach','remove','uiElement','rootName','init','markerNameToElements','buffer','markerName','addMarker:suggestion:deletion','delete','TrackChangesEditing','mapper','document','editor','root','start','requires','createRange','$graveyard','downcastDispatcher','writer','lock','model','selection','high','unbindElementFromMarkerName','deleteForward','plugins','unit','get','end','createSelection','showSuggestionHighlights','modifySelection','isCollapsed','editing','commands','data','removeMarker:suggestion:deletion','batch','bind','merge','enableCommand','options'];(function(_0x12ab78,_0x3b93d2){const _0x1ff0f3=function(_0x505d1a){while(--_0x505d1a){_0x12ab78['push'](_0x12ab78['shift']());}};_0x1ff0f3(++_0x3b93d2);}(_0x3b93,0xb2));const _0x1ff0=function(_0x12ab78,_0x3b93d2){_0x12ab78=_0x12ab78-0x0;let _0x1ff0f3=_0x3b93[_0x12ab78];return _0x1ff0f3;};import{Plugin as _0x2c11c2}from'ckeditor5/src/core';import{LiveRange as _0xad9eea}from'ckeditor5/src/engine';import{Delete as _0x1828c5}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x8066a6}from'./utils';export default class G extends _0x2c11c2{static get[_0x1ff0('0x13')](){return[_0x1828c5];}[_0x1ff0('0x7')](){const _0x57fec2=this[_0x1ff0('0x10')],_0x55792f=_0x57fec2[_0x1ff0('0x1e')]['get'](_0x1ff0('0xd'));_0x55792f[_0x1ff0('0x0')](_0x1ff0('0xc'));const _0x4af670=_0x57fec2[_0x1ff0('0x27')][_0x1ff0('0x20')]('deleteForward');_0x55792f[_0x1ff0('0x0')](_0x1ff0('0x1d'),(_0x1b82d1,_0x264a7f={})=>{const _0x300cac=_0x57fec2[_0x1ff0('0x19')][_0x1ff0('0x22')](_0x57fec2[_0x1ff0('0x19')][_0x1ff0('0xf')][_0x1ff0('0x1a')]);_0x300cac[_0x1ff0('0x25')]&&_0x57fec2['model'][_0x1ff0('0x24')](_0x300cac,{'direction':'forward','unit':_0x264a7f[_0x1ff0('0x1f')]});const _0x2735ad=_0x300cac['getFirstRange'](),_0x4d241b=_0xad9eea[_0x1ff0('0x2')](_0x2735ad);let _0x4f1bb7;_0x1b82d1(_0x264a7f),_0x4f1bb7=_0x1ff0('0x15')==_0x4d241b[_0x1ff0('0x11')][_0x1ff0('0x6')]?_0x57fec2[_0x1ff0('0x19')][_0x1ff0('0x14')](_0x2735ad[_0x1ff0('0x12')]):_0x57fec2[_0x1ff0('0x19')][_0x1ff0('0x14')](_0x4d241b[_0x1ff0('0x12')],_0x4d241b[_0x1ff0('0x21')]),_0x4d241b[_0x1ff0('0x3')](),_0x57fec2['model']['enqueueChange'](_0x4af670['buffer'][_0x1ff0('0x2a')],_0x2a381b=>{_0x4af670[_0x1ff0('0x9')][_0x1ff0('0x18')](),_0x2a381b['setSelection'](_0x2a381b[_0x1ff0('0x14')](_0x4f1bb7[_0x1ff0('0x21')])),_0x4af670[_0x1ff0('0x9')]['unlock']();});}),_0x57fec2[_0x1ff0('0x26')]['downcastDispatcher']['on'](_0x1ff0('0xb'),_0x8066a6(_0x57fec2,_0x1ff0('0x2c')),{'priority':'high'}),_0x57fec2[_0x1ff0('0x28')]['downcastDispatcher']['on'](_0x1ff0('0xb'),(_0xace8bf,_0x5571aa,_0x31237e)=>{_0x31237e[_0x1ff0('0x1')][_0x1ff0('0x23')]&&_0x8066a6(_0x57fec2,'merge',{'showActiveMarker':!0x1})[_0x1ff0('0x2b')](this)(_0xace8bf,_0x5571aa,_0x31237e);},{'priority':_0x1ff0('0x1b')}),_0x57fec2[_0x1ff0('0x26')][_0x1ff0('0x16')]['on'](_0x1ff0('0x29'),(_0x47bf6f,_0x4eeebe,_0x3753dc)=>{const _0x258895=_0x3753dc[_0x1ff0('0xe')][_0x1ff0('0x8')](_0x4eeebe[_0x1ff0('0xa')]);if(_0x258895)for(const _0x335c9c of _0x258895)_0x335c9c['is'](_0x1ff0('0x5'))&&(_0x3753dc['mapper'][_0x1ff0('0x1c')](_0x335c9c,_0x4eeebe[_0x1ff0('0xa')]),_0x3753dc[_0x1ff0('0x17')][_0x1ff0('0x4')](_0x335c9c));},{'priority':_0x1ff0('0x1b')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2597=['*Indent:*\x20%0','markBlockFormat','getRanges','add','multipleBlocks','getSelectedBlocks','outdentList','commands','previousSibling','registerElementLabel','expandListBlocksToCompleteList','nextSibling','plugins','schema','get','value','isObject','TrackChangesEditing','from','_suggestionFactory','accept','length','detach','indentList','before','*Merge:*\x20%0','end','ELEMENT_LIST_ITEM','numberedList','nodeAfter','listIndent','mergeListItemForward','format','slice','forceValue','selection','deletion','enableCommand','document','editor','*Format:*\x20remove\x20from\x20%0','change','refresh','commandName','ELEMENT_BULLETED_LIST','setSelection','documentList','listItemId','next','*Format:*\x20insert\x20into\x20%0','execute','createRange','splitListItemAfter','bulletedList','afterInit','ELEMENT_NUMBERED_LIST','has','containsItem','*Change\x20to:*\x20%0','DocumentListEditing','start','_LIST','commandParams','isFirstBlockOfListItem','DocumentListUtils','listType','model','_descriptionFactory','findIndex','getAttribute','mergeListItemBackward','fromRange','*Outdent:*\x20%0','push','after','createPositionAt'];(function(_0x27b5b8,_0x2597bf){const _0xb47871=function(_0x2d941a){while(--_0x2d941a){_0x27b5b8['push'](_0x27b5b8['shift']());}};_0xb47871(++_0x2597bf);}(_0x2597,0x10a));const _0xb478=function(_0x27b5b8,_0x2597bf){_0x27b5b8=_0x27b5b8-0x0;let _0xb47871=_0x2597[_0x27b5b8];return _0xb47871;};import{Plugin as _0x109ed1}from'ckeditor5/src/core';import{getTranslation as _0x2e6a3d}from'../utils/common-translations';import{LiveRange as _0x3a318e}from'ckeditor5/src/engine';export default class L extends _0x109ed1{[_0xb478('0x10')](){const _0x1498b8=this[_0xb478('0x1')];if(!_0x1498b8[_0xb478('0x32')][_0xb478('0x12')](_0xb478('0x15')))return;const _0x365fb4=_0x1498b8['locale'],_0x492dc0=_0x1498b8[_0xb478('0x32')]['get'](_0xb478('0x37')),_0x2b7ba8=_0x1498b8[_0xb478('0x32')][_0xb478('0x34')](_0xb478('0x1a'));function _0x61dbfa(_0x440a44){return()=>{const _0x31940d=_0x1498b8[_0xb478('0x2d')]['get'](_0x440a44);let _0x27a714=Array[_0xb478('0x38')](_0x1498b8[_0xb478('0x1c')]['document']['selection'][_0xb478('0x2b')]());if(_0x3f24ac(_0x440a44)){_0x27a714=_0x2b7ba8[_0xb478('0x30')](_0x27a714);const _0x3276c5=[];for(const _0x300072 of _0x27a714)_0x2b7ba8[_0xb478('0x19')](_0x300072)&&_0x3276c5[_0xb478('0x23')](_0x300072);_0x27a714=_0x3276c5;}_0x1498b8[_0xb478('0x1c')]['change'](()=>{_0x492dc0['markMultiRangeBlockFormat'](_0x27a714,{'commandName':_0x440a44,'commandParams':[{'forceValue':!_0x31940d[_0xb478('0x35')]}],'formatGroupId':'listType'},[],_0xb478('0x8'));});};}function _0xb1fb61(_0x39db73){return()=>{const _0x5e412e=function(_0x4fa06d){let _0x51ab50=Array['from'](_0x4fa06d);const _0x25f35c=_0x51ab50[_0xb478('0x1e')](_0x156bfd=>!_0x156bfd['hasAttribute'](_0xb478('0x9')));return _0x25f35c>-0x1&&(_0x51ab50=_0x51ab50[_0xb478('0x47')](0x0,_0x25f35c)),_0x51ab50;}(_0x1498b8[_0xb478('0x1c')][_0xb478('0x0')][_0xb478('0x49')][_0xb478('0x2b')]()),_0x143bd7=_0x5e412e[_0x5e412e[_0xb478('0x3b')]-0x1],_0x5f0333=_0x1498b8['model'][_0xb478('0x33')][_0xb478('0x36')](_0x143bd7)?_0xb478('0x24'):'end',_0x552f13=_0x1498b8['model'][_0xb478('0xd')](_0x1498b8[_0xb478('0x1c')]['createPositionAt'](_0x5e412e[0x0],_0xb478('0x3e')),_0x1498b8[_0xb478('0x1c')][_0xb478('0x25')](_0x143bd7,_0x5f0333));_0x1498b8['model'][_0xb478('0x3')](()=>{_0x492dc0[_0xb478('0x27')](_0x552f13,{'commandName':_0x39db73,'commandParams':[],'formatGroupId':_0xb478('0x1b')},function(_0x5b7613){const _0xd7d540=new Set();for(const _0x233f04 of _0x5b7613){let _0xb2c5e3=_0x233f04['nextSibling'];for(;_0xb2c5e3&&_0xb2c5e3[_0xb478('0x1f')](_0xb478('0x44'))>_0x233f04['getAttribute'](_0xb478('0x44'));)_0xd7d540[_0xb478('0x29')](_0xb2c5e3),_0xb2c5e3=_0xb2c5e3[_0xb478('0x31')];}return Array[_0xb478('0x38')](_0xd7d540);}(_0x5e412e));});};}function _0x3b46f8(_0x2ee6f4){return()=>{const _0x35f8a3=_0x1498b8['model'][_0xb478('0x0')]['selection']['getSelectedBlocks']()[_0xb478('0xa')]()[_0xb478('0x35')],_0x3d46f9=_0x1498b8[_0xb478('0x1c')][_0xb478('0x25')](_0x35f8a3,_0xb478('0x3e')),_0x5d1780=_0x1498b8[_0xb478('0x1c')][_0xb478('0x25')](_0x35f8a3,0x0),_0x442ad3=_0x1498b8[_0xb478('0x1c')][_0xb478('0xd')](_0x3d46f9,_0x5d1780);_0x1498b8['model'][_0xb478('0x3')](()=>{_0x492dc0[_0xb478('0x27')](_0x442ad3,{'commandName':_0x2ee6f4,'commandParams':[],'formatGroupId':_0xb478('0x1b')});});};}function _0x3f24ac(_0x3cd8d0){const _0x3912cb=_0x1498b8[_0xb478('0x2d')][_0xb478('0x34')](_0xb478('0xf'))[_0xb478('0x35')],_0x53adee=_0x1498b8[_0xb478('0x2d')][_0xb478('0x34')](_0xb478('0x42'))[_0xb478('0x35')];return _0xb478('0x42')===_0x3cd8d0?_0x3912cb:_0x53adee;}_0x492dc0['enableCommand']('numberedList',_0x61dbfa('numberedList')),_0x492dc0[_0xb478('0x4b')]('bulletedList',_0x61dbfa(_0xb478('0xf'))),_0x492dc0['enableCommand'](_0xb478('0x3d'),_0xb1fb61(_0xb478('0x3d'))),_0x492dc0['enableCommand'](_0xb478('0x2c'),_0xb1fb61(_0xb478('0x2c'))),_0x492dc0[_0xb478('0x4b')](_0xb478('0xe'),_0x3b46f8('splitListItemAfter')),_0x492dc0[_0xb478('0x4b')]('splitListItemBefore',_0x3b46f8('splitListItemBefore')),_0x492dc0[_0xb478('0x1d')][_0xb478('0x2f')](function(_0x5c726f){const _0x4a68a7=!_0x1498b8[_0xb478('0x1c')][_0xb478('0x33')][_0xb478('0x36')](_0x5c726f),_0x275b21=_0x5c726f[_0xb478('0x2e')],_0x4f4c6f=_0x5c726f[_0xb478('0x31')],_0x35eb8c=_0x5c726f[_0xb478('0x1f')](_0xb478('0x9')),_0x5db152=!_0x275b21||_0x275b21['getAttribute'](_0xb478('0x9'))!==_0x35eb8c,_0x935bbc=!_0x4f4c6f||_0x4f4c6f['getAttribute'](_0xb478('0x9'))!==_0x35eb8c;return _0x4a68a7&&Boolean(_0x35eb8c)&&_0x5db152&&_0x935bbc;},_0x40d237=>_0x2e6a3d(_0x365fb4,_0xb478('0x41'),_0x40d237)),_0x492dc0[_0xb478('0x1d')]['registerDescriptionCallback'](function(_0x58c0eb){const {data:_0x2df40e}=_0x58c0eb;if(!_0x2df40e)return;let _0x154034,_0x525c9f,_0x4be210,_0x4b6107;switch(_0x2df40e[_0xb478('0x5')]){case _0xb478('0xf'):_0x4be210=_0x2df40e[_0xb478('0x18')][0x0][_0xb478('0x48')],_0x4b6107=_0x3f24ac(_0x2df40e[_0xb478('0x5')]),_0x154034=_0x4be210?'*Format:*\x20insert\x20into\x20%0':_0xb478('0x2'),_0x4b6107&&(_0x154034=_0xb478('0x14')),_0x525c9f={'type':_0xb478('0x46'),'content':_0x2e6a3d(_0x365fb4,_0x154034,_0x2e6a3d(_0x365fb4,_0xb478('0x6')))};break;case _0xb478('0x42'):_0x4be210=_0x2df40e[_0xb478('0x18')][0x0]['forceValue'],_0x4b6107=_0x3f24ac(_0x2df40e[_0xb478('0x5')]),_0x154034=_0x4be210?_0xb478('0xb'):_0xb478('0x2'),_0x4b6107&&(_0x154034='*Change\x20to:*\x20%0'),_0x525c9f={'type':_0xb478('0x46'),'content':_0x2e6a3d(_0x365fb4,_0x154034,_0x2e6a3d(_0x365fb4,_0xb478('0x11')))};break;case _0xb478('0x3d'):_0x154034=_0xb478('0x26'),_0x525c9f={'type':_0xb478('0x46'),'content':_0x2e6a3d(_0x365fb4,_0x154034,_0x2e6a3d(_0x365fb4,'ELEMENT_LIST_ITEM'))};break;case _0xb478('0x2c'):_0x154034=function(_0x3a3344){const _0x4dffd8=_0x3a3344['getFirstRange']();let _0x2a9732=_0x4dffd8[_0xb478('0x16')][_0xb478('0x43')];for(;_0x2a9732&&_0x4dffd8[_0xb478('0x13')](_0x2a9732);){if(_0x2a9732[_0xb478('0x1f')](_0xb478('0x44'))>0x0)return!0x1;_0x2a9732=_0x2a9732['nextSibling'];}return!0x0;}(_0x58c0eb)?_0x2e6a3d(_0x365fb4,_0xb478('0x2'),_0x2e6a3d(_0x365fb4,function(_0x211ffb){const _0x5b06c0=_0x211ffb['getFirstRange']()[_0xb478('0x16')][_0xb478('0x43')];return'ELEMENT_'+_0x5b06c0[_0xb478('0x1f')](_0xb478('0x1b'))['toUpperCase']()+_0xb478('0x17');}(_0x58c0eb))):_0x2e6a3d(_0x365fb4,_0xb478('0x22'),_0x2e6a3d(_0x365fb4,_0xb478('0x41'))),_0x525c9f={'type':_0xb478('0x46'),'content':_0x154034};break;case _0xb478('0x20'):case _0xb478('0x45'):!0x1===_0x2df40e[_0xb478('0x2a')]&&(_0x154034=_0xb478('0x3f'),_0x525c9f={'type':_0xb478('0x4a'),'content':_0x2e6a3d(_0x365fb4,_0x154034,_0x2e6a3d(_0x365fb4,_0xb478('0x41')))});}return _0x525c9f;}),_0x492dc0[_0xb478('0x39')]['registerCustomCallback']('formatBlock',_0xb478('0x8'),_0xb478('0x3a'),function(_0x11ac71,_0x201a3e){const _0x17ebfd=[];for(let _0x5689e2 of _0x11ac71)_0x5689e2[_0xb478('0x16')]['nodeAfter']===_0x5689e2[_0xb478('0x40')]['parent']&&(_0x5689e2=_0x1498b8['model'][_0xb478('0xd')](_0x1498b8[_0xb478('0x1c')][_0xb478('0x25')](_0x5689e2[_0xb478('0x16')][_0xb478('0x43')],0x0))),_0x17ebfd[_0xb478('0x23')](_0x5689e2);_0x1498b8[_0xb478('0x1c')][_0xb478('0x3')](_0x3cddae=>{const _0x4939e0=_0x1498b8[_0xb478('0x1c')][_0xb478('0x0')][_0xb478('0x49')],_0x1aa2c=Array['from'](_0x4939e0[_0xb478('0x28')]())['map'](_0x45ff3b=>_0x3a318e[_0xb478('0x21')](_0x45ff3b));_0x3cddae[_0xb478('0x7')](_0x17ebfd),_0x1498b8[_0xb478('0x2d')]['get'](_0x201a3e['commandName'])[_0xb478('0x4')](),_0x201a3e[_0xb478('0x18')][_0xb478('0x23')]({'forceDefaultExecution':!0x0}),_0x1498b8[_0xb478('0xc')](_0x201a3e[_0xb478('0x5')],..._0x201a3e['commandParams']),_0x3cddae['setSelection'](_0x1aa2c);for(const _0x4c4953 of _0x1aa2c)_0x4c4953[_0xb478('0x3c')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ce1=['handleDescriptions','editor','DocumentListPropertiesUtils','_getSuggestionBlocks','getSelectedBlocks','commandName','ELEMENT_','push','replace','_descriptionFactory','DocumentListUtils','expandListBlocksToCompleteList','*Format:*\x20set\x20start\x20index\x20to\x20%0','selection','TrackChangesEditing','markMultiRangeBlockFormat','model','reversed','get','listReversed','listStyle','change','listType','*Format:*\x20set\x20order\x20to\x20reversed','styles','startIndex','plugins','commandParams','handleListReversedCommand','format','length','filter','handleListStyleCommand','toUpperCase','_getTranslationKeyForListStyle','getListTypeFromListStyleType','from','isListItemBlock','enableCommand','*Format:*\x20set\x20order\x20to\x20regular','*Change\x20to:*\x20%0','document','_LIST_','handleListStartCommand','has','isFirstBlockOfListItem','bind','numbered','DocumentListPropertiesEditing','listStart','_getSuggestionBlocksForListStyle'];(function(_0x3e3e5a,_0x4ce1f2){const _0x2bf6a7=function(_0x1d40da){while(--_0x1d40da){_0x3e3e5a['push'](_0x3e3e5a['shift']());}};_0x2bf6a7(++_0x4ce1f2);}(_0x4ce1,0x169));const _0x2bf6=function(_0x3e3e5a,_0x4ce1f2){_0x3e3e5a=_0x3e3e5a-0x0;let _0x2bf6a7=_0x4ce1[_0x3e3e5a];return _0x2bf6a7;};import{Plugin as _0x2f8358}from'ckeditor5/src/core';import{getTranslation as _0xd8210c}from'../utils/common-translations';export default class At extends _0x2f8358{['afterInit'](){if(!this[_0x2bf6('0x30')][_0x2bf6('0x16')][_0x2bf6('0x28')](_0x2bf6('0x2c')))return;const _0x49a2fe=this[_0x2bf6('0x30')]['config'][_0x2bf6('0xe')]('list.properties'),_0x5d1fd6=this[_0x2bf6('0x30')][_0x2bf6('0x16')][_0x2bf6('0xe')](_0x2bf6('0xa'));_0x49a2fe[_0x2bf6('0x14')]&&_0x5d1fd6[_0x2bf6('0x22')](_0x2bf6('0x10'),this['handleListStyleCommand'][_0x2bf6('0x2a')](this)),_0x49a2fe['reversed']&&_0x5d1fd6[_0x2bf6('0x22')](_0x2bf6('0xf'),this[_0x2bf6('0x18')][_0x2bf6('0x2a')](this)),_0x49a2fe[_0x2bf6('0x15')]&&_0x5d1fd6['enableCommand'](_0x2bf6('0x2d'),this['handleListStartCommand']['bind'](this)),_0x5d1fd6[_0x2bf6('0x5')]['registerDescriptionCallback'](this[_0x2bf6('0x2f')][_0x2bf6('0x2a')](this));}[_0x2bf6('0x1c')](_0x53b365,_0x31774b={}){const _0x56b003=this[_0x2bf6('0x30')][_0x2bf6('0x16')][_0x2bf6('0xe')](_0x2bf6('0xa')),_0x1a4e5a=this[_0x2bf6('0x2e')]();this['editor'][_0x2bf6('0xc')][_0x2bf6('0x11')](()=>{_0x56b003['markMultiRangeBlockFormat'](_0x1a4e5a,{'commandName':_0x2bf6('0x10'),'commandParams':[{'type':_0x31774b['type']}],'formatGroupId':'listStyle'});});}[_0x2bf6('0x18')](_0x2d869d,_0x459662={}){const _0x15c2bb=this[_0x2bf6('0x30')]['plugins'][_0x2bf6('0xe')](_0x2bf6('0xa')),_0xb8132d=this['editor'][_0x2bf6('0x16')]['get'](_0x2bf6('0x6')),_0x574f28=this[_0x2bf6('0x32')](_0x2ecd4a=>_0xb8132d[_0x2bf6('0x21')](_0x2ecd4a)&&_0x2bf6('0x2b')===_0x2ecd4a['getAttribute'](_0x2bf6('0x12')));null!==_0x574f28&&this[_0x2bf6('0x30')]['model']['change'](()=>{_0x15c2bb[_0x2bf6('0xb')](_0x574f28,{'commandName':_0x2bf6('0xf'),'commandParams':[{'reversed':_0x459662[_0x2bf6('0xd')]}],'formatGroupId':'listReversed'});});}[_0x2bf6('0x27')](_0x4371c5,_0x1b5dd6={}){const _0x41ade4=this[_0x2bf6('0x30')]['plugins'][_0x2bf6('0xe')](_0x2bf6('0xa')),_0x4411ff=this['editor'][_0x2bf6('0x16')][_0x2bf6('0xe')](_0x2bf6('0x6')),_0x5043c1=this['_getSuggestionBlocks'](_0x463b07=>_0x4411ff['isListItemBlock'](_0x463b07)&&'numbered'===_0x463b07['getAttribute'](_0x2bf6('0x12')));null!==_0x5043c1&&this['editor'][_0x2bf6('0xc')][_0x2bf6('0x11')](()=>{_0x41ade4[_0x2bf6('0xb')](_0x5043c1,{'commandName':_0x2bf6('0x2d'),'commandParams':[{'startIndex':_0x1b5dd6[_0x2bf6('0x15')]}],'formatGroupId':_0x2bf6('0x2d')});});}[_0x2bf6('0x2f')](_0x1da2f){const _0x12d000=this[_0x2bf6('0x30')]['locale'],{data:_0x7beaaa}=_0x1da2f;if(!_0x7beaaa)return;let _0x3b0419,_0x57712d;switch(_0x7beaaa[_0x2bf6('0x1')]){case _0x2bf6('0x10'):_0x3b0419=_0x2bf6('0x24'),_0x57712d={'type':_0x2bf6('0x19'),'content':_0xd8210c(_0x12d000,_0x3b0419,_0xd8210c(_0x12d000,this[_0x2bf6('0x1e')](_0x7beaaa[_0x2bf6('0x17')][0x0]['type'])))};break;case _0x2bf6('0xf'):_0x3b0419=_0x7beaaa[_0x2bf6('0x17')][0x0][_0x2bf6('0xd')]?_0x2bf6('0x13'):_0x2bf6('0x23'),_0x57712d={'type':'format','content':_0xd8210c(_0x12d000,_0x3b0419)};break;case'listStart':_0x3b0419=_0x2bf6('0x8'),_0x57712d={'type':_0x2bf6('0x19'),'content':_0xd8210c(_0x12d000,_0x3b0419,_0x7beaaa[_0x2bf6('0x17')][0x0][_0x2bf6('0x15')])};}return _0x57712d;}[_0x2bf6('0x2e')](){const _0x29912c=this[_0x2bf6('0x30')]['plugins'][_0x2bf6('0xe')](_0x2bf6('0x6'));let _0x198f8b=Array[_0x2bf6('0x20')](this[_0x2bf6('0x30')][_0x2bf6('0xc')][_0x2bf6('0x25')][_0x2bf6('0x9')][_0x2bf6('0x0')]());return _0x198f8b[_0x2bf6('0x3')](..._0x29912c[_0x2bf6('0x7')](_0x198f8b)),_0x198f8b=[...new Set(_0x198f8b)],_0x198f8b;}[_0x2bf6('0x32')](_0x142d46){const _0x4bfae0=this['editor']['plugins'][_0x2bf6('0xe')](_0x2bf6('0x6'));let _0x5da795=Array['from'](this[_0x2bf6('0x30')][_0x2bf6('0xc')][_0x2bf6('0x25')][_0x2bf6('0x9')][_0x2bf6('0x0')]())[_0x2bf6('0x1b')](_0x142d46);if(!_0x5da795[_0x2bf6('0x1a')])return null;_0x5da795=_0x4bfae0[_0x2bf6('0x7')](_0x5da795);const _0x31fa3d=[];for(const _0x17e354 of _0x5da795)_0x4bfae0[_0x2bf6('0x29')](_0x17e354)&&_0x31fa3d[_0x2bf6('0x3')](_0x17e354);return _0x31fa3d;}[_0x2bf6('0x1e')](_0x2c040f){return _0x2bf6('0x2')+this[_0x2bf6('0x30')][_0x2bf6('0x16')][_0x2bf6('0xe')](_0x2bf6('0x31'))[_0x2bf6('0x1f')](_0x2c040f)[_0x2bf6('0x1d')]()+_0x2bf6('0x26')+_0x2c040f[_0x2bf6('0x1d')]()[_0x2bf6('0x4')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c28=['parent','ck-suggestion-marker-split','createPositionAt','getFirstRange','selection','enableCommand','model','editor','split','data','fire','writer','unbindElementFromMarkerName','high','TrackChangesEditing','mapper','get','setSelection','enterBlock','editing','init','bind','removeMarker:suggestion:insertion','downcastDispatcher','markInsertion','document','options','requires','end','change','addMarker:suggestion:insertion','nextSibling','fromRange','enter'];(function(_0x436366,_0x1c2895){const _0x3bfba0=function(_0x2ca7ee){while(--_0x2ca7ee){_0x436366['push'](_0x436366['shift']());}};_0x3bfba0(++_0x1c2895);}(_0x1c28,0x17f));const _0x3bfb=function(_0x436366,_0x1c2895){_0x436366=_0x436366-0x0;let _0x3bfba0=_0x1c28[_0x436366];return _0x3bfba0;};import{Plugin as _0x4559be}from'ckeditor5/src/core';import{Enter as _0x23f4d}from'ckeditor5/src/enter';import{LiveRange as _0x375e7b}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x19aa6e}from'./utils';export default class q extends _0x4559be{static get[_0x3bfb('0x12')](){return[_0x23f4d];}[_0x3bfb('0xb')](){const _0x5720e1=this[_0x3bfb('0x20')],_0x29580b=_0x5720e1['plugins'][_0x3bfb('0x7')](_0x3bfb('0x5')),_0x4f041f=_0x5720e1['commands'][_0x3bfb('0x7')](_0x3bfb('0x18'));_0x29580b[_0x3bfb('0x1e')](_0x3bfb('0x18'),()=>{_0x5720e1['model'][_0x3bfb('0x14')](_0x934666=>{const _0x199d88=_0x5720e1[_0x3bfb('0x1f')][_0x3bfb('0x10')][_0x3bfb('0x1d')],_0x58f622=_0x199d88['getFirstPosition'](),_0x3166cb=_0x375e7b[_0x3bfb('0x17')](_0x199d88[_0x3bfb('0x1c')]());if(_0x4f041f[_0x3bfb('0x9')](_0x934666)){const _0x474111=_0x5720e1[_0x3bfb('0x1f')][_0x3bfb('0x1b')](_0x58f622[_0x3bfb('0x19')][_0x3bfb('0x16')],0x0),_0xd9d27f=_0x934666['createRange'](_0x58f622,_0x474111);_0x29580b[_0x3bfb('0xf')](_0xd9d27f);}else _0x934666[_0x3bfb('0x8')](_0x934666['createRange'](_0x3166cb[_0x3bfb('0x13')]));_0x3166cb['detach'](),_0x4f041f[_0x3bfb('0x1')]('afterExecute',{'writer':_0x934666});});}),_0x5720e1[_0x3bfb('0xa')][_0x3bfb('0xe')]['on'](_0x3bfb('0x15'),_0x19aa6e(_0x5720e1,_0x3bfb('0x21')),{'priority':_0x3bfb('0x4')}),_0x5720e1[_0x3bfb('0xa')][_0x3bfb('0xe')]['on'](_0x3bfb('0xd'),(_0x109b00,_0x16a7cc,_0x4478ff)=>{const _0x92fff4=_0x4478ff[_0x3bfb('0x6')]['markerNameToElements'](_0x16a7cc['markerName']);if(_0x92fff4)for(const _0x25a53c of _0x92fff4)_0x25a53c['hasClass'](_0x3bfb('0x1a'))&&(_0x4478ff[_0x3bfb('0x6')][_0x3bfb('0x3')](_0x25a53c,_0x16a7cc['markerName']),_0x4478ff[_0x3bfb('0x2')]['remove'](_0x25a53c));},{'priority':_0x3bfb('0x4')}),_0x5720e1[_0x3bfb('0x0')]['downcastDispatcher']['on'](_0x3bfb('0x15'),(_0x436411,_0x1ab5ff,_0x3d49c2)=>{_0x3d49c2[_0x3bfb('0x11')]['showSuggestionHighlights']&&_0x19aa6e(_0x5720e1,_0x3bfb('0x21'),{'showActiveMarker':!0x1})[_0x3bfb('0xc')](this)(_0x436411,_0x1ab5ff,_0x3d49c2);},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3575=['findNext','FindAndReplaceEditing','handleFindCommand','bind','filter','editor','afterInit','replaceAll','plugins','replace','item','createPositionAt','_isInDeletionRange','string','model','getIntersection','enableCommand','start','getRange','has','findPrevious','end'];(function(_0x51aa56,_0x357559){const _0x4f4cdf=function(_0x1e515b){while(--_0x1e515b){_0x51aa56['push'](_0x51aa56['shift']());}};_0x4f4cdf(++_0x357559);}(_0x3575,0x1bb));const _0x4f4c=function(_0x51aa56,_0x357559){_0x51aa56=_0x51aa56-0x0;let _0x4f4cdf=_0x3575[_0x51aa56];return _0x4f4cdf;};import{Plugin as _0x2bd06d}from'ckeditor5/src/core';export default class z extends _0x2bd06d{[_0x4f4c('0x3')](){if(!this[_0x4f4c('0x2')]['plugins'][_0x4f4c('0x10')](_0x4f4c('0x14')))return;const _0x1c3f46=this[_0x4f4c('0x2')]['plugins']['get']('TrackChangesEditing');_0x1c3f46['enableCommand']('find',this[_0x4f4c('0x15')][_0x4f4c('0x0')](this)),_0x1c3f46[_0x4f4c('0xd')](_0x4f4c('0x13')),_0x1c3f46[_0x4f4c('0xd')](_0x4f4c('0x11')),_0x1c3f46['enableCommand'](_0x4f4c('0x6')),_0x1c3f46[_0x4f4c('0xd')](_0x4f4c('0x4'));}['handleFindCommand'](_0x3d88cb,_0x598256,_0x5accd0={}){const _0x2e5377=this[_0x4f4c('0x2')][_0x4f4c('0x5')]['get']('FindAndReplaceUtils');void 0x0!==_0x5accd0&&_0x3d88cb(_0x590639=>(_0x4f4c('0xa')==typeof _0x598256?_0x2e5377['findByTextCallback'](_0x598256,_0x5accd0):_0x598256)(_0x590639)[_0x4f4c('0x1')](_0x3ac60b=>!0x1===this[_0x4f4c('0x9')](_0x3ac60b,_0x590639[_0x4f4c('0x7')])),_0x5accd0);}[_0x4f4c('0x9')](_0x519aed,_0x2baf4d){const _0x10cf90=this[_0x4f4c('0x2')][_0x4f4c('0xb')]['createRange'](this[_0x4f4c('0x2')][_0x4f4c('0xb')][_0x4f4c('0x8')](_0x2baf4d,_0x519aed[_0x4f4c('0xe')]),this[_0x4f4c('0x2')][_0x4f4c('0xb')][_0x4f4c('0x8')](_0x2baf4d,_0x519aed[_0x4f4c('0x12')]));for(const _0x48f605 of this['editor'][_0x4f4c('0xb')]['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x10cf90[_0x4f4c('0xc')](_0x48f605[_0x4f4c('0xf')]()))return!0x0;return!0x1;}}
|