@ckeditor/ckeditor5-track-changes 40.2.0 → 41.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/CHANGELOG.md +5 -5
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/es.js +1 -1
- package/build/translations/ro.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +2 -2
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +2 -2
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f89=['plugins','createRangeOn','formatBlock','side','start','commandReversedParams','imageTypeBlock','_splitMarkerName','markInlineFormat','imageStyle','model','getContainedElement','markBlockFormat','commands','normalizedStyles','isEqual','commandParams','has','refresh','toLowerCase','change','isInContent','selection','hasSuggestion','forEach','formatInline','newRange','name','commandName','join','ImageStyleEditing','setImageNaturalSizeAttributes','imageStylePreApply','accept','convertInlineImageToBlock','isOwn','next','document','isBefore','head','imageCaption','_findSuggestions','getChangedMarkers','title','ImageUtils','getSuggestionCallback','author','subType','Users','registerCustomCallback','editor','getClosestSelectedImageElement','type','get','_suggestionFactory','_descriptionFactory','nodeBefore','getFirstRange','length','enableCommand','value','isInlineImage','FORMAT_SIDE_IMAGE','imageStylePostApply','_registerLegacyDescription','filter','discardSuggestion','TrackChangesEditing','shouldConvertImageType','insertion','getSuggestion','format','chain','end','imageTypeInline','findIndex','isBlockImage'];(function(_0x1c7915,_0x3f8928){const _0x2e5785=function(_0x5beb49){while(--_0x5beb49){_0x1c7915['push'](_0x1c7915['shift']());}};_0x2e5785(++_0x3f8928);}(_0x3f89,0xdb));const _0x2e57=function(_0x1c7915,_0x3f8928){_0x1c7915=_0x1c7915-0x0;let _0x2e5785=_0x3f89[_0x1c7915];return _0x2e5785;};import{Plugin as _0x2a1bc2}from'ckeditor5/src/core.js';import{uid as _0x136e8b}from'ckeditor5/src/utils.js';import{getTranslation as _0x5f3a62}from'../utils/common-translations.js';export default class nt extends _0x2a1bc2{['afterInit'](){const _0x2ada09=this['editor'];if(!_0x2ada09[_0x2e57('0xc')][_0x2e57('0x1d')](_0x2e57('0x2a')))return;const _0x388a6b=_0x2ada09['plugins'][_0x2e57('0x41')]('TrackChangesEditing'),_0x3067cc=_0x2ada09[_0x2e57('0xc')][_0x2e57('0x41')](_0x2e57('0x38')),_0x5a0d60={};_0x388a6b[_0x2e57('0x47')](_0x2e57('0x15'),(_0x575670,_0xa0c9b3)=>{const _0x120e9b=_0x2ada09[_0x2e57('0xc')]['get'](_0x2e57('0x3c'))['me'],_0x5009b7=_0x2ada09[_0x2e57('0x19')][_0x2e57('0x41')](_0x2e57('0x15'));let _0x2a0921=_0x3067cc[_0x2e57('0x3f')](_0x2ada09[_0x2e57('0x16')]['document'][_0x2e57('0x22')]),_0x5e7729=_0x2ada09[_0x2e57('0x16')][_0x2e57('0xd')](_0x2a0921),_0x3527d4=_0x5009b7[_0x2e57('0x48')];if(_0x3527d4==_0xa0c9b3['value'])return;const _0x5f26dc={'commandName':_0x2e57('0x15'),'commandParams':[_0xa0c9b3],'formatGroupId':_0x136e8b()};_0x2ada09[_0x2e57('0x16')][_0x2e57('0x20')](()=>{if(_0x388a6b['getSuggestions']()[_0x2e57('0x0')](_0x2cf16=>_0x2cf16[_0x2e57('0x21')]&&_0x120e9b==_0x2cf16[_0x2e57('0x3a')]&&(_0x2e57('0xe')==_0x2cf16[_0x2e57('0x40')]||_0x2e57('0x25')==_0x2cf16['type'])&&(_0x2e57('0x2c')==_0x2cf16[_0x2e57('0x3b')]||'imageStylePostApply'==_0x2cf16[_0x2e57('0x3b')])&&_0x2cf16[_0x2e57('0x45')]()['isEqual'](_0x5e7729))[_0x2e57('0x24')](_0x56543a=>_0x388a6b[_0x2e57('0x1')](_0x56543a[_0x2e57('0x33')])),_0x2a0921=_0x3067cc[_0x2e57('0x3f')](_0x2ada09['model'][_0x2e57('0x31')][_0x2e57('0x22')]),_0x5e7729=_0x2ada09['model']['createRangeOn'](_0x2a0921),_0x5009b7[_0x2e57('0x1e')](),_0x2ada09['commands'][_0x2e57('0x41')](_0x2e57('0x9'))[_0x2e57('0x1e')](),_0x2ada09[_0x2e57('0x19')][_0x2e57('0x41')](_0x2e57('0x12'))[_0x2e57('0x1e')](),_0x3527d4=_0x5009b7[_0x2e57('0x48')],_0x3527d4!=_0xa0c9b3[_0x2e57('0x48')])return _0x3067cc[_0x2e57('0x49')](_0x2a0921)&&_0x5009b7[_0x2e57('0x3')](_0xa0c9b3[_0x2e57('0x48')],_0x2a0921)?(_0x575670({..._0xa0c9b3,'setImageSizes':!0x1}),_0x2a0921=_0x3067cc[_0x2e57('0x3f')](_0x2ada09[_0x2e57('0x16')]['document']['selection']),void _0x388a6b[_0x2e57('0x18')](_0x2a0921,{..._0x5f26dc,'commandReversedParams':[{'value':_0x3527d4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3067cc[_0x2e57('0xb')](_0x2a0921)?_0x388a6b[_0x2e57('0x18')](_0x2a0921,_0x5f26dc,[],_0x2e57('0x4b')):_0x388a6b[_0x2e57('0x14')](_0x5e7729,_0x5f26dc,_0x2e57('0x4b')));});});for(const _0x33e424 of _0x2ada09['plugins'][_0x2e57('0x41')](_0x2e57('0x2a'))[_0x2e57('0x1a')])_0x5a0d60[_0x33e424[_0x2e57('0x27')]]=_0x33e424[_0x2e57('0x37')][_0x2e57('0x1f')]();_0x388a6b[_0x2e57('0x42')][_0x2e57('0x3d')](_0x2e57('0xe'),_0x2e57('0x2c'),'join',()=>!0x1),_0x388a6b['_suggestionFactory'][_0x2e57('0x3d')]('formatBlock',_0x2e57('0x4b'),_0x2e57('0x29'),()=>!0x1),_0x388a6b[_0x2e57('0x42')][_0x2e57('0x3d')](_0x2e57('0x25'),_0x2e57('0x4b'),_0x2e57('0x29'),()=>!0x1),_0x388a6b['_suggestionFactory'][_0x2e57('0x3d')](_0x2e57('0xe'),'imageStylePreApply',_0x2e57('0x2d'),([_0x4bde33])=>{_0x3067cc[_0x2e57('0x2b')](_0x4bde33[_0x2e57('0x17')]());}),_0x388a6b['_suggestionFactory'][_0x2e57('0x3d')]('formatBlock',_0x2e57('0x2c'),'discard',(_0x38cefa,_0x39e391)=>{_0x388a6b['_suggestionFactory'][_0x2e57('0x39')](_0x2e57('0xe'),'','accept')(_0x38cefa,{'commandName':_0x39e391[_0x2e57('0x28')],'commandParams':_0x39e391[_0x2e57('0x11')]});}),_0x388a6b[_0x2e57('0x42')][_0x2e57('0x3d')](_0x2e57('0xe'),_0x2e57('0x2c'),_0x2e57('0x7'),function(_0x3455df,_0x871844){if(_0x56f370(_0x3455df,_0x871844))return[_0x3455df,_0x871844];if(_0x56f370(_0x871844,_0x3455df))return[_0x871844,_0x3455df];return null;});const _0x5ce519=[{'type':_0x2e57('0xe'),'subType':_0x2e57('0x2c')},{'type':_0x2e57('0x4'),'subType':_0x2e57('0x34')},{'type':_0x2e57('0xe'),'subType':'convertInlineImageToBlock'},{'type':_0x2e57('0x4'),'subType':'convertInlineImageToBlock'}];function _0x56f370(_0x5698e8,_0x3e94a5){const _0x51e49c=_0x5ce519[_0x2e57('0xa')](({type:_0x1d7def,subType:_0x28f620})=>_0x5698e8[_0x2e57('0x40')]==_0x1d7def&&_0x5698e8[_0x2e57('0x3b')]==_0x28f620),_0x46a14f=_0x5ce519['findIndex'](({type:_0x3eb2fe,subType:_0x58f1ba})=>_0x3e94a5[_0x2e57('0x40')]==_0x3eb2fe&&_0x3e94a5[_0x2e57('0x3b')]==_0x58f1ba);if(_0x51e49c<0x0||_0x46a14f<0x0)return!0x1;const _0x162aa1=_0x5698e8[_0x2e57('0x45')](),_0x566ec1=_0x3e94a5[_0x2e57('0x45')]();if((0x0==_0x51e49c||0x1==_0x51e49c)&&0x2==_0x46a14f&&_0x162aa1['isIntersecting'](_0x566ec1))return!0x0;if(0x2==_0x51e49c&&0x3==_0x46a14f){const _0x21e49c=_0x388a6b[_0x2e57('0x35')](_0x162aa1,_0x2e57('0x4'))[_0x2e57('0x0')](({suggestion:_0x318432,meta:_0x26d6dd})=>_0x26d6dd[_0x2e57('0x2f')]&&_0x2e57('0x2e')==_0x318432[_0x2e57('0x3b')]);if(_0x21e49c[_0x2e57('0x46')]>0x1&&_0x566ec1['end'][_0x2e57('0x1b')](_0x162aa1[_0x2e57('0x10')]))return!0x0;if(0x1==_0x21e49c[_0x2e57('0x46')]&&(_0x162aa1[_0x2e57('0x10')][_0x2e57('0x1b')](_0x566ec1[_0x2e57('0x8')])||_0x162aa1['end'][_0x2e57('0x1b')](_0x566ec1[_0x2e57('0x10')])))return!0x0;}if(0x3==_0x51e49c&&0x3==_0x46a14f&&_0x162aa1[_0x2e57('0x10')][_0x2e57('0x32')](_0x566ec1[_0x2e57('0x10')])){const _0x2c94cf=_0x162aa1[_0x2e57('0x8')]['nodeAfter'],_0x35b8c8=_0x566ec1[_0x2e57('0x10')][_0x2e57('0x44')];return _0x3067cc['isBlockImage'](_0x2c94cf)&&_0x2c94cf===_0x35b8c8;}return!0x1;}_0x2ada09[_0x2e57('0x16')][_0x2e57('0x31')]['registerPostFixer'](()=>{let _0x4a3314=!0x1;const _0x56c521=Array['from'](_0x2ada09['model']['document']['differ'][_0x2e57('0x36')]());for(const {name:_0x5abfa1,data:_0x2fe67e}of _0x56c521){const {group:_0x473ad5,type:_0x581460,subType:_0x553cc7,id:_0x6ab664}=_0x388a6b[_0x2e57('0x13')](_0x5abfa1);if('suggestion'==_0x473ad5&&_0x388a6b[_0x2e57('0x23')](_0x6ab664)){if(_0x2e57('0xe')==_0x581460&&(_0x2e57('0x2c')==_0x553cc7||_0x2e57('0x4b')==_0x553cc7)){const _0x53f6b0=_0x388a6b[_0x2e57('0x5')](_0x6ab664);if(_0x2fe67e[_0x2e57('0x26')]){const _0x3b61c8=_0x53f6b0[_0x2e57('0x45')]()[_0x2e57('0x17')]();if(_0x3067cc[_0x2e57('0xb')](_0x3b61c8))continue;_0x388a6b[_0x2e57('0x1')](_0x53f6b0),_0x4a3314=!0x0;}}if('insertion'==_0x581460&&_0x2e57('0x34')==_0x553cc7&&!_0x2fe67e['newRange']){const _0x171a51=_0x388a6b[_0x2e57('0x5')](_0x6ab664);_0x171a51[_0x2e57('0x30')]&&_0x171a51[_0x2e57('0x30')][_0x2e57('0x21')]&&(_0x388a6b[_0x2e57('0x1')](_0x171a51[_0x2e57('0x30')]),_0x4a3314=!0x0);}}}return _0x4a3314;}),this[_0x2e57('0x4c')](_0x5a0d60);}[_0x2e57('0x4c')](_0x4c8a38){const _0x4fc7cd=this[_0x2e57('0x3e')],_0x49fc74=_0x4fc7cd['locale'];_0x4fc7cd[_0x2e57('0xc')]['get'](_0x2e57('0x2'))[_0x2e57('0x43')]['registerDescriptionCallback'](_0x31a879=>{if(_0x2e57('0xe')!=_0x31a879[_0x2e57('0x40')]&&'formatInline'!=_0x31a879['type'])return;const {data:_0x777c32}=_0x31a879;if(!_0x777c32||_0x2e57('0x15')!=_0x777c32['commandName'])return;const _0x1ec4fa=_0x777c32[_0x2e57('0x1c')][0x0][_0x2e57('0x48')];return _0x3c4137(_0x2e57('0xf')===_0x1ec4fa?_0x5f3a62(_0x49fc74,_0x2e57('0x4a')):_0x4c8a38[_0x1ec4fa]||_0x1ec4fa);function _0x3c4137(_0xf2bb5d){return{'type':_0x2e57('0x6'),'content':_0x5f3a62(_0x49fc74,'*Format:*\x20%0',_0xf2bb5d)};}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/importword
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for the import from Word feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dad=['bind','high','get','TrackChangesEditing','importWord','_trackChangesValueDuringImport','commands','execute','plugins','listenTo','Users','dataInsert','enableCommand','trackChanges','_handleImportedData','editor','_trackChangesExecuted','lowest','track_changes','value'];(function(_0x29b1c2,_0x4dad14){const _0x59fbde=function(_0x5c3360){while(--_0x5c3360){_0x29b1c2['push'](_0x29b1c2['shift']());}};_0x59fbde(++_0x4dad14);}(_0x4dad,0x113));const _0x59fb=function(_0x29b1c2,_0x4dad14){_0x29b1c2=_0x29b1c2-0x0;let _0x59fbde=_0x4dad[_0x29b1c2];return _0x59fbde;};import{Plugin as _0x220cb1}from'ckeditor5/src/core.js';export default class ot extends _0x220cb1{constructor(_0x2b4071){super(_0x2b4071),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xaf3af1=this[_0x59fb('0x0')],_0x24d5e8=_0xaf3af1[_0x59fb('0xb')][_0x59fb('0x7')](_0x59fb('0x9')),_0x1aa998=_0xaf3af1['commands'][_0x59fb('0x7')](_0x59fb('0x12'));_0x24d5e8&&(_0x24d5e8['on'](_0x59fb('0xc'),(_0x54e644,[,_0x581ecf])=>{this['_trackChangesValueDuringImport']=_0x1aa998[_0x59fb('0x4')],_0x581ecf['collaboration_features'][_0x59fb('0x3')]=!this[_0x59fb('0xa')];},{'priority':_0x59fb('0x6')}),this[_0x59fb('0xe')](_0x24d5e8,_0x59fb('0x10'),this[_0x59fb('0x13')][_0x59fb('0x5')](this)),this['listenTo'](_0x24d5e8,_0x59fb('0x10'),()=>{this[_0x59fb('0x1')]&&(_0x1aa998[_0x59fb('0xc')](),this[_0x59fb('0x1')]=!0x1);},{'priority':_0x59fb('0x2')}),_0xaf3af1[_0x59fb('0xd')]['get'](_0x59fb('0x8'))[_0x59fb('0x11')](_0x59fb('0x9')));}[_0x59fb('0x13')](_0x17af2b,_0x3d1d46){const {suggestions:_0x3849f6}=_0x3d1d46,_0x1e5c03=this[_0x59fb('0x0')][_0x59fb('0xb')]['get'](_0x59fb('0x12')),_0x224703=_0x1e5c03[_0x59fb('0x4')];this[_0x59fb('0xa')]!==_0x224703&&(_0x1e5c03[_0x59fb('0xc')](),this['_trackChangesExecuted']=!0x0),_0x3849f6&&_0x3849f6['forEach'](({id:_0x59a539,type:_0x8eae40,author:_0x3afffc,created_at:_0x3b3e8c})=>{const _0x2f22a5={'id':_0x59a539,'type':_0x8eae40,'authorId':this['editor'][_0x59fb('0xd')][_0x59fb('0x7')](_0x59fb('0xf'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3afffc,'createdAt':_0x3b3e8c?new Date(_0x3b3e8c):new Date(),'source':_0x59fb('0x9')}}};this[_0x59fb('0x0')][_0x59fb('0xd')][_0x59fb('0x7')](_0x59fb('0x8'))['_setSuggestionData'](_0x2f22a5);});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/indent
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e74=['_enableDefaultAttributesIntegration','_descriptionFactory','blockIndent','*Outdent:*\x20%0','editor','IndentEditing','format','TrackChangesEditing','commandName','formatBlock','IndentBlock','_registerBlockAttribute','plugins','indent','get','registerDescriptionCallback','*Indent:*\x20%0','_registerLegacyDescription','locale','outdent','outdentBlock','indentBlock','afterInit','registerAttributeLabel','FORMAT_INDENT','enableCommand','has'];(function(_0x7c81d8,_0x1e74f7){const _0x579614=function(_0x265de0){while(--_0x265de0){_0x7c81d8['push'](_0x7c81d8['shift']());}};_0x579614(++_0x1e74f7);}(_0x1e74,0x84));const _0x5796=function(_0x7c81d8,_0x1e74f7){_0x7c81d8=_0x7c81d8-0x0;let _0x579614=_0x1e74[_0x7c81d8];return _0x579614;};import{Plugin as _0x20c660}from'ckeditor5/src/core.js';import{getTranslation as _0x4ad8f8}from'../utils/common-translations.js';export default class rt extends _0x20c660{[_0x5796('0x19')](){const _0x5301e5=this[_0x5796('0x7')],_0x2f4cd3=_0x5301e5['plugins'][_0x5796('0x11')](_0x5796('0xa'));if(_0x5301e5[_0x5796('0xf')]['has'](_0x5796('0x8'))&&(_0x2f4cd3[_0x5796('0x1')](_0x5796('0x10')),_0x2f4cd3[_0x5796('0x1')](_0x5796('0x16'))),_0x5301e5[_0x5796('0xf')][_0x5796('0x2')](_0x5796('0xd')))for(const _0x1ea284 of[_0x5796('0x18'),'outdentBlock'])_0x2f4cd3[_0x5796('0x3')](_0x1ea284);const _0x32a774=_0x5301e5[_0x5796('0x15')];_0x2f4cd3[_0x5796('0xe')](_0x5796('0x5')),_0x2f4cd3['_descriptionFactory'][_0x5796('0x1a')](_0x5796('0x5'),_0x4ad8f8(_0x32a774,_0x5796('0x0'))),this['_registerLegacyDescription']();}[_0x5796('0x14')](){const _0x239cad=this[_0x5796('0x7')],_0x111f85=_0x239cad[_0x5796('0x15')],_0x1c7cc0=_0x239cad[_0x5796('0xf')][_0x5796('0x11')](_0x5796('0xa'));_0x1c7cc0[_0x5796('0x4')][_0x5796('0x12')](_0xe24e2=>{if(_0x5796('0xc')!=_0xe24e2['type'])return;const {data:_0x45dfa7}=_0xe24e2;if(!_0x45dfa7)return;if(_0x5796('0x18')!=_0x45dfa7[_0x5796('0xb')]&&'outdentBlock'!=_0x45dfa7[_0x5796('0xb')])return;const _0x38d1ba=_0xe24e2['getItems']()[0x0],_0x56bd9e=_0x1c7cc0['_descriptionFactory']['getItemLabel'](_0x38d1ba);return _0x5796('0x18')==_0x45dfa7['commandName']?{'type':_0x5796('0x9'),'content':_0x4ad8f8(_0x111f85,_0x5796('0x13'),_0x56bd9e)}:_0x5796('0x17')==_0x45dfa7[_0x5796('0xb')]?{'type':_0x5796('0x9'),'content':_0x4ad8f8(_0x111f85,_0x5796('0x6'),_0x56bd9e)}:void 0x0;});}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/inputcommand/inputcommand
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { Input } from 'ckeditor5/src/typing';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Input } from 'ckeditor5/src/typing.js';
|
|
10
10
|
/**
|
|
11
11
|
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x197a=['enableCommand','TrackChangesEditing','requires','init','get'];(function(_0x4d39ca,_0x197ac4){var _0x48493d=function(_0x124a3e){while(--_0x124a3e){_0x4d39ca['push'](_0x4d39ca['shift']());}};_0x48493d(++_0x197ac4);}(_0x197a,0x78));var _0x4849=function(_0x4d39ca,_0x197ac4){_0x4d39ca=_0x4d39ca-0x0;var _0x48493d=_0x197a[_0x4d39ca];return _0x48493d;};import{Plugin as _0x34a2d0}from'ckeditor5/src/core.js';import{Input as _0x57d4f5}from'ckeditor5/src/typing.js';export default class at extends _0x34a2d0{static get[_0x4849('0x2')](){return[_0x57d4f5];}[_0x4849('0x3')](){this['editor']['plugins'][_0x4849('0x4')](_0x4849('0x1'))[_0x4849('0x0')]('input');}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/legacylist
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for legacy list feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesLegacyList extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0xd91a=['*Change\x20to:*\x20%0','enableCommand','format','get','ELEMENT_LIST_ITEM','numbered','type','registerElementLabel','before','slice','plugins','filter','name','from','markBlockFormat','todoListChecked','forceValue','LegacyTodoListEditing','_selectedElements','bulleted','ELEMENT_NUMBERED_LIST','add','indentList','*Indent:*\x20%0','_descriptionFactory','model','listIndent','commandParams','bulletedList','registerDescriptionCallback','getSelectedBlocks','previousSibling','selection','getAttribute','listType','checkChild','findIndex','value','numberedList','has','*Uncheck\x20item*','outdentList','commandName','createPositionAt','locale','todo','TrackChangesEditing','schema','nextSibling','List','isObject','element','afterInit','commands','end','*Outdent:*\x20%0','todoList','listItem','paragraph','*Check\x20item*','change','checkTodoList'];(function(_0x46eade,_0xd91a37){const _0x2e0650=function(_0x835ebf){while(--_0x835ebf){_0x46eade['push'](_0x46eade['shift']());}};_0x2e0650(++_0xd91a37);}(_0xd91a,0x18e));const _0x2e06=function(_0x46eade,_0xd91a37){_0x46eade=_0x46eade-0x0;let _0x2e0650=_0xd91a[_0x46eade];return _0x2e0650;};import{Plugin as _0x3ada6e}from'ckeditor5/src/core.js';import{getTranslation as _0x2728a6}from'../utils/common-translations.js';export default class ut extends _0x3ada6e{[_0x2e06('0x1a')](){const _0x3713e3=this['editor'],_0x21b8e4=_0x3713e3[_0x2e06('0x12')];if(!_0x3713e3[_0x2e06('0x2e')][_0x2e06('0xd')]('LegacyListEditing'))return;const _0x3d7570=_0x3713e3['plugins']['get'](_0x2e06('0x14')),_0x84c4b3=_0x3713e3[_0x2e06('0x2e')][_0x2e06('0xd')](_0x2e06('0x35'));function _0x2441ef(_0x48ffb6){return()=>{const _0x413932=_0x3713e3[_0x2e06('0x3d')]['document'][_0x2e06('0x6')],_0x2a9936=_0x3713e3[_0x2e06('0x1b')][_0x2e06('0x27')](_0x48ffb6);if(_0x2a9936[_0x2e06('0xb')])return void _0x3713e3['execute'](_0x2e06('0x20'),{});const _0x3c76d9=_0x48ffb6[_0x2e06('0x2d')](0x0,-0x4),_0x204d96=function(_0x48ae63,_0x14666e,_0x4a4b45){let _0x586780=Array['from'](_0x48ae63)[_0x2e06('0x2f')](_0x37af29=>function(_0x1b9836,_0x14fd06){return _0x14fd06[_0x2e06('0x9')](_0x1b9836['parent'],_0x2e06('0x1f'))&&!_0x14fd06[_0x2e06('0x18')](_0x1b9836);}(_0x37af29,_0x4a4b45));_0x586780=_0x586780[_0x2e06('0x2f')](_0x4161d6=>!_0x4161d6['is'](_0x2e06('0x19'),_0x2e06('0x1f'))||_0x4161d6[_0x2e06('0x7')](_0x2e06('0x8'))!=_0x14666e);const _0x4cb724=new Set();for(const _0x9165c7 of _0x586780)_0x9165c7['is']('element',_0x2e06('0x1f'))?_0x4cb724[_0x2e06('0x39')](ne(_0x9165c7)):_0x4cb724[_0x2e06('0x39')](_0x9165c7);return Array[_0x2e06('0x31')](_0x4cb724);}(_0x413932[_0x2e06('0x4')](),_0x3c76d9,_0x3713e3[_0x2e06('0x3d')][_0x2e06('0x15')]);_0x3713e3[_0x2e06('0x3d')][_0x2e06('0x22')](()=>{for(const _0x4fe3c5 of _0x204d96)_0x3d7570['markBlockFormat'](_0x4fe3c5,{'commandName':_0x48ffb6,'commandParams':[{'forceValue':!_0x2a9936[_0x2e06('0xb')]}],'formatGroupId':'blockName'},oe(_0x4fe3c5));});};}function _0x53e625(_0x526460){return()=>{const _0x1426a1=function(_0xc864aa){let _0x4f4085=Array[_0x2e06('0x31')](_0xc864aa);const _0x4ce9de=_0x4f4085[_0x2e06('0xa')](_0x9e81dd=>_0x2e06('0x1f')!=_0x9e81dd[_0x2e06('0x30')]);return _0x4ce9de>-0x1&&(_0x4f4085=_0x4f4085[_0x2e06('0x2d')](0x0,_0x4ce9de)),_0x4f4085;}(_0x3713e3[_0x2e06('0x3d')]['document'][_0x2e06('0x6')][_0x2e06('0x4')]()),_0x5eed07=_0x3713e3[_0x2e06('0x3d')]['createRange'](_0x3713e3[_0x2e06('0x3d')][_0x2e06('0x11')](_0x1426a1[0x0],_0x2e06('0x2c')),_0x3713e3[_0x2e06('0x3d')][_0x2e06('0x11')](_0x1426a1[_0x1426a1['length']-0x1],_0x2e06('0x1c')));_0x3713e3[_0x2e06('0x3d')][_0x2e06('0x22')](()=>{_0x3d7570[_0x2e06('0x32')](_0x5eed07,{'commandName':_0x526460,'commandParams':[],'formatGroupId':_0x2e06('0x0')},function(_0x276271){const _0x958313=new Set();for(const _0x40ad6e of _0x276271){let _0x28dd60=_0x40ad6e['nextSibling'];for(;_0x28dd60&&_0x28dd60[_0x2e06('0x7')](_0x2e06('0x0'))>_0x40ad6e['getAttribute'](_0x2e06('0x0'));)_0x958313[_0x2e06('0x39')](_0x28dd60),_0x28dd60=_0x28dd60[_0x2e06('0x16')];}return Array[_0x2e06('0x31')](_0x958313);}(_0x1426a1));});};}_0x3d7570['enableCommand']('numberedList',_0x2441ef(_0x2e06('0xc'))),_0x3d7570[_0x2e06('0x25')](_0x2e06('0x2'),_0x2441ef(_0x2e06('0x2'))),_0x84c4b3&&_0x3d7570['enableCommand'](_0x2e06('0x1e'),_0x2441ef(_0x2e06('0x1e'))),_0x3d7570[_0x2e06('0x25')](_0x2e06('0x3a'),_0x53e625('indentList')),_0x3d7570[_0x2e06('0x25')](_0x2e06('0xf'),_0x53e625(_0x2e06('0xf'))),_0x84c4b3&&_0x3d7570[_0x2e06('0x25')](_0x2e06('0x23'),()=>{const _0x37d224=_0x3713e3[_0x2e06('0x1b')][_0x2e06('0x27')](_0x2e06('0x23')),_0x269822=Array[_0x2e06('0x31')](_0x37d224[_0x2e06('0x36')]);_0x269822[_0x2e06('0x2f')](_0x4a3f74=>_0x4a3f74[_0x2e06('0x7')](_0x2e06('0x33'))!=_0x37d224['value']),_0x3713e3['model'][_0x2e06('0x22')](()=>{for(const _0x243ed7 of _0x269822)_0x3d7570[_0x2e06('0x32')](_0x243ed7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37d224[_0x2e06('0xb')]}]});});}),_0x3d7570[_0x2e06('0x3c')][_0x2e06('0x2b')](_0x2e06('0x1f'),_0xbd4724=>_0x2728a6(_0x21b8e4,'ELEMENT_LIST_ITEM',_0xbd4724)),_0x3d7570[_0x2e06('0x3c')][_0x2e06('0x3')](_0x463c3e=>{if('formatBlock'!=_0x463c3e[_0x2e06('0x2a')]&&'formatInline'!=_0x463c3e[_0x2e06('0x2a')])return;const {data:_0x536534}=_0x463c3e;if(_0x536534){if(_0x2e06('0xc')==_0x536534[_0x2e06('0x10')]||_0x2e06('0x2')==_0x536534[_0x2e06('0x10')]||'todoList'==_0x536534['commandName'])switch(_0x536534[_0x2e06('0x10')]['replace'](_0x2e06('0x17'),'')){case _0x2e06('0x37'):return _0x3cb24b(_0x2728a6(_0x21b8e4,'ELEMENT_BULLETED_LIST'));case _0x2e06('0x29'):return _0x3cb24b(_0x2728a6(_0x21b8e4,_0x2e06('0x38')));case _0x2e06('0x13'):return _0x3cb24b(_0x2728a6(_0x21b8e4,'ELEMENT_TODO_LIST'));}if(_0x2e06('0x3a')==_0x536534[_0x2e06('0x10')])return{'type':_0x2e06('0x26'),'content':_0x2728a6(_0x21b8e4,_0x2e06('0x3b'),_0x2728a6(_0x21b8e4,_0x2e06('0x28')))};if(_0x2e06('0xf')==_0x536534['commandName'])return{'type':_0x2e06('0x26'),'content':_0x2728a6(_0x21b8e4,_0x2e06('0x1d'),_0x2728a6(_0x21b8e4,_0x2e06('0x28')))};if(_0x2e06('0x23')==_0x536534['commandName'])return _0x536534[_0x2e06('0x1')][0x0][_0x2e06('0x34')]?{'type':_0x2e06('0x26'),'content':_0x2728a6(_0x21b8e4,_0x2e06('0x21'))}:{'type':_0x2e06('0x26'),'content':_0x2728a6(_0x21b8e4,_0x2e06('0xe'))};}function _0x3cb24b(_0x12375a){return{'type':_0x2e06('0x26'),'content':_0x2728a6(_0x21b8e4,_0x2e06('0x24'),_0x12375a)};}});}}function ne(_0xba092d){const _0x275520=_0xba092d[_0x2e06('0x7')](_0x2e06('0x0'));if(0x0==_0x275520)return _0xba092d;let _0x373ddf=_0xba092d;for(;_0xba092d['previousSibling']&&_0xba092d['previousSibling']['is'](_0x2e06('0x19'),_0x2e06('0x1f'));){const _0x55dea3=_0xba092d[_0x2e06('0x5')][_0x2e06('0x7')](_0x2e06('0x0'));if(_0x55dea3==_0x275520)_0x373ddf=_0xba092d['previousSibling'];else{if(_0x55dea3<_0x275520)break;}_0xba092d=_0xba092d[_0x2e06('0x5')];}return _0x373ddf;}function oe(_0x564fe6){const _0x469671=[];if(_0x564fe6['is'](_0x2e06('0x19'),_0x2e06('0x1f'))&&_0x564fe6['getAttribute']('listIndent')>0x0){let _0x2d5f61=_0x564fe6['nextSibling'];for(;_0x2d5f61&&_0x2e06('0x1f')==_0x2d5f61['name']&&_0x2d5f61[_0x2e06('0x7')]('listIndent')==_0x564fe6['getAttribute'](_0x2e06('0x0'));)_0x469671['push'](_0x2d5f61),_0x2d5f61=_0x2d5f61[_0x2e06('0x16')];}return _0x469671;}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module track-changes/integrations/
|
|
6
|
+
* @module track-changes/integrations/legacylistproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
|
-
* Provides track changes plugin integration for
|
|
12
|
+
* Provides track changes plugin integration for list properties feature.
|
|
13
13
|
*/
|
|
14
|
-
export default class
|
|
14
|
+
export default class TrackChangesListProperties extends Plugin {
|
|
15
15
|
/**
|
|
16
16
|
* @inheritDoc
|
|
17
17
|
*/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x3854=['_descriptionFactory','get','afterInit','editor','handleDescriptions','startIndex','reversed','listStart','document','getAttribute','*Format:*\x20set\x20start\x20index\x20to\x20%0','getFirstPosition','listItem','push','format','numbered','backward','_getSuggestionBlocks','handleListReversedCommand','ELEMENT_','registerDescriptionCallback','handleListStartCommand','listReversed','element','map','handleListStyleCommand','locale','getSelectedBlocks','markMultiRangeBlockFormat','LegacyListPropertiesEditing','LegacyListUtils','getSiblingNodes','type','*Format:*\x20set\x20order\x20to\x20regular','createPositionAt','*Format:*\x20set\x20order\x20to\x20reversed','selection','commandParams','change','flat','formatBlock','TrackChangesEditing','length','commandName','_LIST_','plugins','createRange','filter','listType','model','formatInline','unshift','config','_getSuggestionBlocksForListStyle','before','forward','listStyle','toUpperCase','_getTranslationKeyForListStyle','enableCommand','bind'];(function(_0x279ede,_0x385496){const _0x364645=function(_0x3fc443){while(--_0x3fc443){_0x279ede['push'](_0x279ede['shift']());}};_0x364645(++_0x385496);}(_0x3854,0x10a));const _0x3646=function(_0x279ede,_0x385496){_0x279ede=_0x279ede-0x0;let _0x364645=_0x3854[_0x279ede];return _0x364645;};import{Plugin as _0x5a7abc}from'ckeditor5/src/core.js';import{getTranslation as _0x561b28}from'../utils/common-translations.js';export default class K extends _0x5a7abc{[_0x3646('0x29')](){if(!this[_0x3646('0x2a')][_0x3646('0x17')]['has'](_0x3646('0x7')))return;const _0x28d28a=this[_0x3646('0x2a')][_0x3646('0x1e')]['get']('list.properties'),_0x5ec1bf=this[_0x3646('0x2a')][_0x3646('0x17')][_0x3646('0x28')](_0x3646('0x13'));_0x28d28a['styles']&&_0x5ec1bf[_0x3646('0x25')](_0x3646('0x22'),this[_0x3646('0x3')][_0x3646('0x26')](this)),_0x28d28a[_0x3646('0x2d')]&&_0x5ec1bf[_0x3646('0x25')](_0x3646('0x0'),this[_0x3646('0x39')][_0x3646('0x26')](this)),_0x28d28a[_0x3646('0x2c')]&&_0x5ec1bf[_0x3646('0x25')](_0x3646('0x2e'),this[_0x3646('0x3c')]['bind'](this)),_0x5ec1bf[_0x3646('0x27')][_0x3646('0x3b')](this[_0x3646('0x2b')]['bind'](this));}[_0x3646('0x3')](_0x55f404,_0x20833d={}){const _0x5399e1=this['editor']['plugins'][_0x3646('0x28')](_0x3646('0x13')),_0x998552=this['_getSuggestionBlocksForListStyle']();this[_0x3646('0x2a')]['model']['change'](()=>{_0x5399e1[_0x3646('0x6')](_0x998552,{'commandName':_0x3646('0x22'),'commandParams':[{'type':_0x20833d['type']}],'formatGroupId':_0x3646('0x22')});});}[_0x3646('0x39')](_0x3c2b62,_0x47af5f={}){const _0x4635f1=this[_0x3646('0x2a')]['plugins'][_0x3646('0x28')](_0x3646('0x13')),_0x3c6aa0=this[_0x3646('0x38')](_0x47da61=>_0x47da61['is'](_0x3646('0x1'),_0x3646('0x33'))&&_0x3646('0x36')===_0x47da61[_0x3646('0x30')](_0x3646('0x1a')));if(_0x3c6aa0['length']<0x1)return;const _0x25cb01=_0x3c6aa0[_0x3646('0x2')](_0x1f90bf=>this[_0x3646('0x2a')]['model'][_0x3646('0x18')](this[_0x3646('0x2a')][_0x3646('0x1b')]['createPositionAt'](_0x1f90bf,_0x3646('0x20')),this['editor'][_0x3646('0x1b')][_0x3646('0xc')](_0x1f90bf,0x0)));this[_0x3646('0x2a')][_0x3646('0x1b')]['change'](()=>{_0x4635f1['markMultiRangeBlockFormat'](_0x25cb01,{'commandName':_0x3646('0x0'),'commandParams':[{'reversed':_0x47af5f[_0x3646('0x2d')]}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x33b7bf,_0x3ffe1d={}){const _0x2d56f4=this['editor']['plugins'][_0x3646('0x28')](_0x3646('0x13')),_0x552a68=this[_0x3646('0x38')](_0x39375c=>_0x39375c['is'](_0x3646('0x1'),_0x3646('0x33'))&&_0x3646('0x36')===_0x39375c[_0x3646('0x30')](_0x3646('0x1a')));if(_0x552a68['length']<0x1)return;const _0x31191a=_0x552a68['map'](_0x5a39ad=>this['editor'][_0x3646('0x1b')]['createRange'](this[_0x3646('0x2a')]['model'][_0x3646('0xc')](_0x5a39ad,_0x3646('0x20')),this[_0x3646('0x2a')][_0x3646('0x1b')][_0x3646('0xc')](_0x5a39ad,0x0)));this[_0x3646('0x2a')][_0x3646('0x1b')][_0x3646('0x10')](()=>{_0x2d56f4[_0x3646('0x6')](_0x31191a,{'commandName':_0x3646('0x2e'),'commandParams':[{'startIndex':_0x3ffe1d[_0x3646('0x2c')]}],'formatGroupId':'listStart'});});}[_0x3646('0x2b')](_0x469397){if(_0x3646('0x12')!=_0x469397[_0x3646('0xa')]&&_0x3646('0x1c')!=_0x469397['type'])return;const _0x3676cf=this[_0x3646('0x2a')][_0x3646('0x4')],{data:_0x150196}=_0x469397;if(!_0x150196)return;let _0x105224,_0x3a26c4;switch(_0x150196[_0x3646('0x15')]){case'listStyle':_0x105224='*Change\x20to:*\x20%0',_0x3a26c4={'type':'format','content':_0x561b28(_0x3676cf,_0x105224,_0x561b28(_0x3676cf,this['_getTranslationKeyForListStyle'](_0x150196[_0x3646('0xf')][0x0][_0x3646('0xa')])))};break;case _0x3646('0x0'):_0x105224=_0x150196[_0x3646('0xf')][0x0]['reversed']?_0x3646('0xd'):_0x3646('0xb'),_0x3a26c4={'type':_0x3646('0x35'),'content':_0x561b28(_0x3676cf,_0x105224)};break;case _0x3646('0x2e'):_0x105224=_0x3646('0x31'),_0x3a26c4={'type':'format','content':_0x561b28(_0x3676cf,_0x105224,_0x150196[_0x3646('0xf')][0x0][_0x3646('0x2c')])};}return _0x3a26c4;}[_0x3646('0x1f')](){var _0x1bff3c,_0x459ca4,_0x1b64fb,_0x1c1cd3;const _0x1332c6=this['editor'][_0x3646('0x17')][_0x3646('0x28')]('LegacyListUtils');let _0x11588d=Array['from'](this['editor'][_0x3646('0x1b')]['document'][_0x3646('0xe')][_0x3646('0x5')]());return(null===(_0x1bff3c=_0x11588d[0x0])||void 0x0===_0x1bff3c?void 0x0:_0x1bff3c['is'](_0x3646('0x1'),'listItem'))&&_0x11588d[_0x3646('0x1d')](..._0x1332c6[_0x3646('0x9')](this[_0x3646('0x2a')][_0x3646('0x1b')][_0x3646('0x2f')][_0x3646('0xe')]['getFirstPosition'](),_0x3646('0x37'))),(null===(_0x459ca4=_0x11588d[_0x11588d[_0x3646('0x14')]-0x1])||void 0x0===_0x459ca4?void 0x0:_0x459ca4['is'](_0x3646('0x1'),_0x3646('0x33')))&&_0x11588d[_0x3646('0x34')](..._0x1332c6[_0x3646('0x9')](this[_0x3646('0x2a')][_0x3646('0x1b')][_0x3646('0x2f')][_0x3646('0xe')]['getLastPosition'](),_0x3646('0x21'))),_0x11588d=[...new Set(_0x11588d)],(null===(_0x1c1cd3=null===(_0x1b64fb=this[_0x3646('0x2a')][_0x3646('0x1b')]['document'][_0x3646('0xe')][_0x3646('0x32')]())||void 0x0===_0x1b64fb?void 0x0:_0x1b64fb['parent'])||void 0x0===_0x1c1cd3?void 0x0:_0x1c1cd3['is'](_0x3646('0x1'),_0x3646('0x33')))&&(_0x11588d=_0x11588d['filter'](_0x8f51c7=>_0x8f51c7['is'](_0x3646('0x1'),_0x3646('0x33')))),_0x11588d;}[_0x3646('0x38')](_0x4695e1){const _0x175900=this['editor'][_0x3646('0x17')]['get'](_0x3646('0x8'));let _0x5b4227=Array['from'](this[_0x3646('0x2a')][_0x3646('0x1b')]['document'][_0x3646('0xe')][_0x3646('0x5')]())[_0x3646('0x19')](_0x4695e1)[_0x3646('0x2')](_0x44cd8c=>{const _0x123ec4=this[_0x3646('0x2a')][_0x3646('0x1b')]['createPositionAt'](_0x44cd8c,0x0);return[..._0x175900['getSiblingNodes'](_0x123ec4,'backward'),..._0x175900[_0x3646('0x9')](_0x123ec4,'forward')];})[_0x3646('0x11')]();return _0x5b4227=[...new Set(_0x5b4227)],_0x5b4227;}[_0x3646('0x24')](_0x73a25){return _0x3646('0x3a')+this[_0x3646('0x2a')][_0x3646('0x17')][_0x3646('0x28')](_0x3646('0x8'))['getListTypeFromListStyleType'](_0x73a25)['toUpperCase']()+_0x3646('0x16')+_0x73a25[_0x3646('0x23')]()['replace'](/-/g,'_');}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/link
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for link feature.
|
|
11
11
|
*/
|
package/src/integrations/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44e6=['afterInit','commandParams','*Remove\x20link*','toLowerCase','_enableDefaultAttributesIntegration','*Set\x20link:*\x20%0','_descriptionFactory','attribute','commands','LinkEditing','manualDecorators','unlink','format','has','editor','label','registerDescriptionCallback','newValue','formatInline','locale','commandName','_registerLegacyDescription','link','get','linkHref','plugins','type'];(function(_0x65b03d,_0x44e650){const _0x57ff74=function(_0x538535){while(--_0x538535){_0x65b03d['push'](_0x65b03d['shift']());}};_0x57ff74(++_0x44e650);}(_0x44e6,0x7e));const _0x57ff=function(_0x65b03d,_0x44e650){_0x65b03d=_0x65b03d-0x0;let _0x57ff74=_0x44e6[_0x65b03d];return _0x57ff74;};import{Plugin as _0x5d38c9}from'ckeditor5/src/core.js';import{getTranslation as _0x18b482}from'../utils/common-translations.js';export default class ct extends _0x5d38c9{[_0x57ff('0x9')](){const _0x344c27=this[_0x57ff('0x17')];if(!_0x344c27[_0x57ff('0x7')][_0x57ff('0x16')](_0x57ff('0x12')))return;const _0x70e995=_0x344c27[_0x57ff('0x7')][_0x57ff('0x5')]('TrackChangesEditing'),_0x111dac=_0x344c27[_0x57ff('0x11')][_0x57ff('0x5')]('link');_0x70e995[_0x57ff('0xd')](_0x57ff('0x4'),[_0x57ff('0x6'),..._0x111dac[_0x57ff('0x13')]['map'](_0x3bf8a5=>_0x3bf8a5['id'])]),_0x70e995[_0x57ff('0xd')](_0x57ff('0x14'));for(const _0x4021a9 of _0x111dac[_0x57ff('0x13')])_0x70e995[_0x57ff('0xf')]['registerAttributeLabel'](_0x4021a9['id'],'link\x20('+_0x4021a9[_0x57ff('0x18')][_0x57ff('0xc')]()+')');_0x70e995[_0x57ff('0xf')][_0x57ff('0x19')](_0x249980=>{if(_0x57ff('0x10')!=_0x249980[_0x57ff('0x8')])return;const {data:_0xb8f029}=_0x249980;if(!_0xb8f029||_0x57ff('0x6')!=_0xb8f029['key'])return;const _0x47065b=_0xb8f029[_0x57ff('0x1a')],_0x23f0d7=_0x344c27[_0x57ff('0x1')];return{'type':_0x57ff('0x15'),'content':null==_0x47065b?_0x18b482(_0x23f0d7,'*Remove\x20link*'):_0x18b482(_0x23f0d7,'*Set\x20link:*\x20%0','\x22'+_0x47065b+'\x22')};}),this[_0x57ff('0x3')]();}['_registerLegacyDescription'](){const _0xb752d8=this[_0x57ff('0x17')],_0x324678=_0xb752d8[_0x57ff('0x1')];_0xb752d8[_0x57ff('0x7')]['get']('TrackChangesEditing')[_0x57ff('0xf')][_0x57ff('0x19')](_0x1ec484=>{if(_0x57ff('0x0')!=_0x1ec484['type'])return;const {data:_0x3500e9}=_0x1ec484;if(_0x3500e9){if('link'==_0x3500e9[_0x57ff('0x2')]){const _0x271900=_0x3500e9[_0x57ff('0xa')][0x0];return{'type':_0x57ff('0x15'),'content':_0x18b482(_0x324678,_0x57ff('0xe'),'\x22'+_0x271900+'\x22')};}return _0x57ff('0x14')==_0x3500e9[_0x57ff('0x2')]?{'type':_0x57ff('0x15'),'content':_0x18b482(_0x324678,_0x57ff('0xb'))}:void 0x0;}});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/list
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* Provides track changes plugin integration for list feature.
|
|
11
|
+
*/
|
|
12
12
|
export default class TrackChangesList extends Plugin {
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
16
|
afterInit(): void;
|
|
17
17
|
}
|
package/src/integrations/list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5745=['ListEditing','parent','enableCommand','document','end','has','bulleted','*Uncheck\x20item*','getAttribute','format','checkChild','outdentList','element','before','model','_descriptionFactory','commandName','get','registerDescriptionCallback','registerElementLabel','execute','formatInline','slice','checkTodoList','createPositionAt','value','replace','numbered','locale','paragraph','nextSibling','ELEMENT_TODO_LIST','blockName','getSelectedBlocks','*Change\x20to:*\x20%0','numberedList','change','name','plugins','_selectedElements','ELEMENT_LIST_ITEM','bulletedList','List','isObject','filter','formatBlock','schema','previousSibling','listItem','TodoListEditing','length','selection','listType','listIndent','indentList','todoList','commands','todoListChecked','TrackChangesEditing','type','add','markBlockFormat','from'];(function(_0x570564,_0x5745a7){const _0x196d87=function(_0x4cb950){while(--_0x4cb950){_0x570564['push'](_0x570564['shift']());}};_0x196d87(++_0x5745a7);}(_0x5745,0x1d1));const _0x196d=function(_0x570564,_0x5745a7){_0x570564=_0x570564-0x0;let _0x196d87=_0x5745[_0x570564];return _0x196d87;};import{Plugin as _0x49227e}from'ckeditor5/src/core';import{getTranslation as _0x2c6bd2}from'../utils/common-translations';export default class ct extends _0x49227e{['afterInit'](){const _0x1f8ab8=this['editor'],_0x184384=_0x1f8ab8[_0x196d('0x4')];if(!_0x1f8ab8[_0x196d('0xe')]['has'](_0x196d('0x27')))return;const _0x15be9e=_0x1f8ab8[_0x196d('0xe')][_0x196d('0x38')](_0x196d('0x22')),_0x432678=_0x1f8ab8[_0x196d('0xe')][_0x196d('0x2c')](_0x196d('0x19'));function _0x2ded01(_0x4b3347){return()=>{const _0x210642=_0x1f8ab8[_0x196d('0x35')][_0x196d('0x2a')]['selection'],_0x216ab0=_0x1f8ab8['commands'][_0x196d('0x38')](_0x4b3347);if(_0x216ab0['value'])return void _0x1f8ab8[_0x196d('0x3b')](_0x196d('0x5'),{});const _0x1eefc3=_0x4b3347[_0x196d('0x3d')](0x0,-0x4),_0x752e8a=function(_0x523f79,_0x169a03,_0x171733){let _0x11789f=Array[_0x196d('0x26')](_0x523f79)['filter'](_0x1575a9=>function(_0x3e3f16,_0x33c397){return _0x33c397[_0x196d('0x31')](_0x3e3f16[_0x196d('0x28')],_0x196d('0x18'))&&!_0x33c397[_0x196d('0x13')](_0x3e3f16);}(_0x1575a9,_0x171733));_0x11789f=_0x11789f[_0x196d('0x14')](_0x3dc347=>!_0x3dc347['is'](_0x196d('0x33'),_0x196d('0x18'))||_0x3dc347[_0x196d('0x2f')](_0x196d('0x1c'))!=_0x169a03);const _0x2c510a=new Set();for(const _0x54b396 of _0x11789f)_0x54b396['is'](_0x196d('0x33'),_0x196d('0x18'))?_0x2c510a['add'](ne(_0x54b396)):_0x2c510a[_0x196d('0x24')](_0x54b396);return Array[_0x196d('0x26')](_0x2c510a);}(_0x210642[_0x196d('0x9')](),_0x1eefc3,_0x1f8ab8['model'][_0x196d('0x16')]);_0x1f8ab8[_0x196d('0x35')]['change'](()=>{for(const _0x594ffb of _0x752e8a)_0x15be9e['markBlockFormat'](_0x594ffb,{'commandName':_0x4b3347,'commandParams':[{'forceValue':!_0x216ab0['value']}],'formatGroupId':_0x196d('0x8')},oe(_0x594ffb));});};}function _0x29d136(_0x4af68a){return()=>{const _0x266e25=function(_0x291fd9){let _0x3d3bc0=Array[_0x196d('0x26')](_0x291fd9);const _0x371ea4=_0x3d3bc0['findIndex'](_0x356535=>_0x196d('0x18')!=_0x356535[_0x196d('0xd')]);return _0x371ea4>-0x1&&(_0x3d3bc0=_0x3d3bc0[_0x196d('0x3d')](0x0,_0x371ea4)),_0x3d3bc0;}(_0x1f8ab8['model'][_0x196d('0x2a')][_0x196d('0x1b')][_0x196d('0x9')]()),_0x2ccbb2=_0x1f8ab8[_0x196d('0x35')]['createRange'](_0x1f8ab8[_0x196d('0x35')]['createPositionAt'](_0x266e25[0x0],_0x196d('0x34')),_0x1f8ab8[_0x196d('0x35')][_0x196d('0x0')](_0x266e25[_0x266e25[_0x196d('0x1a')]-0x1],_0x196d('0x2b')));_0x1f8ab8[_0x196d('0x35')][_0x196d('0xc')](()=>{_0x15be9e[_0x196d('0x25')](_0x2ccbb2,{'commandName':_0x4af68a,'commandParams':[],'formatGroupId':_0x196d('0x1d')},function(_0x457f3a){const _0x2932ec=new Set();for(const _0x4bb0ea of _0x457f3a){let _0x37d916=_0x4bb0ea[_0x196d('0x6')];for(;_0x37d916&&_0x37d916[_0x196d('0x2f')]('listIndent')>_0x4bb0ea['getAttribute'](_0x196d('0x1d'));)_0x2932ec[_0x196d('0x24')](_0x37d916),_0x37d916=_0x37d916[_0x196d('0x6')];}return Array['from'](_0x2932ec);}(_0x266e25));});};}_0x15be9e[_0x196d('0x29')](_0x196d('0xb'),_0x2ded01('numberedList')),_0x15be9e[_0x196d('0x29')](_0x196d('0x11'),_0x2ded01(_0x196d('0x11'))),_0x432678&&_0x15be9e['enableCommand'](_0x196d('0x1f'),_0x2ded01(_0x196d('0x1f'))),_0x15be9e['enableCommand'](_0x196d('0x1e'),_0x29d136(_0x196d('0x1e'))),_0x15be9e['enableCommand']('outdentList',_0x29d136(_0x196d('0x32'))),_0x432678&&_0x15be9e[_0x196d('0x29')](_0x196d('0x3e'),()=>{const _0x98f564=_0x1f8ab8[_0x196d('0x20')][_0x196d('0x38')]('checkTodoList'),_0x1d64cd=Array[_0x196d('0x26')](_0x98f564[_0x196d('0xf')]);_0x1d64cd[_0x196d('0x14')](_0x3037a7=>_0x3037a7[_0x196d('0x2f')](_0x196d('0x21'))!=_0x98f564[_0x196d('0x1')]),_0x1f8ab8[_0x196d('0x35')][_0x196d('0xc')](()=>{for(const _0x4fcb74 of _0x1d64cd)_0x15be9e[_0x196d('0x25')](_0x4fcb74,{'commandName':_0x196d('0x3e'),'commandParams':[{'forceValue':!_0x98f564[_0x196d('0x1')]}]});});}),_0x15be9e[_0x196d('0x36')][_0x196d('0x3a')](_0x196d('0x18'),_0x1e44c7=>_0x2c6bd2(_0x184384,'ELEMENT_LIST_ITEM',_0x1e44c7)),_0x15be9e[_0x196d('0x36')][_0x196d('0x39')](_0x1619ea=>{if(_0x196d('0x15')!=_0x1619ea['type']&&_0x196d('0x3c')!=_0x1619ea[_0x196d('0x23')])return;const {data:_0x4843ef}=_0x1619ea;if(_0x4843ef){if(_0x196d('0xb')==_0x4843ef[_0x196d('0x37')]||_0x196d('0x11')==_0x4843ef[_0x196d('0x37')]||_0x196d('0x1f')==_0x4843ef['commandName'])switch(_0x4843ef['commandName'][_0x196d('0x2')](_0x196d('0x12'),'')){case _0x196d('0x2d'):return _0x58ea2f(_0x2c6bd2(_0x184384,'ELEMENT_BULLETED_LIST'));case _0x196d('0x3'):return _0x58ea2f(_0x2c6bd2(_0x184384,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58ea2f(_0x2c6bd2(_0x184384,_0x196d('0x7')));}if('indentList'==_0x4843ef[_0x196d('0x37')])return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,'*Indent:*\x20%0',_0x2c6bd2(_0x184384,'ELEMENT_LIST_ITEM'))};if(_0x196d('0x32')==_0x4843ef[_0x196d('0x37')])return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,'*Outdent:*\x20%0',_0x2c6bd2(_0x184384,_0x196d('0x10')))};if(_0x196d('0x3e')==_0x4843ef[_0x196d('0x37')])return _0x4843ef['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x2c6bd2(_0x184384,'*Check\x20item*')}:{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,_0x196d('0x2e'))};}function _0x58ea2f(_0x2445b8){return{'type':_0x196d('0x30'),'content':_0x2c6bd2(_0x184384,_0x196d('0xa'),_0x2445b8)};}});}}function ne(_0xf62253){const _0x538eea=_0xf62253['getAttribute'](_0x196d('0x1d'));if(0x0==_0x538eea)return _0xf62253;let _0x45912e=_0xf62253;for(;_0xf62253[_0x196d('0x17')]&&_0xf62253['previousSibling']['is'](_0x196d('0x33'),_0x196d('0x18'));){const _0x7b329f=_0xf62253[_0x196d('0x17')][_0x196d('0x2f')]('listIndent');if(_0x7b329f==_0x538eea)_0x45912e=_0xf62253[_0x196d('0x17')];else{if(_0x7b329f<_0x538eea)break;}_0xf62253=_0xf62253[_0x196d('0x17')];}return _0x45912e;}function oe(_0x393be0){const _0x3d6b02=[];if(_0x393be0['is'](_0x196d('0x33'),'listItem')&&_0x393be0['getAttribute'](_0x196d('0x1d'))>0x0){let _0x410c0b=_0x393be0['nextSibling'];for(;_0x410c0b&&_0x196d('0x18')==_0x410c0b[_0x196d('0xd')]&&_0x410c0b[_0x196d('0x2f')](_0x196d('0x1d'))==_0x393be0['getAttribute']('listIndent');)_0x3d6b02['push'](_0x410c0b),_0x410c0b=_0x410c0b['nextSibling'];}return _0x3d6b02;}
|
|
23
|
+
const _0x1e49=['meta','push','_enableDefaultAttributesIntegration','listItemIdFixer','*Check\x20item*','next','parent','trackChangesCommand','type','listIndent','listStyle','splitListItemAfter','*Merge:*\x20%0','commands','config','_supportLegacySuggestions','createRange','plugins','assureChains','setAttribute','bulletedList','from','noTrackChangesFixer','isNextTo','default','*Format:*\x20remove\x20from\x20%0','refresh','*Indent:*\x20%0','commandName','ListEditing','registerDescriptionCallback','model','registerCustomCallback','numbered','attributeKey','*Split:*\x20list\x20item','toUpperCase','ELEMENT_LIST_ITEM','removeMarker','*Remove\x20format:*\x20%0','_registerLegacyDescription','every','get','registerAttributeLabel','indentList','listReversed','attributes','forceValue','document','todo','todoList','newValue','has','getFirstMarker','getFirstRange','nextSibling','*Merge:*\x20list\x20item','groupId','numberedList','batch','*Format:*\x20insert\x20into\x20%0','key','bulleted','ELEMENT_BULLETED_LIST','_descriptionFactory','formatBlock','todoListCheck','range','length','splitListItemBefore','previousSibling','filter','attribute','data','format','containsItem','change','isLocal','suggestion','accept','outdentList','TrackChangesEditing','commandParams','find','*Uncheck\x20item*','includes','listStart','todoListChecked','getSuggestions','ELEMENT_TODO_LIST','*Outdent:*\x20%0','fromRange','listType','listItemId','differ','value','isUndo','_getAttributeKey','*Change\x20to:*\x20%0','end','ELEMENT_','ELEMENT_NUMBERED_LIST','multipleBlocks','head','editor','setSelection','list.multiBlock','locale','map','registerPostFixer','getChanges','start','schema','oldValue','mergeListItemBackward','nodeAfter','TodoListEditing','getAttribute','registerElementLabel','checkTodoList','createPositionAt','detach','_findSuggestions'];(function(_0x623efd,_0x1e49f2){const _0x36cf9e=function(_0x4cd519){while(--_0x4cd519){_0x623efd['push'](_0x623efd['shift']());}};_0x36cf9e(++_0x1e49f2);}(_0x1e49,0x7d));const _0x36cf=function(_0x623efd,_0x1e49f2){_0x623efd=_0x623efd-0x0;let _0x36cf9e=_0x1e49[_0x623efd];return _0x36cf9e;};import{Plugin as _0x34600f}from'ckeditor5/src/core.js';import{getTranslation as _0x363de5}from'../utils/common-translations.js';import{renameAttributeKey as _0x1a26f9}from'../trackchangesediting.js';import{LiveRange as _0x3eece7}from'ckeditor5/src/engine.js';export default class z extends _0x34600f{['afterInit'](){const _0x3cee9c=this['editor'];if(!_0x3cee9c[_0x36cf('0xf')][_0x36cf('0x32')](_0x36cf('0x1b')))return;const _0x301150=_0x3cee9c[_0x36cf('0x69')],_0xdba18=_0x3cee9c[_0x36cf('0xf')][_0x36cf('0x28')](_0x36cf('0x4f')),_0x1cc25e=_0x3cee9c[_0x36cf('0xf')]['has'](_0x36cf('0x72')),_0x4d132f=!!_0x3cee9c[_0x36cf('0xc')][_0x36cf('0x28')](_0x36cf('0x68'));function _0x328002(_0x347782){return{'type':_0x36cf('0x48'),'content':''+_0x363de5(_0x301150,'*Set\x20format:*\x20%0',_0x347782)};}function _0x59cec0(_0x5e0795){return{'type':_0x36cf('0x48'),'content':''+_0x363de5(_0x301150,_0x36cf('0x25'),_0x5e0795)};}_0xdba18[_0x36cf('0x0')](_0x36cf('0x38'),[],[_0x36cf('0x5b'),_0x36cf('0x5a'),_0x36cf('0x7')]),_0xdba18[_0x36cf('0x0')](_0x36cf('0x12')),_0xdba18[_0x36cf('0x0')](_0x36cf('0x2a')),_0xdba18['_enableDefaultAttributesIntegration'](_0x36cf('0x4e')),_0xdba18[_0x36cf('0x0')](_0x36cf('0x9')),_0xdba18[_0x36cf('0x0')](_0x36cf('0x43')),_0x4d132f&&(_0xdba18[_0x36cf('0x0')]('mergeListItemBackward'),_0xdba18[_0x36cf('0x0')]('mergeListItemForward')),_0x1cc25e&&(_0xdba18[_0x36cf('0x0')](_0x36cf('0x30')),_0xdba18[_0x36cf('0x0')](_0x36cf('0x75'),[],['todoListChecked']),_0xdba18[_0x36cf('0x3e')][_0x36cf('0x1c')](_0x417b62=>{const {data:_0x18eee2}=_0x417b62;if(_0x18eee2&&'todoListChecked'==_0x18eee2[_0x36cf('0x3b')])return{'type':_0x36cf('0x48'),'content':_0x18eee2[_0x36cf('0x31')]?_0x363de5(_0x301150,_0x36cf('0x2')):_0x363de5(_0x301150,_0x36cf('0x52'))};}),this[_0x36cf('0x66')][_0x36cf('0x1d')]['document'][_0x36cf('0x6b')](_0xb18082=>{if(_0xb18082[_0x36cf('0x39')][_0x36cf('0x5e')])return!0x1;let _0x1fe773=!0x1;const _0x54395e=_0xdba18[_0x36cf('0x56')]({'skipNotAttached':!0x0})[_0x36cf('0x45')](_0x5562b0=>_0x36cf('0x55')===_0xdba18['_getAttributeKey'](_0x5562b0));for(const _0x26ba9b of _0x54395e){_0x36cf('0x2f')!=_0x26ba9b[_0x36cf('0x34')]()[_0x36cf('0x6d')][_0x36cf('0x71')][_0x36cf('0x73')](_0x36cf('0x5a'))&&(_0xdba18[_0x36cf('0x78')](_0x26ba9b[_0x36cf('0x34')](),'attribute')[_0x36cf('0x51')](_0x19b2b8=>_0x36cf('0x5a')===_0xdba18['_getAttributeKey'](_0x19b2b8[_0x36cf('0x4c')]))||(_0xb18082['removeMarker'](_0x26ba9b[_0x36cf('0x33')]()),_0x1fe773=!0x0));}return _0x1fe773;})),_0xdba18['_descriptionFactory'][_0x36cf('0x29')]('listIndent',_0x363de5(_0x301150,'FORMAT_INDENT'));const _0x2aada0={'type':'format','content':''};_0xdba18[_0x36cf('0x3e')][_0x36cf('0x1c')](_0x24b802=>{const {data:_0x34830e}=_0x24b802;if(!_0x34830e||_0x36cf('0x5a')!=_0x34830e[_0x36cf('0x3b')])return;let _0x33b1dc=_0x24b802[_0x36cf('0x65')];for(;_0x33b1dc;){if(_0x33b1dc[_0x36cf('0x47')]&&(_0x36cf('0x8')==_0x33b1dc[_0x36cf('0x47')]['key']&&(_0x33b1dc['data'][_0x36cf('0x31')]&&_0x36cf('0x16')!=_0x33b1dc[_0x36cf('0x47')][_0x36cf('0x31')]||_0x36cf('0x16')!=_0x33b1dc['data'][_0x36cf('0x6f')]&&!_0x34830e[_0x36cf('0x31')])||!_0x4d132f&&_0x33b1dc[_0x36cf('0x47')][_0x36cf('0x3b')]==_0x1a26f9))return _0x2aada0;_0x33b1dc=_0x33b1dc[_0x36cf('0x3')];}if(null==_0x34830e[_0x36cf('0x31')])switch(_0x34830e[_0x36cf('0x6f')]){case _0x36cf('0x3c'):return _0x59cec0(_0x363de5(_0x301150,_0x36cf('0x3d')));case _0x36cf('0x1f'):return _0x59cec0(_0x363de5(_0x301150,_0x36cf('0x63')));case _0x36cf('0x2f'):return _0x59cec0(_0x363de5(_0x301150,_0x36cf('0x57')));}switch(_0x34830e['newValue']){case'bulleted':return _0x328002(_0x363de5(_0x301150,_0x36cf('0x3d')));case _0x36cf('0x1f'):return _0x328002(_0x363de5(_0x301150,_0x36cf('0x63')));case _0x36cf('0x2f'):return _0x328002(_0x363de5(_0x301150,_0x36cf('0x57')));}}),_0xdba18['_descriptionFactory'][_0x36cf('0x1c')](_0x4357d0=>{const {data:_0x235239}=_0x4357d0;if(_0x235239&&'listIndent'==_0x235239[_0x36cf('0x3b')])return null==_0x235239[_0x36cf('0x31')]||null==_0x235239['oldValue']&&0x0==_0x235239[_0x36cf('0x31')]?_0x2aada0:void 0x0;}),_0xdba18[_0x36cf('0x3e')][_0x36cf('0x1c')](_0x12ecb0=>{if(_0x36cf('0x46')!=_0x12ecb0['type'])return;const {data:_0x5ad053}=_0x12ecb0;if(!_0x5ad053||_0x36cf('0x5b')!=_0x5ad053[_0x36cf('0x3b')])return;const _0x169e0c=ie(_0x12ecb0);return _0x169e0c?_0x36cf('0x31')==_0x169e0c?{'type':_0x36cf('0x48'),'content':_0x363de5(_0x301150,_0x36cf('0x36'))}:_0x36cf('0x6f')==_0x169e0c?{'type':_0x36cf('0x48'),'content':_0x363de5(_0x301150,_0x36cf('0x21'))}:_0x2aada0:_0x2aada0;}),_0x3cee9c['model']['document']['registerPostFixer'](_0x479212=>this['listItemIdFixer'](_0x479212)),_0x3cee9c[_0x36cf('0x1d')]['document']['registerPostFixer'](_0x5eaf0b=>this[_0x36cf('0x14')](_0x5eaf0b)),_0x3cee9c[_0x36cf('0x1d')][_0x36cf('0x2e')][_0x36cf('0x6b')](_0x5d092c=>this[_0x36cf('0x10')](_0x5d092c)),this[_0x36cf('0xd')]();}[_0x36cf('0x1')](_0x1155c0){if(_0x1155c0[_0x36cf('0x39')][_0x36cf('0x5e')]||!_0x1155c0[_0x36cf('0x39')][_0x36cf('0x4b')])return!0x1;let _0x30f15e=!0x1;const _0x478501=this[_0x36cf('0x66')][_0x36cf('0xf')][_0x36cf('0x28')](_0x36cf('0x4f'))[_0x36cf('0x56')]({'skipNotAttached':!0x0})['filter'](_0x503759=>_0x503759[_0x36cf('0x47')]&&'listItemId'==_0x503759[_0x36cf('0x47')][_0x36cf('0x3b')])[_0x36cf('0x45')](_0x58a4e6=>_0x58a4e6['data']['newValue']&&_0x58a4e6[_0x36cf('0x47')][_0x36cf('0x6f')]);for(const _0x2e9be8 of _0x478501)ie(_0x2e9be8)||(_0x1155c0['removeMarker'](_0x2e9be8[_0x36cf('0x33')]()),_0x30f15e=!0x0);return _0x30f15e;}[_0x36cf('0x14')](_0xa3bd29){if(_0xa3bd29[_0x36cf('0x39')]['isUndo']||!_0xa3bd29['batch'][_0x36cf('0x4b')])return!0x1;const _0x547c4a=this[_0x36cf('0x66')][_0x36cf('0xf')]['get'](_0x36cf('0x4f'));if(_0x547c4a[_0x36cf('0x5')][_0x36cf('0x5d')])return!0x1;let _0x3857f3=!0x1;const _0x357d1e=[_0x36cf('0x5a'),_0x36cf('0x8'),'listItemId',_0x36cf('0x7'),_0x36cf('0x54'),_0x36cf('0x2b'),_0x36cf('0x40')],_0x1ef24f=this[_0x36cf('0x66')][_0x36cf('0x1d')][_0x36cf('0x2e')][_0x36cf('0x5c')][_0x36cf('0x6c')]()[_0x36cf('0x45')](_0x5350d1=>_0x36cf('0x46')==_0x5350d1[_0x36cf('0x6')])[_0x36cf('0x45')](_0x2e08b3=>_0x357d1e[_0x36cf('0x53')](_0x2e08b3[_0x36cf('0x20')]));if(0x0==_0x1ef24f[_0x36cf('0x42')])return _0x3857f3;for(const _0x47b28b of _0x1ef24f){const _0x22fa27=_0x547c4a['_findSuggestions'](_0x47b28b[_0x36cf('0x41')],_0x36cf('0x46'))[_0x36cf('0x45')](_0x580b05=>!_0x580b05[_0x36cf('0x79')][_0x36cf('0x15')])['map'](_0xee7615=>_0xee7615['suggestion'])[_0x36cf('0x45')](_0x180f79=>{const _0x47d0f1=_0x547c4a[_0x36cf('0x5f')](_0x180f79);return _0x357d1e[_0x36cf('0x53')](_0x47d0f1);});if(_0x22fa27[_0x36cf('0x42')]){for(const _0x2a8fad of _0x22fa27)_0xa3bd29[_0x36cf('0x24')](_0x2a8fad[_0x36cf('0x33')]());_0x3857f3=!0x0;}}return _0x3857f3;}[_0x36cf('0x10')](_0x487812){if(_0x487812['batch']['isUndo']||!_0x487812[_0x36cf('0x39')][_0x36cf('0x4b')])return!0x1;const _0x2a7cd6=this[_0x36cf('0x66')][_0x36cf('0xf')]['get']('TrackChangesEditing');let _0x252a57=!0x1;const _0x244da8=['listType',_0x36cf('0x8'),_0x36cf('0x5b'),_0x36cf('0x7'),_0x36cf('0x54'),_0x36cf('0x2b'),'todoListCheck'];for(const _0x49f6c2 of _0x2a7cd6[_0x36cf('0x56')]({'skipNotAttached':!0x0})){const _0x4e22dc=_0x2a7cd6[_0x36cf('0x78')](_0x49f6c2[_0x36cf('0x34')](),'attribute')[_0x36cf('0x6a')](_0xd2b86b=>_0xd2b86b[_0x36cf('0x4c')])[_0x36cf('0x45')](_0x89a355=>_0x89a355[_0x36cf('0x47')]&&_0x244da8['includes'](_0x89a355[_0x36cf('0x47')]['key']));if(!_0x4e22dc[_0x36cf('0x42')])continue;const _0xe17c6c=_0x4e22dc[0x0][_0x36cf('0x65')][_0x36cf('0x2c')]['groupId'];if(!_0x4e22dc[_0x36cf('0x27')](_0xdc1f84=>_0xdc1f84[_0x36cf('0x2c')][_0x36cf('0x37')]===_0xe17c6c))for(const _0x5518ff of _0x4e22dc)_0x30247e(_0x5518ff,_0xe17c6c)&&(_0x252a57=!0x0);}return _0x252a57;function _0x2dc861(_0x3dd0db,_0x424e74){for(const _0x49316b of _0x2a7cd6[_0x36cf('0x56')]({'skipNotAttached':!0x0})['filter'](_0x233efa=>'attribute'==_0x233efa[_0x36cf('0x6')]&&_0x233efa[_0x36cf('0x2c')]['groupId']==_0x3dd0db))_0x49316b['setAttribute']('groupId',_0x424e74);}function _0x30247e(_0x5b19d7,_0x43b204){let _0x39c0a7=_0x5b19d7['head'],_0x5a68b0=!0x1;for(;_0x39c0a7;)_0x39c0a7['attributes'][_0x36cf('0x37')]!=_0x43b204&&(_0x2dc861(_0x39c0a7[_0x36cf('0x2c')][_0x36cf('0x37')],_0x43b204),_0x39c0a7[_0x36cf('0x11')]('groupId',_0x43b204),_0x5a68b0=!0x0),_0x39c0a7=_0x39c0a7[_0x36cf('0x3')];return _0x5a68b0;}}['_supportLegacySuggestions'](){const _0x370061=this[_0x36cf('0x66')],_0x3474df=_0x370061[_0x36cf('0x69')],_0x562905=_0x370061[_0x36cf('0xf')][_0x36cf('0x28')](_0x36cf('0x4f'));this[_0x36cf('0x26')](),_0x562905['_suggestionFactory'][_0x36cf('0x1e')](_0x36cf('0x3f'),'documentList',_0x36cf('0x4d'),function(_0x4ed341,_0x3357db){const _0xfe3d36=[];for(let _0x2e19ba of _0x4ed341)_0x2e19ba[_0x36cf('0x6d')]['nodeAfter']===_0x2e19ba[_0x36cf('0x61')][_0x36cf('0x4')]&&(_0x2e19ba=_0x370061['model'][_0x36cf('0xe')](_0x370061[_0x36cf('0x1d')][_0x36cf('0x76')](_0x2e19ba[_0x36cf('0x6d')][_0x36cf('0x71')],0x0))),_0xfe3d36[_0x36cf('0x7a')](_0x2e19ba);_0x370061['model'][_0x36cf('0x4a')](_0x5f5a8b=>{const _0x9ef602=_0x370061[_0x36cf('0x1d')][_0x36cf('0x2e')]['selection'],_0x14b0af=Array[_0x36cf('0x13')](_0x9ef602['getRanges']())[_0x36cf('0x6a')](_0x15b221=>_0x3eece7[_0x36cf('0x59')](_0x15b221));_0x5f5a8b[_0x36cf('0x67')](_0xfe3d36),_0x370061['commands'][_0x36cf('0x28')](_0x3357db[_0x36cf('0x1a')])[_0x36cf('0x18')](),_0x3357db['commandParams'][_0x36cf('0x7a')]({'forceDefaultExecution':!0x0}),_0x370061['execute'](_0x3357db[_0x36cf('0x1a')],..._0x3357db['commandParams']),_0x5f5a8b['setSelection'](_0x14b0af);for(const _0x3b94b5 of _0x14b0af)_0x3b94b5[_0x36cf('0x77')]();});}),_0x562905[_0x36cf('0x3e')][_0x36cf('0x74')](function(_0x4d2494){const _0x415b35=!_0x370061[_0x36cf('0x1d')][_0x36cf('0x6e')]['isObject'](_0x4d2494),_0x1a5620=_0x4d2494[_0x36cf('0x44')],_0x942fd1=_0x4d2494[_0x36cf('0x35')],_0x5b3528=_0x4d2494[_0x36cf('0x73')](_0x36cf('0x5b')),_0x4de59c=!_0x1a5620||_0x1a5620['getAttribute'](_0x36cf('0x5b'))!==_0x5b3528,_0x1184fb=!_0x942fd1||_0x942fd1[_0x36cf('0x73')](_0x36cf('0x5b'))!==_0x5b3528;return _0x415b35&&Boolean(_0x5b3528)&&_0x4de59c&&_0x1184fb;},_0x5bf0d1=>_0x363de5(_0x3474df,_0x36cf('0x23'),_0x5bf0d1));}[_0x36cf('0x26')](){const _0x3e1ae9=this['editor'],_0x2423a3=_0x3e1ae9[_0x36cf('0x69')];function _0xda60dd(_0x55dafb){const _0x1911e0=_0x3e1ae9[_0x36cf('0xb')]['get']('bulletedList')[_0x36cf('0x5d')],_0xf516cf=_0x3e1ae9[_0x36cf('0xb')][_0x36cf('0x28')](_0x36cf('0x38'))[_0x36cf('0x5d')];return'numberedList'===_0x55dafb?_0x1911e0:_0xf516cf;}_0x3e1ae9[_0x36cf('0xf')][_0x36cf('0x28')]('TrackChangesEditing')['_descriptionFactory'][_0x36cf('0x1c')](function(_0x5939e5){if(_0x36cf('0x3f')!=_0x5939e5[_0x36cf('0x6')])return;const {data:_0x35dbe3}=_0x5939e5;if(!_0x35dbe3)return;let _0x287602,_0x35369e,_0x25cd82,_0x4d0bb3;switch(_0x35dbe3['commandName']){case _0x36cf('0x12'):_0x25cd82=_0x35dbe3[_0x36cf('0x50')][0x0]['forceValue'],_0x4d0bb3=_0xda60dd(_0x35dbe3[_0x36cf('0x1a')]),_0x287602=_0x25cd82?_0x36cf('0x3a'):_0x36cf('0x17'),!_0x4d0bb3&&_0x3e1ae9[_0x36cf('0xc')][_0x36cf('0x28')]('list.multiBlock')||(_0x287602=_0x36cf('0x60')),_0x35369e={'type':_0x36cf('0x48'),'content':_0x363de5(_0x2423a3,_0x287602,_0x363de5(_0x2423a3,_0x36cf('0x3d')))};break;case _0x36cf('0x38'):_0x25cd82=_0x35dbe3[_0x36cf('0x50')][0x0][_0x36cf('0x2d')],_0x4d0bb3=_0xda60dd(_0x35dbe3[_0x36cf('0x1a')]),_0x287602=_0x25cd82?_0x36cf('0x3a'):_0x36cf('0x17'),!_0x4d0bb3&&_0x3e1ae9[_0x36cf('0xc')][_0x36cf('0x28')]('list.multiBlock')||(_0x287602=_0x36cf('0x60')),_0x35369e={'type':_0x36cf('0x48'),'content':_0x363de5(_0x2423a3,_0x287602,_0x363de5(_0x2423a3,'ELEMENT_NUMBERED_LIST'))};break;case _0x36cf('0x2a'):_0x287602=_0x36cf('0x19'),_0x35369e={'type':_0x36cf('0x48'),'content':_0x363de5(_0x2423a3,_0x287602,_0x363de5(_0x2423a3,_0x36cf('0x23')))};break;case _0x36cf('0x4e'):_0x287602=function(_0x4adf6f){const _0x4ed076=_0x4adf6f[_0x36cf('0x34')]();let _0xaaccea=_0x4ed076[_0x36cf('0x6d')]['nodeAfter'];for(;_0xaaccea&&_0x4ed076[_0x36cf('0x49')](_0xaaccea);){if(_0xaaccea[_0x36cf('0x73')](_0x36cf('0x7'))>0x0)return!0x1;_0xaaccea=_0xaaccea[_0x36cf('0x35')];}return!0x0;}(_0x5939e5)?_0x363de5(_0x2423a3,_0x36cf('0x17'),_0x363de5(_0x2423a3,function(_0x294337){return _0x36cf('0x62')+_0x294337['getFirstRange']()[_0x36cf('0x6d')][_0x36cf('0x71')][_0x36cf('0x73')](_0x36cf('0x5a'))[_0x36cf('0x22')]()+'_LIST';}(_0x5939e5))):_0x363de5(_0x2423a3,_0x36cf('0x58'),_0x363de5(_0x2423a3,'ELEMENT_LIST_ITEM')),_0x35369e={'type':_0x36cf('0x48'),'content':_0x287602};break;case _0x36cf('0x70'):case'mergeListItemForward':!0x1===_0x35dbe3[_0x36cf('0x64')]&&(_0x287602=_0x36cf('0xa'),_0x35369e={'type':'deletion','content':_0x363de5(_0x2423a3,_0x287602,_0x363de5(_0x2423a3,'ELEMENT_LIST_ITEM'))});}return _0x35369e;});}}function ie(_0x501f75){let _0x3a191c=_0x501f75[_0x36cf('0x34')]()[_0x36cf('0x6d')]['nodeAfter']['previousSibling'];for(;_0x3a191c;){const _0x1fc214=_0x3a191c[_0x36cf('0x73')](_0x36cf('0x5b'));if(!_0x1fc214)return!0x1;if(_0x1fc214==_0x501f75['data']['newValue'])return _0x36cf('0x31');if(_0x1fc214==_0x501f75[_0x36cf('0x47')][_0x36cf('0x6f')])return _0x36cf('0x6f');_0x3a191c=_0x3a191c[_0x36cf('0x44')];}return!0x1;}
|
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/listproperties
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Description } from '../suggestiondescriptionfactory';
|
|
10
|
-
import type Suggestion from '../suggestion';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Description } from '../suggestiondescriptionfactory.js';
|
|
10
|
+
import type Suggestion from '../suggestion.js';
|
|
11
11
|
/**
|
|
12
|
-
* Provides track changes plugin integration for list properties feature.
|
|
12
|
+
* Provides track changes plugin integration for document list properties feature.
|
|
13
13
|
*/
|
|
14
|
-
export default class
|
|
14
|
+
export default class TrackChangesDocumentListProperties extends Plugin {
|
|
15
15
|
/**
|
|
16
16
|
* @inheritDoc
|
|
17
17
|
*/
|
|
18
18
|
afterInit(): void;
|
|
19
|
-
handleListStyleCommand(executeCommand: Function, options?: {
|
|
20
|
-
type?: string | null;
|
|
21
|
-
}): void;
|
|
22
|
-
handleListReversedCommand(executeCommand: Function, options?: {
|
|
23
|
-
reversed?: boolean;
|
|
24
|
-
}): void;
|
|
25
|
-
handleListStartCommand(executeCommand: Function, options?: {
|
|
26
|
-
startIndex?: number;
|
|
27
|
-
}): void;
|
|
28
19
|
handleDescriptions(suggestion: Suggestion): Description | undefined;
|
|
29
20
|
}
|