@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230705.0 → 0.0.0-nightly-20230707.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3613=['_enableCommand','editor','commandParams','*Set\x20font\x20family:*\x20%0','FontFamilyEditing','trim','label','FontSizeEditing','*Set\x20font\x20size:*\x20%0','markInlineFormat','fontSize.options','find','TrackChangesEditing','FontSize','locale','getRanges','title','registerDescriptionCallback','toLowerCase','has','isCollapsed','fontFamily','*Reset\x20font\x20color*','*Reset\x20font\x20size*','commandName','model','config','*Set\x20font\x20color:*\x20%0','value','fontSize','document','enableCommand','get','fontColor','format','plugins','afterInit'];(function(_0x1e2ec7,_0x361369){const _0x29c606=function(_0x43ea82){while(--_0x43ea82){_0x1e2ec7['push'](_0x1e2ec7['shift']());}};_0x29c606(++_0x361369);}(_0x3613,0xe2));const _0x29c6=function(_0x1e2ec7,_0x361369){_0x1e2ec7=_0x1e2ec7-0x0;let _0x29c606=_0x3613[_0x1e2ec7];return _0x29c606;};import{Plugin as _0x52e976}from'ckeditor5/src/core';import{normalizeColorOptions as _0x424fdb}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x1ab324}from'./utils';import{getTranslation as _0x74873}from'../utils/common-translations';const Zt=[{'pluginName':_0x29c6('0x3'),'commandName':'fontSize'},{'pluginName':_0x29c6('0x0'),'commandName':_0x29c6('0x11')},{'pluginName':'FontColorEditing','commandName':_0x29c6('0x1d')},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class H extends _0x52e976{[_0x29c6('0x20')](){const _0x4dce6a=this[_0x29c6('0x22')][_0x29c6('0xa')];for(const {pluginName:_0xeea990,commandName:_0x412052}of Zt)this[_0x29c6('0x22')][_0x29c6('0x1f')][_0x29c6('0xf')](_0xeea990)&&this['_enableCommand'](_0x412052);this[_0x29c6('0x22')][_0x29c6('0x1f')]['get'](_0x29c6('0x8'))['_descriptionFactory'][_0x29c6('0xd')](_0x5cff22=>{const _0x37d95d=_0x4dce6a['t'],{data:_0x4a5d14}=_0x5cff22;if(null!=_0x4a5d14){if(_0x29c6('0x19')==_0x4a5d14[_0x29c6('0x14')]){const _0xd162fc=_0x4a5d14[_0x29c6('0x23')][0x0]['value'];if(_0xd162fc){const _0x4017d4=_0x37d95d(this[_0x29c6('0x22')][_0x29c6('0x1f')][_0x29c6('0x1c')](_0x29c6('0x9'))['normalizeSizeOptions'](this['editor'][_0x29c6('0x16')][_0x29c6('0x1c')](_0x29c6('0x6')))['find'](_0xddb25a=>_0xddb25a[_0x29c6('0x15')]==_0xd162fc)[_0x29c6('0xc')])['toLowerCase']();return{'type':'format','content':_0x74873(_0x4dce6a,_0x29c6('0x4'),_0x4017d4)};}return{'type':_0x29c6('0x1e'),'content':_0x74873(_0x4dce6a,_0x29c6('0x13'))};}if(_0x29c6('0x11')==_0x4a5d14[_0x29c6('0x14')]){const _0xf6d6a1=_0x4a5d14[_0x29c6('0x23')][0x0][_0x29c6('0x18')];return _0xf6d6a1?{'type':_0x29c6('0x1e'),'content':_0x74873(_0x4dce6a,_0x29c6('0x24'),_0xf6d6a1)}:{'type':_0x29c6('0x1e'),'content':_0x74873(_0x4dce6a,'*Reset\x20font\x20family*')};}if(_0x29c6('0x1d')==_0x4a5d14[_0x29c6('0x14')]){const _0x1b26ad=_0x4a5d14[_0x29c6('0x23')][0x0][_0x29c6('0x18')];if(_0x1b26ad){const _0x125e04=_0x424fdb(this[_0x29c6('0x22')]['config'][_0x29c6('0x1c')]('fontColor.colors'))[_0x29c6('0x7')](_0xb238f6=>_0xb238f6[_0x29c6('0x15')]==_0x1b26ad);let _0x111e7b=_0x1b26ad,_0xafe532='';return _0x125e04&&(_0x111e7b=_0x125e04[_0x29c6('0x2')],_0xafe532=_0x37d95d(_0x111e7b)[_0x29c6('0xe')]()),{'type':_0x29c6('0x1e'),'content':_0x74873(_0x4dce6a,_0x29c6('0x17'),_0xafe532)[_0x29c6('0x1')](),'color':{'value':_0x1b26ad,'title':_0xafe532||_0x111e7b}};}return{'type':_0x29c6('0x1e'),'content':_0x74873(_0x4dce6a,_0x29c6('0x12'))};}if('fontBackgroundColor'==_0x4a5d14[_0x29c6('0x14')]){const _0x73f0e=_0x4a5d14[_0x29c6('0x23')][0x0][_0x29c6('0x18')];if(_0x73f0e){const _0x5e99d9=_0x424fdb(this[_0x29c6('0x22')][_0x29c6('0x16')][_0x29c6('0x1c')]('fontBackgroundColor.colors'))[_0x29c6('0x7')](_0xdac1e2=>_0xdac1e2[_0x29c6('0x15')]==_0x73f0e);let _0x4b2527=_0x73f0e,_0x5e1226='';return _0x5e99d9&&(_0x4b2527=_0x5e99d9[_0x29c6('0x2')],_0x5e1226=_0x37d95d(_0x4b2527)['toLowerCase']()),{'type':_0x29c6('0x1e'),'content':_0x74873(_0x4dce6a,'*Set\x20font\x20background\x20color:*\x20%0',_0x5e1226)['trim'](),'color':{'value':_0x73f0e,'title':_0x5e1226||_0x4b2527}};}return{'type':'format','content':_0x74873(_0x4dce6a,'*Reset\x20font\x20background\x20color*')};}}});}[_0x29c6('0x21')](_0x5b9074){const _0x54f1dd=this[_0x29c6('0x22')];_0x54f1dd[_0x29c6('0x1f')][_0x29c6('0x1c')]('TrackChangesEditing')[_0x29c6('0x1b')](_0x5b9074,(_0x2837d4,_0x2f21de={})=>{const _0x13c8c5=_0x54f1dd['model'][_0x29c6('0x1a')]['selection'],_0x406f39=_0x2f21de[_0x29c6('0x18')];_0x13c8c5[_0x29c6('0x10')]?_0x2837d4(_0x2f21de):_0x54f1dd[_0x29c6('0x15')]['change'](()=>{const _0x27cda2=Array['from'](_0x13c8c5[_0x29c6('0xb')]());for(const _0x1dc071 of _0x27cda2){const _0x9b42d8=_0x406f39?[_0x1dc071]:_0x1ab324(_0x5b9074,_0x1dc071,_0x54f1dd['model']);for(const _0x376305 of _0x9b42d8)_0x54f1dd[_0x29c6('0x1f')][_0x29c6('0x1c')]('TrackChangesEditing')[_0x29c6('0x5')](_0x376305,{'commandName':_0x5b9074,'commandParams':[{'value':_0x406f39}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c20=['locale','getFirstPosition','copyFormat','fontSize','commands','toUpperCase','get','keys','*Set\x20format\x20to:*\x20%0','push','word','isBlock','isFormatting','markInlineFormat','modifySelection','title','pasteFormat','charAt','forward','slice','join','model','enableCommand','plugins','boolean','document','schema','getSelectedBlocks','isCollapsed','getAttributes','createSelection','*Remove\x20all\x20formatting*','normalizeSizeOptions','_descriptionFactory','backward','toLowerCase','split','editor','getLastPosition','selection','getRanges','format','change','from','fontSize.options','registerDescriptionCallback','FontSize','getAttributeProperties','createRange','commandParams','afterInit','TrackChangesEditing'];(function(_0x330181,_0x3c200e){const _0x4e60e5=function(_0x1edac1){while(--_0x1edac1){_0x330181['push'](_0x330181['shift']());}};_0x4e60e5(++_0x3c200e);}(_0x3c20,0x13a));const _0x4e60=function(_0x330181,_0x3c200e){_0x330181=_0x330181-0x0;let _0x4e60e5=_0x3c20[_0x330181];return _0x4e60e5;};import{Plugin as _0x212f09}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5382b0}from'ckeditor5/src/ui';import{first as _0x36d6ff}from'ckeditor5/src/utils';import{getTranslation as _0x287a54}from'../utils/common-translations';export default class W extends _0x212f09{[_0x4e60('0x30')](){const _0x4957a3=this[_0x4e60('0x23')],_0x25e81e=_0x4957a3[_0x4e60('0x13')],_0x8438df=_0x25e81e[_0x4e60('0x17')][_0x4e60('0x25')],_0x3e1f22=_0x4957a3[_0x4e60('0x15')][_0x4e60('0x4')](_0x4e60('0x31')),_0x453050=_0x4957a3[_0x4e60('0x32')],_0x114fef=_0x4957a3['commands'][_0x4e60('0x4')](_0x4e60('0x0')),_0x3440b3=_0x4957a3[_0x4e60('0x2')]['get']('pasteFormat');_0x114fef&&_0x3440b3&&(_0x3e1f22[_0x4e60('0x14')](_0x4e60('0xe'),(_0x5a32d8,_0x3c563a={})=>{const _0x29e5ac=_0x3c563a;_0x25e81e[_0x4e60('0x28')](()=>{const _0x16390d=Array[_0x4e60('0x29')](_0x8438df[_0x4e60('0x26')]()),_0x21eab9=_0x8438df[_0x4e60('0x1a')]?[ro(_0x25e81e,_0x8438df)]:_0x16390d,_0x5eb42b=!!_0x36d6ff(function*(_0x52168e,_0x4168d3){const _0x402404=_0x2e2b51=>!!_0x36d6ff(function*(_0x5cffde,_0x722253){for(const [_0x2c34e4]of _0x5cffde[_0x4e60('0x1b')]()){const _0x1870b5=_0x722253[_0x4e60('0x2d')](_0x2c34e4);_0x1870b5&&_0x1870b5[_0x4e60('0xa')]&&(yield _0x2c34e4);}}(_0x2e2b51,_0x4168d3));for(const _0x38d671 of _0x52168e[_0x4e60('0x26')]())for(const _0x36f2e2 of _0x38d671['getItems']())!_0x4168d3[_0x4e60('0x9')](_0x36f2e2)&&_0x402404(_0x36f2e2)&&(yield _0x36f2e2);for(const _0x4aa29c of _0x52168e[_0x4e60('0x19')]())_0x402404(_0x4aa29c)&&(yield _0x4aa29c);_0x402404(_0x52168e)&&(yield _0x52168e);}(_0x8438df,_0x25e81e[_0x4e60('0x18')]));if(_0x5eb42b||0x0!==Object[_0x4e60('0x5')](_0x29e5ac)['length'])for(const _0x190065 of _0x21eab9)_0x3e1f22[_0x4e60('0xb')](_0x190065,{'commandName':_0x4e60('0xe'),'commandParams':[_0x29e5ac]});});}),_0x3e1f22[_0x4e60('0x1f')][_0x4e60('0x2b')](_0x59feb9=>{const {data:_0x3ec772}=_0x59feb9;if(_0x3ec772&&_0x4e60('0xe')===_0x3ec772['commandName']){const _0x7d20f8=[],_0x783eb4=_0x3ec772[_0x4e60('0x2f')][0x0];for(const [_0x2b589f,_0x491a64]of Object['entries'](_0x783eb4))_0x7d20f8[_0x4e60('0x7')](no(_0x4957a3,_0x2b589f,_0x491a64));return _0x7d20f8['length']?{'type':_0x4e60('0x27'),'content':_0x287a54(_0x453050,_0x4e60('0x6'),_0x7d20f8[_0x4e60('0x12')](',\x20'))}:{'type':_0x4e60('0x27'),'content':_0x287a54(_0x453050,_0x4e60('0x1d'))};}}),_0x4957a3[_0x4e60('0x15')][_0x4e60('0x4')](_0x4e60('0x31'))['enableCommand'](_0x4e60('0x0')));}}function ro(_0x508b80,_0x280cd6){const _0x3fba89=_0x508b80[_0x4e60('0x1c')](_0x280cd6);_0x508b80['modifySelection'](_0x3fba89,{'unit':_0x4e60('0x8'),'direction':_0x4e60('0x20')});const _0x61f809=_0x3fba89[_0x4e60('0x33')]();_0x508b80[_0x4e60('0xc')](_0x3fba89,{'unit':_0x4e60('0x8'),'direction':_0x4e60('0x10')});const _0x4721ef=_0x3fba89[_0x4e60('0x24')]();return _0x508b80[_0x4e60('0x2e')](_0x61f809,_0x4721ef);}function no(_0x386937,_0x310ab1,_0x3ca3ff){const _0x340164=_0x386937[_0x4e60('0x32')]['t'],_0x542fae=_0x310ab1[_0x4e60('0x22')](/(?=[A-Z])/)[_0x4e60('0x12')]('\x20'),_0x148260=_0x340164(_0x542fae[_0x4e60('0xf')](0x0)[_0x4e60('0x3')]()+_0x542fae[_0x4e60('0x11')](0x1))[_0x4e60('0x21')]();if(_0x4e60('0x16')==typeof _0x3ca3ff)return _0x148260;if('fontColor'===_0x310ab1||'fontBackgroundColor'===_0x310ab1){const _0x53ed7a=_0x5382b0(_0x386937['config'][_0x4e60('0x4')]('fontColor.colors'))['find'](_0x2b36dc=>_0x2b36dc[_0x4e60('0x13')]==_0x3ca3ff);return _0x148260+'\x20('+(_0x53ed7a?_0x340164(_0x53ed7a['label'])[_0x4e60('0x21')]():_0x3ca3ff)+')';}if(_0x4e60('0x1')===_0x310ab1&&isNaN(parseFloat(_0x3ca3ff))){const _0x53d37f=_0x386937[_0x4e60('0x15')][_0x4e60('0x4')](_0x4e60('0x2c'))[_0x4e60('0x1e')](_0x386937['config'][_0x4e60('0x4')](_0x4e60('0x2a')))['find'](_0xbac17a=>_0xbac17a[_0x4e60('0x13')]==_0x3ca3ff);return _0x148260+'\x20('+(_0x53d37f?_0x340164(_0x53d37f[_0x4e60('0xd')])[_0x4e60('0x21')]():_0x3ca3ff)+')';}return _0x148260+'\x20('+_0x3ca3ff+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2566=['markBlockFormat','has','find','registerDescriptionCallback','commandName','registerElementLabel','document','parent','afterInit','heading.options','name','getSelectedBlocks','plugins','editor','*Change\x20to:*\x20%0','config','heading','formatBlock','checkChild','model','value','get','_descriptionFactory','selection','isObject','TrackChangesEditing','format','locale','change','title','filter'];(function(_0x268cea,_0x2566c6){const _0x3d109a=function(_0x46456c){while(--_0x46456c){_0x268cea['push'](_0x268cea['shift']());}};_0x3d109a(++_0x2566c6);}(_0x2566,0x106));const _0x3d10=function(_0x268cea,_0x2566c6){_0x268cea=_0x268cea-0x0;let _0x3d109a=_0x2566[_0x268cea];return _0x3d109a;};import{Plugin as _0xab799a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x575105}from'./utils';import{getTranslation as _0x8789d}from'../utils/common-translations';export default class J extends _0xab799a{[_0x3d10('0x19')](){const _0x386b15=this[_0x3d10('0x1e')],_0x4c1cc7=_0x386b15[_0x3d10('0xd')],_0x86c452=_0x386b15[_0x3d10('0x1')][_0x3d10('0x7')](_0x3d10('0x1a'));if(!_0x386b15[_0x3d10('0x1d')][_0x3d10('0x12')]('HeadingEditing'))return;const _0x3d7239=_0x386b15['plugins'][_0x3d10('0x7')](_0x3d10('0xb'));_0x3d7239['enableCommand'](_0x3d10('0x2'),(_0x15ebfa,_0x1ce898)=>{const _0xbb17f0=_0x1ce898[_0x3d10('0x6')],_0x3eeb88=Array['from'](this[_0x3d10('0x1e')][_0x3d10('0x5')][_0x3d10('0x17')][_0x3d10('0x9')][_0x3d10('0x1c')]())[_0x3d10('0x10')](_0x423f22=>function(_0x45fddd,_0x5c7a1f,_0x139fbf){return _0x139fbf[_0x3d10('0x4')](_0x45fddd[_0x3d10('0x18')],_0x5c7a1f)&&!_0x139fbf[_0x3d10('0xa')](_0x45fddd)&&_0x45fddd[_0x3d10('0x1b')]!=_0x5c7a1f;}(_0x423f22,_0xbb17f0,this[_0x3d10('0x1e')][_0x3d10('0x5')]['schema']));_0x386b15[_0x3d10('0x5')][_0x3d10('0xe')](()=>{for(const _0x7c1701 of _0x3eeb88)_0x3d7239[_0x3d10('0x11')](_0x7c1701,{'commandName':_0x3d10('0x2'),'commandParams':[_0x1ce898],'formatGroupId':'blockName'},_0x575105(_0x7c1701));});});for(const _0x3da625 of _0x86c452)'paragraph'!=_0x3da625[_0x3d10('0x5')]&&_0x3d7239['_descriptionFactory'][_0x3d10('0x16')](_0x3da625[_0x3d10('0x5')],_0x1f05cd=>{const _0x2a67d2=nn(_0x3da625[_0x3d10('0x5')]);return null!==_0x2a67d2?_0x2a0fe3(_0x1f05cd,_0x2a67d2):_0x5d60c2(_0x1f05cd,_0x3da625['title']);});function _0x2a0fe3(_0x6fde8d,_0x1f4146){return _0x8789d(_0x4c1cc7,'ELEMENT_HEADING',[_0x6fde8d,_0x1f4146]);}function _0x5d60c2(_0x50cc16,_0x28aaaf){return _0x8789d(_0x4c1cc7,'ELEMENT_HEADING_CUSTOM',[_0x50cc16,_0x28aaaf]);}_0x3d7239[_0x3d10('0x8')][_0x3d10('0x14')](_0x28e9c7=>{const {type:_0x3e9bda,data:_0xb82e20}=_0x28e9c7;if(_0x3d10('0x3')==_0x3e9bda&&_0xb82e20&&_0x3d10('0x2')==_0xb82e20[_0x3d10('0x15')]){const _0xdea256=_0xb82e20['commandParams'][0x0][_0x3d10('0x6')],_0x237f21=nn(_0xdea256);if(null!==_0x237f21)return{'type':_0x3d10('0xc'),'content':_0x8789d(_0x4c1cc7,_0x3d10('0x0'),_0x2a0fe3(0x1,_0x237f21))};const _0x5c1a91=_0x86c452[_0x3d10('0x13')](_0x3cf9d4=>_0x3cf9d4[_0x3d10('0x5')]===_0xdea256)[_0x3d10('0xf')];return{'type':_0x3d10('0xc'),'content':_0x8789d(_0x4c1cc7,'*Change\x20to:*\x20%0',_0x5d60c2(0x1,_0x5c1a91))};}});}}function nn(_0x4f0c22){const _0x37d822=_0x4f0c22['match'](/^heading(\d+)$/);return _0x37d822?_0x37d822[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x413c=['registerDescriptionCallback','getLastMatchingPosition','model','highlight','plugins','editor','item','selection','HighlightEditing','value','find','format','push','enableCommand','getFirstPosition','toLowerCase','FORMAT_HIGHLIGHT','afterInit','title','document','backward','get','hasAttribute','getAttribute','color','commandName','commandParams','*Remove\x20highlight*','locale','isCollapsed','formatInline','createRange','markInlineFormat'];(function(_0x480f0c,_0x413c23){const _0x12e3ec=function(_0x38505b){while(--_0x38505b){_0x480f0c['push'](_0x480f0c['shift']());}};_0x12e3ec(++_0x413c23);}(_0x413c,0x192));const _0x12e3=function(_0x480f0c,_0x413c23){_0x480f0c=_0x480f0c-0x0;let _0x12e3ec=_0x413c[_0x480f0c];return _0x12e3ec;};import{Plugin as _0x4ff880}from'ckeditor5/src/core';import{getTranslation as _0x573375}from'../utils/common-translations';import{getRangesWithAttribute as _0x124679}from'./utils';export default class K extends _0x4ff880{[_0x12e3('0xb')](){const _0x357b9b=this[_0x12e3('0x20')];if(!_0x357b9b[_0x12e3('0x1f')]['has'](_0x12e3('0x2')))return;const _0xce3056=_0x357b9b[_0x12e3('0x1f')][_0x12e3('0xf')]('TrackChangesEditing');_0xce3056[_0x12e3('0x7')](_0x12e3('0x1e'),(_0x2c1d8e,_0xe26a3e={})=>{const _0x2d2877=_0x357b9b['model'][_0x12e3('0xd')][_0x12e3('0x1')],_0x17aa96=_0x2d2877[_0x12e3('0x11')](_0x12e3('0x1e'));let _0x1e9bd3=_0xe26a3e['value'],_0x8b34e1=[];if(_0x2d2877[_0x12e3('0x17')]){const _0x10f0e9=_0x2d2877[_0x12e3('0x8')]();if(!_0x2d2877[_0x12e3('0x10')](_0x12e3('0x1e')))return void _0x2c1d8e(_0xe26a3e);{const _0x2148d4=_0x26e236=>_0x26e236[_0x12e3('0x0')]['getAttribute']('highlight')===_0x17aa96,_0x44c29c=_0x10f0e9[_0x12e3('0x1c')](_0x2148d4,{'direction':_0x12e3('0xe')}),_0x2f6b8a=_0x10f0e9['getLastMatchingPosition'](_0x2148d4);_0x8b34e1=[_0x357b9b[_0x12e3('0x1d')][_0x12e3('0x19')](_0x44c29c,_0x2f6b8a)],_0x1e9bd3==_0x17aa96&&(_0x1e9bd3=null);}}else for(const _0x4dcb95 of _0x2d2877['getRanges']())_0x1e9bd3?_0x8b34e1[_0x12e3('0x6')](_0x4dcb95):_0x8b34e1[_0x12e3('0x6')](..._0x124679(_0x12e3('0x1e'),_0x4dcb95,_0x357b9b[_0x12e3('0x1d')]));_0x357b9b[_0x12e3('0x1d')]['change'](()=>{for(const _0x48d98e of _0x8b34e1)_0xce3056[_0x12e3('0x1a')](_0x48d98e,{'commandName':'highlight','commandParams':[{'value':_0x1e9bd3}]});});});const _0x5ec6e1=_0x357b9b[_0x12e3('0x16')];_0xce3056['_descriptionFactory'][_0x12e3('0x1b')](_0x5bf1ac=>{const {type:_0x1d49b6,data:_0xe8bd13}=_0x5bf1ac;if(_0x12e3('0x18')==_0x1d49b6&&_0xe8bd13&&'highlight'==_0xe8bd13[_0x12e3('0x13')]){const _0x2c0f9d=_0x5ec6e1['t'],_0x4fd9e3=_0xe8bd13[_0x12e3('0x14')][0x0][_0x12e3('0x3')];if(_0x4fd9e3){const _0x6fa59b=_0x357b9b['config']['get']('highlight.options')[_0x12e3('0x4')](_0x573b30=>_0x573b30[_0x12e3('0x1d')]==_0x4fd9e3),_0x4c006b=_0x2c0f9d(_0x6fa59b[_0x12e3('0xc')])[_0x12e3('0x9')]();return{'type':_0x12e3('0x5'),'content':_0x573375(_0x5ec6e1,'*Set\x20highlight:*\x20%0',_0x4c006b),'color':{'value':_0x6fa59b[_0x12e3('0x12')],'title':_0x6fa59b[_0x12e3('0xc')]}};}return{'type':'format','content':_0x573375(_0x5ec6e1,_0x12e3('0x15'),_0x573375(_0x5ec6e1,_0x12e3('0xa')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1710=['HorizontalLineEditing','_descriptionFactory','conversion','for','high','plugins','horizontalLine','createEmptyElement','registerElementLabel','locale','createPositionAt','afterInit','TrackChangesEditing','editor','ELEMENT_HORIZONTAL_LINE','dataDowncast','elementToStructure'];(function(_0x2fd839,_0x1710e3){const _0x13cbf2=function(_0x2afe13){while(--_0x2afe13){_0x2fd839['push'](_0x2fd839['shift']());}};_0x13cbf2(++_0x1710e3);}(_0x1710,0x12d));const _0x13cb=function(_0x2fd839,_0x1710e3){_0x2fd839=_0x2fd839-0x0;let _0x13cbf2=_0x1710[_0x2fd839];return _0x13cbf2;};import{Plugin as _0xbffb52}from'ckeditor5/src/core';import{getTranslation as _0x2c98ef}from'../utils/common-translations';export default class Q extends _0xbffb52{[_0x13cb('0x10')](){const _0x3a281a=this[_0x13cb('0x1')];if(!_0x3a281a[_0x13cb('0xa')]['has'](_0x13cb('0x5')))return;_0x3a281a[_0x13cb('0xa')]['get'](_0x13cb('0x0'))['enableCommand'](_0x13cb('0xb'));const _0x131390=_0x3a281a[_0x13cb('0xa')]['get'](_0x13cb('0x0')),_0x14026d=_0x3a281a[_0x13cb('0xe')];_0x131390[_0x13cb('0x6')][_0x13cb('0xd')](_0x13cb('0xb'),_0x3c523b=>_0x2c98ef(_0x14026d,_0x13cb('0x2'),_0x3c523b)),_0x3a281a[_0x13cb('0x7')][_0x13cb('0x8')](_0x13cb('0x3'))[_0x13cb('0x4')]({'model':_0x13cb('0xb'),'view':(_0x208b14,{writer:_0x16cb8e,options:_0x4562f9})=>{if(!_0x4562f9['showSuggestionHighlights'])return null;const _0x1491ea=_0x16cb8e['createContainerElement']('div'),_0x567a75=_0x16cb8e[_0x13cb('0xc')]('hr');return _0x16cb8e['addClass']('ck-horizontal-line',_0x1491ea),_0x16cb8e['insert'](_0x16cb8e[_0x13cb('0xf')](_0x1491ea,0x0),_0x567a75),_0x1491ea;},'converterPriority':_0x13cb('0x9')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb3d4=['change','selection','markBlockFormat','element','model','registerElementLabel','cancel','*Change\x20%0\x20content*','format','commandName','get','editing','value','ELEMENT_HTML_EMBED','enableCommand','HtmlEmbed','htmlEmbed','afterInit','TrackChangesEditing','registerDescriptionCallback','view','_descriptionFactory','getAttribute','plugins','getCustomProperty','editor','rawHtml','getSelectedElement'];(function(_0x14f581,_0xb3d444){const _0x152cc0=function(_0x1b0993){while(--_0x1b0993){_0x14f581['push'](_0x14f581['shift']());}};_0x152cc0(++_0xb3d444);}(_0xb3d4,0xbc));const _0x152c=function(_0x14f581,_0xb3d444){_0x14f581=_0x14f581-0x0;let _0x152cc0=_0xb3d4[_0x14f581];return _0x152cc0;};import{Plugin as _0x1d1cfa}from'ckeditor5/src/core';import{getTranslation as _0x28acc6}from'../utils/common-translations';export default class V extends _0x1d1cfa{[_0x152c('0x19')](){const _0x4cd177=this[_0x152c('0x5')];if(!_0x4cd177['plugins']['has'](_0x152c('0x17')))return;const _0x15d584=_0x4cd177[_0x152c('0x3')][_0x152c('0x12')](_0x152c('0x1a')),_0x1b33c8=_0x4cd177['locale'],_0x18715b=_0x4cd177[_0x152c('0x13')][_0x152c('0x0')]['document'][_0x152c('0x9')];_0x15d584[_0x152c('0x1')][_0x152c('0xd')](_0x152c('0x6'),_0x261448=>_0x28acc6(_0x1b33c8,_0x152c('0x15'),_0x261448)),_0x4cd177[_0x152c('0x3')][_0x152c('0x12')](_0x152c('0x1a'))[_0x152c('0x16')](_0x152c('0x18'),(_0x552afb,_0x22d057)=>{const _0x1baaa3=_0x4cd177[_0x152c('0xc')],_0x8b2317=_0x1baaa3['document'][_0x152c('0x9')];_0x1baaa3[_0x152c('0x8')](()=>{const _0x15d88e=function(_0x5e1845){const _0x4265b8=_0x5e1845[_0x152c('0x7')]();if(_0x4265b8&&_0x4265b8['is'](_0x152c('0xb'),_0x152c('0x6')))return _0x5e1845['getSelectedElement']();return null;}(_0x8b2317);if(!_0x15d88e)return void _0x552afb(null);const _0x446b78=_0x15d88e[_0x152c('0x2')](_0x152c('0x14'))||'';if(void 0x0===_0x22d057)return;if(_0x22d057===_0x446b78)return;_0x15d584[_0x152c('0xa')](_0x15d88e,{'commandName':'htmlEmbed','commandParams':[_0x22d057]}),_0x18715b['getSelectedElement']()[_0x152c('0x4')]('rawHtmlApi')[_0x152c('0xe')]();});}),_0x15d584['_descriptionFactory'][_0x152c('0x1b')](_0x5cdf6e=>{const {data:_0x5156fd}=_0x5cdf6e;if(_0x5156fd&&'htmlEmbed'==_0x5156fd[_0x152c('0x11')]){const _0x22781f=_0x28acc6(_0x1b33c8,_0x152c('0x15'));return{'type':_0x152c('0x10'),'content':_0x28acc6(_0x1b33c8,_0x152c('0xf'),_0x22781f)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5114=['selection','from','toLowerCase','afterInit','title','toPrevious','registerDescriptionCallback','_suggestionFactory','isBlockImage','ImageUtils','isInContent','ELEMENT_INLINE_IMAGE','imageTextAlternative','previous','isCollapsed','width','format','locale','next','side','ImageEditing','imageStylePostApply','refresh','newValue','get','element','start','imageTypeInline','commandName','normalizedStyles','discard','FORMAT_SIDE_IMAGE','getAttribute','_splitMarkerName','shouldConvertImageType','isIntersecting','model','editor','commandParams','detach','insertImage','caption','differ','isOwn','join','getContainedElement','hasAttribute','markBlockFormat','subType','markInsertion','ImageBlockEditing','getNearestSelectionRange','type','getClosestSelectedImageElement','formatBlock','has','ImageTextAlternativeEditing','isEqual','getSuggestions','formatInline','fromPosition','createRangeOn','backward','registerElementLabel','isInlineImage','enableCommand','ELEMENT_CAPTION','uploadImage','markInlineFormat','getCaptionFromImageModelElement','chain','value','head','discardSuggestion','ImageCaptionUtils','TrackChangesEditing','end','filter','createRange','commands','insertion','imageStylePreApply','convertBlockImageToInline','document','registerCustomCallback','forEach','_descriptionFactory','Inline\x20image\x20to\x20block\x20image','convertInlineImageToBlock','*Remove\x20image\x20text\x20alternative*','getSuggestionCallback','schema','accept','forward','plugins','imageTypeBlock','imageStyle','findIndex','toggleImageCaption','suggestion','nodeBefore','isBefore','resizeImage','imageCaption','change','toNext','getSuggestion','alt'];(function(_0x50a356,_0x511459){const _0x1f040b=function(_0x2b4ebc){while(--_0x2b4ebc){_0x50a356['push'](_0x50a356['shift']());}};_0x1f040b(++_0x511459);}(_0x5114,0x1b7));const _0x1f04=function(_0x50a356,_0x511459){_0x50a356=_0x50a356-0x0;let _0x1f040b=_0x5114[_0x50a356];return _0x1f040b;};import{Plugin as _0x1d763f}from'ckeditor5/src/core';import{LivePosition as _0x18a93e}from'ckeditor5/src/engine';import{uid as _0x2c88f0}from'ckeditor5/src/utils';import{getTranslation as _0x48742f}from'../utils/common-translations';export default class X extends _0x1d763f{[_0x1f04('0x68')](){const _0x707fbb=this[_0x1f04('0x1e')];if(!_0x707fbb[_0x1f04('0x57')][_0x1f04('0x30')](_0x1f04('0xd')))return;const _0x404a02=_0x707fbb[_0x1f04('0x57')][_0x1f04('0x11')](_0x1f04('0x44')),_0x40f7ce=_0x707fbb[_0x1f04('0x57')][_0x1f04('0x11')](_0x1f04('0x2')),_0x554e51={},_0x33436c=_0x707fbb[_0x1f04('0xa')];if(_0x404a02['enableCommand'](_0x1f04('0x21')),_0x404a02['_descriptionFactory'][_0x1f04('0x38')]('imageBlock',_0x24e7a0=>_0x48742f(_0x33436c,'ELEMENT_IMAGE',_0x24e7a0)),_0x404a02[_0x1f04('0x4f')][_0x1f04('0x38')]('imageInline',_0x1c1258=>_0x48742f(_0x33436c,_0x1f04('0x4'),_0x1c1258)),_0x404a02[_0x1f04('0x4f')][_0x1f04('0x38')](_0x1f04('0x22'),()=>_0x48742f(_0x33436c,_0x1f04('0x3b'))),_0x707fbb[_0x1f04('0x57')][_0x1f04('0x30')]('ImageUploadEditing')&&_0x404a02[_0x1f04('0x3a')](_0x1f04('0x3c')),_0x707fbb[_0x1f04('0x57')][_0x1f04('0x30')](_0x1f04('0x2b'))&&_0x707fbb[_0x1f04('0x57')][_0x1f04('0x30')]('ImageInlineEditing')&&(_0x404a02[_0x1f04('0x3a')](_0x1f04('0x14'),(_0x4a58b8,_0xc9273a)=>{const _0x58811e=_0x40f7ce['getClosestSelectedImageElement'](_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x4c')][_0x1f04('0x65')]);_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x61')](()=>{_0x404a02['markBlockFormat'](_0x58811e,{'commandName':_0x1f04('0x14'),'commandParams':[_0xc9273a]},[],_0x1f04('0x4b'));});}),_0x404a02[_0x1f04('0x3a')]('imageTypeBlock',(_0x4d1551,_0x8449af)=>{_0x707fbb[_0x1f04('0x1d')]['change'](_0x558938=>{let _0x165952=_0x40f7ce[_0x1f04('0x2e')](_0x707fbb['model'][_0x1f04('0x4c')][_0x1f04('0x65')]),_0x5e7972=_0x558938['createRangeOn'](_0x165952);const _0x474e1b=_0x18a93e[_0x1f04('0x35')](_0x5e7972[_0x1f04('0x13')],_0x1f04('0x6a')),_0x530d86=_0x18a93e['fromPosition'](_0x5e7972[_0x1f04('0x45')],_0x1f04('0x62'));_0x404a02['forceDefaultExecution'](()=>_0x4d1551(_0x8449af)),_0x165952=_0x40f7ce[_0x1f04('0x2e')](_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x4c')][_0x1f04('0x65')]),_0x5e7972=_0x558938['createRangeOn'](_0x165952);const _0x1a608d=_0x558938[_0x1f04('0x47')](_0x474e1b,_0x530d86);_0x474e1b[_0x1f04('0x20')](),_0x530d86['detach'](),_0x404a02[_0x1f04('0x28')](_0x165952,{'commandName':_0x1f04('0x14'),'commandParams':[]},[],_0x1f04('0x51')),_0x1a608d[_0x1f04('0x13')][_0x1f04('0x5e')](_0x5e7972['start'])&&_0x404a02[_0x1f04('0x2a')](_0x558938[_0x1f04('0x47')](_0x1a608d[_0x1f04('0x13')],_0x5e7972[_0x1f04('0x13')]),_0x1f04('0x51')),_0x5e7972[_0x1f04('0x45')][_0x1f04('0x5e')](_0x1a608d[_0x1f04('0x45')])&&_0x404a02[_0x1f04('0x2a')](_0x558938[_0x1f04('0x47')](_0x5e7972[_0x1f04('0x45')],_0x1a608d[_0x1f04('0x45')]),_0x1f04('0x51'));});}),_0x404a02['_suggestionFactory'][_0x1f04('0x4d')]('formatBlock',_0x1f04('0x51'),_0x1f04('0x25'),()=>{}),_0x404a02[_0x1f04('0x0')]['registerCustomCallback'](_0x1f04('0x2f'),_0x1f04('0x51'),_0x1f04('0x55'),()=>{}),_0x404a02[_0x1f04('0x0')][_0x1f04('0x4d')](_0x1f04('0x2f'),_0x1f04('0x51'),_0x1f04('0x17'),_0x404a02[_0x1f04('0x0')][_0x1f04('0x53')](_0x1f04('0x2f'),'',_0x1f04('0x55'))),_0x404a02[_0x1f04('0x0')][_0x1f04('0x4d')]('insertion',_0x1f04('0x51'),_0x1f04('0x25'),()=>{}),_0x404a02[_0x1f04('0x0')]['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x1f04('0x17'),([_0x255fdc])=>{const _0x1b6dcd=_0x404a02['_suggestionFactory'][_0x1f04('0x53')](_0x1f04('0x49'),'',_0x1f04('0x17'));let _0x276381=_0x255fdc['start'],_0x5ab2f6=_0x255fdc[_0x1f04('0x45')];const _0x55af3d=_0x707fbb['model'][_0x1f04('0x54')][_0x1f04('0x2c')](_0x276381,_0x1f04('0x37')),_0x358c40=_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x54')][_0x1f04('0x2c')](_0x5ab2f6,_0x1f04('0x56'));_0x55af3d[_0x1f04('0x7')]&&(_0x276381=_0x55af3d['start']),_0x358c40[_0x1f04('0x7')]&&(_0x5ab2f6=_0x358c40[_0x1f04('0x45')]),_0x1b6dcd([_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x47')](_0x276381,_0x5ab2f6)]);}),_0x404a02[_0x1f04('0x0')][_0x1f04('0x4d')](_0x1f04('0x2f'),_0x1f04('0x51'),_0x1f04('0x3f'),_0xa73418),_0x404a02[_0x1f04('0x0')][_0x1f04('0x4d')](_0x1f04('0x49'),_0x1f04('0x51'),_0x1f04('0x3f'),_0xa73418)),_0x707fbb[_0x1f04('0x57')][_0x1f04('0x30')]('ImageCaptionEditing')&&(_0x404a02['enableCommand'](_0x1f04('0x5b'),(_0x9fc1b1,_0x56bee4)=>{const _0xa41007=_0x707fbb[_0x1f04('0x57')][_0x1f04('0x11')](_0x1f04('0x43'));let _0x93a267=_0x40f7ce['getClosestSelectedImageElement'](_0x707fbb[_0x1f04('0x1d')]['document']['selection']),_0x45657d=_0xa41007[_0x1f04('0x3e')](_0x93a267);_0x707fbb[_0x1f04('0x1d')]['change'](()=>{if(_0x45657d)return void _0x404a02['markDeletion'](_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x36')](_0x45657d));const _0x26e3fa=_0x40f7ce[_0x1f04('0x1')](_0x93a267);_0x9fc1b1(_0x56bee4),_0x93a267=_0x40f7ce[_0x1f04('0x2e')](_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x4c')][_0x1f04('0x65')]),_0x45657d=_0xa41007[_0x1f04('0x3e')](_0x93a267),_0x404a02[_0x1f04('0x2a')](_0x707fbb[_0x1f04('0x1d')]['createRangeOn'](_0x45657d),_0x26e3fa?null:_0x1f04('0x60'));});}),_0x404a02[_0x1f04('0x0')]['registerCustomCallback'](_0x1f04('0x49'),_0x1f04('0x60'),'chain',_0xa73418)),_0x707fbb['plugins'][_0x1f04('0x30')]('ImageStyleEditing')){_0x404a02[_0x1f04('0x3a')](_0x1f04('0x59'),(_0x472d5e,_0x2baa3b)=>{const _0x145ab4=_0x707fbb[_0x1f04('0x57')][_0x1f04('0x11')]('Users')['me'],_0x208d19=_0x707fbb['commands'][_0x1f04('0x11')](_0x1f04('0x59'));let _0x11cbd7=_0x40f7ce[_0x1f04('0x2e')](_0x707fbb[_0x1f04('0x1d')]['document'][_0x1f04('0x65')]),_0x216d5c=_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x36')](_0x11cbd7),_0x1a1b52=_0x208d19[_0x1f04('0x40')];if(_0x1a1b52==_0x2baa3b[_0x1f04('0x40')])return;const _0x46d665={'commandName':_0x1f04('0x59'),'commandParams':[_0x2baa3b],'formatGroupId':_0x2c88f0()};_0x707fbb[_0x1f04('0x1d')]['change'](()=>{if(_0x404a02[_0x1f04('0x33')]()[_0x1f04('0x46')](_0x74ee63=>_0x74ee63['isInContent']&&_0x145ab4==_0x74ee63['author']&&(_0x1f04('0x2f')==_0x74ee63['type']||_0x1f04('0x34')==_0x74ee63[_0x1f04('0x2d')])&&(_0x1f04('0x4a')==_0x74ee63[_0x1f04('0x29')]||_0x1f04('0xe')==_0x74ee63[_0x1f04('0x29')])&&_0x74ee63['getFirstRange']()[_0x1f04('0x32')](_0x216d5c))[_0x1f04('0x4e')](_0x22fee2=>_0x404a02[_0x1f04('0x42')](_0x22fee2[_0x1f04('0x41')])),_0x11cbd7=_0x40f7ce[_0x1f04('0x2e')](_0x707fbb['model']['document'][_0x1f04('0x65')]),_0x216d5c=_0x707fbb['model'][_0x1f04('0x36')](_0x11cbd7),_0x208d19[_0x1f04('0xf')](),_0x707fbb['commands'][_0x1f04('0x11')]('imageTypeInline')[_0x1f04('0xf')](),_0x707fbb[_0x1f04('0x48')][_0x1f04('0x11')](_0x1f04('0x58'))[_0x1f04('0xf')](),_0x1a1b52=_0x208d19[_0x1f04('0x40')],_0x1a1b52!=_0x2baa3b[_0x1f04('0x40')])return _0x40f7ce[_0x1f04('0x39')](_0x11cbd7)&&_0x208d19[_0x1f04('0x1b')](_0x2baa3b[_0x1f04('0x40')],_0x11cbd7)?(_0x472d5e(_0x2baa3b),_0x11cbd7=_0x40f7ce[_0x1f04('0x2e')](_0x707fbb['model'][_0x1f04('0x4c')][_0x1f04('0x65')]),void _0x404a02[_0x1f04('0x28')](_0x11cbd7,{..._0x46d665,'commandReversedParams':[{'value':_0x1a1b52||null}]},[],'imageStylePreApply')):void(_0x40f7ce[_0x1f04('0x1')](_0x11cbd7)?_0x404a02['markBlockFormat'](_0x11cbd7,_0x46d665,[],'imageStylePostApply'):_0x404a02[_0x1f04('0x3d')](_0x216d5c,_0x46d665,_0x1f04('0xe')));});});for(const _0x4983eb of _0x707fbb[_0x1f04('0x57')][_0x1f04('0x11')]('ImageStyleEditing')[_0x1f04('0x16')])_0x554e51[_0x4983eb['name']]=_0x4983eb[_0x1f04('0x69')][_0x1f04('0x67')]();_0x404a02[_0x1f04('0x0')][_0x1f04('0x4d')](_0x1f04('0x2f'),_0x1f04('0x4a'),_0x1f04('0x25'),()=>{}),_0x404a02['_suggestionFactory'][_0x1f04('0x4d')]('formatBlock',_0x1f04('0xe'),'join',()=>{}),_0x404a02[_0x1f04('0x0')]['registerCustomCallback'](_0x1f04('0x34'),_0x1f04('0xe'),_0x1f04('0x25'),()=>{}),_0x404a02[_0x1f04('0x0')]['registerCustomCallback'](_0x1f04('0x2f'),'imageStylePreApply',_0x1f04('0x55'),()=>{}),_0x404a02['_suggestionFactory'][_0x1f04('0x4d')](_0x1f04('0x2f'),_0x1f04('0x4a'),'discard',(_0x56e818,_0x54b838)=>{_0x404a02[_0x1f04('0x0')]['getSuggestionCallback'](_0x1f04('0x2f'),'',_0x1f04('0x55'))(_0x56e818,{'commandName':_0x54b838[_0x1f04('0x15')],'commandParams':_0x54b838['commandReversedParams']});}),_0x404a02[_0x1f04('0x0')][_0x1f04('0x4d')](_0x1f04('0x2f'),_0x1f04('0x4a'),'chain',_0xa73418);}const _0x5e2de6=[{'type':'formatBlock','subType':_0x1f04('0x4a')},{'type':'insertion','subType':'imageCaption'},{'type':_0x1f04('0x2f'),'subType':_0x1f04('0x51')},{'type':'insertion','subType':_0x1f04('0x51')}];function _0x425d2b(_0x5ef565,_0x5b6843){const _0x20a845=_0x5e2de6[_0x1f04('0x5a')](({type:_0x203508,subType:_0x60a58b})=>_0x5ef565[_0x1f04('0x2d')]==_0x203508&&_0x5ef565[_0x1f04('0x29')]==_0x60a58b),_0x2a3676=_0x5e2de6[_0x1f04('0x5a')](({type:_0x79a711,subType:_0xc6b6a7})=>_0x5b6843[_0x1f04('0x2d')]==_0x79a711&&_0x5b6843['subType']==_0xc6b6a7);if(_0x20a845<0x0||_0x2a3676<0x0)return!0x1;const _0x3be5fc=_0x5ef565['getFirstRange'](),_0xab8235=_0x5b6843['getFirstRange']();if((0x0==_0x20a845||0x1==_0x20a845)&&0x2==_0x2a3676&&_0x3be5fc[_0x1f04('0x1c')](_0xab8235))return!0x0;if(0x2==_0x20a845&&0x3==_0x2a3676){const _0x9a6a08=_0x404a02['_findSuggestions'](_0x3be5fc,_0x1f04('0x49'))[_0x1f04('0x46')](({suggestion:_0x1a146b,meta:_0x338829})=>_0x338829[_0x1f04('0x24')]&&_0x1f04('0x51')==_0x1a146b[_0x1f04('0x29')]);if(_0x9a6a08['length']>0x1&&_0xab8235[_0x1f04('0x45')]['isEqual'](_0x3be5fc[_0x1f04('0x13')]))return!0x0;if(0x1==_0x9a6a08['length']&&(_0x3be5fc['start']['isEqual'](_0xab8235[_0x1f04('0x45')])||_0x3be5fc['end'][_0x1f04('0x32')](_0xab8235[_0x1f04('0x13')])))return!0x0;}if(0x3==_0x20a845&&0x3==_0x2a3676&&_0x3be5fc[_0x1f04('0x13')][_0x1f04('0x5e')](_0xab8235[_0x1f04('0x13')])){const _0x894394=_0x3be5fc[_0x1f04('0x45')]['nodeAfter'],_0x5114a6=_0xab8235[_0x1f04('0x13')][_0x1f04('0x5d')];return _0x40f7ce[_0x1f04('0x1')](_0x894394)&&_0x894394===_0x5114a6;}return!0x1;}function _0xa73418(_0x5a508c,_0xf62863){return _0x425d2b(_0x5a508c,_0xf62863)?[_0x5a508c,_0xf62863]:_0x425d2b(_0xf62863,_0x5a508c)?[_0xf62863,_0x5a508c]:null;}_0x707fbb[_0x1f04('0x1d')]['document']['registerPostFixer'](()=>{let _0x307828=!0x1;const _0x508367=Array[_0x1f04('0x66')](_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x4c')][_0x1f04('0x23')]['getChangedMarkers']());for(const {name:_0x2cc17,data:_0x98dbe6}of _0x508367){const {group:_0x311e10,type:_0x2c3e10,subType:_0x5ae727,id:_0x24284f}=_0x404a02[_0x1f04('0x1a')](_0x2cc17);if(_0x1f04('0x5c')==_0x311e10&&_0x404a02['hasSuggestion'](_0x24284f)){if('formatBlock'==_0x2c3e10&&(_0x1f04('0x4a')==_0x5ae727||_0x1f04('0xe')==_0x5ae727)){const _0xbb5bbf=_0x404a02[_0x1f04('0x63')](_0x24284f);if(_0x98dbe6['newRange']){const _0x14bd94=_0xbb5bbf['getFirstRange']()[_0x1f04('0x26')]();if(_0x40f7ce[_0x1f04('0x1')](_0x14bd94))continue;_0x404a02[_0x1f04('0x42')](_0xbb5bbf),_0x307828=!0x0;}}if(_0x1f04('0x49')==_0x2c3e10&&_0x1f04('0x60')==_0x5ae727&&!_0x98dbe6['newRange']){const _0x56f142=_0x404a02[_0x1f04('0x63')](_0x24284f);_0x56f142['next']&&_0x56f142[_0x1f04('0xb')][_0x1f04('0x3')]&&(_0x404a02['discardSuggestion'](_0x56f142['next']),_0x307828=!0x0);}}}return _0x307828;}),_0x707fbb[_0x1f04('0x57')][_0x1f04('0x30')]('ImageResize')&&_0x404a02[_0x1f04('0x3a')]('resizeImage',(_0x1ae966,_0x3c84a5)=>{const _0x5494b3=_0x40f7ce[_0x1f04('0x2e')](_0x707fbb['model'][_0x1f04('0x4c')][_0x1f04('0x65')]);_0x5494b3[_0x1f04('0x19')](_0x1f04('0x8'))!=_0x3c84a5[_0x1f04('0x8')]&&_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x61')](()=>{_0x404a02[_0x1f04('0x28')](_0x5494b3,{'commandName':'resizeImage','commandParams':[_0x3c84a5]});});}),_0x707fbb[_0x1f04('0x57')][_0x1f04('0x30')](_0x1f04('0x31'))&&_0x404a02[_0x1f04('0x3a')](_0x1f04('0x5'),(_0x11967a,_0x48d9b9)=>{const _0xcd38b0=_0x40f7ce['getClosestSelectedImageElement'](_0x707fbb[_0x1f04('0x1d')][_0x1f04('0x4c')]['selection']);(_0xcd38b0[_0x1f04('0x27')]('alt')?_0xcd38b0[_0x1f04('0x19')](_0x1f04('0x64')):'')!=_0x48d9b9[_0x1f04('0x10')]&&_0x707fbb['model'][_0x1f04('0x61')](()=>{_0x404a02[_0x1f04('0x28')](_0xcd38b0,{'commandName':'imageTextAlternative','commandParams':[_0x48d9b9]});});}),_0x404a02[_0x1f04('0x4f')][_0x1f04('0x6b')](_0x56b245=>{if(!!_0x5e2de6['find'](({type:_0x176004,subType:_0x24ac7b})=>_0x56b245[_0x1f04('0x2d')]==_0x176004&&_0x56b245['subType']==_0x24ac7b))return _0x56b245[_0x1f04('0x6')]?{}:void 0x0;}),_0x404a02[_0x1f04('0x4f')][_0x1f04('0x6b')](_0x113b7e=>{if(_0x1f04('0x49')==_0x113b7e[_0x1f04('0x2d')]||'deletion'==_0x113b7e[_0x1f04('0x2d')]){const _0x3fa297=_0x113b7e[_0x1f04('0x26')]();if(_0x3fa297&&_0x3fa297['is'](_0x1f04('0x12'),_0x1f04('0x22')))return{'type':_0x1f04('0x49')==_0x113b7e[_0x1f04('0x2d')]?'addObject':'removeObject','element':_0x3fa297,'quantity':0x1};}}),_0x404a02[_0x1f04('0x4f')][_0x1f04('0x6b')](_0x1e3307=>'formatBlock'==_0x1e3307[_0x1f04('0x2d')]&&_0x1f04('0x51')==_0x1e3307['subType']?{'type':_0x1f04('0x9'),'content':_0x1f04('0x50')}:'formatBlock'==_0x1e3307[_0x1f04('0x2d')]&&_0x1f04('0x4b')==_0x1e3307[_0x1f04('0x29')]?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x404a02[_0x1f04('0x4f')][_0x1f04('0x6b')](_0x57d655=>{const {data:_0x1c9f4d}=_0x57d655;if(_0x1c9f4d){if(_0x1f04('0x59')==_0x1c9f4d[_0x1f04('0x15')]){const _0x16f612=_0x1c9f4d[_0x1f04('0x1f')][0x0][_0x1f04('0x40')];return _0x24b557(_0x1f04('0xc')===_0x16f612?_0x48742f(_0x33436c,_0x1f04('0x18')):_0x554e51[_0x16f612]||_0x16f612);}if(_0x1f04('0x5')==_0x1c9f4d[_0x1f04('0x15')]){const _0x4427f8=_0x1c9f4d[_0x1f04('0x1f')][0x0][_0x1f04('0x10')];return _0x4427f8?{'type':_0x1f04('0x9'),'content':_0x48742f(_0x33436c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4427f8+'\x22')}:{'type':_0x1f04('0x9'),'content':_0x48742f(_0x33436c,_0x1f04('0x52'))};}if(_0x1f04('0x5f')==_0x1c9f4d[_0x1f04('0x15')]){const _0x34b423=_0x1c9f4d[_0x1f04('0x1f')][0x0][_0x1f04('0x8')];return _0x34b423?{'type':_0x1f04('0x9'),'content':_0x48742f(_0x33436c,'*Set\x20image\x20width:*\x20%0',_0x34b423)}:{'type':_0x1f04('0x9'),'content':_0x48742f(_0x33436c,'*Reset\x20image\x20width*')};}}function _0x24b557(_0x3a65da){return{'type':_0x1f04('0x9'),'content':_0x48742f(_0x33436c,'*Format:*\x20%0',_0x3a65da)};}});}}
|
|
23
|
+
const _0x5bfc=['registerPostFixer','ImageTextAlternativeEditing','insertion','getSuggestionCallback','subType','document','format','getSuggestion','formatBlock','*Remove\x20image\x20text\x20alternative*','resizeImage','backward','markInlineFormat','normalizedStyles','_suggestionFactory','imageStylePreApply','getCaptionFromImageModelElement','ELEMENT_INLINE_IMAGE','commands','imageStylePostApply','commandName','FORMAT_SIDE_IMAGE','imageTextAlternative','ImageCaptionEditing','*Reset\x20image\x20width*','registerDescriptionCallback','isOwn','removeObject','imageInline','ImageCaptionUtils','shouldConvertImageType','ImageInlineEditing','isBlockImage','convertInlineImageToBlock','forward','forEach','find','markInsertion','fromPosition','_findSuggestions','ImageUploadEditing','newValue','filter','ImageUtils','_splitMarkerName','caption','get','detach','forceDefaultExecution','*Format:*\x20%0','element','isCollapsed','isEqual','change','ImageBlockEditing','getContainedElement','getAttribute','createRangeOn','join','getNearestSelectionRange','_descriptionFactory','isBefore','imageTypeInline','Users','schema','toLowerCase','accept','getClosestSelectedImageElement','discard','has','markDeletion','convertBlockImageToInline','discardSuggestion','value','differ','refresh','isInContent','registerElementLabel','next','createRange','getSuggestions','Inline\x20image\x20to\x20block\x20image','deletion','commandParams','markBlockFormat','isInlineImage','start','end','from','uploadImage','ImageStyleEditing','plugins','toNext','type','chain','model','findIndex','editor','registerCustomCallback','imageTypeBlock','selection','afterInit','width','imageCaption','ImageResize','alt','enableCommand','title','getFirstRange','name','formatInline','*Set\x20image\x20text\x20alternative:*\x20%0','newRange','imageStyle','hasAttribute','insertImage','side','ELEMENT_IMAGE','getChangedMarkers'];(function(_0x5d7935,_0x5bfce9){const _0xa31a21=function(_0x3641ca){while(--_0x3641ca){_0x5d7935['push'](_0x5d7935['shift']());}};_0xa31a21(++_0x5bfce9);}(_0x5bfc,0x1ed));const _0xa31a=function(_0x5d7935,_0x5bfce9){_0x5d7935=_0x5d7935-0x0;let _0xa31a21=_0x5bfc[_0x5d7935];return _0xa31a21;};import{Plugin as _0xcac5d3}from'ckeditor5/src/core';import{LivePosition as _0x27527c}from'ckeditor5/src/engine';import{uid as _0x3d9019}from'ckeditor5/src/utils';import{getTranslation as _0x2255c9}from'../utils/common-translations';export default class X extends _0xcac5d3{[_0xa31a('0x54')](){const _0x2f4e8c=this[_0xa31a('0x50')];if(!_0x2f4e8c[_0xa31a('0x4a')][_0xa31a('0x34')]('ImageEditing'))return;const _0x43479e=_0x2f4e8c['plugins'][_0xa31a('0x1d')]('TrackChangesEditing'),_0x21afca=_0x2f4e8c[_0xa31a('0x4a')][_0xa31a('0x1d')](_0xa31a('0x1a')),_0x4b7cae={},_0x560497=_0x2f4e8c['locale'];if(_0x43479e[_0xa31a('0x59')](_0xa31a('0x62')),_0x43479e[_0xa31a('0x2b')][_0xa31a('0x3c')]('imageBlock',_0x7d29e4=>_0x2255c9(_0x560497,_0xa31a('0x64'),_0x7d29e4)),_0x43479e[_0xa31a('0x2b')][_0xa31a('0x3c')](_0xa31a('0xb'),_0x5586b7=>_0x2255c9(_0x560497,_0xa31a('0x0'),_0x5586b7)),_0x43479e[_0xa31a('0x2b')][_0xa31a('0x3c')](_0xa31a('0x1c'),()=>_0x2255c9(_0x560497,'ELEMENT_CAPTION')),_0x2f4e8c[_0xa31a('0x4a')]['has'](_0xa31a('0x17'))&&_0x43479e['enableCommand'](_0xa31a('0x48')),_0x2f4e8c['plugins'][_0xa31a('0x34')](_0xa31a('0x25'))&&_0x2f4e8c['plugins'][_0xa31a('0x34')](_0xa31a('0xe'))&&(_0x43479e[_0xa31a('0x59')](_0xa31a('0x2d'),(_0x1dcb4c,_0x391178)=>{const _0x596cd4=_0x21afca[_0xa31a('0x32')](_0x2f4e8c['model'][_0xa31a('0x6b')][_0xa31a('0x53')]);_0x2f4e8c['model'][_0xa31a('0x24')](()=>{_0x43479e['markBlockFormat'](_0x596cd4,{'commandName':_0xa31a('0x2d'),'commandParams':[_0x391178]},[],_0xa31a('0x36'));});}),_0x43479e[_0xa31a('0x59')](_0xa31a('0x52'),(_0x301ce3,_0x1c6435)=>{_0x2f4e8c[_0xa31a('0x4e')]['change'](_0x1185cb=>{let _0x4f26d3=_0x21afca[_0xa31a('0x32')](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')][_0xa31a('0x53')]),_0x28b436=_0x1185cb[_0xa31a('0x28')](_0x4f26d3);const _0x21eecd=_0x27527c[_0xa31a('0x15')](_0x28b436['start'],'toPrevious'),_0x2885d3=_0x27527c[_0xa31a('0x15')](_0x28b436['end'],_0xa31a('0x4b'));_0x43479e[_0xa31a('0x1f')](()=>_0x301ce3(_0x1c6435)),_0x4f26d3=_0x21afca[_0xa31a('0x32')](_0x2f4e8c['model'][_0xa31a('0x6b')]['selection']),_0x28b436=_0x1185cb[_0xa31a('0x28')](_0x4f26d3);const _0x1f11ee=_0x1185cb[_0xa31a('0x3e')](_0x21eecd,_0x2885d3);_0x21eecd[_0xa31a('0x1e')](),_0x2885d3['detach'](),_0x43479e[_0xa31a('0x43')](_0x4f26d3,{'commandName':_0xa31a('0x2d'),'commandParams':[]},[],_0xa31a('0x10')),_0x1f11ee[_0xa31a('0x45')][_0xa31a('0x2c')](_0x28b436[_0xa31a('0x45')])&&_0x43479e['markInsertion'](_0x1185cb[_0xa31a('0x3e')](_0x1f11ee[_0xa31a('0x45')],_0x28b436[_0xa31a('0x45')]),_0xa31a('0x10')),_0x28b436[_0xa31a('0x46')][_0xa31a('0x2c')](_0x1f11ee[_0xa31a('0x46')])&&_0x43479e[_0xa31a('0x14')](_0x1185cb[_0xa31a('0x3e')](_0x28b436[_0xa31a('0x46')],_0x1f11ee[_0xa31a('0x46')]),'convertInlineImageToBlock');});}),_0x43479e[_0xa31a('0x74')][_0xa31a('0x51')](_0xa31a('0x6e'),'convertInlineImageToBlock',_0xa31a('0x29'),()=>{}),_0x43479e[_0xa31a('0x74')][_0xa31a('0x51')](_0xa31a('0x6e'),_0xa31a('0x10'),_0xa31a('0x31'),()=>{}),_0x43479e[_0xa31a('0x74')][_0xa31a('0x51')](_0xa31a('0x6e'),'convertInlineImageToBlock',_0xa31a('0x33'),_0x43479e['_suggestionFactory'][_0xa31a('0x69')](_0xa31a('0x6e'),'',_0xa31a('0x31'))),_0x43479e['_suggestionFactory'][_0xa31a('0x51')](_0xa31a('0x68'),_0xa31a('0x10'),_0xa31a('0x29'),()=>{}),_0x43479e[_0xa31a('0x74')][_0xa31a('0x51')](_0xa31a('0x68'),_0xa31a('0x10'),_0xa31a('0x33'),([_0x237f0b])=>{const _0x57518a=_0x43479e['_suggestionFactory'][_0xa31a('0x69')](_0xa31a('0x68'),'',_0xa31a('0x33'));let _0x10bfe6=_0x237f0b[_0xa31a('0x45')],_0x3520a2=_0x237f0b[_0xa31a('0x46')];const _0x50c7d1=_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x2f')][_0xa31a('0x2a')](_0x10bfe6,_0xa31a('0x71')),_0x3bd463=_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x2f')][_0xa31a('0x2a')](_0x3520a2,_0xa31a('0x11'));_0x50c7d1[_0xa31a('0x22')]&&(_0x10bfe6=_0x50c7d1[_0xa31a('0x45')]),_0x3bd463[_0xa31a('0x22')]&&(_0x3520a2=_0x3bd463[_0xa31a('0x46')]),_0x57518a([_0x2f4e8c[_0xa31a('0x4e')]['createRange'](_0x10bfe6,_0x3520a2)]);}),_0x43479e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x54cad3),_0x43479e['_suggestionFactory'][_0xa31a('0x51')](_0xa31a('0x68'),_0xa31a('0x10'),_0xa31a('0x4d'),_0x54cad3)),_0x2f4e8c[_0xa31a('0x4a')][_0xa31a('0x34')](_0xa31a('0x6'))&&(_0x43479e[_0xa31a('0x59')]('toggleImageCaption',(_0x5eff49,_0x44ede5)=>{const _0x5e5a89=_0x2f4e8c['plugins'][_0xa31a('0x1d')](_0xa31a('0xc'));let _0x1e02d5=_0x21afca['getClosestSelectedImageElement'](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')][_0xa31a('0x53')]),_0x3aa581=_0x5e5a89['getCaptionFromImageModelElement'](_0x1e02d5);_0x2f4e8c['model'][_0xa31a('0x24')](()=>{if(_0x3aa581)return void _0x43479e[_0xa31a('0x35')](_0x2f4e8c[_0xa31a('0x4e')]['createRangeOn'](_0x3aa581));const _0x4e90c4=_0x21afca[_0xa31a('0xf')](_0x1e02d5);_0x5eff49(_0x44ede5),_0x1e02d5=_0x21afca['getClosestSelectedImageElement'](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')][_0xa31a('0x53')]),_0x3aa581=_0x5e5a89[_0xa31a('0x76')](_0x1e02d5),_0x43479e[_0xa31a('0x14')](_0x2f4e8c['model']['createRangeOn'](_0x3aa581),_0x4e90c4?null:_0xa31a('0x56'));});}),_0x43479e[_0xa31a('0x74')]['registerCustomCallback']('insertion','imageCaption',_0xa31a('0x4d'),_0x54cad3)),_0x2f4e8c[_0xa31a('0x4a')][_0xa31a('0x34')](_0xa31a('0x49'))){_0x43479e['enableCommand'](_0xa31a('0x60'),(_0x1826e1,_0x25c5d2)=>{const _0x4f177d=_0x2f4e8c[_0xa31a('0x4a')][_0xa31a('0x1d')](_0xa31a('0x2e'))['me'],_0x607079=_0x2f4e8c[_0xa31a('0x1')][_0xa31a('0x1d')]('imageStyle');let _0x1d380e=_0x21afca[_0xa31a('0x32')](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')][_0xa31a('0x53')]),_0x2618e9=_0x2f4e8c['model'][_0xa31a('0x28')](_0x1d380e),_0x279272=_0x607079[_0xa31a('0x38')];if(_0x279272==_0x25c5d2[_0xa31a('0x38')])return;const _0xc1321a={'commandName':_0xa31a('0x60'),'commandParams':[_0x25c5d2],'formatGroupId':_0x3d9019()};_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x24')](()=>{if(_0x43479e[_0xa31a('0x3f')]()['filter'](_0x278d22=>_0x278d22[_0xa31a('0x3b')]&&_0x4f177d==_0x278d22['author']&&('formatBlock'==_0x278d22[_0xa31a('0x4c')]||'formatInline'==_0x278d22[_0xa31a('0x4c')])&&(_0xa31a('0x75')==_0x278d22['subType']||_0xa31a('0x2')==_0x278d22[_0xa31a('0x6a')])&&_0x278d22[_0xa31a('0x5b')]()[_0xa31a('0x23')](_0x2618e9))[_0xa31a('0x12')](_0xc51294=>_0x43479e[_0xa31a('0x37')](_0xc51294['head'])),_0x1d380e=_0x21afca['getClosestSelectedImageElement'](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')][_0xa31a('0x53')]),_0x2618e9=_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x28')](_0x1d380e),_0x607079[_0xa31a('0x3a')](),_0x2f4e8c[_0xa31a('0x1')][_0xa31a('0x1d')](_0xa31a('0x2d'))[_0xa31a('0x3a')](),_0x2f4e8c[_0xa31a('0x1')][_0xa31a('0x1d')](_0xa31a('0x52'))[_0xa31a('0x3a')](),_0x279272=_0x607079[_0xa31a('0x38')],_0x279272!=_0x25c5d2[_0xa31a('0x38')])return _0x21afca[_0xa31a('0x44')](_0x1d380e)&&_0x607079[_0xa31a('0xd')](_0x25c5d2[_0xa31a('0x38')],_0x1d380e)?(_0x1826e1(_0x25c5d2),_0x1d380e=_0x21afca[_0xa31a('0x32')](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')]['selection']),void _0x43479e[_0xa31a('0x43')](_0x1d380e,{..._0xc1321a,'commandReversedParams':[{'value':_0x279272||null}]},[],_0xa31a('0x75'))):void(_0x21afca[_0xa31a('0xf')](_0x1d380e)?_0x43479e[_0xa31a('0x43')](_0x1d380e,_0xc1321a,[],_0xa31a('0x2')):_0x43479e[_0xa31a('0x72')](_0x2618e9,_0xc1321a,_0xa31a('0x2')));});});for(const _0x5b6f3d of _0x2f4e8c[_0xa31a('0x4a')]['get'](_0xa31a('0x49'))[_0xa31a('0x73')])_0x4b7cae[_0x5b6f3d[_0xa31a('0x5c')]]=_0x5b6f3d[_0xa31a('0x5a')][_0xa31a('0x30')]();_0x43479e[_0xa31a('0x74')][_0xa31a('0x51')](_0xa31a('0x6e'),_0xa31a('0x75'),_0xa31a('0x29'),()=>{}),_0x43479e['_suggestionFactory'][_0xa31a('0x51')]('formatBlock',_0xa31a('0x2'),_0xa31a('0x29'),()=>{}),_0x43479e[_0xa31a('0x74')][_0xa31a('0x51')](_0xa31a('0x5d'),_0xa31a('0x2'),_0xa31a('0x29'),()=>{}),_0x43479e[_0xa31a('0x74')][_0xa31a('0x51')](_0xa31a('0x6e'),_0xa31a('0x75'),_0xa31a('0x31'),()=>{}),_0x43479e[_0xa31a('0x74')]['registerCustomCallback'](_0xa31a('0x6e'),_0xa31a('0x75'),_0xa31a('0x33'),(_0x1da018,_0x55ad70)=>{_0x43479e[_0xa31a('0x74')][_0xa31a('0x69')](_0xa31a('0x6e'),'',_0xa31a('0x31'))(_0x1da018,{'commandName':_0x55ad70[_0xa31a('0x3')],'commandParams':_0x55ad70['commandReversedParams']});}),_0x43479e[_0xa31a('0x74')]['registerCustomCallback']('formatBlock',_0xa31a('0x75'),'chain',_0x54cad3);}const _0x4ad189=[{'type':_0xa31a('0x6e'),'subType':_0xa31a('0x75')},{'type':_0xa31a('0x68'),'subType':_0xa31a('0x56')},{'type':_0xa31a('0x6e'),'subType':'convertInlineImageToBlock'},{'type':_0xa31a('0x68'),'subType':'convertInlineImageToBlock'}];function _0x116bfd(_0x232840,_0x3463b1){const _0x270247=_0x4ad189[_0xa31a('0x4f')](({type:_0x35a832,subType:_0x41d339})=>_0x232840['type']==_0x35a832&&_0x232840[_0xa31a('0x6a')]==_0x41d339),_0x510445=_0x4ad189['findIndex'](({type:_0x785c8c,subType:_0x8664aa})=>_0x3463b1['type']==_0x785c8c&&_0x3463b1[_0xa31a('0x6a')]==_0x8664aa);if(_0x270247<0x0||_0x510445<0x0)return!0x1;const _0x28a687=_0x232840[_0xa31a('0x5b')](),_0x170547=_0x3463b1['getFirstRange']();if((0x0==_0x270247||0x1==_0x270247)&&0x2==_0x510445&&_0x28a687['isIntersecting'](_0x170547))return!0x0;if(0x2==_0x270247&&0x3==_0x510445){const _0x421a92=_0x43479e[_0xa31a('0x16')](_0x28a687,_0xa31a('0x68'))[_0xa31a('0x19')](({suggestion:_0x3cf0cc,meta:_0x5939ba})=>_0x5939ba[_0xa31a('0x9')]&&_0xa31a('0x10')==_0x3cf0cc[_0xa31a('0x6a')]);if(_0x421a92['length']>0x1&&_0x170547[_0xa31a('0x46')]['isEqual'](_0x28a687[_0xa31a('0x45')]))return!0x0;if(0x1==_0x421a92['length']&&(_0x28a687[_0xa31a('0x45')][_0xa31a('0x23')](_0x170547[_0xa31a('0x46')])||_0x28a687[_0xa31a('0x46')][_0xa31a('0x23')](_0x170547[_0xa31a('0x45')])))return!0x0;}if(0x3==_0x270247&&0x3==_0x510445&&_0x28a687[_0xa31a('0x45')][_0xa31a('0x2c')](_0x170547[_0xa31a('0x45')])){const _0x163ea3=_0x28a687[_0xa31a('0x46')]['nodeAfter'],_0x5cf9e1=_0x170547[_0xa31a('0x45')]['nodeBefore'];return _0x21afca[_0xa31a('0xf')](_0x163ea3)&&_0x163ea3===_0x5cf9e1;}return!0x1;}function _0x54cad3(_0x58fd5a,_0xa96e0b){return _0x116bfd(_0x58fd5a,_0xa96e0b)?[_0x58fd5a,_0xa96e0b]:_0x116bfd(_0xa96e0b,_0x58fd5a)?[_0xa96e0b,_0x58fd5a]:null;}_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')][_0xa31a('0x66')](()=>{let _0x340b58=!0x1;const _0x41cde8=Array[_0xa31a('0x47')](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')][_0xa31a('0x39')][_0xa31a('0x65')]());for(const {name:_0x33df7b,data:_0x1dabd5}of _0x41cde8){const {group:_0x417747,type:_0x41fce6,subType:_0x321f52,id:_0x11f303}=_0x43479e[_0xa31a('0x1b')](_0x33df7b);if('suggestion'==_0x417747&&_0x43479e['hasSuggestion'](_0x11f303)){if(_0xa31a('0x6e')==_0x41fce6&&(_0xa31a('0x75')==_0x321f52||'imageStylePostApply'==_0x321f52)){const _0x55f78a=_0x43479e[_0xa31a('0x6d')](_0x11f303);if(_0x1dabd5[_0xa31a('0x5f')]){const _0x1e75ed=_0x55f78a['getFirstRange']()[_0xa31a('0x26')]();if(_0x21afca['isBlockImage'](_0x1e75ed))continue;_0x43479e['discardSuggestion'](_0x55f78a),_0x340b58=!0x0;}}if('insertion'==_0x41fce6&&'imageCaption'==_0x321f52&&!_0x1dabd5['newRange']){const _0x1fde87=_0x43479e[_0xa31a('0x6d')](_0x11f303);_0x1fde87['next']&&_0x1fde87[_0xa31a('0x3d')][_0xa31a('0x3b')]&&(_0x43479e['discardSuggestion'](_0x1fde87[_0xa31a('0x3d')]),_0x340b58=!0x0);}}}return _0x340b58;}),_0x2f4e8c[_0xa31a('0x4a')]['has'](_0xa31a('0x57'))&&_0x43479e[_0xa31a('0x59')]('resizeImage',(_0x3e03d5,_0x119516)=>{const _0xd2259c=_0x21afca['getClosestSelectedImageElement'](_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x6b')]['selection']);_0xd2259c[_0xa31a('0x27')](_0xa31a('0x55'))!=_0x119516[_0xa31a('0x55')]&&_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x24')](()=>{_0x43479e['markBlockFormat'](_0xd2259c,{'commandName':_0xa31a('0x70'),'commandParams':[_0x119516]});});}),_0x2f4e8c['plugins'][_0xa31a('0x34')](_0xa31a('0x67'))&&_0x43479e['enableCommand']('imageTextAlternative',(_0x2b1d8d,_0x1ccea7)=>{const _0x1b1a95=_0x21afca['getClosestSelectedImageElement'](_0x2f4e8c['model'][_0xa31a('0x6b')][_0xa31a('0x53')]);(_0x1b1a95[_0xa31a('0x61')]('alt')?_0x1b1a95[_0xa31a('0x27')](_0xa31a('0x58')):'')!=_0x1ccea7[_0xa31a('0x18')]&&_0x2f4e8c[_0xa31a('0x4e')][_0xa31a('0x24')](()=>{_0x43479e[_0xa31a('0x43')](_0x1b1a95,{'commandName':_0xa31a('0x5'),'commandParams':[_0x1ccea7]});});}),_0x43479e['_descriptionFactory']['registerDescriptionCallback'](_0x4aa912=>{if(!!_0x4ad189[_0xa31a('0x13')](({type:_0xb3cf10,subType:_0x15605c})=>_0x4aa912[_0xa31a('0x4c')]==_0xb3cf10&&_0x4aa912['subType']==_0x15605c))return _0x4aa912['previous']?{}:void 0x0;}),_0x43479e[_0xa31a('0x2b')][_0xa31a('0x8')](_0x451f13=>{if(_0xa31a('0x68')==_0x451f13['type']||_0xa31a('0x41')==_0x451f13[_0xa31a('0x4c')]){const _0x5cbae4=_0x451f13[_0xa31a('0x26')]();if(_0x5cbae4&&_0x5cbae4['is'](_0xa31a('0x21'),_0xa31a('0x1c')))return{'type':_0xa31a('0x68')==_0x451f13[_0xa31a('0x4c')]?'addObject':_0xa31a('0xa'),'element':_0x5cbae4,'quantity':0x1};}}),_0x43479e[_0xa31a('0x2b')][_0xa31a('0x8')](_0x1c38e9=>_0xa31a('0x6e')==_0x1c38e9['type']&&'convertInlineImageToBlock'==_0x1c38e9['subType']?{'type':'format','content':_0xa31a('0x40')}:_0xa31a('0x6e')==_0x1c38e9['type']&&_0xa31a('0x36')==_0x1c38e9[_0xa31a('0x6a')]?{'type':_0xa31a('0x6c'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x43479e[_0xa31a('0x2b')][_0xa31a('0x8')](_0x2caab8=>{const {data:_0x441642}=_0x2caab8;if(_0x441642){if(_0xa31a('0x60')==_0x441642[_0xa31a('0x3')]){const _0x29fa81=_0x441642[_0xa31a('0x42')][0x0][_0xa31a('0x38')];return _0x5a231b(_0xa31a('0x63')===_0x29fa81?_0x2255c9(_0x560497,_0xa31a('0x4')):_0x4b7cae[_0x29fa81]||_0x29fa81);}if(_0xa31a('0x5')==_0x441642[_0xa31a('0x3')]){const _0x166caf=_0x441642[_0xa31a('0x42')][0x0][_0xa31a('0x18')];return _0x166caf?{'type':_0xa31a('0x6c'),'content':_0x2255c9(_0x560497,_0xa31a('0x5e'),'\x22'+_0x166caf+'\x22')}:{'type':_0xa31a('0x6c'),'content':_0x2255c9(_0x560497,_0xa31a('0x6f'))};}if(_0xa31a('0x70')==_0x441642[_0xa31a('0x3')]){const _0x29eac6=_0x441642['commandParams'][0x0][_0xa31a('0x55')];return _0x29eac6?{'type':_0xa31a('0x6c'),'content':_0x2255c9(_0x560497,'*Set\x20image\x20width:*\x20%0',_0x29eac6)}:{'type':_0xa31a('0x6c'),'content':_0x2255c9(_0x560497,_0xa31a('0x7'))};}}function _0x5a231b(_0x131638){return{'type':_0xa31a('0x6c'),'content':_0x2255c9(_0x560497,_0xa31a('0x20'),_0x131638)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4219=['getSuggestionCallback','ImageEditing','handleSuggestionDescription','editor','formatBlock','selection','getSuggestions','author','_suggestionFactory','registerDescriptionCallback','getAttribute','commandName','Users','accept','commandParams','data','discard','has','*Format:*\x20replace\x20image\x20URL','markBlockFormat','plugins','enableCommand','afterInit','change','TrackChangesEditing','document','locale','source','src','replaceImageSource','handleReplaceImageCommand','getSelectedElement','get','model'];(function(_0x392d92,_0x4219e4){const _0x2991cc=function(_0x367644){while(--_0x367644){_0x392d92['push'](_0x392d92['shift']());}};_0x2991cc(++_0x4219e4);}(_0x4219,0x154));const _0x2991=function(_0x392d92,_0x4219e4){_0x392d92=_0x392d92-0x0;let _0x2991cc=_0x4219[_0x392d92];return _0x2991cc;};import{Plugin as _0x252c07}from'ckeditor5/src/core';import{getTranslation as _0x3ecc24}from'../utils/common-translations';export default class Y extends _0x252c07{[_0x2991('0x16')](){if(!this[_0x2991('0x3')][_0x2991('0x14')][_0x2991('0x11')](_0x2991('0x1')))return;const _0x58de6c=this[_0x2991('0x3')][_0x2991('0x14')][_0x2991('0x20')](_0x2991('0x18'));_0x58de6c[_0x2991('0x15')](_0x2991('0x1d'),(_0x2ade94,_0x373dab)=>this[_0x2991('0x1e')](_0x2ade94,_0x373dab)),_0x58de6c[_0x2991('0x8')]['registerCustomCallback']('formatBlock',_0x2991('0x1d'),_0x2991('0xd'),_0x58de6c['_suggestionFactory'][_0x2991('0x0')](_0x2991('0x4'),null,_0x2991('0x10'))),_0x58de6c['_suggestionFactory']['registerCustomCallback'](_0x2991('0x4'),_0x2991('0x1d'),_0x2991('0x10'),_0x58de6c[_0x2991('0x8')]['getSuggestionCallback']('formatBlock',null,_0x2991('0xd'))),_0x58de6c['_descriptionFactory'][_0x2991('0x9')](_0x4e509b=>this[_0x2991('0x2')](_0x4e509b));}[_0x2991('0x1e')](_0x2090f9,_0x379b6f){const _0x2104bc=this['editor'][_0x2991('0x14')][_0x2991('0x20')](_0x2991('0x18')),_0xda7e2=this[_0x2991('0x3')]['model'][_0x2991('0x19')][_0x2991('0x5')][_0x2991('0x1f')]();this['editor'][_0x2991('0x21')][_0x2991('0x17')](()=>{let _0x145dbd=_0xda7e2[_0x2991('0xa')](_0x2991('0x1c'));const _0x1de876=this[_0x2991('0x3')][_0x2991('0x14')][_0x2991('0x20')](_0x2991('0xc'))['me'];for(const _0x1a04f8 of _0x2104bc[_0x2991('0x6')]({'skipNotAttached':!0x0})){const _0xaf9416=_0x1a04f8['getContainedElement']();if(_0x2991('0x1d')===_0x1a04f8['subType']&&_0xaf9416===_0xda7e2){_0x1a04f8[_0x2991('0x7')]!==_0x1de876&&_0x1a04f8[_0x2991('0x10')](),_0x145dbd=_0x1a04f8[_0x2991('0xf')][_0x2991('0xe')][0x0][_0x2991('0x1b')];break;}}_0x2090f9(_0x379b6f),_0x2104bc[_0x2991('0x13')](_0xda7e2,{'commandName':_0x2991('0x1d'),'commandParams':[{'source':_0x145dbd}]},[],_0x2991('0x1d'));});}[_0x2991('0x2')](_0x53e826){const {data:_0x163d9c}=_0x53e826;if(_0x163d9c&&_0x2991('0x1d')===_0x163d9c[_0x2991('0xb')]){const _0x10011d=_0x2991('0x12');return{'type':'format','content':_0x3ecc24(this['editor'][_0x2991('0x1a')],_0x10011d)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35e8=['get','importWord','_handleImportedData','track_changes','high','commands','execute','plugins','trackChanges','editor','afterInit','listenTo','TrackChangesEditing','dataInsert','enableCommand','collaboration_features','_trackChangesValueDuringImport','Users','_trackChangesExecuted'];(function(_0x40b5e8,_0x35e8ff){const _0x264ffa=function(_0x516338){while(--_0x516338){_0x40b5e8['push'](_0x40b5e8['shift']());}};_0x264ffa(++_0x35e8ff);}(_0x35e8,0x74));const _0x264f=function(_0x40b5e8,_0x35e8ff){_0x40b5e8=_0x40b5e8-0x0;let _0x264ffa=_0x35e8[_0x40b5e8];return _0x264ffa;};import{Plugin as _0x41e484}from'ckeditor5/src/core';export default class Z extends _0x41e484{constructor(_0xc4f500){super(_0xc4f500),this[_0x264f('0xe')]=!0x1,this[_0x264f('0x10')]=!0x1;}[_0x264f('0x8')](){const _0x354dbe=this['editor'],_0x3dc3de=_0x354dbe[_0x264f('0x3')][_0x264f('0x11')](_0x264f('0x12')),_0x487111=_0x354dbe[_0x264f('0x3')][_0x264f('0x11')](_0x264f('0x6'));_0x3dc3de&&(_0x3dc3de['on']('execute',(_0x2186bf,[,_0x463c1a])=>{this[_0x264f('0xe')]=_0x487111['value'],_0x463c1a[_0x264f('0xd')][_0x264f('0x1')]=!this[_0x264f('0xe')];},{'priority':_0x264f('0x2')}),this[_0x264f('0x9')](_0x3dc3de,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3dc3de,_0x264f('0xb'),()=>{this[_0x264f('0x10')]&&(_0x487111[_0x264f('0x4')](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x354dbe[_0x264f('0x5')]['get'](_0x264f('0xa'))[_0x264f('0xc')](_0x264f('0x12')));}[_0x264f('0x0')](_0x21fb16,_0x3c6dda){const {suggestions:_0x3e7331}=_0x3c6dda,_0x25d052=this[_0x264f('0x7')]['commands'][_0x264f('0x11')]('trackChanges'),_0x1fcb2c=_0x25d052['value'];this[_0x264f('0xe')]!==_0x1fcb2c&&(_0x25d052[_0x264f('0x4')](),this[_0x264f('0x10')]=!0x0),_0x3e7331&&_0x3e7331['forEach'](({id:_0x51741c,type:_0x14baf7,author:_0x17bfb8,created_at:_0x1a9bc2})=>{const _0xcdc998={'id':_0x51741c,'type':_0x14baf7,'authorId':this[_0x264f('0x7')][_0x264f('0x5')][_0x264f('0x11')](_0x264f('0xf'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x17bfb8,'createdAt':_0x1a9bc2?new Date(_0x1a9bc2):new Date(),'source':_0x264f('0x12')}}};this[_0x264f('0x7')]['plugins'][_0x264f('0x11')](_0x264f('0xa'))['_setSuggestionData'](_0xcdc998);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x286e=['TrackChangesEditing','from','outdentBlock','format','*Indent:*\x20%0','enableCommand','afterInit','change','*Outdent:*\x20%0','outdent','commandName','model','plugins','has','selection','schema','registerDescriptionCallback','getSelectedBlocks','editor','checkAttribute','locale','getItems','getItemLabel','_descriptionFactory','indent','IndentEditing','markBlockFormat','indentBlock'];(function(_0x3106b2,_0x286e3d){const _0x26d856=function(_0xcaebfe){while(--_0xcaebfe){_0x3106b2['push'](_0x3106b2['shift']());}};_0x26d856(++_0x286e3d);}(_0x286e,0x132));const _0x26d8=function(_0x3106b2,_0x286e3d){_0x3106b2=_0x3106b2-0x0;let _0x26d856=_0x286e[_0x3106b2];return _0x26d856;};import{Plugin as _0x15d302}from'ckeditor5/src/core';import{getTranslation as _0x1dcd2b}from'../utils/common-translations';export default class tt extends _0x15d302{[_0x26d8('0x8')](){const _0x388c6b=this[_0x26d8('0x14')],_0x31416b=_0x388c6b['plugins']['get'](_0x26d8('0x2'));_0x388c6b['plugins'][_0x26d8('0xf')](_0x26d8('0x1b'))&&(_0x31416b['enableCommand'](_0x26d8('0x1a')),_0x31416b[_0x26d8('0x7')](_0x26d8('0xb')));const _0x20a921=_0x388c6b[_0x26d8('0x16')];if(_0x388c6b[_0x26d8('0xe')][_0x26d8('0xf')]('IndentBlock')){for(const _0x334aa9 of[_0x26d8('0x1'),'outdentBlock'])_0x31416b[_0x26d8('0x7')](_0x334aa9,()=>{const _0x3bcbd6=Array[_0x26d8('0x3')](this[_0x26d8('0x14')][_0x26d8('0xd')]['document'][_0x26d8('0x10')][_0x26d8('0x13')]())['filter'](_0x3526a7=>this[_0x26d8('0x14')][_0x26d8('0xd')][_0x26d8('0x11')][_0x26d8('0x15')](_0x3526a7,'blockIndent'));_0x388c6b[_0x26d8('0xd')][_0x26d8('0x9')](()=>{for(const _0x386404 of _0x3bcbd6)_0x31416b[_0x26d8('0x0')](_0x386404,{'commandName':_0x334aa9,'commandParams':[{'value':''}],'formatGroupId':_0x26d8('0x1')});});});_0x31416b[_0x26d8('0x19')][_0x26d8('0x12')](_0x3aece8=>{const {data:_0x3db898}=_0x3aece8;if(!_0x3db898)return;if('indentBlock'!=_0x3db898[_0x26d8('0xc')]&&_0x26d8('0x4')!=_0x3db898[_0x26d8('0xc')])return;const _0x34a1a4=_0x3aece8[_0x26d8('0x17')]()[0x0],_0x220fa2=_0x31416b[_0x26d8('0x19')][_0x26d8('0x18')](_0x34a1a4);return'indentBlock'==_0x3db898[_0x26d8('0xc')]?{'type':_0x26d8('0x5'),'content':_0x1dcd2b(_0x20a921,_0x26d8('0x6'),_0x220fa2)}:_0x26d8('0x4')==_0x3db898['commandName']?{'type':_0x26d8('0x5'),'content':_0x1dcd2b(_0x20a921,_0x26d8('0xa'),_0x220fa2)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x29cc=['editor','input','get','init'];(function(_0x3a28b0,_0x29cc62){var _0x21ac04=function(_0x1137bb){while(--_0x1137bb){_0x3a28b0['push'](_0x3a28b0['shift']());}};_0x21ac04(++_0x29cc62);}(_0x29cc,0x158));var _0x21ac=function(_0x3a28b0,_0x29cc62){_0x3a28b0=_0x3a28b0-0x0;var _0x21ac04=_0x29cc[_0x3a28b0];return _0x21ac04;};import{Plugin as _0x535314}from'ckeditor5/src/core';import{Input as _0x2f1544}from'ckeditor5/src/typing';export default class it extends _0x535314{static get['requires'](){return[_0x2f1544];}[_0x21ac('0x3')](){this[_0x21ac('0x0')]['plugins'][_0x21ac('0x2')]('TrackChangesEditing')['enableCommand'](_0x21ac('0x1'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2196=['has','plugins','registerDescriptionCallback','commandName','getFirstPosition','hasAttribute','format','LinkEditing','isCollapsed','*Set\x20link:*\x20%0','getFirstRange','linkHref','document','model','get','markInlineFormat','link','locale','enableCommand','change','unlink','getAttribute','*Remove\x20link*','getRanges','from','afterInit','TrackChangesEditing'];(function(_0x47b7c3,_0x2196e5){const _0x5570f5=function(_0x193b59){while(--_0x193b59){_0x47b7c3['push'](_0x47b7c3['shift']());}};_0x5570f5(++_0x2196e5);}(_0x2196,0x191));const _0x5570=function(_0x47b7c3,_0x2196e5){_0x47b7c3=_0x47b7c3-0x0;let _0x5570f5=_0x2196[_0x47b7c3];return _0x5570f5;};import{Plugin as _0x5a88eb}from'ckeditor5/src/core';import{findAttributeRange as _0x327aac}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x5eac2b}from'./utils';import{getTranslation as _0x17bcb5}from'../utils/common-translations';export default class et extends _0x5a88eb{[_0x5570('0x2')](){const _0xbfe4ea=this['editor'];if(!_0xbfe4ea['plugins'][_0x5570('0x4')](_0x5570('0xb')))return;const _0x2bc9e8=_0xbfe4ea[_0x5570('0x5')][_0x5570('0x12')](_0x5570('0x3'));_0x2bc9e8[_0x5570('0x16')](_0x5570('0x14'),(_0x31b1d7,_0x8a2dd0)=>{const _0x1dce44=_0xbfe4ea[_0x5570('0x11')][_0x5570('0x10')]['selection'];let _0x448292=[];if(_0x1dce44[_0x5570('0xc')]){if(!_0x1dce44[_0x5570('0x9')]('linkHref'))return void _0x31b1d7(_0x8a2dd0);{const _0x45853b=_0x327aac(_0x1dce44[_0x5570('0x8')](),_0x5570('0xf'),_0x1dce44[_0x5570('0x19')](_0x5570('0xf')),_0xbfe4ea[_0x5570('0x11')]);_0x448292=[_0x45853b];}}else _0x448292=Array[_0x5570('0x1')](_0x1dce44[_0x5570('0x0')]());_0xbfe4ea[_0x5570('0x11')][_0x5570('0x17')](()=>{for(const _0x4e6300 of _0x448292)_0x2bc9e8[_0x5570('0x13')](_0x4e6300,{'commandName':_0x5570('0x14'),'commandParams':[_0x8a2dd0]});});}),_0x2bc9e8[_0x5570('0x16')]('unlink',()=>{const _0x4e3311=this['editor'][_0x5570('0x11')],_0x3c7427=_0x4e3311[_0x5570('0x10')]['selection'];_0x4e3311['change'](()=>{let _0x25b890=[];if(_0x3c7427[_0x5570('0xc')])_0x25b890=[_0x327aac(_0x3c7427[_0x5570('0x8')](),'linkHref',_0x3c7427[_0x5570('0x19')]('linkHref'),_0xbfe4ea[_0x5570('0x11')])];else _0x25b890=_0x5eac2b(_0x5570('0xf'),_0x3c7427[_0x5570('0xe')](),_0xbfe4ea[_0x5570('0x11')]);for(const _0x17438f of _0x25b890)_0x2bc9e8[_0x5570('0x13')](_0x17438f,{'commandName':_0x5570('0x18'),'commandParams':[]});});}),_0x2bc9e8['_descriptionFactory'][_0x5570('0x6')](_0x52bfbd=>{const {data:_0x1541c4}=_0x52bfbd,_0x3bb230=_0xbfe4ea[_0x5570('0x15')];if(_0x1541c4){if(_0x5570('0x14')==_0x1541c4[_0x5570('0x7')]){const _0x2d530e=_0x1541c4['commandParams'][0x0];return{'type':'format','content':_0x17bcb5(_0x3bb230,_0x5570('0xd'),'\x22'+_0x2d530e+'\x22')};}return _0x5570('0x18')==_0x1541c4[_0x5570('0x7')]?{'type':_0x5570('0xa'),'content':_0x17bcb5(_0x3bb230,_0x5570('0x1a'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45b4=['bulletedList','nextSibling','_selectedElements','*Uncheck\x20item*','forceValue','TrackChangesEditing','findIndex','locale','*Change\x20to:*\x20%0','registerElementLabel','element','checkTodoList','ELEMENT_NUMBERED_LIST','*Outdent:*\x20%0','plugins','listItem','getAttribute','numberedList','commandParams','model','createRange','paragraph','*Check\x20item*','format','TodoListEditing','commands','previousSibling','enableCommand','registerDescriptionCallback','add','replace','todoList','createPositionAt','has','editor','push','value','parent','*Indent:*\x20%0','commandName','getSelectedBlocks','ELEMENT_TODO_LIST','get','filter','name','ELEMENT_BULLETED_LIST','indentList','schema','change','listIndent','from','numbered','length','outdentList','afterInit','_descriptionFactory','blockName','selection','slice','bulleted','todo','ELEMENT_LIST_ITEM','markBlockFormat','todoListChecked'];(function(_0x52760f,_0x45b444){const _0x449fbf=function(_0x52755a){while(--_0x52755a){_0x52760f['push'](_0x52760f['shift']());}};_0x449fbf(++_0x45b444);}(_0x45b4,0x1be));const _0x449f=function(_0x52760f,_0x45b444){_0x52760f=_0x52760f-0x0;let _0x449fbf=_0x45b4[_0x52760f];return _0x449fbf;};import{Plugin as _0x5e023b}from'ckeditor5/src/core';import{getTranslation as _0x2e55a3}from'../utils/common-translations';export default class st extends _0x5e023b{[_0x449f('0x38')](){const _0x1b50d1=this[_0x449f('0x24')],_0x3ebb94=_0x1b50d1[_0x449f('0x9')];if(!_0x1b50d1['plugins'][_0x449f('0x23')]('ListEditing'))return;const _0x45e9b2=_0x1b50d1[_0x449f('0x10')]['get'](_0x449f('0x7')),_0x156b28=_0x1b50d1['plugins']['has'](_0x449f('0x1a'));function _0x188b0e(_0x214fff){return()=>{const _0x5a5217=_0x1b50d1[_0x449f('0x15')]['document'][_0x449f('0x3b')],_0x2fc0f7=_0x1b50d1[_0x449f('0x1b')]['get'](_0x214fff);if(_0x2fc0f7[_0x449f('0x26')])return void _0x1b50d1['execute'](_0x449f('0x17'),{});const _0x3dbd3c=_0x214fff['slice'](0x0,-0x4),_0x386037=function(_0x14fc73,_0x27e641,_0x326cee){let _0x23af60=Array[_0x449f('0x34')](_0x14fc73)[_0x449f('0x2d')](_0x289fbd=>function(_0x1270a6,_0x41cd14){return _0x41cd14['checkChild'](_0x1270a6[_0x449f('0x27')],'listItem')&&!_0x41cd14['isObject'](_0x1270a6);}(_0x289fbd,_0x326cee));_0x23af60=_0x23af60['filter'](_0x10b7cc=>!_0x10b7cc['is'](_0x449f('0xc'),'listItem')||_0x10b7cc[_0x449f('0x12')]('listType')!=_0x27e641);const _0x155e63=new Set();for(const _0x583126 of _0x23af60)_0x583126['is']('element','listItem')?_0x155e63[_0x449f('0x1f')](ne(_0x583126)):_0x155e63['add'](_0x583126);return Array[_0x449f('0x34')](_0x155e63);}(_0x5a5217[_0x449f('0x2a')](),_0x3dbd3c,_0x1b50d1['model'][_0x449f('0x31')]);_0x1b50d1[_0x449f('0x15')][_0x449f('0x32')](()=>{for(const _0x446b96 of _0x386037)_0x45e9b2[_0x449f('0x0')](_0x446b96,{'commandName':_0x214fff,'commandParams':[{'forceValue':!_0x2fc0f7['value']}],'formatGroupId':_0x449f('0x3a')},oe(_0x446b96));});};}function _0x2c649e(_0x114135){return()=>{const _0x266f0e=function(_0x91aaff){let _0x4ff3c4=Array[_0x449f('0x34')](_0x91aaff);const _0x5000c0=_0x4ff3c4[_0x449f('0x8')](_0x27dc56=>_0x449f('0x11')!=_0x27dc56[_0x449f('0x2e')]);return _0x5000c0>-0x1&&(_0x4ff3c4=_0x4ff3c4[_0x449f('0x3c')](0x0,_0x5000c0)),_0x4ff3c4;}(_0x1b50d1['model']['document']['selection'][_0x449f('0x2a')]()),_0x17ba7f=_0x1b50d1[_0x449f('0x15')][_0x449f('0x16')](_0x1b50d1['model'][_0x449f('0x22')](_0x266f0e[0x0],'before'),_0x1b50d1['model'][_0x449f('0x22')](_0x266f0e[_0x266f0e[_0x449f('0x36')]-0x1],'end'));_0x1b50d1[_0x449f('0x15')]['change'](()=>{_0x45e9b2[_0x449f('0x0')](_0x17ba7f,{'commandName':_0x114135,'commandParams':[],'formatGroupId':_0x449f('0x33')},function(_0x261a71){const _0x408b0e=new Set();for(const _0x5af6f9 of _0x261a71){let _0x46e2e0=_0x5af6f9[_0x449f('0x3')];for(;_0x46e2e0&&_0x46e2e0[_0x449f('0x12')](_0x449f('0x33'))>_0x5af6f9[_0x449f('0x12')](_0x449f('0x33'));)_0x408b0e[_0x449f('0x1f')](_0x46e2e0),_0x46e2e0=_0x46e2e0[_0x449f('0x3')];}return Array[_0x449f('0x34')](_0x408b0e);}(_0x266f0e));});};}_0x45e9b2[_0x449f('0x1d')]('numberedList',_0x188b0e(_0x449f('0x13'))),_0x45e9b2[_0x449f('0x1d')](_0x449f('0x2'),_0x188b0e(_0x449f('0x2'))),_0x156b28&&_0x45e9b2[_0x449f('0x1d')](_0x449f('0x21'),_0x188b0e(_0x449f('0x21'))),_0x45e9b2['enableCommand'](_0x449f('0x30'),_0x2c649e(_0x449f('0x30'))),_0x45e9b2['enableCommand'](_0x449f('0x37'),_0x2c649e('outdentList')),_0x156b28&&_0x45e9b2['enableCommand'](_0x449f('0xd'),()=>{const _0x3ad2b2=_0x1b50d1[_0x449f('0x1b')][_0x449f('0x2c')]('checkTodoList'),_0x1d7326=Array[_0x449f('0x34')](_0x3ad2b2[_0x449f('0x4')]);_0x1d7326['filter'](_0x3f4727=>_0x3f4727['getAttribute'](_0x449f('0x1'))!=_0x3ad2b2['value']),_0x1b50d1[_0x449f('0x15')][_0x449f('0x32')](()=>{for(const _0x260fb5 of _0x1d7326)_0x45e9b2[_0x449f('0x0')](_0x260fb5,{'commandName':_0x449f('0xd'),'commandParams':[{'forceValue':!_0x3ad2b2[_0x449f('0x26')]}]});});}),_0x45e9b2[_0x449f('0x39')][_0x449f('0xb')](_0x449f('0x11'),_0x3ff08d=>_0x2e55a3(_0x3ebb94,'ELEMENT_LIST_ITEM',_0x3ff08d)),_0x45e9b2[_0x449f('0x39')][_0x449f('0x1e')](_0x3b20f8=>{const {data:_0x5d67dc}=_0x3b20f8;if(_0x5d67dc){if(_0x449f('0x13')==_0x5d67dc[_0x449f('0x29')]||_0x449f('0x2')==_0x5d67dc[_0x449f('0x29')]||'todoList'==_0x5d67dc[_0x449f('0x29')])switch(_0x5d67dc[_0x449f('0x29')][_0x449f('0x20')]('List','')){case _0x449f('0x3d'):return _0x3176f8(_0x2e55a3(_0x3ebb94,_0x449f('0x2f')));case _0x449f('0x35'):return _0x3176f8(_0x2e55a3(_0x3ebb94,_0x449f('0xe')));case _0x449f('0x3e'):return _0x3176f8(_0x2e55a3(_0x3ebb94,_0x449f('0x2b')));}if('indentList'==_0x5d67dc[_0x449f('0x29')])return{'type':_0x449f('0x19'),'content':_0x2e55a3(_0x3ebb94,_0x449f('0x28'),_0x2e55a3(_0x3ebb94,'ELEMENT_LIST_ITEM'))};if(_0x449f('0x37')==_0x5d67dc[_0x449f('0x29')])return{'type':'format','content':_0x2e55a3(_0x3ebb94,_0x449f('0xf'),_0x2e55a3(_0x3ebb94,_0x449f('0x3f')))};if(_0x449f('0xd')==_0x5d67dc[_0x449f('0x29')])return _0x5d67dc[_0x449f('0x14')][0x0][_0x449f('0x6')]?{'type':_0x449f('0x19'),'content':_0x2e55a3(_0x3ebb94,_0x449f('0x18'))}:{'type':_0x449f('0x19'),'content':_0x2e55a3(_0x3ebb94,_0x449f('0x5'))};}function _0x3176f8(_0x36907d){return{'type':_0x449f('0x19'),'content':_0x2e55a3(_0x3ebb94,_0x449f('0xa'),_0x36907d)};}});}}function ne(_0x473a84){const _0x457043=_0x473a84[_0x449f('0x12')](_0x449f('0x33'));if(0x0==_0x457043)return _0x473a84;let _0x66c233=_0x473a84;for(;_0x473a84[_0x449f('0x1c')]&&_0x473a84[_0x449f('0x1c')]['is'](_0x449f('0xc'),_0x449f('0x11'));){const _0x303403=_0x473a84[_0x449f('0x1c')][_0x449f('0x12')](_0x449f('0x33'));if(_0x303403==_0x457043)_0x66c233=_0x473a84[_0x449f('0x1c')];else{if(_0x303403<_0x457043)break;}_0x473a84=_0x473a84[_0x449f('0x1c')];}return _0x66c233;}function oe(_0x1a78cb){const _0x3479a=[];if(_0x1a78cb['is']('element',_0x449f('0x11'))&&_0x1a78cb[_0x449f('0x12')]('listIndent')>0x0){let _0x49babf=_0x1a78cb[_0x449f('0x3')];for(;_0x49babf&&_0x449f('0x11')==_0x49babf[_0x449f('0x2e')]&&_0x49babf[_0x449f('0x12')](_0x449f('0x33'))==_0x1a78cb[_0x449f('0x12')](_0x449f('0x33'));)_0x3479a[_0x449f('0x25')](_0x49babf),_0x49babf=_0x49babf[_0x449f('0x3')];}return _0x3479a;}
|