@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231006.0 → 0.0.0-nightly-20231008.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19c7=['from','markInlineFormat','normalizeSizeOptions','fontColor.colors','model','FontFamilyEditing','document','TrackChangesEditing','enableCommand','change','value','fontBackgroundColor.colors','find','*Reset\x20font\x20family*','fontColor','FontColorEditing','fontFamily','_enableCommand','title','_descriptionFactory','*Set\x20font\x20size:*\x20%0','*Reset\x20font\x20size*','editor','locale','toLowerCase','format','FontSizeEditing','*Reset\x20font\x20color*','get','fontBackgroundColor','*Set\x20font\x20color:*\x20%0','plugins','fontSize','commandParams','FontSize','*Reset\x20font\x20background\x20color*','label','*Set\x20font\x20family:*\x20%0','commandName','config','afterInit','registerDescriptionCallback'];(function(_0x12b669,_0x19c771){const _0x2a2a9e=function(_0x415b9d){while(--_0x415b9d){_0x12b669['push'](_0x12b669['shift']());}};_0x2a2a9e(++_0x19c771);}(_0x19c7,0xb2));const _0x2a2a=function(_0x12b669,_0x19c771){_0x12b669=_0x12b669-0x0;let _0x2a2a9e=_0x19c7[_0x12b669];return _0x2a2a9e;};import{Plugin as _0x3466c5}from'ckeditor5/src/core';import{normalizeColorOptions as _0x553dc1}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x496cc8}from'./utils';import{getTranslation as _0x37aba5}from'../utils/common-translations';const eo=[{'pluginName':_0x2a2a('0x10'),'commandName':_0x2a2a('0x16')},{'pluginName':_0x2a2a('0x25'),'commandName':'fontFamily'},{'pluginName':_0x2a2a('0x5'),'commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':_0x2a2a('0x13')}];export default class W extends _0x3466c5{[_0x2a2a('0x1e')](){const _0x2dd442=this[_0x2a2a('0xc')][_0x2a2a('0xd')];for(const {pluginName:_0xd0f3f7,commandName:_0x568695}of eo)this[_0x2a2a('0xc')][_0x2a2a('0x15')]['has'](_0xd0f3f7)&&this[_0x2a2a('0x7')](_0x568695);this['editor'][_0x2a2a('0x15')][_0x2a2a('0x12')](_0x2a2a('0x27'))[_0x2a2a('0x9')][_0x2a2a('0x1f')](_0x418fbb=>{const _0x5e7472=_0x2dd442['t'],{data:_0x10874a}=_0x418fbb;if(null!=_0x10874a){if(_0x2a2a('0x16')==_0x10874a[_0x2a2a('0x1c')]){const _0x2a574e=_0x10874a[_0x2a2a('0x17')][0x0][_0x2a2a('0x0')];if(_0x2a574e){const _0x3235f8=_0x5e7472(this[_0x2a2a('0xc')][_0x2a2a('0x15')][_0x2a2a('0x12')](_0x2a2a('0x18'))[_0x2a2a('0x22')](this[_0x2a2a('0xc')][_0x2a2a('0x1d')][_0x2a2a('0x12')]('fontSize.options'))[_0x2a2a('0x2')](_0x29cee4=>_0x29cee4[_0x2a2a('0x24')]==_0x2a574e)[_0x2a2a('0x8')])[_0x2a2a('0xe')]();return{'type':'format','content':_0x37aba5(_0x2dd442,_0x2a2a('0xa'),_0x3235f8)};}return{'type':_0x2a2a('0xf'),'content':_0x37aba5(_0x2dd442,_0x2a2a('0xb'))};}if(_0x2a2a('0x6')==_0x10874a['commandName']){const _0x2ed131=_0x10874a[_0x2a2a('0x17')][0x0]['value'];return _0x2ed131?{'type':_0x2a2a('0xf'),'content':_0x37aba5(_0x2dd442,_0x2a2a('0x1b'),_0x2ed131)}:{'type':_0x2a2a('0xf'),'content':_0x37aba5(_0x2dd442,_0x2a2a('0x3'))};}if(_0x2a2a('0x4')==_0x10874a[_0x2a2a('0x1c')]){const _0x4c22a8=_0x10874a[_0x2a2a('0x17')][0x0][_0x2a2a('0x0')];if(_0x4c22a8){const _0x312486=_0x553dc1(this[_0x2a2a('0xc')][_0x2a2a('0x1d')][_0x2a2a('0x12')](_0x2a2a('0x23')))[_0x2a2a('0x2')](_0x3847d8=>_0x3847d8['model']==_0x4c22a8);let _0x2bd3da=_0x4c22a8,_0x4cab6b='';return _0x312486&&(_0x2bd3da=_0x312486[_0x2a2a('0x1a')],_0x4cab6b=_0x5e7472(_0x2bd3da)['toLowerCase']()),{'type':_0x2a2a('0xf'),'content':_0x37aba5(_0x2dd442,_0x2a2a('0x14'),_0x4cab6b)['trim'](),'color':{'value':_0x4c22a8,'title':_0x4cab6b||_0x2bd3da}};}return{'type':'format','content':_0x37aba5(_0x2dd442,_0x2a2a('0x11'))};}if(_0x2a2a('0x13')==_0x10874a[_0x2a2a('0x1c')]){const _0x150cfb=_0x10874a[_0x2a2a('0x17')][0x0][_0x2a2a('0x0')];if(_0x150cfb){const _0x3a3e49=_0x553dc1(this[_0x2a2a('0xc')][_0x2a2a('0x1d')][_0x2a2a('0x12')](_0x2a2a('0x1')))[_0x2a2a('0x2')](_0x198cf2=>_0x198cf2[_0x2a2a('0x24')]==_0x150cfb);let _0x164873=_0x150cfb,_0x5a0c56='';return _0x3a3e49&&(_0x164873=_0x3a3e49[_0x2a2a('0x1a')],_0x5a0c56=_0x5e7472(_0x164873)[_0x2a2a('0xe')]()),{'type':'format','content':_0x37aba5(_0x2dd442,'*Set\x20font\x20background\x20color:*\x20%0',_0x5a0c56)['trim'](),'color':{'value':_0x150cfb,'title':_0x5a0c56||_0x164873}};}return{'type':'format','content':_0x37aba5(_0x2dd442,_0x2a2a('0x19'))};}}});}[_0x2a2a('0x7')](_0x1f94ae){const _0xc0307e=this['editor'];_0xc0307e['plugins']['get'](_0x2a2a('0x27'))[_0x2a2a('0x28')](_0x1f94ae,(_0x5ee3da,_0x1a6579={})=>{const _0x236a01=_0xc0307e[_0x2a2a('0x24')][_0x2a2a('0x26')]['selection'],_0x3f56d1=_0x1a6579[_0x2a2a('0x0')];_0x236a01['isCollapsed']?_0x5ee3da(_0x1a6579):_0xc0307e[_0x2a2a('0x24')][_0x2a2a('0x29')](()=>{const _0x2b18af=Array[_0x2a2a('0x20')](_0x236a01['getRanges']());for(const _0xd4ab8 of _0x2b18af){const _0x5ece91=_0x3f56d1?[_0xd4ab8]:_0x496cc8(_0x1f94ae,_0xd4ab8,_0xc0307e['model']);for(const _0x4d521c of _0x5ece91)_0xc0307e[_0x2a2a('0x15')][_0x2a2a('0x12')](_0x2a2a('0x27'))[_0x2a2a('0x21')](_0x4d521c,{'commandName':_0x1f94ae,'commandParams':[{'value':_0x3f56d1}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43d0=['getItems','commandParams','editor','isFormatting','keys','word','markInlineFormat','pasteFormat','model','createSelection','toLowerCase','fontColor.colors','modifySelection','document','locale','config','title','find','fontSize.options','toUpperCase','enableCommand','copyFormat','isBlock','join','label','push','split','_descriptionFactory','slice','afterInit','backward','*Remove\x20all\x20formatting*','commandName','plugins','registerDescriptionCallback','createRange','get','selection','fontSize','boolean','TrackChangesEditing','getAttributeProperties','format','getRanges','commands','length','change','fontBackgroundColor','getLastPosition','forward'];(function(_0x5ea5fe,_0x43d0dc){const _0x4019ac=function(_0x23a524){while(--_0x23a524){_0x5ea5fe['push'](_0x5ea5fe['shift']());}};_0x4019ac(++_0x43d0dc);}(_0x43d0,0x1f1));const _0x4019=function(_0x5ea5fe,_0x43d0dc){_0x5ea5fe=_0x5ea5fe-0x0;let _0x4019ac=_0x43d0[_0x5ea5fe];return _0x4019ac;};import{Plugin as _0x52ebb8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x351126}from'ckeditor5/src/ui';import{first as _0x29b27e}from'ckeditor5/src/utils';import{getTranslation as _0x52c813}from'../utils/common-translations';export default class J extends _0x52ebb8{[_0x4019('0x20')](){const _0x4ca513=this[_0x4019('0x5')],_0x5485a9=_0x4ca513[_0x4019('0xb')],_0x2076ed=_0x5485a9[_0x4019('0x10')][_0x4019('0x28')],_0x50d9e1=_0x4ca513[_0x4019('0x24')][_0x4019('0x27')](_0x4019('0x2b')),_0x355273=_0x4ca513[_0x4019('0x11')],_0x225c54=_0x4ca513['commands'][_0x4019('0x27')](_0x4019('0x18')),_0x1e6176=_0x4ca513[_0x4019('0x2f')]['get'](_0x4019('0xa'));_0x225c54&&_0x1e6176&&(_0x50d9e1[_0x4019('0x17')]('pasteFormat',(_0xc41cfa,_0x37e886={})=>{const _0x3e25e1=_0x37e886;_0x5485a9[_0x4019('0x31')](()=>{const _0x22c105=Array['from'](_0x2076ed['getRanges']()),_0x39ac65=_0x2076ed['isCollapsed']?[io(_0x5485a9,_0x2076ed)]:_0x22c105,_0x564d5a=!!_0x29b27e(function*(_0x4c8de7,_0x2d00c8){const _0x55190c=_0x348f35=>!!_0x29b27e(function*(_0x5f06a0,_0x5bdb62){for(const [_0x1e27dc]of _0x5f06a0['getAttributes']()){const _0x16383d=_0x5bdb62[_0x4019('0x2c')](_0x1e27dc);_0x16383d&&_0x16383d[_0x4019('0x6')]&&(yield _0x1e27dc);}}(_0x348f35,_0x2d00c8));for(const _0x57a125 of _0x4c8de7[_0x4019('0x2e')]())for(const _0x59b119 of _0x57a125[_0x4019('0x3')]())!_0x2d00c8[_0x4019('0x19')](_0x59b119)&&_0x55190c(_0x59b119)&&(yield _0x59b119);for(const _0x55add8 of _0x4c8de7['getSelectedBlocks']())_0x55190c(_0x55add8)&&(yield _0x55add8);_0x55190c(_0x4c8de7)&&(yield _0x4c8de7);}(_0x2076ed,_0x5485a9['schema']));if(_0x564d5a||0x0!==Object[_0x4019('0x7')](_0x3e25e1)[_0x4019('0x30')])for(const _0x4dd39b of _0x39ac65)_0x50d9e1[_0x4019('0x9')](_0x4dd39b,{'commandName':_0x4019('0xa'),'commandParams':[_0x3e25e1]});});}),_0x50d9e1[_0x4019('0x1e')][_0x4019('0x25')](_0x4d1ac7=>{const {data:_0x2704e0}=_0x4d1ac7;if(_0x2704e0&&_0x4019('0xa')===_0x2704e0[_0x4019('0x23')]){const _0x3eb4bf=[],_0x5e8dc4=_0x2704e0[_0x4019('0x4')][0x0];for(const [_0x3ae5e2,_0x54870f]of Object['entries'](_0x5e8dc4))_0x3eb4bf[_0x4019('0x1c')](so(_0x4ca513,_0x3ae5e2,_0x54870f));return _0x3eb4bf[_0x4019('0x30')]?{'type':'format','content':_0x52c813(_0x355273,'*Set\x20format\x20to:*\x20%0',_0x3eb4bf[_0x4019('0x1a')](',\x20'))}:{'type':_0x4019('0x2d'),'content':_0x52c813(_0x355273,_0x4019('0x22'))};}}),_0x4ca513[_0x4019('0x24')][_0x4019('0x27')](_0x4019('0x2b'))[_0x4019('0x17')](_0x4019('0x18')));}}function io(_0x75fe31,_0x20de46){const _0x4ff8ba=_0x75fe31[_0x4019('0xc')](_0x20de46);_0x75fe31['modifySelection'](_0x4ff8ba,{'unit':_0x4019('0x8'),'direction':_0x4019('0x21')});const _0x8e4d3f=_0x4ff8ba['getFirstPosition']();_0x75fe31[_0x4019('0xf')](_0x4ff8ba,{'unit':_0x4019('0x8'),'direction':_0x4019('0x2')});const _0x19594f=_0x4ff8ba[_0x4019('0x1')]();return _0x75fe31[_0x4019('0x26')](_0x8e4d3f,_0x19594f);}function so(_0x1d8182,_0x163ff8,_0x16f00f){const _0x473197=_0x1d8182[_0x4019('0x11')]['t'],_0x41b10e=_0x163ff8[_0x4019('0x1d')](/(?=[A-Z])/)[_0x4019('0x1a')]('\x20'),_0x54335c=_0x473197(_0x41b10e['charAt'](0x0)[_0x4019('0x16')]()+_0x41b10e[_0x4019('0x1f')](0x1))['toLowerCase']();if(_0x4019('0x2a')==typeof _0x16f00f)return _0x54335c;if('fontColor'===_0x163ff8||_0x4019('0x0')===_0x163ff8){const _0x1b428a=_0x351126(_0x1d8182['config']['get'](_0x4019('0xe')))[_0x4019('0x14')](_0x208b07=>_0x208b07[_0x4019('0xb')]==_0x16f00f);return _0x54335c+'\x20('+(_0x1b428a?_0x473197(_0x1b428a[_0x4019('0x1b')])[_0x4019('0xd')]():_0x16f00f)+')';}if(_0x4019('0x29')===_0x163ff8&&isNaN(parseFloat(_0x16f00f))){const _0x4c9dcb=_0x1d8182[_0x4019('0x24')][_0x4019('0x27')]('FontSize')['normalizeSizeOptions'](_0x1d8182[_0x4019('0x12')][_0x4019('0x27')](_0x4019('0x15')))[_0x4019('0x14')](_0x59513f=>_0x59513f['model']==_0x16f00f);return _0x54335c+'\x20('+(_0x4c9dcb?_0x473197(_0x4c9dcb[_0x4019('0x13')])['toLowerCase']():_0x16f00f)+')';}return _0x54335c+'\x20('+_0x16f00f+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b38=['getSelectedBlocks','name','markBlockFormat','title','model','locale','plugins','change','has','isObject','schema','config','registerDescriptionCallback','editor','HeadingEditing','selection','heading','enableCommand','format','get','commandParams','*Change\x20to:*\x20%0','paragraph','value','from','checkChild','registerElementLabel','filter','formatBlock','TrackChangesEditing','ELEMENT_HEADING','commandName','_descriptionFactory','find'];(function(_0x5ee471,_0x3b3849){const _0x484298=function(_0x365f13){while(--_0x365f13){_0x5ee471['push'](_0x5ee471['shift']());}};_0x484298(++_0x3b3849);}(_0x3b38,0x1f3));const _0x4842=function(_0x5ee471,_0x3b3849){_0x5ee471=_0x5ee471-0x0;let _0x484298=_0x3b38[_0x5ee471];return _0x484298;};import{Plugin as _0x3e2be0}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x22b072}from'./utils';import{getTranslation as _0x5afe07}from'../utils/common-translations';export default class K extends _0x3e2be0{['afterInit'](){const _0x95b0e0=this[_0x4842('0x18')],_0x3f0365=_0x95b0e0[_0x4842('0x10')],_0x82905d=_0x95b0e0[_0x4842('0x16')][_0x4842('0x1e')]('heading.options');if(!_0x95b0e0[_0x4842('0x11')][_0x4842('0x13')](_0x4842('0x19')))return;const _0x1a954a=_0x95b0e0[_0x4842('0x11')]['get'](_0x4842('0x6'));_0x1a954a[_0x4842('0x1c')](_0x4842('0x1b'),(_0x469532,_0x2c4b98)=>{const _0x57ef64=_0x2c4b98[_0x4842('0x0')],_0x4bb92a=Array[_0x4842('0x1')](this[_0x4842('0x18')][_0x4842('0xf')]['document'][_0x4842('0x1a')][_0x4842('0xb')]())[_0x4842('0x4')](_0x3f5e77=>function(_0x361808,_0x4e2f14,_0x17d606){return _0x17d606[_0x4842('0x2')](_0x361808['parent'],_0x4e2f14)&&!_0x17d606[_0x4842('0x14')](_0x361808)&&_0x361808[_0x4842('0xc')]!=_0x4e2f14;}(_0x3f5e77,_0x57ef64,this[_0x4842('0x18')][_0x4842('0xf')][_0x4842('0x15')]));_0x95b0e0['model'][_0x4842('0x12')](()=>{for(const _0x5464e9 of _0x4bb92a)_0x1a954a[_0x4842('0xd')](_0x5464e9,{'commandName':'heading','commandParams':[_0x2c4b98],'formatGroupId':'blockName'},_0x22b072(_0x5464e9));});});for(const _0xf1d9b8 of _0x82905d)_0x4842('0x21')!=_0xf1d9b8[_0x4842('0xf')]&&_0x1a954a[_0x4842('0x9')][_0x4842('0x3')](_0xf1d9b8[_0x4842('0xf')],_0x203665=>{const _0xc41b11=nn(_0xf1d9b8[_0x4842('0xf')]);return null!==_0xc41b11?_0x520029(_0x203665,_0xc41b11):_0x40eb21(_0x203665,_0xf1d9b8[_0x4842('0xe')]);});function _0x520029(_0x4b9f2a,_0x29d355){return _0x5afe07(_0x3f0365,_0x4842('0x7'),[_0x4b9f2a,_0x29d355]);}function _0x40eb21(_0x107347,_0x2f2564){return _0x5afe07(_0x3f0365,'ELEMENT_HEADING_CUSTOM',[_0x107347,_0x2f2564]);}_0x1a954a[_0x4842('0x9')][_0x4842('0x17')](_0x90e737=>{const {type:_0x959d1f,data:_0x5f4125}=_0x90e737;if(_0x4842('0x5')==_0x959d1f&&_0x5f4125&&_0x4842('0x1b')==_0x5f4125[_0x4842('0x8')]){const _0x391467=_0x5f4125[_0x4842('0x1f')][0x0][_0x4842('0x0')],_0x2154ee=nn(_0x391467);if(null!==_0x2154ee)return{'type':_0x4842('0x1d'),'content':_0x5afe07(_0x3f0365,'*Change\x20to:*\x20%0',_0x520029(0x1,_0x2154ee))};const _0x2650fd=_0x82905d[_0x4842('0xa')](_0x3a7c70=>_0x3a7c70[_0x4842('0xf')]===_0x391467)[_0x4842('0xe')];return{'type':_0x4842('0x1d'),'content':_0x5afe07(_0x3f0365,_0x4842('0x20'),_0x40eb21(0x1,_0x2650fd))};}});}}function nn(_0x1bb572){const _0x123992=_0x1bb572['match'](/^heading(\d+)$/);return _0x123992?_0x123992[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27fe=['commandParams','change','value','_descriptionFactory','FORMAT_HIGHLIGHT','model','getLastMatchingPosition','item','isCollapsed','format','get','markInlineFormat','toLowerCase','*Remove\x20highlight*','document','editor','TrackChangesEditing','config','enableCommand','getAttribute','highlight.options','push','selection','title','locale','plugins','formatInline','afterInit','highlight','HighlightEditing'];(function(_0x2ccd97,_0x27feb5){const _0x49ef73=function(_0x5a9d27){while(--_0x5a9d27){_0x2ccd97['push'](_0x2ccd97['shift']());}};_0x49ef73(++_0x27feb5);}(_0x27fe,0x120));const _0x49ef=function(_0x2ccd97,_0x27feb5){_0x2ccd97=_0x2ccd97-0x0;let _0x49ef73=_0x27fe[_0x2ccd97];return _0x49ef73;};import{Plugin as _0xeedde6}from'ckeditor5/src/core';import{getTranslation as _0x99aae4}from'../utils/common-translations';import{getRangesWithAttribute as _0x376b75}from'./utils';export default class Q extends _0xeedde6{[_0x49ef('0x9')](){const _0x54a65e=this[_0x49ef('0x1b')];if(!_0x54a65e[_0x49ef('0x7')]['has'](_0x49ef('0xb')))return;const _0x41a13f=_0x54a65e[_0x49ef('0x7')][_0x49ef('0x16')](_0x49ef('0x1c'));_0x41a13f[_0x49ef('0x0')]('highlight',(_0x426575,_0x5592bd={})=>{const _0x33a01c=_0x54a65e[_0x49ef('0x11')][_0x49ef('0x1a')][_0x49ef('0x4')],_0x53507e=_0x33a01c[_0x49ef('0x1')](_0x49ef('0xa'));let _0x2efbd8=_0x5592bd[_0x49ef('0xe')],_0x53eb8f=[];if(_0x33a01c[_0x49ef('0x14')]){const _0x43a385=_0x33a01c['getFirstPosition']();if(!_0x33a01c['hasAttribute'](_0x49ef('0xa')))return void _0x426575(_0x5592bd);{const _0x566e19=_0x136b9b=>_0x136b9b[_0x49ef('0x13')][_0x49ef('0x1')]('highlight')===_0x53507e,_0x51cf88=_0x43a385[_0x49ef('0x12')](_0x566e19,{'direction':'backward'}),_0x14f517=_0x43a385[_0x49ef('0x12')](_0x566e19);_0x53eb8f=[_0x54a65e['model']['createRange'](_0x51cf88,_0x14f517)],_0x2efbd8==_0x53507e&&(_0x2efbd8=null);}}else for(const _0x581947 of _0x33a01c['getRanges']())_0x2efbd8?_0x53eb8f[_0x49ef('0x3')](_0x581947):_0x53eb8f[_0x49ef('0x3')](..._0x376b75(_0x49ef('0xa'),_0x581947,_0x54a65e[_0x49ef('0x11')]));_0x54a65e[_0x49ef('0x11')][_0x49ef('0xd')](()=>{for(const _0x57c778 of _0x53eb8f)_0x41a13f[_0x49ef('0x17')](_0x57c778,{'commandName':'highlight','commandParams':[{'value':_0x2efbd8}]});});});const _0x3bd077=_0x54a65e[_0x49ef('0x6')];_0x41a13f[_0x49ef('0xf')]['registerDescriptionCallback'](_0x2b63b4=>{const {type:_0x408418,data:_0x179c2d}=_0x2b63b4;if(_0x49ef('0x8')==_0x408418&&_0x179c2d&&_0x49ef('0xa')==_0x179c2d['commandName']){const _0x5bb6fd=_0x3bd077['t'],_0xe132f0=_0x179c2d[_0x49ef('0xc')][0x0][_0x49ef('0xe')];if(_0xe132f0){const _0x2b8773=_0x54a65e[_0x49ef('0x1d')]['get'](_0x49ef('0x2'))['find'](_0x5cdef5=>_0x5cdef5[_0x49ef('0x11')]==_0xe132f0),_0x24f581=_0x5bb6fd(_0x2b8773[_0x49ef('0x5')])[_0x49ef('0x18')]();return{'type':_0x49ef('0x15'),'content':_0x99aae4(_0x3bd077,'*Set\x20highlight:*\x20%0',_0x24f581),'color':{'value':_0x2b8773['color'],'title':_0x2b8773['title']}};}return{'type':_0x49ef('0x15'),'content':_0x99aae4(_0x3bd077,_0x49ef('0x19'),_0x99aae4(_0x3bd077,_0x49ef('0x10')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a21=['registerElementLabel','enableCommand','HorizontalLineEditing','createEmptyElement','ELEMENT_HORIZONTAL_LINE','_descriptionFactory','for','horizontalLine','createContainerElement','plugins','locale','get','TrackChangesEditing','elementToStructure','ck-horizontal-line','div','has','editor','createPositionAt'];(function(_0x123cb4,_0x2a2135){const _0x28743d=function(_0x31333d){while(--_0x31333d){_0x123cb4['push'](_0x123cb4['shift']());}};_0x28743d(++_0x2a2135);}(_0x2a21,0xb0));const _0x2874=function(_0x123cb4,_0x2a2135){_0x123cb4=_0x123cb4-0x0;let _0x28743d=_0x2a21[_0x123cb4];return _0x28743d;};import{Plugin as _0x19c47f}from'ckeditor5/src/core';import{getTranslation as _0x9c264f}from'../utils/common-translations';export default class V extends _0x19c47f{['afterInit'](){const _0x4490f2=this[_0x2874('0xc')];if(!_0x4490f2[_0x2874('0x4')][_0x2874('0xb')](_0x2874('0x10')))return;_0x4490f2[_0x2874('0x4')][_0x2874('0x6')]('TrackChangesEditing')[_0x2874('0xf')]('horizontalLine');const _0x5bc16f=_0x4490f2[_0x2874('0x4')][_0x2874('0x6')](_0x2874('0x7')),_0x2a919a=_0x4490f2[_0x2874('0x5')];_0x5bc16f[_0x2874('0x0')][_0x2874('0xe')](_0x2874('0x2'),_0x2ddde8=>_0x9c264f(_0x2a919a,_0x2874('0x12'),_0x2ddde8)),_0x4490f2['conversion'][_0x2874('0x1')]('dataDowncast')[_0x2874('0x8')]({'model':_0x2874('0x2'),'view':(_0xd2c2d8,{writer:_0x3b12c3,options:_0x4876a3})=>{if(!_0x4876a3['showSuggestionHighlights'])return null;const _0x4cd4f9=_0x3b12c3[_0x2874('0x3')](_0x2874('0xa')),_0x59151e=_0x3b12c3[_0x2874('0x11')]('hr');return _0x3b12c3['addClass'](_0x2874('0x9'),_0x4cd4f9),_0x3b12c3['insert'](_0x3b12c3[_0x2874('0xd')](_0x4cd4f9,0x0),_0x59151e),_0x4cd4f9;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x234e=['*Change\x20%0\x20content*','get','value','registerDescriptionCallback','getAttribute','markBlockFormat','selection','TrackChangesEditing','view','registerElementLabel','editor','format','locale','getCustomProperty','plugins','document','element','htmlEmbed','getSelectedElement','rawHtml','_descriptionFactory','HtmlEmbed','rawHtmlApi','commandName'];(function(_0x4d2bec,_0x234e8d){const _0xeb37be=function(_0x4b70c5){while(--_0x4b70c5){_0x4d2bec['push'](_0x4d2bec['shift']());}};_0xeb37be(++_0x234e8d);}(_0x234e,0x1a8));const _0xeb37=function(_0x4d2bec,_0x234e8d){_0x4d2bec=_0x4d2bec-0x0;let _0xeb37be=_0x234e[_0x4d2bec];return _0xeb37be;};import{Plugin as _0x46a18d}from'ckeditor5/src/core';import{getTranslation as _0x898483}from'../utils/common-translations';export default class X extends _0x46a18d{['afterInit'](){const _0x3e52b8=this[_0xeb37('0x12')];if(!_0x3e52b8[_0xeb37('0x16')]['has'](_0xeb37('0x5')))return;const _0x118780=_0x3e52b8[_0xeb37('0x16')][_0xeb37('0x9')](_0xeb37('0xf')),_0x1eb449=_0x3e52b8[_0xeb37('0x14')],_0x4686c1=_0x3e52b8['editing'][_0xeb37('0x10')][_0xeb37('0x17')]['selection'];_0x118780[_0xeb37('0x4')][_0xeb37('0x11')](_0xeb37('0x3'),_0x3e3c88=>_0x898483(_0x1eb449,'ELEMENT_HTML_EMBED',_0x3e3c88)),_0x3e52b8[_0xeb37('0x16')][_0xeb37('0x9')](_0xeb37('0xf'))['enableCommand'](_0xeb37('0x1'),(_0x303970,_0x32dd90)=>{const _0x17e4da=_0x3e52b8['model'],_0x4b4b16=_0x17e4da[_0xeb37('0x17')][_0xeb37('0xe')];_0x17e4da['change'](()=>{const _0x47023c=function(_0x47ccc7){const _0x198146=_0x47ccc7['getSelectedElement']();if(_0x198146&&_0x198146['is'](_0xeb37('0x0'),_0xeb37('0x3')))return _0x47ccc7[_0xeb37('0x2')]();return null;}(_0x4b4b16);if(!_0x47023c)return void _0x303970(null);const _0x5a2fee=_0x47023c[_0xeb37('0xc')](_0xeb37('0xa'))||'';if(void 0x0===_0x32dd90)return;if(_0x32dd90===_0x5a2fee)return;_0x118780[_0xeb37('0xd')](_0x47023c,{'commandName':_0xeb37('0x1'),'commandParams':[_0x32dd90]}),_0x4686c1[_0xeb37('0x2')]()[_0xeb37('0x15')](_0xeb37('0x6'))['cancel']();});}),_0x118780[_0xeb37('0x4')][_0xeb37('0xb')](_0x4d34d5=>{const {data:_0x4f44cd}=_0x4d34d5;if(_0x4f44cd&&'htmlEmbed'==_0x4f44cd[_0xeb37('0x7')]){const _0x49769d=_0x898483(_0x1eb449,'ELEMENT_HTML_EMBED');return{'type':_0xeb37('0x13'),'content':_0x898483(_0x1eb449,_0xeb37('0x8'),_0x49769d)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd608=['registerElementLabel','getAttribute','createRangeOn','get','suggestion','value','convertBlockImageToInline','ELEMENT_IMAGE','refresh','isInlineImage','Inline\x20image\x20to\x20block\x20image','plugins','getCaptionFromImageModelElement','ImageStyleEditing','ImageResize','chain','imageInline','_suggestionFactory','resizedWidth','imageBlock','isBlockImage','ImageUtils','uploadImage','registerDescriptionCallback','commands','_findSuggestions','type','accept','Users','next','resizeImage','locale','schema','head','backward','newRange','filter','nodeBefore','findIndex','getNearestSelectionRange','hasSuggestion','getSuggestionCallback','end','model','getChangedMarkers','change','ImageBlockEditing','ImageInlineEditing','imageStyle','getContainedElement','isInContent','commandReversedParams','imageTypeBlock','differ','normalizedStyles','document','enableCommand','join','isBefore','format','commandParams','imageTypeInline','getFirstRange','convertInlineImageToBlock','_splitMarkerName','imageCaption','element','*Set\x20image\x20width:*\x20%0','nodeAfter','FORMAT_SIDE_IMAGE','discardSuggestion','alt','registerCustomCallback','commandName','name','setImageNaturalSizeAttributes','ELEMENT_INLINE_IMAGE','deletion','getSuggestions','afterInit','markBlockFormat','discard','ImageCaptionEditing','formatBlock','imageStylePreApply','isOwn','has','detach','ImageUploadEditing','addObject','toggleImageCaption','formatInline','ImageCaptionUtils','forceDefaultExecution','width','markInsertion','fromPosition','_descriptionFactory','getClosestSelectedImageElement','markInlineFormat','imageStylePostApply','insertion','selection','side','createRange','start','isCollapsed','getSuggestion','isIntersecting','toNext','toPrevious','subType','imageTextAlternative','hasAttribute','ELEMENT_CAPTION','find','*Format:*\x20%0','author','markDeletion','caption','length','newValue','Block\x20image\x20to\x20inline\x20image','TrackChangesEditing','ImageEditing','isEqual','removeObject'];(function(_0x575629,_0xd608e4){const _0x532081=function(_0x125b46){while(--_0x125b46){_0x575629['push'](_0x575629['shift']());}};_0x532081(++_0xd608e4);}(_0xd608,0x1d3));const _0x5320=function(_0x575629,_0xd608e4){_0x575629=_0x575629-0x0;let _0x532081=_0xd608[_0x575629];return _0x532081;};import{Plugin as _0x24e6ab}from'ckeditor5/src/core';import{LivePosition as _0x51c533}from'ckeditor5/src/engine';import{uid as _0x20b5ee}from'ckeditor5/src/utils';import{getTranslation as _0x3f5a29}from'../utils/common-translations';export default class Y extends _0x24e6ab{[_0x5320('0x78')](){const _0x38374b=this['editor'];if(!_0x38374b['plugins'][_0x5320('0x0')](_0x5320('0x26')))return;const _0x1165a2=_0x38374b[_0x5320('0x34')][_0x5320('0x2c')](_0x5320('0x25')),_0x39f0af=_0x38374b[_0x5320('0x34')][_0x5320('0x2c')](_0x5320('0x3e')),_0x549e7a={},_0x1db9ce=_0x38374b[_0x5320('0x48')];if(_0x1165a2[_0x5320('0x61')]('insertImage'),_0x1165a2[_0x5320('0xb')][_0x5320('0x29')](_0x5320('0x3c'),_0x2713de=>_0x3f5a29(_0x1db9ce,_0x5320('0x30'),_0x2713de)),_0x1165a2['_descriptionFactory'][_0x5320('0x29')](_0x5320('0x39'),_0x3af083=>_0x3f5a29(_0x1db9ce,_0x5320('0x75'),_0x3af083)),_0x1165a2[_0x5320('0xb')]['registerElementLabel']('caption',()=>_0x3f5a29(_0x1db9ce,_0x5320('0x1c'))),_0x38374b['plugins'][_0x5320('0x0')](_0x5320('0x2'))&&_0x1165a2[_0x5320('0x61')](_0x5320('0x3f')),_0x38374b[_0x5320('0x34')]['has'](_0x5320('0x57'))&&_0x38374b[_0x5320('0x34')][_0x5320('0x0')](_0x5320('0x58'))&&(_0x1165a2['enableCommand']('imageTypeInline',(_0x3c42e1,_0x3410c1)=>{const _0x459efc=_0x39f0af[_0x5320('0xc')](_0x38374b['model']['document'][_0x5320('0x10')]);_0x38374b[_0x5320('0x54')][_0x5320('0x56')](()=>{_0x1165a2['markBlockFormat'](_0x459efc,{'commandName':_0x5320('0x66'),'commandParams':[_0x3410c1]},[],_0x5320('0x2f'));});}),_0x1165a2[_0x5320('0x61')](_0x5320('0x5d'),(_0x1df870,_0x57adf6)=>{_0x38374b[_0x5320('0x54')]['change'](_0x5df37d=>{let _0x34f134=_0x39f0af[_0x5320('0xc')](_0x38374b['model'][_0x5320('0x60')]['selection']),_0x1217b7=_0x5df37d[_0x5320('0x2b')](_0x34f134);const _0x499f96=_0x51c533[_0x5320('0xa')](_0x1217b7[_0x5320('0x13')],_0x5320('0x18')),_0x2816de=_0x51c533['fromPosition'](_0x1217b7[_0x5320('0x53')],_0x5320('0x17'));_0x1165a2[_0x5320('0x7')](()=>_0x1df870(_0x57adf6)),_0x34f134=_0x39f0af[_0x5320('0xc')](_0x38374b[_0x5320('0x54')]['document'][_0x5320('0x10')]),_0x1217b7=_0x5df37d[_0x5320('0x2b')](_0x34f134);const _0x546d35=_0x5df37d[_0x5320('0x12')](_0x499f96,_0x2816de);_0x499f96[_0x5320('0x1')](),_0x2816de[_0x5320('0x1')](),_0x1165a2['markBlockFormat'](_0x34f134,{'commandName':_0x5320('0x66'),'commandParams':[_0x57adf6]},[],_0x5320('0x68')),_0x546d35['start']['isBefore'](_0x1217b7[_0x5320('0x13')])&&_0x1165a2[_0x5320('0x9')](_0x5df37d['createRange'](_0x546d35[_0x5320('0x13')],_0x1217b7[_0x5320('0x13')]),_0x5320('0x68')),_0x1217b7[_0x5320('0x53')][_0x5320('0x63')](_0x546d35[_0x5320('0x53')])&&_0x1165a2['markInsertion'](_0x5df37d[_0x5320('0x12')](_0x1217b7['end'],_0x546d35['end']),'convertInlineImageToBlock');});}),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')](_0x5320('0x7c'),_0x5320('0x68'),_0x5320('0x62'),()=>!0x1),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')](_0x5320('0x7c'),_0x5320('0x68'),_0x5320('0x44'),()=>!0x1),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')](_0x5320('0x7c'),_0x5320('0x68'),_0x5320('0x7a'),_0x1165a2[_0x5320('0x3a')][_0x5320('0x52')](_0x5320('0x7c'),'',_0x5320('0x44'))),_0x1165a2[_0x5320('0x3a')]['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1165a2['_suggestionFactory'][_0x5320('0x71')](_0x5320('0xf'),'convertInlineImageToBlock',_0x5320('0x7a'),([_0x45c1b1])=>{const _0x1a115b=_0x1165a2[_0x5320('0x3a')][_0x5320('0x52')]('insertion','',_0x5320('0x7a'));let _0x3cba68=_0x45c1b1['start'],_0x1c46e8=_0x45c1b1['end'];const _0x5a742c=_0x38374b[_0x5320('0x54')][_0x5320('0x49')][_0x5320('0x50')](_0x3cba68,_0x5320('0x4b')),_0x5f3132=_0x38374b[_0x5320('0x54')][_0x5320('0x49')][_0x5320('0x50')](_0x1c46e8,'forward');_0x5a742c[_0x5320('0x14')]&&(_0x3cba68=_0x5a742c[_0x5320('0x13')]),_0x5f3132[_0x5320('0x14')]&&(_0x1c46e8=_0x5f3132[_0x5320('0x53')]),_0x1a115b([_0x38374b[_0x5320('0x54')]['createRange'](_0x3cba68,_0x1c46e8)]);}),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')]('formatBlock','convertInlineImageToBlock',_0x5320('0x38'),_0x2a1c4a),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')](_0x5320('0xf'),_0x5320('0x68'),_0x5320('0x38'),_0x2a1c4a)),_0x38374b['plugins'][_0x5320('0x0')](_0x5320('0x7b'))&&(_0x1165a2[_0x5320('0x61')](_0x5320('0x4'),(_0x3cfe94,_0x573411)=>{const _0x121684=_0x38374b['plugins']['get'](_0x5320('0x6'));let _0x117fdb=_0x39f0af[_0x5320('0xc')](_0x38374b['model']['document']['selection']),_0x328123=_0x121684['getCaptionFromImageModelElement'](_0x117fdb);_0x38374b['model'][_0x5320('0x56')](()=>{if(_0x328123)return void _0x1165a2[_0x5320('0x20')](_0x38374b['model']['createRangeOn'](_0x328123));const _0x2af151=_0x39f0af['isBlockImage'](_0x117fdb);_0x3cfe94(_0x573411),_0x117fdb=_0x39f0af[_0x5320('0xc')](_0x38374b[_0x5320('0x54')][_0x5320('0x60')][_0x5320('0x10')]),_0x328123=_0x121684[_0x5320('0x35')](_0x117fdb),_0x1165a2[_0x5320('0x9')](_0x38374b[_0x5320('0x54')][_0x5320('0x2b')](_0x328123),_0x2af151?null:_0x5320('0x6a'));});}),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')](_0x5320('0xf'),'imageCaption','chain',_0x2a1c4a)),_0x38374b[_0x5320('0x34')]['has']('ImageStyleEditing')){_0x1165a2['enableCommand']('imageStyle',(_0x188c98,_0x219b02)=>{const _0x1c63df=_0x38374b[_0x5320('0x34')]['get'](_0x5320('0x45'))['me'],_0x189de1=_0x38374b['commands'][_0x5320('0x2c')](_0x5320('0x59'));let _0x10c9d4=_0x39f0af[_0x5320('0xc')](_0x38374b[_0x5320('0x54')]['document']['selection']),_0x234683=_0x38374b[_0x5320('0x54')][_0x5320('0x2b')](_0x10c9d4),_0x4491c1=_0x189de1[_0x5320('0x2e')];if(_0x4491c1==_0x219b02['value'])return;const _0x41e1d7={'commandName':_0x5320('0x59'),'commandParams':[_0x219b02],'formatGroupId':_0x20b5ee()};_0x38374b[_0x5320('0x54')]['change'](()=>{if(_0x1165a2[_0x5320('0x77')]()['filter'](_0x32301b=>_0x32301b[_0x5320('0x5b')]&&_0x1c63df==_0x32301b[_0x5320('0x1f')]&&('formatBlock'==_0x32301b[_0x5320('0x43')]||_0x5320('0x5')==_0x32301b[_0x5320('0x43')])&&('imageStylePreApply'==_0x32301b['subType']||'imageStylePostApply'==_0x32301b[_0x5320('0x19')])&&_0x32301b['getFirstRange']()[_0x5320('0x27')](_0x234683))['forEach'](_0x28d39a=>_0x1165a2[_0x5320('0x6f')](_0x28d39a[_0x5320('0x4a')])),_0x10c9d4=_0x39f0af[_0x5320('0xc')](_0x38374b[_0x5320('0x54')][_0x5320('0x60')][_0x5320('0x10')]),_0x234683=_0x38374b[_0x5320('0x54')]['createRangeOn'](_0x10c9d4),_0x189de1[_0x5320('0x31')](),_0x38374b[_0x5320('0x41')]['get']('imageTypeInline')[_0x5320('0x31')](),_0x38374b[_0x5320('0x41')][_0x5320('0x2c')]('imageTypeBlock')[_0x5320('0x31')](),_0x4491c1=_0x189de1['value'],_0x4491c1!=_0x219b02[_0x5320('0x2e')])return _0x39f0af[_0x5320('0x32')](_0x10c9d4)&&_0x189de1['shouldConvertImageType'](_0x219b02[_0x5320('0x2e')],_0x10c9d4)?(_0x188c98({..._0x219b02,'setImageSizes':!0x1}),_0x10c9d4=_0x39f0af[_0x5320('0xc')](_0x38374b[_0x5320('0x54')][_0x5320('0x60')][_0x5320('0x10')]),void _0x1165a2[_0x5320('0x79')](_0x10c9d4,{..._0x41e1d7,'commandReversedParams':[{'value':_0x4491c1||null,'setImageSizes':!0x1}]},[],_0x5320('0x7d'))):void(_0x39f0af[_0x5320('0x3d')](_0x10c9d4)?_0x1165a2[_0x5320('0x79')](_0x10c9d4,_0x41e1d7,[],_0x5320('0xe')):_0x1165a2[_0x5320('0xd')](_0x234683,_0x41e1d7,'imageStylePostApply'));});});for(const _0x13697c of _0x38374b[_0x5320('0x34')]['get'](_0x5320('0x36'))[_0x5320('0x5f')])_0x549e7a[_0x13697c[_0x5320('0x73')]]=_0x13697c['title']['toLowerCase']();_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')]('formatBlock',_0x5320('0x7d'),'join',()=>!0x1),_0x1165a2['_suggestionFactory'][_0x5320('0x71')](_0x5320('0x7c'),_0x5320('0xe'),'join',()=>!0x1),_0x1165a2['_suggestionFactory']['registerCustomCallback'](_0x5320('0x5'),_0x5320('0xe'),_0x5320('0x62'),()=>!0x1),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')]('formatBlock',_0x5320('0x7d'),_0x5320('0x44'),([_0x664952])=>{_0x39f0af[_0x5320('0x74')](_0x664952[_0x5320('0x5a')]());}),_0x1165a2[_0x5320('0x3a')][_0x5320('0x71')]('formatBlock',_0x5320('0x7d'),_0x5320('0x7a'),(_0x3f769a,_0x4355cc)=>{_0x1165a2[_0x5320('0x3a')][_0x5320('0x52')](_0x5320('0x7c'),'',_0x5320('0x44'))(_0x3f769a,{'commandName':_0x4355cc[_0x5320('0x72')],'commandParams':_0x4355cc[_0x5320('0x5c')]});}),_0x1165a2['_suggestionFactory']['registerCustomCallback'](_0x5320('0x7c'),_0x5320('0x7d'),_0x5320('0x38'),_0x2a1c4a);}const _0x1023d5=[{'type':'formatBlock','subType':_0x5320('0x7d')},{'type':_0x5320('0xf'),'subType':_0x5320('0x6a')},{'type':_0x5320('0x7c'),'subType':_0x5320('0x68')},{'type':'insertion','subType':_0x5320('0x68')}];function _0x5e046f(_0x59244d,_0x231b56){const _0x3e9dd2=_0x1023d5['findIndex'](({type:_0x486e57,subType:_0x128e47})=>_0x59244d[_0x5320('0x43')]==_0x486e57&&_0x59244d[_0x5320('0x19')]==_0x128e47),_0x417045=_0x1023d5[_0x5320('0x4f')](({type:_0x3f05bd,subType:_0xbba6c})=>_0x231b56[_0x5320('0x43')]==_0x3f05bd&&_0x231b56[_0x5320('0x19')]==_0xbba6c);if(_0x3e9dd2<0x0||_0x417045<0x0)return!0x1;const _0x47a2f8=_0x59244d[_0x5320('0x67')](),_0x335b0e=_0x231b56[_0x5320('0x67')]();if((0x0==_0x3e9dd2||0x1==_0x3e9dd2)&&0x2==_0x417045&&_0x47a2f8[_0x5320('0x16')](_0x335b0e))return!0x0;if(0x2==_0x3e9dd2&&0x3==_0x417045){const _0x171404=_0x1165a2[_0x5320('0x42')](_0x47a2f8,_0x5320('0xf'))[_0x5320('0x4d')](({suggestion:_0x5df303,meta:_0x177ef1})=>_0x177ef1[_0x5320('0x7e')]&&_0x5320('0x68')==_0x5df303['subType']);if(_0x171404[_0x5320('0x22')]>0x1&&_0x335b0e[_0x5320('0x53')][_0x5320('0x27')](_0x47a2f8[_0x5320('0x13')]))return!0x0;if(0x1==_0x171404[_0x5320('0x22')]&&(_0x47a2f8[_0x5320('0x13')][_0x5320('0x27')](_0x335b0e[_0x5320('0x53')])||_0x47a2f8[_0x5320('0x53')]['isEqual'](_0x335b0e[_0x5320('0x13')])))return!0x0;}if(0x3==_0x3e9dd2&&0x3==_0x417045&&_0x47a2f8[_0x5320('0x13')]['isBefore'](_0x335b0e[_0x5320('0x13')])){const _0x221da5=_0x47a2f8[_0x5320('0x53')][_0x5320('0x6d')],_0x20c147=_0x335b0e[_0x5320('0x13')][_0x5320('0x4e')];return _0x39f0af[_0x5320('0x3d')](_0x221da5)&&_0x221da5===_0x20c147;}return!0x1;}function _0x2a1c4a(_0x23ee49,_0x4cb9d8){return _0x5e046f(_0x23ee49,_0x4cb9d8)?[_0x23ee49,_0x4cb9d8]:_0x5e046f(_0x4cb9d8,_0x23ee49)?[_0x4cb9d8,_0x23ee49]:null;}_0x38374b[_0x5320('0x54')][_0x5320('0x60')]['registerPostFixer'](()=>{let _0x3ee5bb=!0x1;const _0x2e1769=Array['from'](_0x38374b['model']['document'][_0x5320('0x5e')][_0x5320('0x55')]());for(const {name:_0x4cdd4b,data:_0xb36602}of _0x2e1769){const {group:_0xbc7880,type:_0x13d682,subType:_0x5d571d,id:_0x54376b}=_0x1165a2[_0x5320('0x69')](_0x4cdd4b);if(_0x5320('0x2d')==_0xbc7880&&_0x1165a2[_0x5320('0x51')](_0x54376b)){if(_0x5320('0x7c')==_0x13d682&&(_0x5320('0x7d')==_0x5d571d||'imageStylePostApply'==_0x5d571d)){const _0x29eb5f=_0x1165a2[_0x5320('0x15')](_0x54376b);if(_0xb36602['newRange']){const _0x4342f4=_0x29eb5f[_0x5320('0x67')]()['getContainedElement']();if(_0x39f0af[_0x5320('0x3d')](_0x4342f4))continue;_0x1165a2[_0x5320('0x6f')](_0x29eb5f),_0x3ee5bb=!0x0;}}if(_0x5320('0xf')==_0x13d682&&_0x5320('0x6a')==_0x5d571d&&!_0xb36602[_0x5320('0x4c')]){const _0x553990=_0x1165a2[_0x5320('0x15')](_0x54376b);_0x553990[_0x5320('0x46')]&&_0x553990[_0x5320('0x46')][_0x5320('0x5b')]&&(_0x1165a2['discardSuggestion'](_0x553990[_0x5320('0x46')]),_0x3ee5bb=!0x0);}}}return _0x3ee5bb;}),_0x38374b[_0x5320('0x34')][_0x5320('0x0')](_0x5320('0x37'))&&_0x1165a2['enableCommand'](_0x5320('0x47'),(_0x228b8d,_0x1c546e)=>{const _0x75685e=_0x39f0af[_0x5320('0xc')](_0x38374b[_0x5320('0x54')][_0x5320('0x60')][_0x5320('0x10')]);_0x75685e[_0x5320('0x2a')](_0x5320('0x3b'))!=_0x1c546e[_0x5320('0x8')]&&_0x38374b['model'][_0x5320('0x56')](()=>{_0x1165a2[_0x5320('0x79')](_0x75685e,{'commandName':'resizeImage','commandParams':[_0x1c546e]});});}),_0x38374b[_0x5320('0x34')]['has']('ImageTextAlternativeEditing')&&_0x1165a2['enableCommand'](_0x5320('0x1a'),(_0x529956,_0x56e27b)=>{const _0x2782d8=_0x39f0af[_0x5320('0xc')](_0x38374b[_0x5320('0x54')][_0x5320('0x60')][_0x5320('0x10')]);(_0x2782d8[_0x5320('0x1b')](_0x5320('0x70'))?_0x2782d8[_0x5320('0x2a')](_0x5320('0x70')):'')!=_0x56e27b[_0x5320('0x23')]&&_0x38374b[_0x5320('0x54')][_0x5320('0x56')](()=>{_0x1165a2[_0x5320('0x79')](_0x2782d8,{'commandName':_0x5320('0x1a'),'commandParams':[_0x56e27b]});});}),_0x1165a2[_0x5320('0xb')][_0x5320('0x40')](_0x25d5d2=>{if(!!_0x1023d5[_0x5320('0x1d')](({type:_0x1f4205,subType:_0x247384})=>_0x25d5d2[_0x5320('0x43')]==_0x1f4205&&_0x25d5d2['subType']==_0x247384))return _0x25d5d2['previous']?{}:void 0x0;}),_0x1165a2[_0x5320('0xb')]['registerDescriptionCallback'](_0xcf5a9d=>{if(_0x5320('0xf')==_0xcf5a9d['type']||_0x5320('0x76')==_0xcf5a9d[_0x5320('0x43')]){const _0x334f8a=_0xcf5a9d[_0x5320('0x5a')]();if(_0x334f8a&&_0x334f8a['is'](_0x5320('0x6b'),_0x5320('0x21')))return{'type':_0x5320('0xf')==_0xcf5a9d['type']?_0x5320('0x3'):_0x5320('0x28'),'element':_0x334f8a,'quantity':0x1};}}),_0x1165a2['_descriptionFactory'][_0x5320('0x40')](_0x43b05b=>_0x5320('0x7c')==_0x43b05b[_0x5320('0x43')]&&_0x5320('0x68')==_0x43b05b[_0x5320('0x19')]?{'type':'format','content':_0x5320('0x33')}:_0x5320('0x7c')==_0x43b05b[_0x5320('0x43')]&&_0x5320('0x2f')==_0x43b05b[_0x5320('0x19')]?{'type':'format','content':_0x5320('0x24')}:void 0x0),_0x1165a2[_0x5320('0xb')][_0x5320('0x40')](_0x2c1115=>{const {data:_0x51b9d1}=_0x2c1115;if(_0x51b9d1){if(_0x5320('0x59')==_0x51b9d1[_0x5320('0x72')]){const _0x185217=_0x51b9d1[_0x5320('0x65')][0x0][_0x5320('0x2e')];return _0x68fd82(_0x5320('0x11')===_0x185217?_0x3f5a29(_0x1db9ce,_0x5320('0x6e')):_0x549e7a[_0x185217]||_0x185217);}if(_0x5320('0x1a')==_0x51b9d1[_0x5320('0x72')]){const _0x3ce940=_0x51b9d1[_0x5320('0x65')][0x0]['newValue'];return _0x3ce940?{'type':_0x5320('0x64'),'content':_0x3f5a29(_0x1db9ce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ce940+'\x22')}:{'type':'format','content':_0x3f5a29(_0x1db9ce,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51b9d1[_0x5320('0x72')]){const _0x23b572=_0x51b9d1[_0x5320('0x65')][0x0]['width'];return _0x23b572?{'type':_0x5320('0x64'),'content':_0x3f5a29(_0x1db9ce,_0x5320('0x6c'),_0x23b572)}:{'type':_0x5320('0x64'),'content':_0x3f5a29(_0x1db9ce,'*Reset\x20image\x20width*')};}}function _0x68fd82(_0x2822f7){return{'type':'format','content':_0x3f5a29(_0x1db9ce,_0x5320('0x1e'),_0x2822f7)};}});}}
|
|
23
|
+
const _0x648f=['plugins','ImageCaptionUtils','isInlineImage','isEqual','getSuggestionCallback','hasSuggestion','element','find','previous','*Set\x20image\x20text\x20alternative:*\x20%0','getNearestSelectionRange','markDeletion','insertion','end','getChangedMarkers','markInlineFormat','discardSuggestion','isCollapsed','imageBlock','detach','*Format:*\x20%0','getCaptionFromImageModelElement','createRangeOn','Block\x20image\x20to\x20inline\x20image','normalizedStyles','markInsertion','isBlockImage','value','formatInline','imageInline','imageTypeInline','isOwn','forEach','title','filter','toLowerCase','discard','ELEMENT_CAPTION','*Remove\x20image\x20text\x20alternative*','subType','change','isInContent','imageStylePostApply','join','addObject','getFirstRange','format','ImageStyleEditing','*Reset\x20image\x20width*','Users','commandReversedParams','imageCaption','get','side','name','getSuggestion','selection','hasAttribute','start','forceDefaultExecution','imageTypeBlock','createRange','registerDescriptionCallback','*Set\x20image\x20width:*\x20%0','nodeAfter','convertInlineImageToBlock','newRange','uploadImage','Inline\x20image\x20to\x20block\x20image','width','markBlockFormat','getContainedElement','ELEMENT_IMAGE','toggleImageCaption','formatBlock','imageTextAlternative','afterInit','commandParams','caption','_suggestionFactory','imageStyle','TrackChangesEditing','ImageUtils','commands','resizeImage','ImageResize','accept','ImageEditing','getAttribute','removeObject','document','convertBlockImageToInline','from','enableCommand','ImageTextAlternativeEditing','toPrevious','registerElementLabel','length','has','getSuggestions','registerCustomCallback','ImageInlineEditing','model','imageStylePreApply','refresh','differ','FORMAT_SIDE_IMAGE','isIntersecting','schema','next','_splitMarkerName','locale','commandName','fromPosition','getClosestSelectedImageElement','type','_descriptionFactory','findIndex','resizedWidth','ImageBlockEditing','alt','nodeBefore'];(function(_0xaf329c,_0x648f70){const _0x3f099f=function(_0x4ce99c){while(--_0x4ce99c){_0xaf329c['push'](_0xaf329c['shift']());}};_0x3f099f(++_0x648f70);}(_0x648f,0x92));const _0x3f09=function(_0xaf329c,_0x648f70){_0xaf329c=_0xaf329c-0x0;let _0x3f099f=_0x648f[_0xaf329c];return _0x3f099f;};import{Plugin as _0x3ef902}from'ckeditor5/src/core';import{LivePosition as _0x3aa9d5}from'ckeditor5/src/engine';import{uid as _0xf209ef}from'ckeditor5/src/utils';import{getTranslation as _0x3532df}from'../utils/common-translations';export default class Y extends _0x3ef902{[_0x3f09('0x34')](){const _0x53e1b6=this['editor'];if(!_0x53e1b6['plugins'][_0x3f09('0x4a')](_0x3f09('0x3f')))return;const _0x2fc7c6=_0x53e1b6['plugins'][_0x3f09('0x1c')](_0x3f09('0x39')),_0x5e13df=_0x53e1b6[_0x3f09('0x62')]['get'](_0x3f09('0x3a')),_0x174a87={},_0x505a2b=_0x53e1b6[_0x3f09('0x57')];if(_0x2fc7c6[_0x3f09('0x45')]('insertImage'),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x48')](_0x3f09('0x74'),_0x2ed167=>_0x3532df(_0x505a2b,_0x3f09('0x30'),_0x2ed167)),_0x2fc7c6['_descriptionFactory'][_0x3f09('0x48')](_0x3f09('0x5'),_0x2eb169=>_0x3532df(_0x505a2b,'ELEMENT_INLINE_IMAGE',_0x2eb169)),_0x2fc7c6[_0x3f09('0x5c')]['registerElementLabel'](_0x3f09('0x36'),()=>_0x3532df(_0x505a2b,_0x3f09('0xd'))),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')]('ImageUploadEditing')&&_0x2fc7c6['enableCommand'](_0x3f09('0x2b')),_0x53e1b6['plugins'][_0x3f09('0x4a')](_0x3f09('0x5f'))&&_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')](_0x3f09('0x4d'))&&(_0x2fc7c6[_0x3f09('0x45')](_0x3f09('0x6'),(_0x42d239,_0x125ccb)=>{const _0xe9c675=_0x5e13df['getClosestSelectedImageElement'](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]);_0x53e1b6[_0x3f09('0x4e')]['change'](()=>{_0x2fc7c6[_0x3f09('0x2e')](_0xe9c675,{'commandName':_0x3f09('0x6'),'commandParams':[_0x125ccb]},[],_0x3f09('0x43'));});}),_0x2fc7c6[_0x3f09('0x45')](_0x3f09('0x24'),(_0xf9ae70,_0x4ed2c6)=>{_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](_0x48f9a9=>{let _0x2be77f=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]),_0xf4561a=_0x48f9a9[_0x3f09('0x78')](_0x2be77f);const _0x41df15=_0x3aa9d5[_0x3f09('0x59')](_0xf4561a['start'],_0x3f09('0x47')),_0x238766=_0x3aa9d5['fromPosition'](_0xf4561a[_0x3f09('0x6f')],'toNext');_0x2fc7c6[_0x3f09('0x23')](()=>_0xf9ae70(_0x4ed2c6)),_0x2be77f=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]),_0xf4561a=_0x48f9a9['createRangeOn'](_0x2be77f);const _0x12401f=_0x48f9a9[_0x3f09('0x25')](_0x41df15,_0x238766);_0x41df15[_0x3f09('0x75')](),_0x238766[_0x3f09('0x75')](),_0x2fc7c6[_0x3f09('0x2e')](_0x2be77f,{'commandName':_0x3f09('0x6'),'commandParams':[_0x4ed2c6]},[],_0x3f09('0x29')),_0x12401f['start']['isBefore'](_0xf4561a[_0x3f09('0x22')])&&_0x2fc7c6['markInsertion'](_0x48f9a9[_0x3f09('0x25')](_0x12401f[_0x3f09('0x22')],_0xf4561a[_0x3f09('0x22')]),_0x3f09('0x29')),_0xf4561a['end']['isBefore'](_0x12401f[_0x3f09('0x6f')])&&_0x2fc7c6[_0x3f09('0x1')](_0x48f9a9[_0x3f09('0x25')](_0xf4561a[_0x3f09('0x6f')],_0x12401f['end']),_0x3f09('0x29'));});}),_0x2fc7c6['_suggestionFactory'][_0x3f09('0x4c')]('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x29'),'accept',()=>!0x1),_0x2fc7c6[_0x3f09('0x37')]['registerCustomCallback'](_0x3f09('0x32'),_0x3f09('0x29'),_0x3f09('0xc'),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x66')](_0x3f09('0x32'),'','accept')),_0x2fc7c6[_0x3f09('0x37')]['registerCustomCallback'](_0x3f09('0x6e'),'convertInlineImageToBlock','join',()=>!0x1),_0x2fc7c6[_0x3f09('0x37')]['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x3f09('0xc'),([_0xd72635])=>{const _0x242e26=_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x66')]('insertion','',_0x3f09('0xc'));let _0x51b8ae=_0xd72635[_0x3f09('0x22')],_0x125454=_0xd72635[_0x3f09('0x6f')];const _0x5276f9=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x54')][_0x3f09('0x6c')](_0x51b8ae,'backward'),_0x3fea35=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x54')][_0x3f09('0x6c')](_0x125454,'forward');_0x5276f9[_0x3f09('0x73')]&&(_0x51b8ae=_0x5276f9[_0x3f09('0x22')]),_0x3fea35[_0x3f09('0x73')]&&(_0x125454=_0x3fea35['end']),_0x242e26([_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x25')](_0x51b8ae,_0x125454)]);}),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x29'),'chain',_0x2d40a7),_0x2fc7c6['_suggestionFactory'][_0x3f09('0x4c')](_0x3f09('0x6e'),_0x3f09('0x29'),'chain',_0x2d40a7)),_0x53e1b6['plugins'][_0x3f09('0x4a')]('ImageCaptionEditing')&&(_0x2fc7c6[_0x3f09('0x45')](_0x3f09('0x31'),(_0x3c6d07,_0x3e31d3)=>{const _0x117fdf=_0x53e1b6[_0x3f09('0x62')]['get'](_0x3f09('0x63'));let _0x4dc9f3=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model'][_0x3f09('0x42')]['selection']),_0x4eea0d=_0x117fdf[_0x3f09('0x77')](_0x4dc9f3);_0x53e1b6[_0x3f09('0x4e')]['change'](()=>{if(_0x4eea0d)return void _0x2fc7c6[_0x3f09('0x6d')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x78')](_0x4eea0d));const _0x450948=_0x5e13df[_0x3f09('0x2')](_0x4dc9f3);_0x3c6d07(_0x3e31d3),_0x4dc9f3=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model']['document'][_0x3f09('0x20')]),_0x4eea0d=_0x117fdf[_0x3f09('0x77')](_0x4dc9f3),_0x2fc7c6[_0x3f09('0x1')](_0x53e1b6['model'][_0x3f09('0x78')](_0x4eea0d),_0x450948?null:_0x3f09('0x1b'));});}),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x6e'),_0x3f09('0x1b'),'chain',_0x2d40a7)),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')]('ImageStyleEditing')){_0x2fc7c6['enableCommand'](_0x3f09('0x38'),(_0x473552,_0x40e8d1)=>{const _0x43637e=_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x1c')](_0x3f09('0x19'))['me'],_0x3a70e7=_0x53e1b6['commands'][_0x3f09('0x1c')](_0x3f09('0x38'));let _0x1e6497=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]),_0x4ac3ed=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x78')](_0x1e6497),_0x15b479=_0x3a70e7['value'];if(_0x15b479==_0x40e8d1[_0x3f09('0x3')])return;const _0x244821={'commandName':_0x3f09('0x38'),'commandParams':[_0x40e8d1],'formatGroupId':_0xf209ef()};_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](()=>{if(_0x2fc7c6[_0x3f09('0x4b')]()['filter'](_0x3bc877=>_0x3bc877[_0x3f09('0x11')]&&_0x43637e==_0x3bc877['author']&&(_0x3f09('0x32')==_0x3bc877['type']||_0x3f09('0x4')==_0x3bc877[_0x3f09('0x5b')])&&(_0x3f09('0x4f')==_0x3bc877[_0x3f09('0xf')]||'imageStylePostApply'==_0x3bc877[_0x3f09('0xf')])&&_0x3bc877[_0x3f09('0x15')]()[_0x3f09('0x65')](_0x4ac3ed))[_0x3f09('0x8')](_0x26762b=>_0x2fc7c6[_0x3f09('0x72')](_0x26762b['head'])),_0x1e6497=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')]['document'][_0x3f09('0x20')]),_0x4ac3ed=_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x78')](_0x1e6497),_0x3a70e7[_0x3f09('0x50')](),_0x53e1b6[_0x3f09('0x3b')][_0x3f09('0x1c')]('imageTypeInline')[_0x3f09('0x50')](),_0x53e1b6['commands'][_0x3f09('0x1c')](_0x3f09('0x24'))[_0x3f09('0x50')](),_0x15b479=_0x3a70e7['value'],_0x15b479!=_0x40e8d1['value'])return _0x5e13df[_0x3f09('0x64')](_0x1e6497)&&_0x3a70e7['shouldConvertImageType'](_0x40e8d1['value'],_0x1e6497)?(_0x473552({..._0x40e8d1,'setImageSizes':!0x1}),_0x1e6497=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model'][_0x3f09('0x42')][_0x3f09('0x20')]),void _0x2fc7c6['markBlockFormat'](_0x1e6497,{..._0x244821,'commandReversedParams':[{'value':_0x15b479||null,'setImageSizes':!0x1}]},[],_0x3f09('0x4f'))):void(_0x5e13df[_0x3f09('0x2')](_0x1e6497)?_0x2fc7c6['markBlockFormat'](_0x1e6497,_0x244821,[],_0x3f09('0x12')):_0x2fc7c6[_0x3f09('0x71')](_0x4ac3ed,_0x244821,_0x3f09('0x12')));});});for(const _0x14b51b of _0x53e1b6['plugins']['get'](_0x3f09('0x17'))[_0x3f09('0x0')])_0x174a87[_0x14b51b[_0x3f09('0x1e')]]=_0x14b51b[_0x3f09('0x9')][_0x3f09('0xb')]();_0x2fc7c6['_suggestionFactory'][_0x3f09('0x4c')]('formatBlock',_0x3f09('0x4f'),_0x3f09('0x13'),()=>!0x1),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x12'),_0x3f09('0x13'),()=>!0x1),_0x2fc7c6['_suggestionFactory']['registerCustomCallback'](_0x3f09('0x4'),_0x3f09('0x12'),_0x3f09('0x13'),()=>!0x1),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')](_0x3f09('0x32'),_0x3f09('0x4f'),_0x3f09('0x3e'),([_0x42e536])=>{_0x5e13df['setImageNaturalSizeAttributes'](_0x42e536[_0x3f09('0x2f')]());}),_0x2fc7c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f09('0x4f'),_0x3f09('0xc'),(_0x4826cc,_0x4186c8)=>{_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x66')]('formatBlock','',_0x3f09('0x3e'))(_0x4826cc,{'commandName':_0x4186c8[_0x3f09('0x58')],'commandParams':_0x4186c8[_0x3f09('0x1a')]});}),_0x2fc7c6[_0x3f09('0x37')][_0x3f09('0x4c')]('formatBlock',_0x3f09('0x4f'),'chain',_0x2d40a7);}const _0x596df8=[{'type':_0x3f09('0x32'),'subType':'imageStylePreApply'},{'type':'insertion','subType':_0x3f09('0x1b')},{'type':_0x3f09('0x32'),'subType':_0x3f09('0x29')},{'type':_0x3f09('0x6e'),'subType':_0x3f09('0x29')}];function _0x1ce7cf(_0xf60062,_0x563a2e){const _0x446f6a=_0x596df8['findIndex'](({type:_0x645a3d,subType:_0x129dcc})=>_0xf60062[_0x3f09('0x5b')]==_0x645a3d&&_0xf60062[_0x3f09('0xf')]==_0x129dcc),_0x3bc40b=_0x596df8[_0x3f09('0x5d')](({type:_0x2483e8,subType:_0x313cbd})=>_0x563a2e[_0x3f09('0x5b')]==_0x2483e8&&_0x563a2e['subType']==_0x313cbd);if(_0x446f6a<0x0||_0x3bc40b<0x0)return!0x1;const _0x5f2b9b=_0xf60062[_0x3f09('0x15')](),_0x421c7e=_0x563a2e[_0x3f09('0x15')]();if((0x0==_0x446f6a||0x1==_0x446f6a)&&0x2==_0x3bc40b&&_0x5f2b9b[_0x3f09('0x53')](_0x421c7e))return!0x0;if(0x2==_0x446f6a&&0x3==_0x3bc40b){const _0x4619be=_0x2fc7c6['_findSuggestions'](_0x5f2b9b,_0x3f09('0x6e'))[_0x3f09('0xa')](({suggestion:_0x173de2,meta:_0x35e5a4})=>_0x35e5a4[_0x3f09('0x7')]&&_0x3f09('0x29')==_0x173de2[_0x3f09('0xf')]);if(_0x4619be['length']>0x1&&_0x421c7e[_0x3f09('0x6f')][_0x3f09('0x65')](_0x5f2b9b[_0x3f09('0x22')]))return!0x0;if(0x1==_0x4619be[_0x3f09('0x49')]&&(_0x5f2b9b[_0x3f09('0x22')][_0x3f09('0x65')](_0x421c7e[_0x3f09('0x6f')])||_0x5f2b9b['end'][_0x3f09('0x65')](_0x421c7e[_0x3f09('0x22')])))return!0x0;}if(0x3==_0x446f6a&&0x3==_0x3bc40b&&_0x5f2b9b[_0x3f09('0x22')]['isBefore'](_0x421c7e[_0x3f09('0x22')])){const _0x4278c2=_0x5f2b9b[_0x3f09('0x6f')][_0x3f09('0x28')],_0x3f1f8c=_0x421c7e[_0x3f09('0x22')][_0x3f09('0x61')];return _0x5e13df[_0x3f09('0x2')](_0x4278c2)&&_0x4278c2===_0x3f1f8c;}return!0x1;}function _0x2d40a7(_0x3e6de5,_0xdf7d26){return _0x1ce7cf(_0x3e6de5,_0xdf7d26)?[_0x3e6de5,_0xdf7d26]:_0x1ce7cf(_0xdf7d26,_0x3e6de5)?[_0xdf7d26,_0x3e6de5]:null;}_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')]['registerPostFixer'](()=>{let _0xeed083=!0x1;const _0xcbc027=Array[_0x3f09('0x44')](_0x53e1b6['model']['document'][_0x3f09('0x51')][_0x3f09('0x70')]());for(const {name:_0x326f58,data:_0x5d36af}of _0xcbc027){const {group:_0x125507,type:_0xfbed9b,subType:_0xb5b523,id:_0x1728e1}=_0x2fc7c6[_0x3f09('0x56')](_0x326f58);if('suggestion'==_0x125507&&_0x2fc7c6[_0x3f09('0x67')](_0x1728e1)){if(_0x3f09('0x32')==_0xfbed9b&&(_0x3f09('0x4f')==_0xb5b523||_0x3f09('0x12')==_0xb5b523)){const _0x9d48c4=_0x2fc7c6[_0x3f09('0x1f')](_0x1728e1);if(_0x5d36af[_0x3f09('0x2a')]){const _0x57dcab=_0x9d48c4[_0x3f09('0x15')]()[_0x3f09('0x2f')]();if(_0x5e13df[_0x3f09('0x2')](_0x57dcab))continue;_0x2fc7c6[_0x3f09('0x72')](_0x9d48c4),_0xeed083=!0x0;}}if(_0x3f09('0x6e')==_0xfbed9b&&'imageCaption'==_0xb5b523&&!_0x5d36af[_0x3f09('0x2a')]){const _0x4663c9=_0x2fc7c6[_0x3f09('0x1f')](_0x1728e1);_0x4663c9[_0x3f09('0x55')]&&_0x4663c9[_0x3f09('0x55')][_0x3f09('0x11')]&&(_0x2fc7c6['discardSuggestion'](_0x4663c9[_0x3f09('0x55')]),_0xeed083=!0x0);}}}return _0xeed083;}),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')](_0x3f09('0x3d'))&&_0x2fc7c6[_0x3f09('0x45')]('resizeImage',(_0x19e08a,_0x54e635)=>{const _0x479e29=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6['model'][_0x3f09('0x42')][_0x3f09('0x20')]);_0x479e29[_0x3f09('0x40')](_0x3f09('0x5e'))!=_0x54e635[_0x3f09('0x2d')]&&_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](()=>{_0x2fc7c6[_0x3f09('0x2e')](_0x479e29,{'commandName':_0x3f09('0x3c'),'commandParams':[_0x54e635]});});}),_0x53e1b6[_0x3f09('0x62')][_0x3f09('0x4a')](_0x3f09('0x46'))&&_0x2fc7c6[_0x3f09('0x45')]('imageTextAlternative',(_0x504975,_0x45c1f9)=>{const _0x55eb1b=_0x5e13df[_0x3f09('0x5a')](_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x42')][_0x3f09('0x20')]);(_0x55eb1b[_0x3f09('0x21')](_0x3f09('0x60'))?_0x55eb1b[_0x3f09('0x40')](_0x3f09('0x60')):'')!=_0x45c1f9['newValue']&&_0x53e1b6[_0x3f09('0x4e')][_0x3f09('0x10')](()=>{_0x2fc7c6['markBlockFormat'](_0x55eb1b,{'commandName':_0x3f09('0x33'),'commandParams':[_0x45c1f9]});});}),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x304449=>{if(!!_0x596df8[_0x3f09('0x69')](({type:_0x1902e0,subType:_0x37062e})=>_0x304449[_0x3f09('0x5b')]==_0x1902e0&&_0x304449[_0x3f09('0xf')]==_0x37062e))return _0x304449[_0x3f09('0x6a')]?{}:void 0x0;}),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x27768f=>{if(_0x3f09('0x6e')==_0x27768f[_0x3f09('0x5b')]||'deletion'==_0x27768f[_0x3f09('0x5b')]){const _0x204952=_0x27768f[_0x3f09('0x2f')]();if(_0x204952&&_0x204952['is'](_0x3f09('0x68'),_0x3f09('0x36')))return{'type':_0x3f09('0x6e')==_0x27768f[_0x3f09('0x5b')]?_0x3f09('0x14'):_0x3f09('0x41'),'element':_0x204952,'quantity':0x1};}}),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x3a264e=>_0x3f09('0x32')==_0x3a264e[_0x3f09('0x5b')]&&_0x3f09('0x29')==_0x3a264e[_0x3f09('0xf')]?{'type':_0x3f09('0x16'),'content':_0x3f09('0x2c')}:_0x3f09('0x32')==_0x3a264e['type']&&_0x3f09('0x43')==_0x3a264e[_0x3f09('0xf')]?{'type':_0x3f09('0x16'),'content':_0x3f09('0x79')}:void 0x0),_0x2fc7c6[_0x3f09('0x5c')][_0x3f09('0x26')](_0x3a7f98=>{const {data:_0x1cfb29}=_0x3a7f98;if(_0x1cfb29){if('imageStyle'==_0x1cfb29[_0x3f09('0x58')]){const _0x2a2624=_0x1cfb29[_0x3f09('0x35')][0x0]['value'];return _0x3deaf4(_0x3f09('0x1d')===_0x2a2624?_0x3532df(_0x505a2b,_0x3f09('0x52')):_0x174a87[_0x2a2624]||_0x2a2624);}if(_0x3f09('0x33')==_0x1cfb29[_0x3f09('0x58')]){const _0x2e4319=_0x1cfb29['commandParams'][0x0]['newValue'];return _0x2e4319?{'type':_0x3f09('0x16'),'content':_0x3532df(_0x505a2b,_0x3f09('0x6b'),'\x22'+_0x2e4319+'\x22')}:{'type':'format','content':_0x3532df(_0x505a2b,_0x3f09('0xe'))};}if(_0x3f09('0x3c')==_0x1cfb29[_0x3f09('0x58')]){const _0x236339=_0x1cfb29[_0x3f09('0x35')][0x0][_0x3f09('0x2d')];return _0x236339?{'type':_0x3f09('0x16'),'content':_0x3532df(_0x505a2b,_0x3f09('0x27'),_0x236339)}:{'type':'format','content':_0x3532df(_0x505a2b,_0x3f09('0x18'))};}}function _0x3deaf4(_0x3c0251){return{'type':'format','content':_0x3532df(_0x505a2b,_0x3f09('0x76'),_0x3c0251)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ad3=['src','get','selection','afterInit','getSuggestionCallback','editor','formatBlock','has','author','registerCustomCallback','enableCommand','change','plugins','getSelectedElement','handleReplaceImageCommand','discard','model','data','getContainedElement','TrackChangesEditing','accept','replaceImageSource','commandParams','handleSuggestionDescription','commandName','registerDescriptionCallback','document','markBlockFormat','_descriptionFactory','locale','Users','subType','_suggestionFactory','getSuggestions'];(function(_0x5c53a8,_0x5ad3fa){const _0x12b98c=function(_0x18b2d9){while(--_0x18b2d9){_0x5c53a8['push'](_0x5c53a8['shift']());}};_0x12b98c(++_0x5ad3fa);}(_0x5ad3,0x1e8));const _0x12b9=function(_0x5c53a8,_0x5ad3fa){_0x5c53a8=_0x5c53a8-0x0;let _0x12b98c=_0x5ad3[_0x5c53a8];return _0x12b98c;};import{Plugin as _0x3891bb}from'ckeditor5/src/core';import{getTranslation as _0x4831a9}from'../utils/common-translations';export default class Z extends _0x3891bb{[_0x12b9('0x19')](){if(!this[_0x12b9('0x1b')]['plugins'][_0x12b9('0x1d')]('ImageEditing'))return;const _0xdedd5a=this[_0x12b9('0x1b')][_0x12b9('0x0')][_0x12b9('0x17')](_0x12b9('0x7'));_0xdedd5a[_0x12b9('0x20')](_0x12b9('0x9'),(_0x2c48e6,_0x1195ff)=>this[_0x12b9('0x2')](_0x2c48e6,_0x1195ff)),_0xdedd5a[_0x12b9('0x14')][_0x12b9('0x1f')](_0x12b9('0x1c'),'replaceImageSource',_0x12b9('0x8'),_0xdedd5a['_suggestionFactory'][_0x12b9('0x1a')](_0x12b9('0x1c'),null,_0x12b9('0x3'))),_0xdedd5a[_0x12b9('0x14')][_0x12b9('0x1f')]('formatBlock','replaceImageSource','discard',_0xdedd5a[_0x12b9('0x14')][_0x12b9('0x1a')](_0x12b9('0x1c'),null,_0x12b9('0x8'))),_0xdedd5a[_0x12b9('0x10')][_0x12b9('0xd')](_0x2e27a4=>this[_0x12b9('0xb')](_0x2e27a4));}[_0x12b9('0x2')](_0x311ae6,_0x1f9bf3){const _0x155fdb=this[_0x12b9('0x1b')][_0x12b9('0x0')]['get']('TrackChangesEditing'),_0x198b32=this[_0x12b9('0x1b')][_0x12b9('0x4')][_0x12b9('0xe')][_0x12b9('0x18')][_0x12b9('0x1')]();this[_0x12b9('0x1b')]['model'][_0x12b9('0x21')](()=>{let _0x35a80c=_0x198b32['getAttribute'](_0x12b9('0x16'));const _0x1e522a=this['editor']['plugins'][_0x12b9('0x17')](_0x12b9('0x12'))['me'];for(const _0x290e18 of _0x155fdb[_0x12b9('0x15')]({'skipNotAttached':!0x0})){const _0x5b5720=_0x290e18[_0x12b9('0x6')]();if('replaceImageSource'===_0x290e18[_0x12b9('0x13')]&&_0x5b5720===_0x198b32){_0x290e18[_0x12b9('0x1e')]!==_0x1e522a&&_0x290e18[_0x12b9('0x3')](),_0x35a80c=_0x290e18[_0x12b9('0x5')][_0x12b9('0xa')][0x0]['source'];break;}}_0x311ae6(_0x1f9bf3),_0x155fdb[_0x12b9('0xf')](_0x198b32,{'commandName':'replaceImageSource','commandParams':[{'source':_0x35a80c}]},[],_0x12b9('0x9'));});}['handleSuggestionDescription'](_0x236935){const {data:_0x153034}=_0x236935;if(_0x153034&&_0x12b9('0x9')===_0x153034[_0x12b9('0xc')]){const _0x172bea='*Format:*\x20replace\x20image\x20URL';return{'type':'format','content':_0x4831a9(this[_0x12b9('0x1b')][_0x12b9('0x11')],_0x172bea)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56b2=['trackChanges','_setSuggestionData','bind','listenTo','plugins','_trackChangesValueDuringImport','value','_handleImportedData','forEach','TrackChangesEditing','importWord','Users','_trackChangesExecuted','dataInsert','editor','lowest','execute','commands','get'];(function(_0x470e5a,_0x56b2f9){const _0x268df6=function(_0x50df01){while(--_0x50df01){_0x470e5a['push'](_0x470e5a['shift']());}};_0x268df6(++_0x56b2f9);}(_0x56b2,0x18e));const _0x268d=function(_0x470e5a,_0x56b2f9){_0x470e5a=_0x470e5a-0x0;let _0x268df6=_0x56b2[_0x470e5a];return _0x268df6;};import{Plugin as _0x2ca060}from'ckeditor5/src/core';export default class tt extends _0x2ca060{constructor(_0x516d2f){super(_0x516d2f),this[_0x268d('0x6')]=!0x1,this[_0x268d('0xd')]=!0x1;}['afterInit'](){const _0xcfcdf3=this['editor'],_0x390ac7=_0xcfcdf3['commands']['get'](_0x268d('0xb')),_0x2d954c=_0xcfcdf3['commands']['get']('trackChanges');_0x390ac7&&(_0x390ac7['on'](_0x268d('0x11'),(_0x576bb5,[,_0x44f97b])=>{this['_trackChangesValueDuringImport']=_0x2d954c['value'],_0x44f97b['collaboration_features']['track_changes']=!this[_0x268d('0x6')];},{'priority':'high'}),this[_0x268d('0x4')](_0x390ac7,_0x268d('0xe'),this['_handleImportedData'][_0x268d('0x3')](this)),this['listenTo'](_0x390ac7,_0x268d('0xe'),()=>{this[_0x268d('0xd')]&&(_0x2d954c[_0x268d('0x11')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x268d('0x10')}),_0xcfcdf3[_0x268d('0x5')][_0x268d('0x0')](_0x268d('0xa'))['enableCommand'](_0x268d('0xb')));}[_0x268d('0x8')](_0x593afa,_0x879d2d){const {suggestions:_0x5324d5}=_0x879d2d,_0x573a9d=this[_0x268d('0xf')][_0x268d('0x12')][_0x268d('0x0')](_0x268d('0x1')),_0x4aba2b=_0x573a9d[_0x268d('0x7')];this[_0x268d('0x6')]!==_0x4aba2b&&(_0x573a9d[_0x268d('0x11')](),this['_trackChangesExecuted']=!0x0),_0x5324d5&&_0x5324d5[_0x268d('0x9')](({id:_0x404290,type:_0x489eb1,author:_0xad035f,created_at:_0x5c1020})=>{const _0x274f3c={'id':_0x404290,'type':_0x489eb1,'authorId':this[_0x268d('0xf')][_0x268d('0x5')]['get'](_0x268d('0xc'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xad035f,'createdAt':_0x5c1020?new Date(_0x5c1020):new Date(),'source':_0x268d('0xb')}}};this[_0x268d('0xf')][_0x268d('0x5')][_0x268d('0x0')](_0x268d('0xa'))[_0x268d('0x2')](_0x274f3c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19a2=['selection','enableCommand','change','getSelectedBlocks','schema','plugins','filter','_descriptionFactory','getItems','model','from','format','editor','commandName','get','outdent','checkAttribute','IndentBlock','indentBlock','getItemLabel','*Outdent:*\x20%0','registerDescriptionCallback','outdentBlock','has','TrackChangesEditing'];(function(_0x876cb5,_0x19a2d6){const _0x5195b4=function(_0x277e60){while(--_0x277e60){_0x876cb5['push'](_0x876cb5['shift']());}};_0x5195b4(++_0x19a2d6);}(_0x19a2,0x87));const _0x5195=function(_0x876cb5,_0x19a2d6){_0x876cb5=_0x876cb5-0x0;let _0x5195b4=_0x19a2[_0x876cb5];return _0x5195b4;};import{Plugin as _0x42422b}from'ckeditor5/src/core';import{getTranslation as _0x4fec2b}from'../utils/common-translations';export default class it extends _0x42422b{['afterInit'](){const _0x81b2fc=this['editor'],_0x1b785f=_0x81b2fc[_0x5195('0x14')][_0x5195('0x4')](_0x5195('0xe'));_0x81b2fc['plugins']['has']('IndentEditing')&&(_0x1b785f[_0x5195('0x10')]('indent'),_0x1b785f['enableCommand'](_0x5195('0x5')));const _0x3c01e7=_0x81b2fc['locale'];if(_0x81b2fc['plugins'][_0x5195('0xd')](_0x5195('0x7'))){for(const _0x315438 of[_0x5195('0x8'),_0x5195('0xc')])_0x1b785f[_0x5195('0x10')](_0x315438,()=>{const _0x5cb500=Array[_0x5195('0x0')](this[_0x5195('0x2')][_0x5195('0x18')]['document'][_0x5195('0xf')][_0x5195('0x12')]())[_0x5195('0x15')](_0x5187d1=>this['editor'][_0x5195('0x18')][_0x5195('0x13')][_0x5195('0x6')](_0x5187d1,'blockIndent'));_0x81b2fc[_0x5195('0x18')][_0x5195('0x11')](()=>{for(const _0x4d388e of _0x5cb500)_0x1b785f['markBlockFormat'](_0x4d388e,{'commandName':_0x315438,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x1b785f[_0x5195('0x16')][_0x5195('0xb')](_0x109636=>{const {data:_0x262a0d}=_0x109636;if(!_0x262a0d)return;if('indentBlock'!=_0x262a0d[_0x5195('0x3')]&&'outdentBlock'!=_0x262a0d['commandName'])return;const _0x4292a2=_0x109636[_0x5195('0x17')]()[0x0],_0x5e40a2=_0x1b785f[_0x5195('0x16')][_0x5195('0x9')](_0x4292a2);return _0x5195('0x8')==_0x262a0d[_0x5195('0x3')]?{'type':_0x5195('0x1'),'content':_0x4fec2b(_0x3c01e7,'*Indent:*\x20%0',_0x5e40a2)}:_0x5195('0xc')==_0x262a0d[_0x5195('0x3')]?{'type':_0x5195('0x1'),'content':_0x4fec2b(_0x3c01e7,_0x5195('0xa'),_0x5e40a2)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3e96=['init','get','plugins','requires','TrackChangesEditing','input','editor'];(function(_0xa06a59,_0x3e9610){var _0x5372fa=function(_0x345f3b){while(--_0x345f3b){_0xa06a59['push'](_0xa06a59['shift']());}};_0x5372fa(++_0x3e9610);}(_0x3e96,0x8e));var _0x5372=function(_0xa06a59,_0x3e9610){_0xa06a59=_0xa06a59-0x0;var _0x5372fa=_0x3e96[_0xa06a59];return _0x5372fa;};import{Plugin as _0x5f2e93}from'ckeditor5/src/core';import{Input as _0x52308b}from'ckeditor5/src/typing';export default class et extends _0x5f2e93{static get[_0x5372('0x1')](){return[_0x52308b];}[_0x5372('0x5')](){this[_0x5372('0x4')][_0x5372('0x0')][_0x5372('0x6')](_0x5372('0x2'))['enableCommand'](_0x5372('0x3'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51f8=['commandParams','LinkEditing','isCollapsed','format','registerDescriptionCallback','link','markInlineFormat','commandName','enableCommand','model','unlink','*Remove\x20link*','locale','selection','_descriptionFactory','afterInit','TrackChangesEditing','document','change','getFirstPosition','editor','*Set\x20link:*\x20%0','hasAttribute','plugins','linkHref','getAttribute'];(function(_0x2a4170,_0x51f848){const _0x36cb0e=function(_0x536e19){while(--_0x536e19){_0x2a4170['push'](_0x2a4170['shift']());}};_0x36cb0e(++_0x51f848);}(_0x51f8,0x6f));const _0x36cb=function(_0x2a4170,_0x51f848){_0x2a4170=_0x2a4170-0x0;let _0x36cb0e=_0x51f8[_0x2a4170];return _0x36cb0e;};import{Plugin as _0x16df52}from'ckeditor5/src/core';import{findAttributeRange as _0x122c01}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x4206a8}from'./utils';import{getTranslation as _0x5d3c58}from'../utils/common-translations';export default class nt extends _0x16df52{[_0x36cb('0x8')](){const _0x298a5a=this[_0x36cb('0xd')];if(!_0x298a5a[_0x36cb('0x10')]['has'](_0x36cb('0x14')))return;const _0x30643b=_0x298a5a[_0x36cb('0x10')]['get'](_0x36cb('0x9'));_0x30643b[_0x36cb('0x1')](_0x36cb('0x18'),(_0x5cafe5,_0x5aec47)=>{const _0x4e7260=_0x298a5a[_0x36cb('0x2')][_0x36cb('0xa')][_0x36cb('0x6')];let _0xd363f8=[];if(_0x4e7260[_0x36cb('0x15')]){if(!_0x4e7260[_0x36cb('0xf')](_0x36cb('0x11')))return void _0x5cafe5(_0x5aec47);{const _0x2a7700=_0x122c01(_0x4e7260[_0x36cb('0xc')](),_0x36cb('0x11'),_0x4e7260[_0x36cb('0x12')]('linkHref'),_0x298a5a['model']);_0xd363f8=[_0x2a7700];}}else _0xd363f8=Array['from'](_0x4e7260['getRanges']());_0x298a5a[_0x36cb('0x2')][_0x36cb('0xb')](()=>{for(const _0x59db35 of _0xd363f8)_0x30643b[_0x36cb('0x19')](_0x59db35,{'commandName':_0x36cb('0x18'),'commandParams':[_0x5aec47]});});}),_0x30643b[_0x36cb('0x1')]('unlink',()=>{const _0x3b81f6=this['editor'][_0x36cb('0x2')],_0x127600=_0x3b81f6[_0x36cb('0xa')][_0x36cb('0x6')];_0x3b81f6[_0x36cb('0xb')](()=>{let _0xeab112=[];if(_0x127600['isCollapsed'])_0xeab112=[_0x122c01(_0x127600[_0x36cb('0xc')](),_0x36cb('0x11'),_0x127600[_0x36cb('0x12')]('linkHref'),_0x298a5a[_0x36cb('0x2')])];else _0xeab112=_0x4206a8(_0x36cb('0x11'),_0x127600['getFirstRange'](),_0x298a5a[_0x36cb('0x2')]);for(const _0x47b3dd of _0xeab112)_0x30643b[_0x36cb('0x19')](_0x47b3dd,{'commandName':_0x36cb('0x3'),'commandParams':[]});});}),_0x30643b[_0x36cb('0x7')][_0x36cb('0x17')](_0x5cf463=>{const {data:_0x792f7d}=_0x5cf463,_0x18a93c=_0x298a5a[_0x36cb('0x5')];if(_0x792f7d){if('link'==_0x792f7d[_0x36cb('0x0')]){const _0x4c8be5=_0x792f7d[_0x36cb('0x13')][0x0];return{'type':_0x36cb('0x16'),'content':_0x5d3c58(_0x18a93c,_0x36cb('0xe'),'\x22'+_0x4c8be5+'\x22')};}return _0x36cb('0x3')==_0x792f7d[_0x36cb('0x0')]?{'type':_0x36cb('0x16'),'content':_0x5d3c58(_0x18a93c,_0x36cb('0x4'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a68=['getSelectedBlocks','_selectedElements','format','editor','end','bulleted','get','paragraph','ELEMENT_LIST_ITEM','parent','_descriptionFactory','schema','locale','element','replace','checkTodoList','document','ELEMENT_BULLETED_LIST','push','slice','has','*Change\x20to:*\x20%0','numbered','listType','blockName','execute','TodoListEditing','commands','bulletedList','createPositionAt','outdentList','selection','numberedList','enableCommand','from','afterInit','markBlockFormat','value','name','add','listIndent','registerDescriptionCallback','commandParams','nextSibling','createRange','getAttribute','isObject','plugins','length','TrackChangesEditing','*Check\x20item*','before','registerElementLabel','findIndex','List','indentList','todoList','commandName','previousSibling','model','*Uncheck\x20item*','listItem','change','todoListChecked'];(function(_0x18bd63,_0x3a68ff){const _0x32a7ef=function(_0x3d4a97){while(--_0x3d4a97){_0x18bd63['push'](_0x18bd63['shift']());}};_0x32a7ef(++_0x3a68ff);}(_0x3a68,0xcb));const _0x32a7=function(_0x18bd63,_0x3a68ff){_0x18bd63=_0x18bd63-0x0;let _0x32a7ef=_0x3a68[_0x18bd63];return _0x32a7ef;};import{Plugin as _0x42b283}from'ckeditor5/src/core';import{getTranslation as _0x228691}from'../utils/common-translations';export default class st extends _0x42b283{[_0x32a7('0x18')](){const _0x260d06=this[_0x32a7('0x38')],_0x2faf76=_0x260d06[_0x32a7('0x1')];if(!_0x260d06['plugins'][_0x32a7('0x9')]('ListEditing'))return;const _0x4b2761=_0x260d06[_0x32a7('0x24')][_0x32a7('0x3b')](_0x32a7('0x26')),_0x3dba8b=_0x260d06[_0x32a7('0x24')]['has'](_0x32a7('0xf'));function _0x3faa10(_0x166522){return()=>{const _0x24cb92=_0x260d06['model'][_0x32a7('0x5')][_0x32a7('0x14')],_0x3706d9=_0x260d06['commands'][_0x32a7('0x3b')](_0x166522);if(_0x3706d9[_0x32a7('0x1a')])return void _0x260d06[_0x32a7('0xe')](_0x32a7('0x3c'),{});const _0x5bcfd8=_0x166522[_0x32a7('0x8')](0x0,-0x4),_0x1e0b14=function(_0x237789,_0x17f8fe,_0x171134){let _0x44e95f=Array[_0x32a7('0x17')](_0x237789)['filter'](_0x3e2114=>function(_0x31f3f1,_0x1d9195){return _0x1d9195['checkChild'](_0x31f3f1[_0x32a7('0x3e')],'listItem')&&!_0x1d9195[_0x32a7('0x23')](_0x31f3f1);}(_0x3e2114,_0x171134));_0x44e95f=_0x44e95f['filter'](_0x4e2fc5=>!_0x4e2fc5['is'](_0x32a7('0x2'),_0x32a7('0x32'))||_0x4e2fc5[_0x32a7('0x22')](_0x32a7('0xc'))!=_0x17f8fe);const _0x3ddf14=new Set();for(const _0x293089 of _0x44e95f)_0x293089['is']('element',_0x32a7('0x32'))?_0x3ddf14[_0x32a7('0x1c')](ne(_0x293089)):_0x3ddf14['add'](_0x293089);return Array[_0x32a7('0x17')](_0x3ddf14);}(_0x24cb92[_0x32a7('0x35')](),_0x5bcfd8,_0x260d06[_0x32a7('0x30')][_0x32a7('0x0')]);_0x260d06['model'][_0x32a7('0x33')](()=>{for(const _0x35af82 of _0x1e0b14)_0x4b2761[_0x32a7('0x19')](_0x35af82,{'commandName':_0x166522,'commandParams':[{'forceValue':!_0x3706d9['value']}],'formatGroupId':_0x32a7('0xd')},oe(_0x35af82));});};}function _0x380110(_0x2551fc){return()=>{const _0xd75aab=function(_0x3b8264){let _0x5119a0=Array[_0x32a7('0x17')](_0x3b8264);const _0x1e0dfc=_0x5119a0[_0x32a7('0x2a')](_0x3e394c=>_0x32a7('0x32')!=_0x3e394c[_0x32a7('0x1b')]);return _0x1e0dfc>-0x1&&(_0x5119a0=_0x5119a0['slice'](0x0,_0x1e0dfc)),_0x5119a0;}(_0x260d06[_0x32a7('0x30')][_0x32a7('0x5')]['selection'][_0x32a7('0x35')]()),_0x231aea=_0x260d06['model'][_0x32a7('0x21')](_0x260d06['model'][_0x32a7('0x12')](_0xd75aab[0x0],_0x32a7('0x28')),_0x260d06[_0x32a7('0x30')]['createPositionAt'](_0xd75aab[_0xd75aab[_0x32a7('0x25')]-0x1],_0x32a7('0x39')));_0x260d06[_0x32a7('0x30')][_0x32a7('0x33')](()=>{_0x4b2761['markBlockFormat'](_0x231aea,{'commandName':_0x2551fc,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1be5a3){const _0x4b8b6e=new Set();for(const _0x37d43e of _0x1be5a3){let _0xfb177b=_0x37d43e[_0x32a7('0x20')];for(;_0xfb177b&&_0xfb177b[_0x32a7('0x22')](_0x32a7('0x1d'))>_0x37d43e['getAttribute'](_0x32a7('0x1d'));)_0x4b8b6e[_0x32a7('0x1c')](_0xfb177b),_0xfb177b=_0xfb177b[_0x32a7('0x20')];}return Array[_0x32a7('0x17')](_0x4b8b6e);}(_0xd75aab));});};}_0x4b2761[_0x32a7('0x16')]('numberedList',_0x3faa10('numberedList')),_0x4b2761[_0x32a7('0x16')](_0x32a7('0x11'),_0x3faa10('bulletedList')),_0x3dba8b&&_0x4b2761['enableCommand'](_0x32a7('0x2d'),_0x3faa10('todoList')),_0x4b2761[_0x32a7('0x16')](_0x32a7('0x2c'),_0x380110(_0x32a7('0x2c'))),_0x4b2761[_0x32a7('0x16')](_0x32a7('0x13'),_0x380110(_0x32a7('0x13'))),_0x3dba8b&&_0x4b2761[_0x32a7('0x16')](_0x32a7('0x4'),()=>{const _0x1e8a48=_0x260d06[_0x32a7('0x10')][_0x32a7('0x3b')](_0x32a7('0x4')),_0x4e1563=Array[_0x32a7('0x17')](_0x1e8a48[_0x32a7('0x36')]);_0x4e1563['filter'](_0x1b4d9c=>_0x1b4d9c[_0x32a7('0x22')](_0x32a7('0x34'))!=_0x1e8a48[_0x32a7('0x1a')]),_0x260d06[_0x32a7('0x30')][_0x32a7('0x33')](()=>{for(const _0x1d7dd8 of _0x4e1563)_0x4b2761['markBlockFormat'](_0x1d7dd8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1e8a48[_0x32a7('0x1a')]}]});});}),_0x4b2761[_0x32a7('0x3f')][_0x32a7('0x29')](_0x32a7('0x32'),_0x3c6123=>_0x228691(_0x2faf76,_0x32a7('0x3d'),_0x3c6123)),_0x4b2761['_descriptionFactory'][_0x32a7('0x1e')](_0x4cf41f=>{const {data:_0x56d1b0}=_0x4cf41f;if(_0x56d1b0){if(_0x32a7('0x15')==_0x56d1b0[_0x32a7('0x2e')]||_0x32a7('0x11')==_0x56d1b0[_0x32a7('0x2e')]||'todoList'==_0x56d1b0[_0x32a7('0x2e')])switch(_0x56d1b0[_0x32a7('0x2e')][_0x32a7('0x3')](_0x32a7('0x2b'),'')){case _0x32a7('0x3a'):return _0xd32a3e(_0x228691(_0x2faf76,_0x32a7('0x6')));case _0x32a7('0xb'):return _0xd32a3e(_0x228691(_0x2faf76,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd32a3e(_0x228691(_0x2faf76,'ELEMENT_TODO_LIST'));}if(_0x32a7('0x2c')==_0x56d1b0[_0x32a7('0x2e')])return{'type':'format','content':_0x228691(_0x2faf76,'*Indent:*\x20%0',_0x228691(_0x2faf76,_0x32a7('0x3d')))};if(_0x32a7('0x13')==_0x56d1b0[_0x32a7('0x2e')])return{'type':_0x32a7('0x37'),'content':_0x228691(_0x2faf76,'*Outdent:*\x20%0',_0x228691(_0x2faf76,_0x32a7('0x3d')))};if(_0x32a7('0x4')==_0x56d1b0[_0x32a7('0x2e')])return _0x56d1b0[_0x32a7('0x1f')][0x0]['forceValue']?{'type':'format','content':_0x228691(_0x2faf76,_0x32a7('0x27'))}:{'type':_0x32a7('0x37'),'content':_0x228691(_0x2faf76,_0x32a7('0x31'))};}function _0xd32a3e(_0x3eaddf){return{'type':_0x32a7('0x37'),'content':_0x228691(_0x2faf76,_0x32a7('0xa'),_0x3eaddf)};}});}}function ne(_0x47da77){const _0x1a1653=_0x47da77[_0x32a7('0x22')](_0x32a7('0x1d'));if(0x0==_0x1a1653)return _0x47da77;let _0x392dfa=_0x47da77;for(;_0x47da77[_0x32a7('0x2f')]&&_0x47da77[_0x32a7('0x2f')]['is']('element',_0x32a7('0x32'));){const _0x276e39=_0x47da77['previousSibling'][_0x32a7('0x22')](_0x32a7('0x1d'));if(_0x276e39==_0x1a1653)_0x392dfa=_0x47da77['previousSibling'];else{if(_0x276e39<_0x1a1653)break;}_0x47da77=_0x47da77[_0x32a7('0x2f')];}return _0x392dfa;}function oe(_0x1e4497){const _0x16cb45=[];if(_0x1e4497['is'](_0x32a7('0x2'),_0x32a7('0x32'))&&_0x1e4497[_0x32a7('0x22')](_0x32a7('0x1d'))>0x0){let _0xe9fba4=_0x1e4497[_0x32a7('0x20')];for(;_0xe9fba4&&_0x32a7('0x32')==_0xe9fba4[_0x32a7('0x1b')]&&_0xe9fba4[_0x32a7('0x22')](_0x32a7('0x1d'))==_0x1e4497[_0x32a7('0x22')](_0x32a7('0x1d'));)_0x16cb45[_0x32a7('0x7')](_0xe9fba4),_0xe9fba4=_0xe9fba4[_0x32a7('0x20')];}return _0x16cb45;}
|