@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230905.0 → 0.0.0-nightly-20230907.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-20230907.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-20230907.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230907.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 _0x2ff7=['model','editor','_suggestions','execute','canEditAt','isEnabled','acceptSuggestion','TrackChangesEditing','track-changes-accept-suggestion-not-found','_isEnabledBasedOnSelection','getRanges','get'];(function(_0x4288a8,_0x2ff7bb){const _0x101f3d=function(_0x332873){while(--_0x332873){_0x4288a8['push'](_0x4288a8['shift']());}};_0x101f3d(++_0x2ff7bb);}(_0x2ff7,0x17b));const _0x101f=function(_0x4288a8,_0x2ff7bb){_0x4288a8=_0x4288a8-0x0;let _0x101f3d=_0x2ff7[_0x4288a8];return _0x101f3d;};import{Command as _0x4dcab3}from'ckeditor5/src/core';import{CKEditorError as _0x2238b0}from'ckeditor5/src/utils';export default class M extends _0x4dcab3{constructor(_0x423e1e,_0x5f3cbb){super(_0x423e1e),this[_0x101f('0x7')]=_0x5f3cbb,this['refresh'](),this[_0x101f('0x2')]=!0x1;}['refresh'](){this[_0x101f('0xa')]=!0x0;}[_0x101f('0x8')](_0x67cd42){const _0x3b18ee=this[_0x101f('0x7')][_0x101f('0x4')](_0x67cd42);if(!_0x3b18ee)throw new _0x2238b0(_0x101f('0x1'),this);const _0x31694a=_0x3b18ee[_0x101f('0x3')]();this[_0x101f('0x6')][_0x101f('0x5')][_0x101f('0x9')](_0x31694a)&&this[_0x101f('0x6')]['plugins']['get'](_0x101f('0x0'))[_0x101f('0xb')](_0x3b18ee);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d86=['get','TrackChangesEditing','refresh','model','track-changes-discard-suggestion-not-found','_suggestions','getRanges','_isEnabledBasedOnSelection','canEditAt','execute','discardSuggestion','editor','isEnabled'];(function(_0x267360,_0x3d867a){const _0xe7e9dd=function(_0x43c438){while(--_0x43c438){_0x267360['push'](_0x267360['shift']());}};_0xe7e9dd(++_0x3d867a);}(_0x3d86,0x105));const _0xe7e9=function(_0x267360,_0x3d867a){_0x267360=_0x267360-0x0;let _0xe7e9dd=_0x3d86[_0x267360];return _0xe7e9dd;};import{Command as _0x157710}from'ckeditor5/src/core';import{CKEditorError as _0x53824c}from'ckeditor5/src/utils';export default class $ extends _0x157710{constructor(_0x5e04a5,_0x227244){super(_0x5e04a5),this[_0xe7e9('0x4')]=_0x227244,this[_0xe7e9('0x1')](),this[_0xe7e9('0x6')]=!0x1;}[_0xe7e9('0x1')](){this[_0xe7e9('0xb')]=!0x0;}[_0xe7e9('0x8')](_0x5253f0){const _0x55aa3d=this[_0xe7e9('0x4')][_0xe7e9('0xc')](_0x5253f0);if(!_0x55aa3d)throw new _0x53824c(_0xe7e9('0x3'),this);const _0x5aabf4=_0x55aa3d[_0xe7e9('0x5')]();this['editor'][_0xe7e9('0x2')][_0xe7e9('0x7')](_0x5aabf4)&&this[_0xe7e9('0xa')]['plugins'][_0xe7e9('0xc')](_0xe7e9('0x0'))[_0xe7e9('0x9')](_0x55aa3d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34c5=['_command','values','isEnabled','from','model','_suggestions','editor','getRanges','refresh','_isEnabledBasedOnSelection','some','execute','isInContent'];(function(_0x35dc64,_0x34c59f){const _0x16797e=function(_0x50b13c){while(--_0x50b13c){_0x35dc64['push'](_0x35dc64['shift']());}};_0x16797e(++_0x34c59f);}(_0x34c5,0x146));const _0x1679=function(_0x35dc64,_0x34c59f){_0x35dc64=_0x35dc64-0x0;let _0x16797e=_0x34c5[_0x35dc64];return _0x16797e;};import{Command as _0x2182da}from'ckeditor5/src/core';import{sortSuggestions as _0x294d43,executeCommandForSuggestions as _0x26821b}from'../utils/utils';export default class N extends _0x2182da{constructor(_0x528248,_0x5cec94,_0x1b8433){super(_0x528248),this[_0x1679('0xc')]=_0x5cec94,this[_0x1679('0x4')]=_0x1b8433,this['refresh'](),this[_0x1679('0x8')]=!0x1;}[_0x1679('0x7')](){const _0xc840f3=Array[_0x1679('0x2')](this['_suggestions'][_0x1679('0x0')]())[_0x1679('0x9')](_0x5ec69c=>_0x5ec69c[_0x1679('0xb')]);this[_0x1679('0x1')]=this['_command'][_0x1679('0x1')]&&_0xc840f3;}[_0x1679('0xa')](){const _0x5c7845=_0x294d43(Array[_0x1679('0x2')](this[_0x1679('0x4')][_0x1679('0x0')]()));for(const _0x2f215c of _0x5c7845){const _0x49582b=_0x2f215c[_0x1679('0x6')]();if(!this[_0x1679('0x5')][_0x1679('0x3')]['canEditAt'](_0x49582b))return;}_0x26821b(this['editor']['model'],this['_command'],_0x5c7845);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4172=['refresh','from','editor','model','_suggestions','getRanges','size','execute','_command','isEnabled','_selectedSuggestions','canEditAt'];(function(_0x11e92c,_0x41728f){const _0x2daeb4=function(_0xbce950){while(--_0xbce950){_0x11e92c['push'](_0x11e92c['shift']());}};_0x2daeb4(++_0x41728f);}(_0x4172,0xaf));const _0x2dae=function(_0x11e92c,_0x41728f){_0x11e92c=_0x11e92c-0x0;let _0x2daeb4=_0x4172[_0x11e92c];return _0x2daeb4;};import{Command as _0x5b6132}from'ckeditor5/src/core';import{sortSuggestions as _0x37be1d,getSelectedSuggestions as _0x38c4a8,executeCommandForSuggestions as _0x52177b}from'../utils/utils';export default class R extends _0x5b6132{constructor(_0x37f324,_0x3fd6fe,_0x5d78e2){super(_0x37f324),this['_command']=_0x3fd6fe,this['_suggestions']=_0x5d78e2,this[_0x2dae('0x3')]=new Set(),this[_0x2dae('0x5')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x2dae('0x5')](){const _0x20c13a=this[_0x2dae('0x7')][_0x2dae('0x8')]['document']['selection'],_0x232222=Array[_0x2dae('0x6')](this[_0x2dae('0x9')]['values']());this[_0x2dae('0x3')]=_0x38c4a8(_0x20c13a,_0x232222),this[_0x2dae('0x2')]=this[_0x2dae('0x1')][_0x2dae('0x2')]&&!!this[_0x2dae('0x3')][_0x2dae('0xb')];}[_0x2dae('0x0')](){const _0x33f433=_0x37be1d(Array[_0x2dae('0x6')](this['_selectedSuggestions']));for(const _0x1781fa of _0x33f433){const _0x2473e7=_0x1781fa[_0x2dae('0xa')]();if(!this['editor']['model'][_0x2dae('0x4')](_0x2473e7))return;}_0x52177b(this[_0x2dae('0x7')][_0x2dae('0x8')],this[_0x2dae('0x1')],_0x33f433);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3102=['has','forceDisabled','_enabledCommands','_disableUnsupportedCommands','refresh','value','isEnabled','commands','_enableCommands','affectsData','TrackChangesCommand','editor','execute','clearForceDisabled'];(function(_0x221894,_0x3102e5){const _0x35167d=function(_0x1cccef){while(--_0x1cccef){_0x221894['push'](_0x221894['shift']());}};_0x35167d(++_0x3102e5);}(_0x3102,0xf3));const _0x3516=function(_0x221894,_0x3102e5){_0x221894=_0x221894-0x0;let _0x35167d=_0x3102[_0x221894];return _0x35167d;};import{Command as _0xa81b60}from'ckeditor5/src/core';export default class _ extends _0xa81b60{constructor(_0x49964c,_0x296094){super(_0x49964c),this[_0x3516('0xb')]=_0x296094,this[_0x3516('0x0')]=!0x1,this[_0x3516('0xd')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x3516('0xd')](){this[_0x3516('0x1')]=!0x0;}[_0x3516('0x7')](){this[_0x3516('0x0')]=!this['value'],this[_0x3516('0x0')]?this[_0x3516('0xc')]():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x350943 of this['editor'][_0x3516('0x2')]['commands']())_0x350943[_0x3516('0x4')]&&!this['_enabledCommands'][_0x3516('0x9')](_0x350943)&&_0x350943[_0x3516('0xa')](_0x3516('0x5'));}[_0x3516('0x3')](){for(const _0x3fd24f of this[_0x3516('0x6')][_0x3516('0x2')][_0x3516('0x2')]())_0x3fd24f[_0x3516('0x4')]&&!this[_0x3516('0xb')][_0x3516('0x9')](_0x3fd24f)&&_0x3fd24f[_0x3516('0x8')]('TrackChangesCommand');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x209a=['value','afterInit','document','FORMAT_ALIGN_TO_LEFT','model','getSelectedBlocks','markBlockFormat','filter','FORMAT_ALIGN_TO_RIGHT','getAttribute','enableCommand','contentLanguageDirection','has','*Format:*\x20%0','_descriptionFactory','alignment','editor','FORMAT_JUSTIFY_TEXT','FORMAT_ALIGN_TO_CENTER','plugins','commandName','TrackChangesEditing','selection','left','locale'];(function(_0x37716a,_0x209ac4){const _0x36970f=function(_0x1d174c){while(--_0x1d174c){_0x37716a['push'](_0x37716a['shift']());}};_0x36970f(++_0x209ac4);}(_0x209a,0x14d));const _0x3697=function(_0x37716a,_0x209ac4){_0x37716a=_0x37716a-0x0;let _0x36970f=_0x209a[_0x37716a];return _0x36970f;};import{Plugin as _0x306db3}from'ckeditor5/src/core';import{getTranslation as _0x3eb2ed}from'../utils/common-translations';export default class j extends _0x306db3{[_0x3697('0x12')](){const _0x4ab157=this[_0x3697('0x8')],_0xdd192f=_0x4ab157['locale'];if(!_0x4ab157[_0x3697('0xb')][_0x3697('0x4')]('AlignmentEditing'))return;const _0xfc18ee=_0x4ab157['plugins']['get'](_0x3697('0xd'));_0xfc18ee[_0x3697('0x2')](_0x3697('0x7'),(_0x543127,_0x14ec4c={})=>{let _0x348d61=_0x14ec4c[_0x3697('0x11')];_0x14ec4c['value']||(_0x348d61='ltr'===_0x4ab157[_0x3697('0x10')][_0x3697('0x3')]?_0x3697('0xf'):'right');const _0x433059=Array['from'](this[_0x3697('0x8')][_0x3697('0x15')][_0x3697('0x13')][_0x3697('0xe')][_0x3697('0x16')]())[_0x3697('0x18')](_0x15cf27=>function(_0x1b8299,_0x34660f,_0x1b4418){const _0x29c03a=_0x1b8299[_0x3697('0x1')]('alignment')||null;return _0x34660f['checkAttribute'](_0x1b8299,_0x3697('0x7'))&&_0x1b4418!=_0x29c03a;}(_0x15cf27,this[_0x3697('0x8')]['model']['schema'],_0x348d61));_0x4ab157[_0x3697('0x15')]['change'](()=>{for(const _0x2fe2b2 of _0x433059)_0xfc18ee[_0x3697('0x17')](_0x2fe2b2,{'commandName':_0x3697('0x7'),'commandParams':[{'value':_0x348d61}]});});}),_0xfc18ee[_0x3697('0x6')]['registerDescriptionCallback'](_0x29d852=>{const {data:_0x4afb6c}=_0x29d852;if(_0x4afb6c&&_0x3697('0x7')==_0x4afb6c[_0x3697('0xc')]){const _0x1e28f9=_0x4afb6c['commandParams'][0x0]['value'];return{'type':'format','content':_0x3eb2ed(_0xdd192f,_0x3697('0x5'),function(_0x522f62){switch(_0x522f62){case _0x3697('0xf'):return _0x3eb2ed(_0xdd192f,_0x3697('0x14'));case'right':return _0x3eb2ed(_0xdd192f,_0x3697('0x0'));case'center':return _0x3eb2ed(_0xdd192f,_0x3697('0xa'));case'justify':return _0x3eb2ed(_0xdd192f,_0x3697('0x9'));}}(_0x1e28f9))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46c9=['toLowerCase','FORMAT_SUBSCRIPT','FORMAT_SUPERSCRIPT','editor','FORMAT_STRIKETHROUGH','value','model','BoldEditing','bold','*Remove\x20format:*\x20%0','registerDescriptionCallback','code','from','selection','forceValue','SuperscriptEditing','FORMAT_BOLD','*Format:*\x20%0','commandName','format','change','ItalicEditing','has','superscript','SubscriptEditing','enableCommand','FORMAT_ITALIC','underline','FORMAT_UNDERLINE','italic','UnderlineEditing','StrikethroughEditing','TrackChangesEditing','locale','plugins','markInlineFormat'];(function(_0xbfb129,_0x46c98a){const _0x51d8f0=function(_0x3461fc){while(--_0x3461fc){_0xbfb129['push'](_0xbfb129['shift']());}};_0x51d8f0(++_0x46c98a);}(_0x46c9,0x96));const _0x51d8=function(_0xbfb129,_0x46c98a){_0xbfb129=_0xbfb129-0x0;let _0x51d8f0=_0x46c9[_0xbfb129];return _0x51d8f0;};import{Plugin as _0x139db6}from'ckeditor5/src/core';import{getTranslation as _0x1198e1}from'../utils/common-translations';import{getRangesWithAttribute as _0xf74af6}from'./utils';const Yt=[_0x51d8('0x1'),_0x51d8('0xf'),_0x51d8('0x18'),'CodeEditing',_0x51d8('0x19'),_0x51d8('0x12'),_0x51d8('0x9')];export default class x extends _0x139db6{['afterInit'](){const _0x318e5a=this[_0x51d8('0x21')],_0x1a03b9=_0x318e5a[_0x51d8('0x0')],_0x3378f2=_0x318e5a[_0x51d8('0x1c')]['get'](_0x51d8('0x1a')),_0x17ed42=_0x318e5a[_0x51d8('0x1b')];for(const _0x291758 of Yt){if(!_0x318e5a[_0x51d8('0x1c')][_0x51d8('0x10')](_0x291758))continue;const _0x2b2f75=_0x291758['slice'](0x0,-0x7)[_0x51d8('0x1e')](),_0x48123b=_0x318e5a['commands']['get'](_0x2b2f75);_0x3378f2[_0x51d8('0x13')](_0x2b2f75,(_0x4ce5af,_0x545874={})=>{const _0x1ef64d=_0x1a03b9['document'][_0x51d8('0x7')];if(_0x1ef64d['isCollapsed'])return void _0x4ce5af(_0x545874);const _0x42d4e7=void 0x0!==_0x545874['forceValue']?_0x545874[_0x51d8('0x8')]:!_0x48123b[_0x51d8('0x23')];_0x1a03b9[_0x51d8('0xe')](()=>{const _0x113524=Array[_0x51d8('0x6')](_0x1ef64d['getRanges']());for(const _0x12fd93 of _0x113524){const _0xd85d65=_0x42d4e7?[_0x12fd93]:_0xf74af6(_0x2b2f75,_0x12fd93,_0x1a03b9);for(const _0x222297 of _0xd85d65)_0x3378f2[_0x51d8('0x1d')](_0x222297,{'commandName':_0x2b2f75,'commandParams':[{'forceValue':_0x42d4e7}]});}});});}function _0x4be221(_0x57e6e1,_0x2cb9da){_0x3378f2['_descriptionFactory'][_0x51d8('0x4')](_0x518105=>{const {data:_0x1e0413}=_0x518105;if(_0x1e0413&&_0x1e0413[_0x51d8('0xc')]===_0x57e6e1)return _0x1e0413['commandParams'][0x0][_0x51d8('0x8')]?{'type':_0x51d8('0xd'),'content':_0x1198e1(_0x17ed42,_0x51d8('0xb'),_0x2cb9da)}:{'type':'format','content':_0x1198e1(_0x17ed42,_0x51d8('0x3'),_0x2cb9da)};});}_0x4be221(_0x51d8('0x2'),_0x1198e1(_0x17ed42,_0x51d8('0xa'))),_0x4be221(_0x51d8('0x17'),_0x1198e1(_0x17ed42,_0x51d8('0x14'))),_0x4be221(_0x51d8('0x15'),_0x1198e1(_0x17ed42,_0x51d8('0x16'))),_0x4be221(_0x51d8('0x5'),_0x1198e1(_0x17ed42,'FORMAT_CODE')),_0x4be221('strikethrough',_0x1198e1(_0x17ed42,_0x51d8('0x22'))),_0x4be221('subscript',_0x1198e1(_0x17ed42,_0x51d8('0x1f'))),_0x4be221(_0x51d8('0x11'),_0x1198e1(_0x17ed42,_0x51d8('0x20')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59dc=['afterInit','value','editor','blockQuote','parent','model','filter','schema','ELEMENT_BLOCK_QUOTE','registerDescriptionCallback','BlockQuoteEditing','$root','markBlockFormat','*Remove\x20format:*\x20%0','_descriptionFactory','plugins','get','format','commandName','forceValue','name','checkChild','from','*Format:*\x20%0','commandParams','has','change','selection'];(function(_0x488838,_0x59dc09){const _0x51c9c2=function(_0x493e94){while(--_0x493e94){_0x488838['push'](_0x488838['shift']());}};_0x51c9c2(++_0x59dc09);}(_0x59dc,0x194));const _0x51c9=function(_0x488838,_0x59dc09){_0x488838=_0x488838-0x0;let _0x51c9c2=_0x59dc[_0x488838];return _0x51c9c2;};import{Plugin as _0x5c2929}from'ckeditor5/src/core';import{getTranslation as _0x4f3d90}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x148e5d}from'../utils/utils';export default class U extends _0x5c2929{[_0x51c9('0x10')](){const _0x3882a6=this['editor'],_0x4dfcf1=_0x3882a6['locale'];if(!_0x3882a6[_0x51c9('0x3')][_0x51c9('0xd')](_0x51c9('0x1a')))return;const _0x2f54e0=_0x3882a6[_0x51c9('0x3')][_0x51c9('0x4')]('TrackChangesEditing'),_0x2e744d=this['editor']['commands'][_0x51c9('0x4')](_0x51c9('0x13'));_0x2f54e0['enableCommand'](_0x51c9('0x13'),(_0x49ec03,_0x91731a={})=>{const _0x2f1e2b=this[_0x51c9('0x12')]['model']['document'][_0x51c9('0xf')],_0x5de5c4=_0x91731a&&void 0x0!==_0x91731a[_0x51c9('0x7')]?_0x91731a[_0x51c9('0x7')]:!_0x2e744d[_0x51c9('0x11')];let _0x1e9c0b=[];if(_0x5de5c4){const _0x2489c5=Array['from'](_0x2f1e2b['getSelectedBlocks']())[_0x51c9('0x16')](_0x32b123=>to(_0x32b123)||function(_0x18a9ce,_0x8d17e){const _0x12b053=_0x8d17e[_0x51c9('0x9')](_0x18a9ce[_0x51c9('0x14')],_0x51c9('0x13')),_0x14bcb8=_0x8d17e[_0x51c9('0x9')]([_0x51c9('0x1b'),_0x51c9('0x13')],_0x18a9ce);return _0x12b053&&_0x14bcb8;}(_0x32b123,this[_0x51c9('0x12')]['model'][_0x51c9('0x17')]));_0x1e9c0b=_0x148e5d(_0x2489c5,_0x3882a6['model']);}else{const _0x304f7c=Array[_0x51c9('0xa')](_0x2f1e2b['getSelectedBlocks']())[_0x51c9('0x16')](_0x243668=>to(_0x243668));_0x1e9c0b=_0x148e5d(_0x304f7c,_0x3882a6[_0x51c9('0x15')]);}_0x3882a6[_0x51c9('0x15')][_0x51c9('0xe')](()=>{for(const _0x39385f of _0x1e9c0b)_0x2f54e0[_0x51c9('0x0')](_0x39385f,{'commandName':_0x51c9('0x13'),'commandParams':[{'forceValue':_0x5de5c4}]});});}),_0x2f54e0[_0x51c9('0x2')][_0x51c9('0x19')](_0x56fae6=>{const {data:_0x5de3c6}=_0x56fae6;if(_0x5de3c6&&_0x51c9('0x13')==_0x5de3c6[_0x51c9('0x6')]){const _0x14574e=_0x4f3d90(_0x4dfcf1,_0x51c9('0x18'));return _0x5de3c6[_0x51c9('0xc')][0x0][_0x51c9('0x7')]?{'type':_0x51c9('0x5'),'content':_0x4f3d90(_0x4dfcf1,_0x51c9('0xb'),_0x14574e)}:{'type':_0x51c9('0x5'),'content':_0x4f3d90(_0x4dfcf1,_0x51c9('0x1'),_0x14574e)};}});}}function to(_0x2d3550){return'blockQuote'==_0x2d3550['parent'][_0x51c9('0x8')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18f1=['editor','enableCommand','plugins','ckbox','commands'];(function(_0x265c51,_0x18f177){const _0x4d9526=function(_0x182bf5){while(--_0x182bf5){_0x265c51['push'](_0x265c51['shift']());}};_0x4d9526(++_0x18f177);}(_0x18f1,0x105));const _0x4d95=function(_0x265c51,_0x18f177){_0x265c51=_0x265c51-0x0;let _0x4d9526=_0x18f1[_0x265c51];return _0x4d9526;};import{Plugin as _0x414916}from'ckeditor5/src/core';export default class O extends _0x414916{['afterInit'](){const _0x109545=this[_0x4d95('0x4')];_0x109545[_0x4d95('0x3')]['get'](_0x4d95('0x2'))&&_0x109545[_0x4d95('0x1')]['get']('TrackChangesEditing')[_0x4d95('0x0')](_0x4d95('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e67=['indentCodeBlock','ELEMENT_CODE_BLOCK','get','markBlockFormat','model','registerDescriptionCallback','language','forceValue','schema','checkChild','blockName','config','isLimit','commandParams','codeBlock','*Format:*\x20%0','commandName','registerElementLabel','commands','value','formatBlock','languages','getSelectedBlocks','outdentCodeBlock','afterInit','enableCommand','parent','*Remove\x20format:*\x20%0','from','name','plugins','locale','label','editor'];(function(_0x14569b,_0x1e67e5){const _0xa4075b=function(_0x1bf39b){while(--_0x1bf39b){_0x14569b['push'](_0x14569b['shift']());}};_0xa4075b(++_0x1e67e5);}(_0x1e67,0xb9));const _0xa407=function(_0x14569b,_0x1e67e5){_0x14569b=_0x14569b-0x0;let _0xa4075b=_0x1e67[_0x14569b];return _0xa4075b;};import{Plugin as _0x322131}from'ckeditor5/src/core';import{getTranslation as _0x37151c}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3a328a}from'../utils/utils';export default class E extends _0x322131{[_0xa407('0x9')](){const _0x68c2e1=this[_0xa407('0x12')];if(!_0x68c2e1[_0xa407('0xf')]['has']('CodeBlock'))return;const _0x1194d0=_0x68c2e1[_0xa407('0xf')][_0xa407('0x15')]('TrackChangesEditing'),_0x16f752=_0x68c2e1[_0xa407('0x10')],_0x109d82=_0x68c2e1[_0xa407('0x1e')]['get'](_0xa407('0x21'))[_0xa407('0x6')],_0x14a812=_0x68c2e1[_0xa407('0x3')][_0xa407('0x15')](_0xa407('0x21'));_0x1194d0[_0xa407('0xa')](_0xa407('0x13')),_0x1194d0[_0xa407('0xa')](_0xa407('0x8')),_0x1194d0[_0xa407('0xa')](_0xa407('0x21'),(_0x45703b,_0x52638d={})=>{const _0x2aeee2=_0x68c2e1[_0xa407('0x17')],_0x219ff8=_0x68c2e1[_0xa407('0x17')]['document']['selection'],_0x405a13=_0x52638d&&void 0x0!==_0x52638d[_0xa407('0x1a')]?_0x52638d[_0xa407('0x1a')]:!_0x14a812[_0xa407('0x4')];let _0x1578b4;_0x52638d['language']||(_0x52638d['language']=_0x109d82[0x0]['language']),_0x1578b4=_0x405a13?Array[_0xa407('0xd')](_0x219ff8[_0xa407('0x7')]())['filter'](_0x1e75d4=>oo(_0x1e75d4)||function(_0xc67b2d,_0x3f80b2){if(_0xc67b2d['is']('rootElement')||_0x3f80b2[_0xa407('0x1f')](_0xc67b2d))return!0x1;return _0x3f80b2[_0xa407('0x1c')](_0xc67b2d[_0xa407('0xb')],_0xa407('0x21'));}(_0x1e75d4,_0x2aeee2[_0xa407('0x1b')])):Array[_0xa407('0xd')](_0x219ff8[_0xa407('0x7')]())['filter'](_0x2d8295=>oo(_0x2d8295));const _0x5b3bd2=_0x3a328a(_0x1578b4,_0x2aeee2);_0x2aeee2['change'](()=>{for(const _0x3f2973 of _0x5b3bd2)_0x1194d0[_0xa407('0x16')](_0x3f2973,{'commandName':'codeBlock','commandParams':[{..._0x52638d,'forceValue':_0x405a13}],'formatGroupId':_0xa407('0x1d')});});}),(_0x1194d0['_descriptionFactory'][_0xa407('0x2')](_0xa407('0x21'),_0x7a3213=>_0x37151c(_0x16f752,_0xa407('0x14'),_0x7a3213)),_0x1194d0['_descriptionFactory'][_0xa407('0x18')](_0x26ebb6=>{const _0xcf5918=_0x16f752['t'],{type:_0x3bb6e7,data:_0x3eb823}=_0x26ebb6;if(_0xa407('0x5')==_0x3bb6e7&&_0x3eb823&&_0xa407('0x21')==_0x3eb823[_0xa407('0x1')]){const _0x70d36a=_0x3eb823[_0xa407('0x20')][0x0][_0xa407('0x19')],_0x679205=_0xcf5918(_0x109d82['find'](_0x12e1d5=>_0x12e1d5[_0xa407('0x19')]===_0x70d36a)[_0xa407('0x11')]);return _0x3eb823[_0xa407('0x20')][0x0][_0xa407('0x1a')]?{'type':'format','content':_0x37151c(_0x16f752,_0xa407('0x0'),_0x37151c(_0x16f752,_0xa407('0x14'),0x1)+'\x20('+_0x679205+')')}:{'type':'format','content':_0x37151c(_0x16f752,_0xa407('0xc'),_0x37151c(_0x16f752,_0xa407('0x14'),0x1))};}}));}}function oo(_0x3c1114){return _0xa407('0x21')==_0x3c1114[_0xa407('0xe')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ee3=['has','CommentsEditing','enableCommand','get','TrackChangesEditing','editor','addCommentThread','plugins','afterInit'];(function(_0x31a9f3,_0x1ee39c){const _0x1238e8=function(_0x27878b){while(--_0x27878b){_0x31a9f3['push'](_0x31a9f3['shift']());}};_0x1238e8(++_0x1ee39c);}(_0x1ee3,0x134));const _0x1238=function(_0x31a9f3,_0x1ee39c){_0x31a9f3=_0x31a9f3-0x0;let _0x1238e8=_0x1ee3[_0x31a9f3];return _0x1238e8;};import{Plugin as _0x56052a}from'ckeditor5/src/core';export default class F extends _0x56052a{[_0x1238('0x6')](){const _0x2ca062=this[_0x1238('0x3')];if(!_0x2ca062['plugins'][_0x1238('0x7')](_0x1238('0x8')))return;_0x2ca062[_0x1238('0x5')][_0x1238('0x1')](_0x1238('0x2'))[_0x1238('0x0')](_0x1238('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4643=['data','enqueueChange','editor','lock','downcastDispatcher','requires','removeMarker:suggestion:deletion','addMarker:suggestion:deletion','createSelection','high','delete','merge','detach','document','bind','init','$graveyard','get','start','options','isCollapsed','showSuggestionHighlights','enableCommand','selection','editing','mapper','getFirstRange','remove','markerName','end','model','writer','createRange','forward','deleteForward','markerNameToElements','modifySelection','plugins','buffer','root','fromRange','unit','TrackChangesEditing'];(function(_0x5cd591,_0x46432f){const _0x358c02=function(_0x5ee69f){while(--_0x5ee69f){_0x5cd591['push'](_0x5cd591['shift']());}};_0x358c02(++_0x46432f);}(_0x4643,0x1ea));const _0x358c=function(_0x5cd591,_0x46432f){_0x5cd591=_0x5cd591-0x0;let _0x358c02=_0x4643[_0x5cd591];return _0x358c02;};import{Plugin as _0x5c3617}from'ckeditor5/src/core';import{LiveRange as _0x7b084}from'ckeditor5/src/engine';import{Delete as _0x1cc2d2}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x1dc6cc}from'./utils';export default class G extends _0x5c3617{static get[_0x358c('0x1f')](){return[_0x1cc2d2];}[_0x358c('0x29')](){const _0x3affcd=this[_0x358c('0x1c')],_0x56bf3e=_0x3affcd[_0x358c('0x14')]['get'](_0x358c('0x19'));_0x56bf3e[_0x358c('0x5')](_0x358c('0x24'));const _0xfdc9bc=_0x3affcd['commands'][_0x358c('0x0')](_0x358c('0x11'));_0x56bf3e[_0x358c('0x5')](_0x358c('0x11'),(_0x1f2309,_0x5275ee={})=>{const _0x4f4e93=_0x3affcd[_0x358c('0xd')][_0x358c('0x22')](_0x3affcd[_0x358c('0xd')][_0x358c('0x27')][_0x358c('0x6')]);_0x4f4e93[_0x358c('0x3')]&&_0x3affcd[_0x358c('0xd')][_0x358c('0x13')](_0x4f4e93,{'direction':_0x358c('0x10'),'unit':_0x5275ee[_0x358c('0x18')]});const _0x5f2dcd=_0x4f4e93[_0x358c('0x9')](),_0x3196ab=_0x7b084[_0x358c('0x17')](_0x5f2dcd);let _0x3d0255;_0x1f2309(_0x5275ee),_0x3d0255=_0x358c('0x2a')==_0x3196ab[_0x358c('0x16')]['rootName']?_0x3affcd['model'][_0x358c('0xf')](_0x5f2dcd[_0x358c('0x1')]):_0x3affcd[_0x358c('0xd')]['createRange'](_0x3196ab[_0x358c('0x1')],_0x3196ab[_0x358c('0xc')]),_0x3196ab[_0x358c('0x26')](),_0x3affcd[_0x358c('0xd')][_0x358c('0x1b')](_0xfdc9bc['buffer']['batch'],_0x1deb46=>{_0xfdc9bc[_0x358c('0x15')][_0x358c('0x1d')](),_0x1deb46['setSelection'](_0x1deb46[_0x358c('0xf')](_0x3d0255[_0x358c('0xc')])),_0xfdc9bc[_0x358c('0x15')]['unlock']();});}),_0x3affcd[_0x358c('0x7')][_0x358c('0x1e')]['on'](_0x358c('0x21'),_0x1dc6cc(_0x3affcd,_0x358c('0x25')),{'priority':_0x358c('0x23')}),_0x3affcd[_0x358c('0x1a')]['downcastDispatcher']['on'](_0x358c('0x21'),(_0x59bd70,_0x6f019e,_0x2a86ca)=>{_0x2a86ca[_0x358c('0x2')][_0x358c('0x4')]&&_0x1dc6cc(_0x3affcd,'merge',{'showActiveMarker':!0x1})[_0x358c('0x28')](this)(_0x59bd70,_0x6f019e,_0x2a86ca);},{'priority':_0x358c('0x23')}),_0x3affcd[_0x358c('0x7')][_0x358c('0x1e')]['on'](_0x358c('0x20'),(_0xfeb11,_0x283342,_0x16bfd3)=>{const _0x2a446a=_0x16bfd3[_0x358c('0x8')][_0x358c('0x12')](_0x283342[_0x358c('0xb')]);if(_0x2a446a)for(const _0x2a01e8 of _0x2a446a)_0x2a01e8['is']('uiElement')&&(_0x16bfd3['mapper']['unbindElementFromMarkerName'](_0x2a01e8,_0x283342[_0x358c('0xb')]),_0x16bfd3[_0x358c('0xe')][_0x358c('0xa')](_0x2a01e8));},{'priority':_0x358c('0x23')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bdf=['deletion','_suggestionFactory','accept','plugins','_descriptionFactory','multipleBlocks','getFirstRange','selection','ELEMENT_','enableCommand','push','nextSibling','end','length','toUpperCase','registerDescriptionCallback','*Format:*\x20remove\x20from\x20%0','*Outdent:*\x20%0','createRange','outdentList','*Merge:*\x20%0','nodeAfter','registerCustomCallback','containsItem','isFirstBlockOfListItem','after','detach','splitListItemAfter','afterInit','numberedList','locale','bulletedList','mergeListItemForward','ELEMENT_NUMBERED_LIST','change','schema','before','commandName','splitListItemBefore','listIndent','*Indent:*\x20%0','*Change\x20to:*\x20%0','editor','fromRange','_LIST','map','setSelection','createPositionAt','listType','get','listItemId','findIndex','document','execute','DocumentListUtils','refresh','documentList','commands','from','expandListBlocksToCompleteList','slice','getAttribute','indentList','format','markBlockFormat','commandParams','model','ELEMENT_LIST_ITEM','start','getRanges','*Format:*\x20insert\x20into\x20%0','value','markMultiRangeBlockFormat','getSelectedBlocks','hasAttribute','add','formatBlock','forceValue'];(function(_0x2e4d36,_0x3bdf26){const _0xc750aa=function(_0x5acef4){while(--_0x5acef4){_0x2e4d36['push'](_0x2e4d36['shift']());}};_0xc750aa(++_0x3bdf26);}(_0x3bdf,0x126));const _0xc750=function(_0x2e4d36,_0x3bdf26){_0x2e4d36=_0x2e4d36-0x0;let _0xc750aa=_0x3bdf[_0x2e4d36];return _0xc750aa;};import{Plugin as _0x11c88f}from'ckeditor5/src/core';import{getTranslation as _0x271cb7}from'../utils/common-translations';import{LiveRange as _0x3d4d74}from'ckeditor5/src/engine';export default class L extends _0x11c88f{[_0xc750('0x2e')](){const _0x972ba5=this[_0xc750('0x3c')];if(!_0x972ba5[_0xc750('0x15')]['has']('DocumentListEditing'))return;const _0x5bf94e=_0x972ba5[_0xc750('0x30')],_0x83081f=_0x972ba5[_0xc750('0x15')][_0xc750('0x43')]('TrackChangesEditing'),_0x17c72f=_0x972ba5[_0xc750('0x15')]['get'](_0xc750('0x48'));function _0x12f45a(_0xa65116){return()=>{const _0x1a679e=_0x972ba5[_0xc750('0x4b')]['get'](_0xa65116);let _0x4645f7=Array[_0xc750('0x4c')](_0x972ba5['model']['document'][_0xc750('0x19')][_0xc750('0xd')]());if(_0x22181e(_0xa65116)){_0x4645f7=_0x17c72f[_0xc750('0x4d')](_0x4645f7);const _0x22d4e7=[];for(const _0x48ce63 of _0x4645f7)_0x17c72f[_0xc750('0x2a')](_0x48ce63)&&_0x22d4e7['push'](_0x48ce63);_0x4645f7=_0x22d4e7;}_0x972ba5[_0xc750('0x6')][_0xc750('0x34')](()=>{_0x83081f[_0xc750('0xc')](_0x4645f7,{'commandName':_0xa65116,'commandParams':[{'forceValue':!_0x1a679e[_0xc750('0xb')]}],'formatGroupId':_0xc750('0x42')},[],_0xc750('0x4a'));});};}function _0x1732b2(_0xdebcd3){return()=>{const _0x297dc8=function(_0x2ebfa4){let _0x1daa57=Array['from'](_0x2ebfa4);const _0x3748f2=_0x1daa57[_0xc750('0x45')](_0x569545=>!_0x569545[_0xc750('0xe')](_0xc750('0x44')));return _0x3748f2>-0x1&&(_0x1daa57=_0x1daa57[_0xc750('0x0')](0x0,_0x3748f2)),_0x1daa57;}(_0x972ba5['model'][_0xc750('0x46')]['selection'][_0xc750('0xd')]()),_0x33d609=_0x297dc8[_0x297dc8[_0xc750('0x1f')]-0x1],_0x1a00b3=_0x972ba5[_0xc750('0x6')]['schema']['isObject'](_0x33d609)?_0xc750('0x2b'):_0xc750('0x1e'),_0x4f7e2b=_0x972ba5[_0xc750('0x6')][_0xc750('0x24')](_0x972ba5[_0xc750('0x6')][_0xc750('0x41')](_0x297dc8[0x0],_0xc750('0x36')),_0x972ba5[_0xc750('0x6')][_0xc750('0x41')](_0x33d609,_0x1a00b3));_0x972ba5[_0xc750('0x6')]['change'](()=>{_0x83081f['markBlockFormat'](_0x4f7e2b,{'commandName':_0xdebcd3,'commandParams':[],'formatGroupId':'listType'},function(_0x2116b6){const _0x5035c8=new Set();for(const _0x377fd2 of _0x2116b6){let _0x280486=_0x377fd2[_0xc750('0x1d')];for(;_0x280486&&_0x280486[_0xc750('0x1')](_0xc750('0x39'))>_0x377fd2['getAttribute'](_0xc750('0x39'));)_0x5035c8[_0xc750('0xf')](_0x280486),_0x280486=_0x280486[_0xc750('0x1d')];}return Array['from'](_0x5035c8);}(_0x297dc8));});};}function _0x30b5c0(_0x186345){return()=>{const _0x2b4429=_0x972ba5[_0xc750('0x6')][_0xc750('0x46')][_0xc750('0x19')][_0xc750('0xd')]()['next']()[_0xc750('0xb')],_0x37fef7=_0x972ba5[_0xc750('0x6')][_0xc750('0x41')](_0x2b4429,'before'),_0x78a528=_0x972ba5['model']['createPositionAt'](_0x2b4429,0x0),_0x52732f=_0x972ba5[_0xc750('0x6')]['createRange'](_0x37fef7,_0x78a528);_0x972ba5[_0xc750('0x6')][_0xc750('0x34')](()=>{_0x83081f[_0xc750('0x4')](_0x52732f,{'commandName':_0x186345,'commandParams':[],'formatGroupId':_0xc750('0x42')});});};}function _0x22181e(_0x50da91){const _0x4ace8a=_0x972ba5[_0xc750('0x4b')][_0xc750('0x43')](_0xc750('0x31'))[_0xc750('0xb')],_0x206776=_0x972ba5[_0xc750('0x4b')]['get'](_0xc750('0x2f'))['value'];return _0xc750('0x2f')===_0x50da91?_0x4ace8a:_0x206776;}_0x83081f[_0xc750('0x1b')](_0xc750('0x2f'),_0x12f45a('numberedList')),_0x83081f[_0xc750('0x1b')](_0xc750('0x31'),_0x12f45a(_0xc750('0x31'))),_0x83081f[_0xc750('0x1b')](_0xc750('0x2'),_0x1732b2('indentList')),_0x83081f[_0xc750('0x1b')](_0xc750('0x25'),_0x1732b2(_0xc750('0x25'))),_0x83081f[_0xc750('0x1b')](_0xc750('0x2d'),_0x30b5c0(_0xc750('0x2d'))),_0x83081f[_0xc750('0x1b')](_0xc750('0x38'),_0x30b5c0(_0xc750('0x38'))),_0x83081f[_0xc750('0x16')]['registerElementLabel'](function(_0x55a716){const _0x56baef=!_0x972ba5['model'][_0xc750('0x35')]['isObject'](_0x55a716),_0xb2c75e=_0x55a716['previousSibling'],_0x56cb2b=_0x55a716[_0xc750('0x1d')],_0x2cd895=_0x55a716[_0xc750('0x1')]('listItemId'),_0x4399d2=!_0xb2c75e||_0xb2c75e[_0xc750('0x1')](_0xc750('0x44'))!==_0x2cd895,_0x111cca=!_0x56cb2b||_0x56cb2b[_0xc750('0x1')](_0xc750('0x44'))!==_0x2cd895;return _0x56baef&&Boolean(_0x2cd895)&&_0x4399d2&&_0x111cca;},_0x3c3fb9=>_0x271cb7(_0x5bf94e,_0xc750('0x7'),_0x3c3fb9)),_0x83081f[_0xc750('0x16')][_0xc750('0x21')](function(_0x28abec){const {data:_0x1c3439}=_0x28abec;if(!_0x1c3439)return;let _0x64930c,_0x36f871,_0x4fae15,_0x6bbe16;switch(_0x1c3439[_0xc750('0x37')]){case _0xc750('0x31'):_0x4fae15=_0x1c3439[_0xc750('0x5')][0x0][_0xc750('0x11')],_0x6bbe16=_0x22181e(_0x1c3439[_0xc750('0x37')]),_0x64930c=_0x4fae15?_0xc750('0xa'):_0xc750('0x22'),_0x6bbe16&&(_0x64930c='*Change\x20to:*\x20%0'),_0x36f871={'type':'format','content':_0x271cb7(_0x5bf94e,_0x64930c,_0x271cb7(_0x5bf94e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4fae15=_0x1c3439['commandParams'][0x0]['forceValue'],_0x6bbe16=_0x22181e(_0x1c3439[_0xc750('0x37')]),_0x64930c=_0x4fae15?_0xc750('0xa'):_0xc750('0x22'),_0x6bbe16&&(_0x64930c=_0xc750('0x3b')),_0x36f871={'type':_0xc750('0x3'),'content':_0x271cb7(_0x5bf94e,_0x64930c,_0x271cb7(_0x5bf94e,_0xc750('0x33')))};break;case _0xc750('0x2'):_0x64930c=_0xc750('0x3a'),_0x36f871={'type':'format','content':_0x271cb7(_0x5bf94e,_0x64930c,_0x271cb7(_0x5bf94e,_0xc750('0x7')))};break;case _0xc750('0x25'):_0x64930c=function(_0x21a709){const _0x4c0e11=_0x21a709[_0xc750('0x18')]();let _0x478ec1=_0x4c0e11['start']['nodeAfter'];for(;_0x478ec1&&_0x4c0e11[_0xc750('0x29')](_0x478ec1);){if(_0x478ec1['getAttribute'](_0xc750('0x39'))>0x0)return!0x1;_0x478ec1=_0x478ec1['nextSibling'];}return!0x0;}(_0x28abec)?_0x271cb7(_0x5bf94e,_0xc750('0x22'),_0x271cb7(_0x5bf94e,function(_0x985b44){const _0x420105=_0x985b44['getFirstRange']()[_0xc750('0x8')][_0xc750('0x27')];return _0xc750('0x1a')+_0x420105[_0xc750('0x1')](_0xc750('0x42'))[_0xc750('0x20')]()+_0xc750('0x3e');}(_0x28abec))):_0x271cb7(_0x5bf94e,_0xc750('0x23'),_0x271cb7(_0x5bf94e,_0xc750('0x7'))),_0x36f871={'type':'format','content':_0x64930c};break;case'mergeListItemBackward':case _0xc750('0x32'):!0x1===_0x1c3439[_0xc750('0x17')]&&(_0x64930c=_0xc750('0x26'),_0x36f871={'type':_0xc750('0x12'),'content':_0x271cb7(_0x5bf94e,_0x64930c,_0x271cb7(_0x5bf94e,'ELEMENT_LIST_ITEM'))});}return _0x36f871;}),_0x83081f[_0xc750('0x13')][_0xc750('0x28')](_0xc750('0x10'),'documentList',_0xc750('0x14'),function(_0x408ff2,_0x54f47a){const _0x605da3=[];for(let _0x468511 of _0x408ff2)_0x468511[_0xc750('0x8')]['nodeAfter']===_0x468511['end']['parent']&&(_0x468511=_0x972ba5[_0xc750('0x6')][_0xc750('0x24')](_0x972ba5['model'][_0xc750('0x41')](_0x468511[_0xc750('0x8')]['nodeAfter'],0x0))),_0x605da3[_0xc750('0x1c')](_0x468511);_0x972ba5[_0xc750('0x6')]['change'](_0x359b5c=>{const _0x12fc4f=_0x972ba5[_0xc750('0x6')][_0xc750('0x46')][_0xc750('0x19')],_0x2516e8=Array['from'](_0x12fc4f[_0xc750('0x9')]())[_0xc750('0x3f')](_0x58812c=>_0x3d4d74[_0xc750('0x3d')](_0x58812c));_0x359b5c[_0xc750('0x40')](_0x605da3),_0x972ba5[_0xc750('0x4b')][_0xc750('0x43')](_0x54f47a[_0xc750('0x37')])[_0xc750('0x49')](),_0x54f47a[_0xc750('0x5')][_0xc750('0x1c')]({'forceDefaultExecution':!0x0}),_0x972ba5[_0xc750('0x47')](_0x54f47a[_0xc750('0x37')],..._0x54f47a[_0xc750('0x5')]),_0x359b5c[_0xc750('0x40')](_0x2516e8);for(const _0x18f3a6 of _0x2516e8)_0x18f3a6[_0xc750('0x2c')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x397d=['reversed','numbered','toUpperCase','_LIST_','listReversed','model','DocumentListPropertiesEditing','_getSuggestionBlocksForListStyle','getAttribute','_getTranslationKeyForListStyle','listStart','handleListStartCommand','markMultiRangeBlockFormat','replace','editor','change','handleListReversedCommand','document','commandParams','push','_getSuggestionBlocks','get','DocumentListUtils','ELEMENT_','enableCommand','afterInit','getSelectedBlocks','*Format:*\x20set\x20order\x20to\x20reversed','has','getListTypeFromListStyleType','handleDescriptions','format','listStyle','DocumentListPropertiesUtils','isListItemBlock','isFirstBlockOfListItem','from','bind','*Format:*\x20set\x20order\x20to\x20regular','*Format:*\x20set\x20start\x20index\x20to\x20%0','startIndex','length','TrackChangesEditing','listType','expandListBlocksToCompleteList','plugins','*Change\x20to:*\x20%0','handleListStyleCommand','config','locale','styles'];(function(_0x4d9157,_0x397d50){const _0x1d1e93=function(_0x10fcf0){while(--_0x10fcf0){_0x4d9157['push'](_0x4d9157['shift']());}};_0x1d1e93(++_0x397d50);}(_0x397d,0x1aa));const _0x1d1e=function(_0x4d9157,_0x397d50){_0x4d9157=_0x4d9157-0x0;let _0x1d1e93=_0x397d[_0x4d9157];return _0x1d1e93;};import{Plugin as _0x593b3a}from'ckeditor5/src/core';import{getTranslation as _0x1132e2}from'../utils/common-translations';export default class At extends _0x593b3a{[_0x1d1e('0x7')](){if(!this[_0x1d1e('0x2f')][_0x1d1e('0x1b')][_0x1d1e('0xa')](_0x1d1e('0x27')))return;const _0x1ab23b=this[_0x1d1e('0x2f')][_0x1d1e('0x1e')]['get']('list.properties'),_0x3238d9=this[_0x1d1e('0x2f')][_0x1d1e('0x1b')][_0x1d1e('0x3')](_0x1d1e('0x18'));_0x1ab23b[_0x1d1e('0x20')]&&_0x3238d9[_0x1d1e('0x6')](_0x1d1e('0xe'),this[_0x1d1e('0x1d')][_0x1d1e('0x13')](this)),_0x1ab23b[_0x1d1e('0x21')]&&_0x3238d9[_0x1d1e('0x6')](_0x1d1e('0x25'),this['handleListReversedCommand']['bind'](this)),_0x1ab23b[_0x1d1e('0x16')]&&_0x3238d9[_0x1d1e('0x6')](_0x1d1e('0x2b'),this[_0x1d1e('0x2c')][_0x1d1e('0x13')](this)),_0x3238d9['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}[_0x1d1e('0x1d')](_0x1daa50,_0x40c642={}){const _0x1a8265=this[_0x1d1e('0x2f')]['plugins'][_0x1d1e('0x3')]('TrackChangesEditing'),_0x6f3f0b=this[_0x1d1e('0x28')]();this[_0x1d1e('0x2f')][_0x1d1e('0x26')][_0x1d1e('0x30')](()=>{_0x1a8265[_0x1d1e('0x2d')](_0x6f3f0b,{'commandName':_0x1d1e('0xe'),'commandParams':[{'type':_0x40c642['type']}],'formatGroupId':_0x1d1e('0xe')});});}[_0x1d1e('0x31')](_0x546b5c,_0x140a26={}){const _0x494f21=this['editor'][_0x1d1e('0x1b')][_0x1d1e('0x3')](_0x1d1e('0x18')),_0x193d30=this['editor'][_0x1d1e('0x1b')][_0x1d1e('0x3')](_0x1d1e('0x4')),_0x1c1fdd=this['_getSuggestionBlocks'](_0x202af8=>_0x193d30[_0x1d1e('0x10')](_0x202af8)&&_0x1d1e('0x22')===_0x202af8[_0x1d1e('0x29')]('listType'));null!==_0x1c1fdd&&this[_0x1d1e('0x2f')][_0x1d1e('0x26')][_0x1d1e('0x30')](()=>{_0x494f21[_0x1d1e('0x2d')](_0x1c1fdd,{'commandName':_0x1d1e('0x25'),'commandParams':[{'reversed':_0x140a26['reversed']}],'formatGroupId':_0x1d1e('0x25')});});}[_0x1d1e('0x2c')](_0x35405d,_0x258324={}){const _0x29528d=this[_0x1d1e('0x2f')][_0x1d1e('0x1b')][_0x1d1e('0x3')](_0x1d1e('0x18')),_0x19e35e=this['editor'][_0x1d1e('0x1b')][_0x1d1e('0x3')](_0x1d1e('0x4')),_0x4acbfb=this['_getSuggestionBlocks'](_0x111010=>_0x19e35e[_0x1d1e('0x10')](_0x111010)&&_0x1d1e('0x22')===_0x111010[_0x1d1e('0x29')](_0x1d1e('0x19')));null!==_0x4acbfb&&this['editor']['model']['change'](()=>{_0x29528d[_0x1d1e('0x2d')](_0x4acbfb,{'commandName':_0x1d1e('0x2b'),'commandParams':[{'startIndex':_0x258324['startIndex']}],'formatGroupId':_0x1d1e('0x2b')});});}[_0x1d1e('0xc')](_0x3f2511){const _0x1bc93f=this[_0x1d1e('0x2f')][_0x1d1e('0x1f')],{data:_0x44481f}=_0x3f2511;if(!_0x44481f)return;let _0x5361ed,_0xff6142;switch(_0x44481f['commandName']){case _0x1d1e('0xe'):_0x5361ed=_0x1d1e('0x1c'),_0xff6142={'type':_0x1d1e('0xd'),'content':_0x1132e2(_0x1bc93f,_0x5361ed,_0x1132e2(_0x1bc93f,this[_0x1d1e('0x2a')](_0x44481f[_0x1d1e('0x0')][0x0]['type'])))};break;case _0x1d1e('0x25'):_0x5361ed=_0x44481f[_0x1d1e('0x0')][0x0][_0x1d1e('0x21')]?_0x1d1e('0x9'):_0x1d1e('0x14'),_0xff6142={'type':'format','content':_0x1132e2(_0x1bc93f,_0x5361ed)};break;case _0x1d1e('0x2b'):_0x5361ed=_0x1d1e('0x15'),_0xff6142={'type':_0x1d1e('0xd'),'content':_0x1132e2(_0x1bc93f,_0x5361ed,_0x44481f['commandParams'][0x0][_0x1d1e('0x16')])};}return _0xff6142;}[_0x1d1e('0x28')](){const _0x260865=this[_0x1d1e('0x2f')]['plugins'][_0x1d1e('0x3')]('DocumentListUtils');let _0x289f28=Array['from'](this[_0x1d1e('0x2f')][_0x1d1e('0x26')][_0x1d1e('0x32')]['selection'][_0x1d1e('0x8')]());return _0x289f28[_0x1d1e('0x1')](..._0x260865[_0x1d1e('0x1a')](_0x289f28)),_0x289f28=[...new Set(_0x289f28)],_0x289f28;}[_0x1d1e('0x2')](_0xc9afaf){const _0x4c0dfe=this[_0x1d1e('0x2f')]['plugins']['get'](_0x1d1e('0x4'));let _0x5a9403=Array[_0x1d1e('0x12')](this['editor'][_0x1d1e('0x26')][_0x1d1e('0x32')]['selection']['getSelectedBlocks']())['filter'](_0xc9afaf);if(!_0x5a9403[_0x1d1e('0x17')])return null;_0x5a9403=_0x4c0dfe[_0x1d1e('0x1a')](_0x5a9403);const _0x536b2f=[];for(const _0x1968db of _0x5a9403)_0x4c0dfe[_0x1d1e('0x11')](_0x1968db)&&_0x536b2f[_0x1d1e('0x1')](_0x1968db);return _0x536b2f;}['_getTranslationKeyForListStyle'](_0x29d1ee){return _0x1d1e('0x5')+this[_0x1d1e('0x2f')][_0x1d1e('0x1b')][_0x1d1e('0x3')](_0x1d1e('0xf'))[_0x1d1e('0xb')](_0x29d1ee)[_0x1d1e('0x23')]()+_0x1d1e('0x24')+_0x29d1ee['toUpperCase']()[_0x1d1e('0x2e')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x70b6=['selection','getFirstPosition','remove','markerNameToElements','mapper','createPositionAt','createRange','model','detach','markInsertion','options','fromRange','addMarker:suggestion:insertion','bind','TrackChangesEditing','enableCommand','afterExecute','get','plugins','showSuggestionHighlights','markerName','requires','init','commands','split','downcastDispatcher','editor','end','hasClass','editing','document','nextSibling','data','ck-suggestion-marker-split','enter','getFirstRange','high','writer','setSelection'];(function(_0x527f04,_0x70b679){const _0xd143d5=function(_0x15c9d8){while(--_0x15c9d8){_0x527f04['push'](_0x527f04['shift']());}};_0xd143d5(++_0x70b679);}(_0x70b6,0x1be));const _0xd143=function(_0x527f04,_0x70b679){_0x527f04=_0x527f04-0x0;let _0xd143d5=_0x70b6[_0x527f04];return _0xd143d5;};import{Plugin as _0x41ef46}from'ckeditor5/src/core';import{Enter as _0x268928}from'ckeditor5/src/enter';import{LiveRange as _0x1d66c5}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x21fb96}from'./utils';export default class q extends _0x41ef46{static get[_0xd143('0x4')](){return[_0x268928];}[_0xd143('0x5')](){const _0x1f66da=this[_0xd143('0x9')],_0x501fb3=_0x1f66da[_0xd143('0x1')][_0xd143('0x0')](_0xd143('0x24')),_0x5e608a=_0x1f66da[_0xd143('0x6')][_0xd143('0x0')](_0xd143('0x11'));_0x501fb3[_0xd143('0x25')](_0xd143('0x11'),()=>{_0x1f66da['model']['change'](_0x5aee11=>{const _0x4dd37c=_0x1f66da[_0xd143('0x1d')][_0xd143('0xd')][_0xd143('0x16')],_0x47a145=_0x4dd37c[_0xd143('0x17')](),_0x462c9a=_0x1d66c5[_0xd143('0x21')](_0x4dd37c[_0xd143('0x12')]());if(_0x5e608a['enterBlock'](_0x5aee11)){const _0x16fd85=_0x1f66da[_0xd143('0x1d')][_0xd143('0x1b')](_0x47a145['parent'][_0xd143('0xe')],0x0),_0xd28601=_0x5aee11[_0xd143('0x1c')](_0x47a145,_0x16fd85);_0x501fb3[_0xd143('0x1f')](_0xd28601);}else _0x5aee11[_0xd143('0x15')](_0x5aee11[_0xd143('0x1c')](_0x462c9a[_0xd143('0xa')]));_0x462c9a[_0xd143('0x1e')](),_0x5e608a['fire'](_0xd143('0x26'),{'writer':_0x5aee11});});}),_0x1f66da[_0xd143('0xc')][_0xd143('0x8')]['on'](_0xd143('0x22'),_0x21fb96(_0x1f66da,_0xd143('0x7')),{'priority':_0xd143('0x13')}),_0x1f66da[_0xd143('0xc')][_0xd143('0x8')]['on']('removeMarker:suggestion:insertion',(_0x1be7ac,_0x546f18,_0x49e127)=>{const _0x51ef3c=_0x49e127[_0xd143('0x1a')][_0xd143('0x19')](_0x546f18[_0xd143('0x3')]);if(_0x51ef3c)for(const _0x184d0d of _0x51ef3c)_0x184d0d[_0xd143('0xb')](_0xd143('0x10'))&&(_0x49e127[_0xd143('0x1a')]['unbindElementFromMarkerName'](_0x184d0d,_0x546f18['markerName']),_0x49e127[_0xd143('0x14')][_0xd143('0x18')](_0x184d0d));},{'priority':_0xd143('0x13')}),_0x1f66da[_0xd143('0xf')][_0xd143('0x8')]['on'](_0xd143('0x22'),(_0x23b446,_0x259c54,_0xf96c20)=>{_0xf96c20[_0xd143('0x20')][_0xd143('0x2')]&&_0x21fb96(_0x1f66da,_0xd143('0x7'),{'showActiveMarker':!0x1})[_0xd143('0x23')](this)(_0x23b446,_0x259c54,_0xf96c20);},{'priority':_0xd143('0x13')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5566=['string','getMarkersGroup','suggestion:deletion','enableCommand','replace','item','markers','FindAndReplaceEditing','handleFindCommand','replaceAll','filter','find','findPrevious','plugins','has','model','end','_isInDeletionRange','createPositionAt','editor','createRange','get'];(function(_0x4f7d92,_0x556628){const _0x40c6ec=function(_0x4d5c50){while(--_0x4d5c50){_0x4f7d92['push'](_0x4f7d92['shift']());}};_0x40c6ec(++_0x556628);}(_0x5566,0x1b2));const _0x40c6=function(_0x4f7d92,_0x556628){_0x4f7d92=_0x4f7d92-0x0;let _0x40c6ec=_0x5566[_0x4f7d92];return _0x40c6ec;};import{Plugin as _0x3c8989}from'ckeditor5/src/core';export default class z extends _0x3c8989{['afterInit'](){if(!this['editor'][_0x40c6('0x13')][_0x40c6('0x14')](_0x40c6('0xd')))return;const _0x2d63fa=this[_0x40c6('0x3')][_0x40c6('0x13')][_0x40c6('0x5')]('TrackChangesEditing');_0x2d63fa['enableCommand'](_0x40c6('0x11'),this[_0x40c6('0xe')]['bind'](this)),_0x2d63fa[_0x40c6('0x9')]('findNext'),_0x2d63fa[_0x40c6('0x9')](_0x40c6('0x12')),_0x2d63fa['enableCommand'](_0x40c6('0xa')),_0x2d63fa[_0x40c6('0x9')](_0x40c6('0xf'));}['handleFindCommand'](_0x3096be,_0x17d8fb,_0x2cf6d8={}){const _0x366358=this[_0x40c6('0x3')][_0x40c6('0x13')]['get']('FindAndReplaceUtils');void 0x0!==_0x2cf6d8&&_0x3096be(_0x59dda0=>(_0x40c6('0x6')==typeof _0x17d8fb?_0x366358['findByTextCallback'](_0x17d8fb,_0x2cf6d8):_0x17d8fb)(_0x59dda0)[_0x40c6('0x10')](_0x3872db=>!0x1===this[_0x40c6('0x1')](_0x3872db,_0x59dda0[_0x40c6('0xb')])),_0x2cf6d8);}['_isInDeletionRange'](_0x3091de,_0x447d1f){const _0x58eca5=this[_0x40c6('0x3')][_0x40c6('0x15')][_0x40c6('0x4')](this[_0x40c6('0x3')][_0x40c6('0x15')][_0x40c6('0x2')](_0x447d1f,_0x3091de['start']),this[_0x40c6('0x3')]['model'][_0x40c6('0x2')](_0x447d1f,_0x3091de[_0x40c6('0x0')]));for(const _0x26f743 of this[_0x40c6('0x3')][_0x40c6('0x15')][_0x40c6('0xc')][_0x40c6('0x7')](_0x40c6('0x8')))if(null!==_0x58eca5['getIntersection'](_0x26f743['getRange']()))return!0x0;return!0x1;}}
|