@ckeditor/ckeditor5-track-changes 38.0.1 → 38.1.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 +10 -8
- 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.d.ts +3 -2
- 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.d.ts +3 -2
- 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.d.ts +3 -2
- 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.d.ts +3 -2
- 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.d.ts +3 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +3 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +3 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +3 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +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.d.ts +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +4 -5
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +49 -5
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +5 -5
- 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.d.ts +0 -2
- 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,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "38.0
|
|
3
|
+
"version": "38.1.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://support.ckeditor.com/hc/en-us/requests/new"
|
|
9
|
+
},
|
|
7
10
|
"homepage": "https://ckeditor.com/collaboration/track-changes/",
|
|
8
11
|
"keywords": [
|
|
9
12
|
"CKEditor",
|
|
@@ -35,16 +38,15 @@
|
|
|
35
38
|
"ckeditor5-metadata.json",
|
|
36
39
|
"CHANGELOG.md"
|
|
37
40
|
],
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dll:build": "webpack",
|
|
40
|
-
"build": "tsc -p ./tsconfig.json",
|
|
41
|
-
"postversion": "npm run build"
|
|
42
|
-
},
|
|
43
41
|
"dependencies": {
|
|
44
|
-
"ckeditor5": "
|
|
45
|
-
"ckeditor5-collaboration": "
|
|
42
|
+
"ckeditor5": "38.1.0",
|
|
43
|
+
"ckeditor5-collaboration": "38.1.0",
|
|
46
44
|
"lodash-es": "^4.17.11"
|
|
47
45
|
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=16.0.0",
|
|
48
|
+
"npm": ">=5.7.1"
|
|
49
|
+
},
|
|
48
50
|
"types": "src/index.d.ts",
|
|
49
51
|
"obfuscated": true
|
|
50
52
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2538=['getRanges','_isEnabledBasedOnSelection','isEnabled','execute','plugins','editor','get','TrackChangesEditing','acceptSuggestion','_suggestions','model','canEditAt','refresh'];(function(_0x362c50,_0x253809){const _0xd34df4=function(_0x1c2219){while(--_0x1c2219){_0x362c50['push'](_0x362c50['shift']());}};_0xd34df4(++_0x253809);}(_0x2538,0x147));const _0xd34d=function(_0x362c50,_0x253809){_0x362c50=_0x362c50-0x0;let _0xd34df4=_0x2538[_0x362c50];return _0xd34df4;};import{Command as _0x2968f4}from'ckeditor5/src/core';import{CKEditorError as _0x9c422c}from'ckeditor5/src/utils';export default class M extends _0x2968f4{constructor(_0x2da165,_0x595de4){super(_0x2da165),this['_suggestions']=_0x595de4,this[_0xd34d('0xa')](),this[_0xd34d('0xc')]=!0x1;}[_0xd34d('0xa')](){this[_0xd34d('0x0')]=!0x0;}[_0xd34d('0x1')](_0x49dd1b){const _0x515ac3=this[_0xd34d('0x7')][_0xd34d('0x4')](_0x49dd1b);if(!_0x515ac3)throw new _0x9c422c('track-changes-accept-suggestion-not-found',this);const _0x355762=_0x515ac3[_0xd34d('0xb')]();this[_0xd34d('0x3')][_0xd34d('0x8')][_0xd34d('0x9')](_0x355762)&&this[_0xd34d('0x3')][_0xd34d('0x2')][_0xd34d('0x4')](_0xd34d('0x5'))[_0xd34d('0x6')](_0x515ac3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c73=['discardSuggestion','refresh','get','_isEnabledBasedOnSelection','model','isEnabled','_suggestions','editor','getRanges','canEditAt','TrackChangesEditing','plugins'];(function(_0x23785e,_0x5c7306){const _0x5d3772=function(_0xe8c613){while(--_0xe8c613){_0x23785e['push'](_0x23785e['shift']());}};_0x5d3772(++_0x5c7306);}(_0x5c73,0xf9));const _0x5d37=function(_0x23785e,_0x5c7306){_0x23785e=_0x23785e-0x0;let _0x5d3772=_0x5c73[_0x23785e];return _0x5d3772;};import{Command as _0xa4c286}from'ckeditor5/src/core';import{CKEditorError as _0x225af8}from'ckeditor5/src/utils';export default class $ extends _0xa4c286{constructor(_0xa853f3,_0x362bb3){super(_0xa853f3),this[_0x5d37('0x9')]=_0x362bb3,this[_0x5d37('0x4')](),this[_0x5d37('0x6')]=!0x1;}[_0x5d37('0x4')](){this[_0x5d37('0x8')]=!0x0;}['execute'](_0x482411){const _0x275600=this['_suggestions'][_0x5d37('0x5')](_0x482411);if(!_0x275600)throw new _0x225af8('track-changes-discard-suggestion-not-found',this);const _0x358afa=_0x275600[_0x5d37('0xb')]();this[_0x5d37('0xa')][_0x5d37('0x7')][_0x5d37('0x0')](_0x358afa)&&this['editor'][_0x5d37('0x2')][_0x5d37('0x5')](_0x5d37('0x1'))[_0x5d37('0x3')](_0x275600);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43b1=['_suggestions','editor','canEditAt','refresh','some','getRanges','values','from','model','_command','_isEnabledBasedOnSelection','execute','isEnabled'];(function(_0x25982b,_0x43b110){const _0xdd268c=function(_0x375718){while(--_0x375718){_0x25982b['push'](_0x25982b['shift']());}};_0xdd268c(++_0x43b110);}(_0x43b1,0x102));const _0xdd26=function(_0x25982b,_0x43b110){_0x25982b=_0x25982b-0x0;let _0xdd268c=_0x43b1[_0x25982b];return _0xdd268c;};import{Command as _0x2435a6}from'ckeditor5/src/core';import{sortSuggestions as _0x3c71ce,executeCommandForSuggestions as _0x1bf965}from'../utils/utils';export default class N extends _0x2435a6{constructor(_0x5e9bdb,_0x4890ea,_0x540ae4){super(_0x5e9bdb),this[_0xdd26('0xb')]=_0x4890ea,this[_0xdd26('0x2')]=_0x540ae4,this[_0xdd26('0x5')](),this[_0xdd26('0xc')]=!0x1;}[_0xdd26('0x5')](){const _0x22d2f6=Array[_0xdd26('0x9')](this[_0xdd26('0x2')][_0xdd26('0x8')]())[_0xdd26('0x6')](_0x424b88=>_0x424b88['isInContent']);this[_0xdd26('0x1')]=this[_0xdd26('0xb')][_0xdd26('0x1')]&&_0x22d2f6;}[_0xdd26('0x0')](){const _0x1fdffe=_0x3c71ce(Array[_0xdd26('0x9')](this[_0xdd26('0x2')][_0xdd26('0x8')]()));for(const _0x5eac4e of _0x1fdffe){const _0x5a8ab8=_0x5eac4e[_0xdd26('0x7')]();if(!this['editor'][_0xdd26('0xa')][_0xdd26('0x4')](_0x5a8ab8))return;}_0x1bf965(this[_0xdd26('0x3')][_0xdd26('0xa')],this[_0xdd26('0xb')],_0x1fdffe);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19dd=['_isEnabledBasedOnSelection','getRanges','selection','size','_command','canEditAt','editor','refresh','model','_suggestions','document','_selectedSuggestions'];(function(_0x2e7c7f,_0x19dd7e){const _0x5683a6=function(_0x59bfa0){while(--_0x59bfa0){_0x2e7c7f['push'](_0x2e7c7f['shift']());}};_0x5683a6(++_0x19dd7e);}(_0x19dd,0x127));const _0x5683=function(_0x2e7c7f,_0x19dd7e){_0x2e7c7f=_0x2e7c7f-0x0;let _0x5683a6=_0x19dd[_0x2e7c7f];return _0x5683a6;};import{Command as _0x33f24b}from'ckeditor5/src/core';import{sortSuggestions as _0x473305,getSelectedSuggestions as _0x21b9c9,executeCommandForSuggestions as _0x43a3ef}from'../utils/utils';export default class R extends _0x33f24b{constructor(_0x4baf91,_0x4c0b84,_0x162f1d){super(_0x4baf91),this[_0x5683('0x9')]=_0x4c0b84,this[_0x5683('0x2')]=_0x162f1d,this[_0x5683('0x4')]=new Set(),this[_0x5683('0x0')](),this[_0x5683('0x5')]=!0x1;}[_0x5683('0x0')](){const _0x15005d=this['editor'][_0x5683('0x1')][_0x5683('0x3')][_0x5683('0x7')],_0x3869a7=Array['from'](this[_0x5683('0x2')]['values']());this['_selectedSuggestions']=_0x21b9c9(_0x15005d,_0x3869a7),this['isEnabled']=this[_0x5683('0x9')]['isEnabled']&&!!this[_0x5683('0x4')][_0x5683('0x8')];}['execute'](){const _0x46766a=_0x473305(Array['from'](this[_0x5683('0x4')]));for(const _0x36ad3b of _0x46766a){const _0x43450a=_0x36ad3b[_0x5683('0x6')]();if(!this[_0x5683('0xb')][_0x5683('0x1')][_0x5683('0xa')](_0x43450a))return;}_0x43a3ef(this[_0x5683('0xb')][_0x5683('0x1')],this[_0x5683('0x9')],_0x46766a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7da7=['value','_disableUnsupportedCommands','execute','_enabledCommands','_enableCommands','affectsData','clearForceDisabled','editor','commands','TrackChangesCommand','isEnabled','_isEnabledBasedOnSelection'];(function(_0x3d0c30,_0x7da75b){const _0x1b50d5=function(_0x130a38){while(--_0x130a38){_0x3d0c30['push'](_0x3d0c30['shift']());}};_0x1b50d5(++_0x7da75b);}(_0x7da7,0x164));const _0x1b50=function(_0x3d0c30,_0x7da75b){_0x3d0c30=_0x3d0c30-0x0;let _0x1b50d5=_0x7da7[_0x3d0c30];return _0x1b50d5;};import{Command as _0x3b03ae}from'ckeditor5/src/core';export default class _ extends _0x3b03ae{constructor(_0x1fae33,_0x5285db){super(_0x1fae33),this[_0x1b50('0x7')]=_0x5285db,this['value']=!0x1,this['refresh'](),this[_0x1b50('0x3')]=!0x1;}['refresh'](){this[_0x1b50('0x2')]=!0x0;}[_0x1b50('0x6')](){this['value']=!this['value'],this[_0x1b50('0x4')]?this[_0x1b50('0x5')]():this['_enableCommands']();}[_0x1b50('0x5')](){for(const _0x20e846 of this[_0x1b50('0xb')][_0x1b50('0x0')][_0x1b50('0x0')]())_0x20e846[_0x1b50('0x9')]&&!this['_enabledCommands']['has'](_0x20e846)&&_0x20e846['forceDisabled']('TrackChangesCommand');}[_0x1b50('0x8')](){for(const _0x2249bc of this[_0x1b50('0xb')][_0x1b50('0x0')][_0x1b50('0x0')]())_0x2249bc['affectsData']&&!this[_0x1b50('0x7')]['has'](_0x2249bc)&&_0x2249bc[_0x1b50('0xa')](_0x1b50('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b52=['locale','enableCommand','document','get','justify','has','*Format:*\x20%0','center','model','alignment','ltr','commandParams','value','markBlockFormat','right','editor','left','change','afterInit','checkAttribute','getSelectedBlocks','filter','schema'];(function(_0x459018,_0x5b52f7){const _0x4f0163=function(_0x41e999){while(--_0x41e999){_0x459018['push'](_0x459018['shift']());}};_0x4f0163(++_0x5b52f7);}(_0x5b52,0x188));const _0x4f01=function(_0x459018,_0x5b52f7){_0x459018=_0x459018-0x0;let _0x4f0163=_0x5b52[_0x459018];return _0x4f0163;};import{Plugin as _0x370c17}from'ckeditor5/src/core';import{getTranslation as _0x39a7c6}from'../utils/common-translations';export default class x extends _0x370c17{[_0x4f01('0x11')](){const _0x280144=this['editor'],_0x5311b1=_0x280144['locale'];if(!_0x280144['plugins'][_0x4f01('0x4')]('AlignmentEditing'))return;const _0x9d82a5=_0x280144['plugins'][_0x4f01('0x2')]('TrackChangesEditing');_0x9d82a5[_0x4f01('0x0')](_0x4f01('0x8'),(_0x32d1cf,_0xbe8882={})=>{let _0x1c0899=_0xbe8882[_0x4f01('0xb')];_0xbe8882[_0x4f01('0xb')]||(_0x1c0899=_0x4f01('0x9')===_0x280144[_0x4f01('0x16')]['contentLanguageDirection']?'left':_0x4f01('0xd'));const _0x5b29f0=Array['from'](this[_0x4f01('0xe')][_0x4f01('0x7')][_0x4f01('0x1')]['selection'][_0x4f01('0x13')]())[_0x4f01('0x14')](_0x15a4c4=>function(_0xab3cd7,_0x232f78,_0x69cca7){const _0xf71446=_0xab3cd7['getAttribute'](_0x4f01('0x8'))||null;return _0x232f78[_0x4f01('0x12')](_0xab3cd7,'alignment')&&_0x69cca7!=_0xf71446;}(_0x15a4c4,this['editor'][_0x4f01('0x7')][_0x4f01('0x15')],_0x1c0899));_0x280144[_0x4f01('0x7')][_0x4f01('0x10')](()=>{for(const _0x37fd09 of _0x5b29f0)_0x9d82a5[_0x4f01('0xc')](_0x37fd09,{'commandName':_0x4f01('0x8'),'commandParams':[{'value':_0x1c0899}]});});}),_0x9d82a5['_descriptionFactory']['registerDescriptionCallback'](_0x18903b=>{const {data:_0x214d59}=_0x18903b;if(_0x214d59&&_0x4f01('0x8')==_0x214d59['commandName']){const _0xdd721=_0x214d59[_0x4f01('0xa')][0x0][_0x4f01('0xb')];return{'type':'format','content':_0x39a7c6(_0x5311b1,_0x4f01('0x5'),function(_0x33fd14){switch(_0x33fd14){case _0x4f01('0xf'):return _0x39a7c6(_0x5311b1,'FORMAT_ALIGN_TO_LEFT');case _0x4f01('0xd'):return _0x39a7c6(_0x5311b1,'FORMAT_ALIGN_TO_RIGHT');case _0x4f01('0x6'):return _0x39a7c6(_0x5311b1,'FORMAT_ALIGN_TO_CENTER');case _0x4f01('0x3'):return _0x39a7c6(_0x5311b1,'FORMAT_JUSTIFY_TEXT');}}(_0xdd721))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x296b=['editor','StrikethroughEditing','TrackChangesEditing','getRanges','FORMAT_CODE','*Remove\x20format:*\x20%0','plugins','FORMAT_SUPERSCRIPT','get','ItalicEditing','commandName','isCollapsed','afterInit','SuperscriptEditing','underline','CodeEditing','BoldEditing','SubscriptEditing','format','commands','model','forceValue','_descriptionFactory','code','FORMAT_UNDERLINE','document','change','FORMAT_SUBSCRIPT','FORMAT_BOLD','has','registerDescriptionCallback','UnderlineEditing','strikethrough','toLowerCase'];(function(_0x5bd469,_0x296bb5){const _0xed7e63=function(_0x35badd){while(--_0x35badd){_0x5bd469['push'](_0x5bd469['shift']());}};_0xed7e63(++_0x296bb5);}(_0x296b,0x7c));const _0xed7e=function(_0x5bd469,_0x296bb5){_0x5bd469=_0x5bd469-0x0;let _0xed7e63=_0x296b[_0x5bd469];return _0xed7e63;};import{Plugin as _0x2a6007}from'ckeditor5/src/core';import{getTranslation as _0xe801e7}from'../utils/common-translations';import{getRangesWithAttribute as _0x251126}from'./utils';const Kt=[_0xed7e('0x1c'),_0xed7e('0x15'),_0xed7e('0x9'),_0xed7e('0x1b'),_0xed7e('0xd'),_0xed7e('0x1d'),_0xed7e('0x19')];export default class U extends _0x2a6007{[_0xed7e('0x18')](){const _0x1d07d1=this[_0xed7e('0xc')],_0x2df539=_0x1d07d1[_0xed7e('0x20')],_0xc94864=_0x1d07d1[_0xed7e('0x12')][_0xed7e('0x14')](_0xed7e('0xe')),_0x310f48=_0x1d07d1['locale'];for(const _0x1d5656 of Kt){if(!_0x1d07d1[_0xed7e('0x12')][_0xed7e('0x7')](_0x1d5656))continue;const _0x14182a=_0x1d5656['slice'](0x0,-0x7)[_0xed7e('0xb')](),_0x4fdf9d=_0x1d07d1[_0xed7e('0x1f')][_0xed7e('0x14')](_0x14182a);_0xc94864['enableCommand'](_0x14182a,(_0xbb3a1d,_0x4da972={})=>{const _0x145083=_0x2df539[_0xed7e('0x3')]['selection'];if(_0x145083[_0xed7e('0x17')])return void _0xbb3a1d(_0x4da972);const _0x5cf43b=void 0x0!==_0x4da972[_0xed7e('0x21')]?_0x4da972[_0xed7e('0x21')]:!_0x4fdf9d['value'];_0x2df539[_0xed7e('0x4')](()=>{const _0x299771=Array['from'](_0x145083[_0xed7e('0xf')]());for(const _0x4745b1 of _0x299771){const _0x131b60=_0x5cf43b?[_0x4745b1]:_0x251126(_0x14182a,_0x4745b1,_0x2df539);for(const _0x1c8d01 of _0x131b60)_0xc94864['markInlineFormat'](_0x1c8d01,{'commandName':_0x14182a,'commandParams':[{'forceValue':_0x5cf43b}]});}});});}function _0x3eef4a(_0x24d3a8,_0x15983d){_0xc94864[_0xed7e('0x0')][_0xed7e('0x8')](_0x259693=>{const {data:_0x40208a}=_0x259693;if(_0x40208a&&_0x40208a[_0xed7e('0x16')]===_0x24d3a8)return _0x40208a['commandParams'][0x0]['forceValue']?{'type':_0xed7e('0x1e'),'content':_0xe801e7(_0x310f48,'*Format:*\x20%0',_0x15983d)}:{'type':_0xed7e('0x1e'),'content':_0xe801e7(_0x310f48,_0xed7e('0x11'),_0x15983d)};});}_0x3eef4a('bold',_0xe801e7(_0x310f48,_0xed7e('0x6'))),_0x3eef4a('italic',_0xe801e7(_0x310f48,'FORMAT_ITALIC')),_0x3eef4a(_0xed7e('0x1a'),_0xe801e7(_0x310f48,_0xed7e('0x2'))),_0x3eef4a(_0xed7e('0x1'),_0xe801e7(_0x310f48,_0xed7e('0x10'))),_0x3eef4a(_0xed7e('0xa'),_0xe801e7(_0x310f48,'FORMAT_STRIKETHROUGH')),_0x3eef4a('subscript',_0xe801e7(_0x310f48,_0xed7e('0x5'))),_0x3eef4a('superscript',_0xe801e7(_0x310f48,_0xed7e('0x13')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3671=['change','getSelectedBlocks','forceValue','$root','markBlockFormat','commandParams','value','enableCommand','filter','schema','locale','TrackChangesEditing','get','blockQuote','commandName','*Format:*\x20%0','model','commands','name','checkChild','BlockQuoteEditing','_descriptionFactory','has','registerDescriptionCallback','document','editor','from','format','parent','plugins','ELEMENT_BLOCK_QUOTE'];(function(_0x17b647,_0x36711e){const _0x518e69=function(_0x42cb2e){while(--_0x42cb2e){_0x17b647['push'](_0x17b647['shift']());}};_0x518e69(++_0x36711e);}(_0x3671,0xc7));const _0x518e=function(_0x17b647,_0x36711e){_0x17b647=_0x17b647-0x0;let _0x518e69=_0x3671[_0x17b647];return _0x518e69;};import{Plugin as _0x1e9173}from'ckeditor5/src/core';import{getTranslation as _0x51b3b6}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x3db4ef}from'../utils/utils';export default class j extends _0x1e9173{['afterInit'](){const _0x21586d=this[_0x518e('0xc')],_0x53c2ae=_0x21586d[_0x518e('0x1c')];if(!_0x21586d[_0x518e('0x10')][_0x518e('0x9')](_0x518e('0x7')))return;const _0x31de96=_0x21586d['plugins']['get'](_0x518e('0x1d')),_0x104b25=this['editor'][_0x518e('0x4')][_0x518e('0x1e')](_0x518e('0x0'));_0x31de96[_0x518e('0x19')]('blockQuote',(_0x48efbd,_0x352e41={})=>{const _0xce812b=this[_0x518e('0xc')]['model'][_0x518e('0xb')]['selection'],_0x18bbaa=_0x352e41&&void 0x0!==_0x352e41[_0x518e('0x14')]?_0x352e41[_0x518e('0x14')]:!_0x104b25[_0x518e('0x18')];let _0x12a1c5=[];if(_0x18bbaa){const _0x311cf3=Array[_0x518e('0xd')](_0xce812b[_0x518e('0x13')]())[_0x518e('0x1a')](_0x424f8b=>Xt(_0x424f8b)||function(_0x131ddc,_0x45d570){const _0x563184=_0x45d570[_0x518e('0x6')](_0x131ddc['parent'],'blockQuote'),_0x25a7fc=_0x45d570[_0x518e('0x6')]([_0x518e('0x15'),_0x518e('0x0')],_0x131ddc);return _0x563184&&_0x25a7fc;}(_0x424f8b,this[_0x518e('0xc')][_0x518e('0x3')][_0x518e('0x1b')]));_0x12a1c5=_0x3db4ef(_0x311cf3,_0x21586d[_0x518e('0x3')]);}else{const _0x364329=Array[_0x518e('0xd')](_0xce812b[_0x518e('0x13')]())['filter'](_0x1040f5=>Xt(_0x1040f5));_0x12a1c5=_0x3db4ef(_0x364329,_0x21586d[_0x518e('0x3')]);}_0x21586d['model'][_0x518e('0x12')](()=>{for(const _0x283e20 of _0x12a1c5)_0x31de96[_0x518e('0x16')](_0x283e20,{'commandName':_0x518e('0x0'),'commandParams':[{'forceValue':_0x18bbaa}]});});}),_0x31de96[_0x518e('0x8')][_0x518e('0xa')](_0x3f999c=>{const {data:_0x436242}=_0x3f999c;if(_0x436242&&_0x518e('0x0')==_0x436242[_0x518e('0x1')]){const _0x3debdb=_0x51b3b6(_0x53c2ae,_0x518e('0x11'));return _0x436242[_0x518e('0x17')][0x0]['forceValue']?{'type':_0x518e('0xe'),'content':_0x51b3b6(_0x53c2ae,_0x518e('0x2'),_0x3debdb)}:{'type':_0x518e('0xe'),'content':_0x51b3b6(_0x53c2ae,'*Remove\x20format:*\x20%0',_0x3debdb)};}});}}function Xt(_0x3b628d){return _0x518e('0x0')==_0x3b628d[_0x518e('0xf')][_0x518e('0x5')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3261=['ckbox','plugins','editor','afterInit','enableCommand','commands'];(function(_0xd9e96e,_0x3261f5){const _0x522da8=function(_0x47bf91){while(--_0x47bf91){_0xd9e96e['push'](_0xd9e96e['shift']());}};_0x522da8(++_0x3261f5);}(_0x3261,0x9d));const _0x522d=function(_0xd9e96e,_0x3261f5){_0xd9e96e=_0xd9e96e-0x0;let _0x522da8=_0x3261[_0xd9e96e];return _0x522da8;};import{Plugin as _0x3aba0e}from'ckeditor5/src/core';export default class E extends _0x3aba0e{[_0x522d('0x2')](){const _0xa155e8=this[_0x522d('0x1')];_0xa155e8[_0x522d('0x4')]['get'](_0x522d('0x5'))&&_0xa155e8[_0x522d('0x0')]['get']('TrackChangesEditing')[_0x522d('0x3')](_0x522d('0x5'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5855=['ELEMENT_CODE_BLOCK','config','registerDescriptionCallback','format','locale','_descriptionFactory','languages','CodeBlock','get','TrackChangesEditing','commandName','formatBlock','plugins','document','*Remove\x20format:*\x20%0','commands','label','parent','registerElementLabel','forceValue','isLimit','getSelectedBlocks','model','blockName','*Format:*\x20%0','find','commandParams','language','from','markBlockFormat','codeBlock','value','schema','checkChild','filter','enableCommand'];(function(_0x56cf6e,_0x58559a){const _0x1f0ad9=function(_0x651c62){while(--_0x651c62){_0x56cf6e['push'](_0x56cf6e['shift']());}};_0x1f0ad9(++_0x58559a);}(_0x5855,0x1d1));const _0x1f0a=function(_0x56cf6e,_0x58559a){_0x56cf6e=_0x56cf6e-0x0;let _0x1f0ad9=_0x5855[_0x56cf6e];return _0x1f0ad9;};import{Plugin as _0xd3c66b}from'ckeditor5/src/core';import{getTranslation as _0x431404}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x20867e}from'../utils/utils';export default class O extends _0xd3c66b{['afterInit'](){const _0x2c15cb=this['editor'];if(!_0x2c15cb[_0x1f0a('0xf')]['has'](_0x1f0a('0xa')))return;const _0x257219=_0x2c15cb[_0x1f0a('0xf')]['get'](_0x1f0a('0xc')),_0x4ecd13=_0x2c15cb[_0x1f0a('0x7')],_0x53415a=_0x2c15cb[_0x1f0a('0x4')][_0x1f0a('0xb')](_0x1f0a('0x21'))[_0x1f0a('0x9')],_0x331c80=_0x2c15cb[_0x1f0a('0x12')]['get'](_0x1f0a('0x21'));_0x257219[_0x1f0a('0x2')]('indentCodeBlock'),_0x257219[_0x1f0a('0x2')]('outdentCodeBlock'),_0x257219[_0x1f0a('0x2')](_0x1f0a('0x21'),(_0x20b491,_0x20432c={})=>{const _0x1f30aa=_0x2c15cb[_0x1f0a('0x19')],_0x50a832=_0x2c15cb[_0x1f0a('0x19')][_0x1f0a('0x10')]['selection'],_0x26753e=_0x20432c&&void 0x0!==_0x20432c[_0x1f0a('0x16')]?_0x20432c['forceValue']:!_0x331c80[_0x1f0a('0x22')];let _0x582094;_0x20432c['language']||(_0x20432c[_0x1f0a('0x1e')]=_0x53415a[0x0][_0x1f0a('0x1e')]),_0x582094=_0x26753e?Array[_0x1f0a('0x1f')](_0x50a832[_0x1f0a('0x18')]())[_0x1f0a('0x1')](_0x398898=>to(_0x398898)||function(_0x397296,_0x2f0127){if(_0x397296['is']('rootElement')||_0x2f0127[_0x1f0a('0x17')](_0x397296))return!0x1;return _0x2f0127[_0x1f0a('0x0')](_0x397296[_0x1f0a('0x14')],_0x1f0a('0x21'));}(_0x398898,_0x1f30aa[_0x1f0a('0x23')])):Array[_0x1f0a('0x1f')](_0x50a832[_0x1f0a('0x18')]())[_0x1f0a('0x1')](_0x20b8c9=>to(_0x20b8c9));const _0x2c9b02=_0x20867e(_0x582094,_0x1f30aa);_0x1f30aa['change'](()=>{for(const _0x2c8b75 of _0x2c9b02)_0x257219[_0x1f0a('0x20')](_0x2c8b75,{'commandName':_0x1f0a('0x21'),'commandParams':[{..._0x20432c,'forceValue':_0x26753e}],'formatGroupId':_0x1f0a('0x1a')});});}),(_0x257219[_0x1f0a('0x8')][_0x1f0a('0x15')]('codeBlock',_0x478b97=>_0x431404(_0x4ecd13,'ELEMENT_CODE_BLOCK',_0x478b97)),_0x257219[_0x1f0a('0x8')][_0x1f0a('0x5')](_0x4b8f07=>{const _0x89579c=_0x4ecd13['t'],{type:_0x1fd091,data:_0x44deb1}=_0x4b8f07;if(_0x1f0a('0xe')==_0x1fd091&&_0x44deb1&&_0x1f0a('0x21')==_0x44deb1[_0x1f0a('0xd')]){const _0x2694cb=_0x44deb1['commandParams'][0x0][_0x1f0a('0x1e')],_0x22b9bc=_0x89579c(_0x53415a[_0x1f0a('0x1c')](_0x3e6060=>_0x3e6060[_0x1f0a('0x1e')]===_0x2694cb)[_0x1f0a('0x13')]);return _0x44deb1[_0x1f0a('0x1d')][0x0][_0x1f0a('0x16')]?{'type':'format','content':_0x431404(_0x4ecd13,_0x1f0a('0x1b'),_0x431404(_0x4ecd13,_0x1f0a('0x3'),0x1)+'\x20('+_0x22b9bc+')')}:{'type':_0x1f0a('0x6'),'content':_0x431404(_0x4ecd13,_0x1f0a('0x11'),_0x431404(_0x4ecd13,_0x1f0a('0x3'),0x1))};}}));}}function to(_0x5cdcc3){return _0x1f0a('0x21')==_0x5cdcc3['name'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2792=['editor','get','afterInit','has','addCommentThread','CommentsEditing','enableCommand','plugins'];(function(_0x24bc73,_0x279232){const _0x4bbff9=function(_0x3a448d){while(--_0x3a448d){_0x24bc73['push'](_0x24bc73['shift']());}};_0x4bbff9(++_0x279232);}(_0x2792,0xfe));const _0x4bbf=function(_0x24bc73,_0x279232){_0x24bc73=_0x24bc73-0x0;let _0x4bbff9=_0x2792[_0x24bc73];return _0x4bbff9;};import{Plugin as _0x832641}from'ckeditor5/src/core';export default class F extends _0x832641{[_0x4bbf('0x4')](){const _0x2618ff=this[_0x4bbf('0x2')];if(!_0x2618ff[_0x4bbf('0x1')][_0x4bbf('0x5')](_0x4bbf('0x7')))return;_0x2618ff[_0x4bbf('0x1')][_0x4bbf('0x3')]('TrackChangesEditing')[_0x4bbf('0x0')](_0x4bbf('0x6'));}}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/deletecommand
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import { Delete } from 'ckeditor5/src/typing';
|
|
5
6
|
/**
|
|
6
7
|
* Provides track changes plugin integration for {@link module:typing/inputcommand~DeleteCommand delete command}. Also
|
|
7
8
|
* provides integration {@link module:engine/model/model~Model#deleteContent} as many features use it internally.
|
|
8
9
|
*/
|
|
9
10
|
export default class TrackChangesDeleteCommand extends Plugin {
|
|
10
|
-
static get requires():
|
|
11
|
+
static get requires(): readonly [typeof Delete];
|
|
11
12
|
init(): void;
|
|
12
13
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36a5=['mapper','merge','buffer','unbindElementFromMarkerName','bind','uiElement','lock','markerName','model','createRange','batch','getFirstRange','forward','enqueueChange','createSelection','unit','detach','rootName','editing','high','start','unlock','options','showSuggestionHighlights','TrackChangesEditing','delete','commands','data','deleteForward','selection','get','document','editor','isCollapsed','end','downcastDispatcher','init','addMarker:suggestion:deletion','plugins','setSelection','enableCommand'];(function(_0x31e729,_0x36a50e){const _0xe911ce=function(_0x75e37){while(--_0x75e37){_0x31e729['push'](_0x31e729['shift']());}};_0xe911ce(++_0x36a50e);}(_0x36a5,0x135));const _0xe911=function(_0x31e729,_0x36a50e){_0x31e729=_0x31e729-0x0;let _0xe911ce=_0x36a5[_0x31e729];return _0xe911ce;};import{Plugin as _0x334e49}from'ckeditor5/src/core';import{LiveRange as _0x24e8c2}from'ckeditor5/src/engine';import{Delete as _0x52eb5b}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x334bdc}from'./utils';export default class G extends _0x334e49{static get['requires'](){return[_0x52eb5b];}[_0xe911('0xe')](){const _0x1ad40d=this[_0xe911('0xa')],_0x41403c=_0x1ad40d[_0xe911('0x10')][_0xe911('0x8')](_0xe911('0x2'));_0x41403c[_0xe911('0x12')](_0xe911('0x3'));const _0x38b346=_0x1ad40d[_0xe911('0x4')][_0xe911('0x8')](_0xe911('0x6'));_0x41403c[_0xe911('0x12')](_0xe911('0x6'),(_0xf4d5ff,_0x1c11b1={})=>{const _0x5ba968=_0x1ad40d[_0xe911('0x1b')][_0xe911('0x21')](_0x1ad40d[_0xe911('0x1b')][_0xe911('0x9')][_0xe911('0x7')]);_0x5ba968[_0xe911('0xb')]&&_0x1ad40d[_0xe911('0x1b')]['modifySelection'](_0x5ba968,{'direction':_0xe911('0x1f'),'unit':_0x1c11b1[_0xe911('0x22')]});const _0x277fe8=_0x5ba968[_0xe911('0x1e')](),_0x575b27=_0x24e8c2['fromRange'](_0x277fe8);let _0x5dff9c;_0xf4d5ff(_0x1c11b1),_0x5dff9c='$graveyard'==_0x575b27['root'][_0xe911('0x24')]?_0x1ad40d[_0xe911('0x1b')][_0xe911('0x1c')](_0x277fe8[_0xe911('0x27')]):_0x1ad40d[_0xe911('0x1b')][_0xe911('0x1c')](_0x575b27[_0xe911('0x27')],_0x575b27[_0xe911('0xc')]),_0x575b27[_0xe911('0x23')](),_0x1ad40d[_0xe911('0x1b')][_0xe911('0x20')](_0x38b346[_0xe911('0x15')][_0xe911('0x1d')],_0x21d341=>{_0x38b346[_0xe911('0x15')][_0xe911('0x19')](),_0x21d341[_0xe911('0x11')](_0x21d341[_0xe911('0x1c')](_0x5dff9c['end'])),_0x38b346[_0xe911('0x15')][_0xe911('0x28')]();});}),_0x1ad40d['editing'][_0xe911('0xd')]['on'](_0xe911('0xf'),_0x334bdc(_0x1ad40d,_0xe911('0x14')),{'priority':'high'}),_0x1ad40d[_0xe911('0x5')][_0xe911('0xd')]['on'](_0xe911('0xf'),(_0x32411f,_0x46a319,_0x211025)=>{_0x211025[_0xe911('0x0')][_0xe911('0x1')]&&_0x334bdc(_0x1ad40d,_0xe911('0x14'),{'showActiveMarker':!0x1})[_0xe911('0x17')](this)(_0x32411f,_0x46a319,_0x211025);},{'priority':'high'}),_0x1ad40d[_0xe911('0x25')][_0xe911('0xd')]['on']('removeMarker:suggestion:deletion',(_0x3e076d,_0x33f50d,_0xc2e29)=>{const _0x5ecb90=_0xc2e29[_0xe911('0x13')]['markerNameToElements'](_0x33f50d[_0xe911('0x1a')]);if(_0x5ecb90)for(const _0x54f254 of _0x5ecb90)_0x54f254['is'](_0xe911('0x18'))&&(_0xc2e29[_0xe911('0x13')][_0xe911('0x16')](_0x54f254,_0x33f50d[_0xe911('0x1a')]),_0xc2e29['writer']['remove'](_0x54f254));},{'priority':_0xe911('0x26')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42b5=['listItemId','commands','before','findIndex','format','splitListItemBefore','_descriptionFactory','parent','registerCustomCallback','end','mergeListItemBackward','next','execute','bulletedList','listIndent','listType','commandParams','locale','DocumentListEditing','indentList','*Merge:*\x20%0','isFirstBlockOfListItem','schema','afterInit','_suggestionFactory','documentList','isObject','editor','nodeAfter','ELEMENT_NUMBERED_LIST','nextSibling','setSelection','createPositionAt','commandName','enableCommand','*Change\x20to:*\x20%0','numberedList','from','getSelectedBlocks','markMultiRangeBlockFormat','*Format:*\x20remove\x20from\x20%0','length','forceValue','getAttribute','getFirstRange','after','ELEMENT_','DocumentListUtils','mergeListItemForward','map','selection','slice','detach','splitListItemAfter','hasAttribute','plugins','expandListBlocksToCompleteList','markBlockFormat','get','accept','push','model','ELEMENT_BULLETED_LIST','registerDescriptionCallback','createRange','change','ELEMENT_LIST_ITEM','*Format:*\x20insert\x20into\x20%0','add','*Indent:*\x20%0','registerElementLabel','formatBlock','start','outdentList','previousSibling','document','value'];(function(_0x552bfb,_0x42b565){const _0x2a30fe=function(_0x4ea16d){while(--_0x4ea16d){_0x552bfb['push'](_0x552bfb['shift']());}};_0x2a30fe(++_0x42b565);}(_0x42b5,0x1ca));const _0x2a30=function(_0x552bfb,_0x42b565){_0x552bfb=_0x552bfb-0x0;let _0x2a30fe=_0x42b5[_0x552bfb];return _0x2a30fe;};import{Plugin as _0x224a49}from'ckeditor5/src/core';import{getTranslation as _0x33fc9a}from'../utils/common-translations';import{LiveRange as _0x5c371a}from'ckeditor5/src/engine';export default class L extends _0x224a49{[_0x2a30('0x1b')](){const _0x854664=this[_0x2a30('0x1f')];if(!_0x854664[_0x2a30('0x3b')]['has'](_0x2a30('0x16')))return;const _0x48d463=_0x854664[_0x2a30('0x15')],_0x3f3ec4=_0x854664[_0x2a30('0x3b')][_0x2a30('0x3e')]('TrackChangesEditing'),_0xef7495=_0x854664[_0x2a30('0x3b')]['get'](_0x2a30('0x33'));function _0x14e7b7(_0x5e016c){return()=>{const _0x3632ba=_0x854664['commands'][_0x2a30('0x3e')](_0x5e016c);let _0x570191=Array[_0x2a30('0x29')](_0x854664[_0x2a30('0x41')]['document']['selection'][_0x2a30('0x2a')]());if(_0x1c40e6(_0x5e016c)){_0x570191=_0xef7495[_0x2a30('0x3c')](_0x570191);const _0x59faf3=[];for(const _0x3be4d1 of _0x570191)_0xef7495[_0x2a30('0x19')](_0x3be4d1)&&_0x59faf3['push'](_0x3be4d1);_0x570191=_0x59faf3;}_0x854664[_0x2a30('0x41')]['change'](()=>{_0x3f3ec4[_0x2a30('0x2b')](_0x570191,{'commandName':_0x5e016c,'commandParams':[{'forceValue':!_0x3632ba['value']}],'formatGroupId':_0x2a30('0x13')},[],'documentList');});};}function _0x32a0b(_0x35523d){return()=>{const _0x107430=function(_0x550a12){let _0x407973=Array[_0x2a30('0x29')](_0x550a12);const _0x53e96e=_0x407973[_0x2a30('0x7')](_0x101c98=>!_0x101c98[_0x2a30('0x3a')](_0x2a30('0x4')));return _0x53e96e>-0x1&&(_0x407973=_0x407973[_0x2a30('0x37')](0x0,_0x53e96e)),_0x407973;}(_0x854664[_0x2a30('0x41')][_0x2a30('0x2')]['selection'][_0x2a30('0x2a')]()),_0x266f60=_0x107430[_0x107430[_0x2a30('0x2d')]-0x1],_0x5bab2c=_0x854664['model'][_0x2a30('0x1a')][_0x2a30('0x1e')](_0x266f60)?_0x2a30('0x31'):_0x2a30('0xd'),_0x3addb2=_0x854664[_0x2a30('0x41')][_0x2a30('0x44')](_0x854664[_0x2a30('0x41')][_0x2a30('0x24')](_0x107430[0x0],_0x2a30('0x6')),_0x854664[_0x2a30('0x41')][_0x2a30('0x24')](_0x266f60,_0x5bab2c));_0x854664['model'][_0x2a30('0x45')](()=>{_0x3f3ec4['markBlockFormat'](_0x3addb2,{'commandName':_0x35523d,'commandParams':[],'formatGroupId':'listType'},function(_0x135272){const _0x23fdf0=new Set();for(const _0x13efc0 of _0x135272){let _0x2ca29e=_0x13efc0['nextSibling'];for(;_0x2ca29e&&_0x2ca29e['getAttribute'](_0x2a30('0x12'))>_0x13efc0[_0x2a30('0x2f')]('listIndent');)_0x23fdf0[_0x2a30('0x48')](_0x2ca29e),_0x2ca29e=_0x2ca29e['nextSibling'];}return Array[_0x2a30('0x29')](_0x23fdf0);}(_0x107430));});};}function _0x19416b(_0x24249e){return()=>{const _0xcc3a4a=_0x854664[_0x2a30('0x41')][_0x2a30('0x2')][_0x2a30('0x36')][_0x2a30('0x2a')]()[_0x2a30('0xf')]()[_0x2a30('0x3')],_0x2ed3f0=_0x854664['model'][_0x2a30('0x24')](_0xcc3a4a,_0x2a30('0x6')),_0x78f7e2=_0x854664[_0x2a30('0x41')][_0x2a30('0x24')](_0xcc3a4a,0x0),_0x3aa4a2=_0x854664['model']['createRange'](_0x2ed3f0,_0x78f7e2);_0x854664[_0x2a30('0x41')]['change'](()=>{_0x3f3ec4[_0x2a30('0x3d')](_0x3aa4a2,{'commandName':_0x24249e,'commandParams':[],'formatGroupId':_0x2a30('0x13')});});};}function _0x1c40e6(_0x5b084e){const _0x3303ec=_0x854664[_0x2a30('0x5')][_0x2a30('0x3e')]('bulletedList')[_0x2a30('0x3')],_0x133a70=_0x854664[_0x2a30('0x5')][_0x2a30('0x3e')](_0x2a30('0x28'))[_0x2a30('0x3')];return'numberedList'===_0x5b084e?_0x3303ec:_0x133a70;}_0x3f3ec4['enableCommand'](_0x2a30('0x28'),_0x14e7b7(_0x2a30('0x28'))),_0x3f3ec4['enableCommand']('bulletedList',_0x14e7b7(_0x2a30('0x11'))),_0x3f3ec4[_0x2a30('0x26')](_0x2a30('0x17'),_0x32a0b(_0x2a30('0x17'))),_0x3f3ec4[_0x2a30('0x26')]('outdentList',_0x32a0b('outdentList')),_0x3f3ec4[_0x2a30('0x26')](_0x2a30('0x39'),_0x19416b(_0x2a30('0x39'))),_0x3f3ec4[_0x2a30('0x26')]('splitListItemBefore',_0x19416b(_0x2a30('0x9'))),_0x3f3ec4[_0x2a30('0xa')][_0x2a30('0x4a')](function(_0x330e26){const _0x5bd3d1=!_0x854664[_0x2a30('0x41')][_0x2a30('0x1a')][_0x2a30('0x1e')](_0x330e26),_0x16f743=_0x330e26[_0x2a30('0x1')],_0x4d0a20=_0x330e26[_0x2a30('0x22')],_0x557632=_0x330e26['getAttribute'](_0x2a30('0x4')),_0x40c099=!_0x16f743||_0x16f743[_0x2a30('0x2f')](_0x2a30('0x4'))!==_0x557632,_0x339e0c=!_0x4d0a20||_0x4d0a20['getAttribute'](_0x2a30('0x4'))!==_0x557632;return _0x5bd3d1&&Boolean(_0x557632)&&_0x40c099&&_0x339e0c;},_0x367ae3=>_0x33fc9a(_0x48d463,_0x2a30('0x46'),_0x367ae3)),_0x3f3ec4[_0x2a30('0xa')][_0x2a30('0x43')](function(_0x3787e2){const {data:_0x3f942f}=_0x3787e2;if(!_0x3f942f)return;let _0x540036,_0x78c00e,_0x46dba0,_0x25741e;switch(_0x3f942f['commandName']){case _0x2a30('0x11'):_0x46dba0=_0x3f942f[_0x2a30('0x14')][0x0][_0x2a30('0x2e')],_0x25741e=_0x1c40e6(_0x3f942f['commandName']),_0x540036=_0x46dba0?'*Format:*\x20insert\x20into\x20%0':_0x2a30('0x2c'),_0x25741e&&(_0x540036=_0x2a30('0x27')),_0x78c00e={'type':_0x2a30('0x8'),'content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,_0x2a30('0x42')))};break;case _0x2a30('0x28'):_0x46dba0=_0x3f942f[_0x2a30('0x14')][0x0][_0x2a30('0x2e')],_0x25741e=_0x1c40e6(_0x3f942f['commandName']),_0x540036=_0x46dba0?_0x2a30('0x47'):_0x2a30('0x2c'),_0x25741e&&(_0x540036='*Change\x20to:*\x20%0'),_0x78c00e={'type':_0x2a30('0x8'),'content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,_0x2a30('0x21')))};break;case'indentList':_0x540036=_0x2a30('0x49'),_0x78c00e={'type':'format','content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,_0x2a30('0x46')))};break;case _0x2a30('0x0'):_0x540036=function(_0x5a524e){const _0x1e949a=_0x5a524e[_0x2a30('0x30')]();let _0x28dfa2=_0x1e949a['start'][_0x2a30('0x20')];for(;_0x28dfa2&&_0x1e949a['containsItem'](_0x28dfa2);){if(_0x28dfa2[_0x2a30('0x2f')](_0x2a30('0x12'))>0x0)return!0x1;_0x28dfa2=_0x28dfa2['nextSibling'];}return!0x0;}(_0x3787e2)?_0x33fc9a(_0x48d463,'*Format:*\x20remove\x20from\x20%0',_0x33fc9a(_0x48d463,function(_0x400b93){const _0x17ea2b=_0x400b93[_0x2a30('0x30')]()['start'][_0x2a30('0x20')];return _0x2a30('0x32')+_0x17ea2b[_0x2a30('0x2f')](_0x2a30('0x13'))['toUpperCase']()+'_LIST';}(_0x3787e2))):_0x33fc9a(_0x48d463,'*Outdent:*\x20%0',_0x33fc9a(_0x48d463,_0x2a30('0x46'))),_0x78c00e={'type':'format','content':_0x540036};break;case _0x2a30('0xe'):case _0x2a30('0x34'):!0x1===_0x3f942f['multipleBlocks']&&(_0x540036=_0x2a30('0x18'),_0x78c00e={'type':'deletion','content':_0x33fc9a(_0x48d463,_0x540036,_0x33fc9a(_0x48d463,'ELEMENT_LIST_ITEM'))});}return _0x78c00e;}),_0x3f3ec4[_0x2a30('0x1c')][_0x2a30('0xc')](_0x2a30('0x4b'),_0x2a30('0x1d'),_0x2a30('0x3f'),function(_0x311805,_0x45b907){const _0xee3af9=[];for(let _0x3499b2 of _0x311805)_0x3499b2[_0x2a30('0x4c')][_0x2a30('0x20')]===_0x3499b2['end'][_0x2a30('0xb')]&&(_0x3499b2=_0x854664[_0x2a30('0x41')][_0x2a30('0x44')](_0x854664['model'][_0x2a30('0x24')](_0x3499b2[_0x2a30('0x4c')]['nodeAfter'],0x0))),_0xee3af9[_0x2a30('0x40')](_0x3499b2);_0x854664[_0x2a30('0x41')][_0x2a30('0x45')](_0xa523fb=>{const _0x122e8b=_0x854664[_0x2a30('0x41')][_0x2a30('0x2')][_0x2a30('0x36')],_0xa2773=Array[_0x2a30('0x29')](_0x122e8b['getRanges']())[_0x2a30('0x35')](_0x175448=>_0x5c371a['fromRange'](_0x175448));_0xa523fb['setSelection'](_0xee3af9),_0x854664[_0x2a30('0x5')]['get'](_0x45b907[_0x2a30('0x25')])['refresh'](),_0x45b907[_0x2a30('0x14')][_0x2a30('0x40')]({'forceDefaultExecution':!0x0}),_0x854664[_0x2a30('0x10')](_0x45b907[_0x2a30('0x25')],..._0x45b907['commandParams']),_0xa523fb[_0x2a30('0x23')](_0xa2773);for(const _0x5cc4cc of _0xa2773)_0x5cc4cc[_0x2a30('0x38')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24ee=['_getTranslationKeyForListStyle','listReversed','bind','editor','config','getSelectedBlocks','*Format:*\x20set\x20order\x20to\x20reversed','from','list.properties','registerDescriptionCallback','model','enableCommand','handleListStyleCommand','styles','commandParams','DocumentListPropertiesEditing','handleListReversedCommand','TrackChangesEditing','plugins','_getSuggestionBlocks','*Change\x20to:*\x20%0','isFirstBlockOfListItem','startIndex','locale','push','afterInit','handleDescriptions','DocumentListUtils','DocumentListPropertiesUtils','markMultiRangeBlockFormat','*Format:*\x20set\x20start\x20index\x20to\x20%0','listStyle','_LIST_','isListItemBlock','_getSuggestionBlocksForListStyle','change','numbered','length','listType','getAttribute','format','reversed','expandListBlocksToCompleteList','type','selection','replace','get','listStart','filter','_descriptionFactory','toUpperCase','document','handleListStartCommand'];(function(_0x27b4bf,_0x24ee83){const _0xf3c565=function(_0x56c97e){while(--_0x56c97e){_0x27b4bf['push'](_0x27b4bf['shift']());}};_0xf3c565(++_0x24ee83);}(_0x24ee,0x10a));const _0xf3c5=function(_0x27b4bf,_0x24ee83){_0x27b4bf=_0x27b4bf-0x0;let _0xf3c565=_0x24ee[_0x27b4bf];return _0xf3c565;};import{Plugin as _0x39a635}from'ckeditor5/src/core';import{getTranslation as _0x3d9c1f}from'../utils/common-translations';export default class At extends _0x39a635{[_0xf3c5('0x18')](){if(!this[_0xf3c5('0x2')][_0xf3c5('0x11')]['has'](_0xf3c5('0xe')))return;const _0x487a91=this[_0xf3c5('0x2')][_0xf3c5('0x3')][_0xf3c5('0x2d')](_0xf3c5('0x7')),_0xdde56e=this['editor'][_0xf3c5('0x11')]['get'](_0xf3c5('0x10'));_0x487a91[_0xf3c5('0xc')]&&_0xdde56e[_0xf3c5('0xa')](_0xf3c5('0x1e'),this[_0xf3c5('0xb')][_0xf3c5('0x1')](this)),_0x487a91[_0xf3c5('0x28')]&&_0xdde56e[_0xf3c5('0xa')]('listReversed',this[_0xf3c5('0xf')][_0xf3c5('0x1')](this)),_0x487a91[_0xf3c5('0x15')]&&_0xdde56e[_0xf3c5('0xa')](_0xf3c5('0x2e'),this['handleListStartCommand'][_0xf3c5('0x1')](this)),_0xdde56e[_0xf3c5('0x30')][_0xf3c5('0x8')](this[_0xf3c5('0x19')][_0xf3c5('0x1')](this));}['handleListStyleCommand'](_0x41e21a,_0x5320ea={}){const _0x1f52f8=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x10')),_0x2479a6=this[_0xf3c5('0x21')]();this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x22')](()=>{_0x1f52f8[_0xf3c5('0x1c')](_0x2479a6,{'commandName':_0xf3c5('0x1e'),'commandParams':[{'type':_0x5320ea[_0xf3c5('0x2a')]}],'formatGroupId':'listStyle'});});}[_0xf3c5('0xf')](_0x1cbb87,_0xbca908={}){const _0x366e9c=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x10')),_0x49b78d=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x1a')),_0x5062c7=this['_getSuggestionBlocks'](_0x3ef9f8=>_0x49b78d[_0xf3c5('0x20')](_0x3ef9f8)&&_0xf3c5('0x23')===_0x3ef9f8[_0xf3c5('0x26')](_0xf3c5('0x25')));null!==_0x5062c7&&this['editor']['model'][_0xf3c5('0x22')](()=>{_0x366e9c[_0xf3c5('0x1c')](_0x5062c7,{'commandName':_0xf3c5('0x0'),'commandParams':[{'reversed':_0xbca908[_0xf3c5('0x28')]}],'formatGroupId':_0xf3c5('0x0')});});}[_0xf3c5('0x33')](_0x3fc845,_0x3d0bd4={}){const _0x37a2d6=this[_0xf3c5('0x2')][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x10')),_0x5b835f=this['editor']['plugins'][_0xf3c5('0x2d')](_0xf3c5('0x1a')),_0x12e687=this['_getSuggestionBlocks'](_0x28efa1=>_0x5b835f[_0xf3c5('0x20')](_0x28efa1)&&_0xf3c5('0x23')===_0x28efa1[_0xf3c5('0x26')](_0xf3c5('0x25')));null!==_0x12e687&&this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x22')](()=>{_0x37a2d6['markMultiRangeBlockFormat'](_0x12e687,{'commandName':_0xf3c5('0x2e'),'commandParams':[{'startIndex':_0x3d0bd4['startIndex']}],'formatGroupId':'listStart'});});}[_0xf3c5('0x19')](_0x5af952){const _0x16d408=this['editor'][_0xf3c5('0x16')],{data:_0x133f07}=_0x5af952;if(!_0x133f07)return;let _0x56f1b8,_0x514e69;switch(_0x133f07['commandName']){case _0xf3c5('0x1e'):_0x56f1b8=_0xf3c5('0x13'),_0x514e69={'type':_0xf3c5('0x27'),'content':_0x3d9c1f(_0x16d408,_0x56f1b8,_0x3d9c1f(_0x16d408,this[_0xf3c5('0x34')](_0x133f07[_0xf3c5('0xd')][0x0]['type'])))};break;case'listReversed':_0x56f1b8=_0x133f07[_0xf3c5('0xd')][0x0][_0xf3c5('0x28')]?_0xf3c5('0x5'):'*Format:*\x20set\x20order\x20to\x20regular',_0x514e69={'type':_0xf3c5('0x27'),'content':_0x3d9c1f(_0x16d408,_0x56f1b8)};break;case _0xf3c5('0x2e'):_0x56f1b8=_0xf3c5('0x1d'),_0x514e69={'type':_0xf3c5('0x27'),'content':_0x3d9c1f(_0x16d408,_0x56f1b8,_0x133f07[_0xf3c5('0xd')][0x0][_0xf3c5('0x15')])};}return _0x514e69;}['_getSuggestionBlocksForListStyle'](){const _0x20e262=this[_0xf3c5('0x2')][_0xf3c5('0x11')]['get'](_0xf3c5('0x1a'));let _0x1c1157=Array[_0xf3c5('0x6')](this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x32')][_0xf3c5('0x2b')][_0xf3c5('0x4')]());return _0x1c1157[_0xf3c5('0x17')](..._0x20e262[_0xf3c5('0x29')](_0x1c1157)),_0x1c1157=[...new Set(_0x1c1157)],_0x1c1157;}[_0xf3c5('0x12')](_0x5c0d5b){const _0x47f678=this['editor'][_0xf3c5('0x11')][_0xf3c5('0x2d')](_0xf3c5('0x1a'));let _0x449b0c=Array[_0xf3c5('0x6')](this[_0xf3c5('0x2')][_0xf3c5('0x9')][_0xf3c5('0x32')][_0xf3c5('0x2b')][_0xf3c5('0x4')]())[_0xf3c5('0x2f')](_0x5c0d5b);if(!_0x449b0c[_0xf3c5('0x24')])return null;_0x449b0c=_0x47f678[_0xf3c5('0x29')](_0x449b0c);const _0x22030e=[];for(const _0x5f08ef of _0x449b0c)_0x47f678[_0xf3c5('0x14')](_0x5f08ef)&&_0x22030e['push'](_0x5f08ef);return _0x22030e;}[_0xf3c5('0x34')](_0xd5bd49){return'ELEMENT_'+this[_0xf3c5('0x2')]['plugins'][_0xf3c5('0x2d')](_0xf3c5('0x1b'))['getListTypeFromListStyleType'](_0xd5bd49)[_0xf3c5('0x31')]()+_0xf3c5('0x1f')+_0xd5bd49[_0xf3c5('0x31')]()[_0xf3c5('0x2c')](/-/g,'_');}}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module track-changes/integrations/entercommand
|
|
3
3
|
*/
|
|
4
|
-
import { Plugin
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
import { Enter } from 'ckeditor5/src/enter';
|
|
5
6
|
/**
|
|
6
7
|
* Provides track changes plugin integration for {@link module:enter/entercommand~EnterCommand enter command}.
|
|
7
8
|
*/
|
|
8
9
|
export default class TrackChangesEnterCommand extends Plugin {
|
|
9
|
-
static get requires():
|
|
10
|
+
static get requires(): readonly [typeof Enter];
|
|
10
11
|
init(): void;
|
|
11
12
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x518b=['mapper','downcastDispatcher','bind','detach','addMarker:suggestion:insertion','editing','editor','data','createPositionAt','createRange','change','ck-suggestion-marker-split','afterExecute','remove','fire','markInsertion','writer','unbindElementFromMarkerName','parent','get','enterBlock','setSelection','end','model','markerName','options','TrackChangesEditing','nextSibling','enableCommand','init','requires','removeMarker:suggestion:insertion','high','enter','commands'];(function(_0x408433,_0x518b7b){const _0x23d5c2=function(_0x2ffbf9){while(--_0x2ffbf9){_0x408433['push'](_0x408433['shift']());}};_0x23d5c2(++_0x518b7b);}(_0x518b,0x173));const _0x23d5=function(_0x408433,_0x518b7b){_0x408433=_0x408433-0x0;let _0x23d5c2=_0x518b[_0x408433];return _0x23d5c2;};import{Plugin as _0xd2931e}from'ckeditor5/src/core';import{Enter as _0x2e3c4d}from'ckeditor5/src/enter';import{LiveRange as _0x42904f}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x4ce3e5}from'./utils';export default class q extends _0xd2931e{static get[_0x23d5('0x9')](){return[_0x2e3c4d];}[_0x23d5('0x8')](){const _0x50efa8=this[_0x23d5('0x14')],_0x47bc4e=_0x50efa8['plugins']['get'](_0x23d5('0x5')),_0x3d2fd7=_0x50efa8[_0x23d5('0xd')][_0x23d5('0x21')](_0x23d5('0xc'));_0x47bc4e[_0x23d5('0x7')](_0x23d5('0xc'),()=>{_0x50efa8[_0x23d5('0x2')][_0x23d5('0x18')](_0x409a6f=>{const _0x55f517=_0x50efa8[_0x23d5('0x2')]['document']['selection'],_0x155970=_0x55f517['getFirstPosition'](),_0x339c7a=_0x42904f['fromRange'](_0x55f517['getFirstRange']());if(_0x3d2fd7[_0x23d5('0x22')](_0x409a6f)){const _0x240d8a=_0x50efa8['model'][_0x23d5('0x16')](_0x155970[_0x23d5('0x20')][_0x23d5('0x6')],0x0),_0x210b1e=_0x409a6f[_0x23d5('0x17')](_0x155970,_0x240d8a);_0x47bc4e[_0x23d5('0x1d')](_0x210b1e);}else _0x409a6f[_0x23d5('0x0')](_0x409a6f[_0x23d5('0x17')](_0x339c7a[_0x23d5('0x1')]));_0x339c7a[_0x23d5('0x11')](),_0x3d2fd7[_0x23d5('0x1c')](_0x23d5('0x1a'),{'writer':_0x409a6f});});}),_0x50efa8[_0x23d5('0x13')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',_0x4ce3e5(_0x50efa8,'split'),{'priority':_0x23d5('0xb')}),_0x50efa8['editing'][_0x23d5('0xf')]['on'](_0x23d5('0xa'),(_0xb1ccb9,_0x2f659e,_0x3963ca)=>{const _0xbae85a=_0x3963ca[_0x23d5('0xe')]['markerNameToElements'](_0x2f659e[_0x23d5('0x3')]);if(_0xbae85a)for(const _0x2322cb of _0xbae85a)_0x2322cb['hasClass'](_0x23d5('0x19'))&&(_0x3963ca['mapper'][_0x23d5('0x1f')](_0x2322cb,_0x2f659e[_0x23d5('0x3')]),_0x3963ca[_0x23d5('0x1e')][_0x23d5('0x1b')](_0x2322cb));},{'priority':_0x23d5('0xb')}),_0x50efa8[_0x23d5('0x15')][_0x23d5('0xf')]['on'](_0x23d5('0x12'),(_0x5d3c4c,_0x27b4d5,_0x438275)=>{_0x438275[_0x23d5('0x4')]['showSuggestionHighlights']&&_0x4ce3e5(_0x50efa8,'split',{'showActiveMarker':!0x1})[_0x23d5('0x10')](this)(_0x5d3c4c,_0x27b4d5,_0x438275);},{'priority':_0x23d5('0xb')});}}
|