@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230908.0 → 0.0.0-nightly-20230910.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 _0x2164=['title','fontSize.options','enableCommand','has','FontBackgroundColorEditing','selection','get','format','label','getRanges','commandName','_enableCommand','editor','config','_descriptionFactory','FontColorEditing','*Reset\x20font\x20size*','commandParams','afterInit','*Set\x20font\x20color:*\x20%0','FontFamilyEditing','plugins','fontBackgroundColor','fontColor','fontColor.colors','trim','*Set\x20font\x20size:*\x20%0','change','model','fontSize','*Reset\x20font\x20family*','toLowerCase','from','value','TrackChangesEditing','locale','find','*Set\x20font\x20family:*\x20%0','FontSizeEditing','markInlineFormat'];(function(_0x2d0252,_0x216488){const _0x2d5118=function(_0x4d810e){while(--_0x4d810e){_0x2d0252['push'](_0x2d0252['shift']());}};_0x2d5118(++_0x216488);}(_0x2164,0x121));const _0x2d51=function(_0x2d0252,_0x216488){_0x2d0252=_0x2d0252-0x0;let _0x2d5118=_0x2164[_0x2d0252];return _0x2d5118;};import{Plugin as _0x238e6b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x4c01c7}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x351de8}from'./utils';import{getTranslation as _0x5cda55}from'../utils/common-translations';const eo=[{'pluginName':_0x2d51('0x1d'),'commandName':_0x2d51('0x14')},{'pluginName':_0x2d51('0xb'),'commandName':'fontFamily'},{'pluginName':_0x2d51('0x6'),'commandName':_0x2d51('0xe')},{'pluginName':_0x2d51('0x23'),'commandName':_0x2d51('0xd')}];export default class H extends _0x238e6b{[_0x2d51('0x9')](){const _0x1dd8be=this[_0x2d51('0x3')][_0x2d51('0x1a')];for(const {pluginName:_0x40be3a,commandName:_0xa2eb2e}of eo)this[_0x2d51('0x3')][_0x2d51('0xc')][_0x2d51('0x22')](_0x40be3a)&&this[_0x2d51('0x2')](_0xa2eb2e);this[_0x2d51('0x3')][_0x2d51('0xc')][_0x2d51('0x25')](_0x2d51('0x19'))[_0x2d51('0x5')]['registerDescriptionCallback'](_0x25babe=>{const _0x25b43e=_0x1dd8be['t'],{data:_0x432d5e}=_0x25babe;if(null!=_0x432d5e){if(_0x2d51('0x14')==_0x432d5e['commandName']){const _0x51ea02=_0x432d5e[_0x2d51('0x8')][0x0][_0x2d51('0x18')];if(_0x51ea02){const _0x339f33=_0x25b43e(this['editor'][_0x2d51('0xc')][_0x2d51('0x25')]('FontSize')['normalizeSizeOptions'](this['editor'][_0x2d51('0x4')][_0x2d51('0x25')](_0x2d51('0x20')))[_0x2d51('0x1b')](_0x55479f=>_0x55479f[_0x2d51('0x13')]==_0x51ea02)[_0x2d51('0x1f')])['toLowerCase']();return{'type':'format','content':_0x5cda55(_0x1dd8be,_0x2d51('0x11'),_0x339f33)};}return{'type':_0x2d51('0x26'),'content':_0x5cda55(_0x1dd8be,_0x2d51('0x7'))};}if('fontFamily'==_0x432d5e[_0x2d51('0x1')]){const _0x384164=_0x432d5e[_0x2d51('0x8')][0x0][_0x2d51('0x18')];return _0x384164?{'type':_0x2d51('0x26'),'content':_0x5cda55(_0x1dd8be,_0x2d51('0x1c'),_0x384164)}:{'type':_0x2d51('0x26'),'content':_0x5cda55(_0x1dd8be,_0x2d51('0x15'))};}if(_0x2d51('0xe')==_0x432d5e[_0x2d51('0x1')]){const _0x57a5f0=_0x432d5e[_0x2d51('0x8')][0x0][_0x2d51('0x18')];if(_0x57a5f0){const _0x3bab17=_0x4c01c7(this[_0x2d51('0x3')][_0x2d51('0x4')][_0x2d51('0x25')](_0x2d51('0xf')))[_0x2d51('0x1b')](_0x3a074b=>_0x3a074b[_0x2d51('0x13')]==_0x57a5f0);let _0x4b4230=_0x57a5f0,_0x4a0930='';return _0x3bab17&&(_0x4b4230=_0x3bab17['label'],_0x4a0930=_0x25b43e(_0x4b4230)['toLowerCase']()),{'type':_0x2d51('0x26'),'content':_0x5cda55(_0x1dd8be,_0x2d51('0xa'),_0x4a0930)[_0x2d51('0x10')](),'color':{'value':_0x57a5f0,'title':_0x4a0930||_0x4b4230}};}return{'type':'format','content':_0x5cda55(_0x1dd8be,'*Reset\x20font\x20color*')};}if(_0x2d51('0xd')==_0x432d5e[_0x2d51('0x1')]){const _0x28bac9=_0x432d5e['commandParams'][0x0][_0x2d51('0x18')];if(_0x28bac9){const _0x52a00a=_0x4c01c7(this[_0x2d51('0x3')][_0x2d51('0x4')][_0x2d51('0x25')]('fontBackgroundColor.colors'))[_0x2d51('0x1b')](_0x4eab64=>_0x4eab64[_0x2d51('0x13')]==_0x28bac9);let _0x396ace=_0x28bac9,_0x274e2d='';return _0x52a00a&&(_0x396ace=_0x52a00a[_0x2d51('0x27')],_0x274e2d=_0x25b43e(_0x396ace)[_0x2d51('0x16')]()),{'type':_0x2d51('0x26'),'content':_0x5cda55(_0x1dd8be,'*Set\x20font\x20background\x20color:*\x20%0',_0x274e2d)['trim'](),'color':{'value':_0x28bac9,'title':_0x274e2d||_0x396ace}};}return{'type':_0x2d51('0x26'),'content':_0x5cda55(_0x1dd8be,'*Reset\x20font\x20background\x20color*')};}}});}[_0x2d51('0x2')](_0x2d6b36){const _0x479423=this[_0x2d51('0x3')];_0x479423['plugins'][_0x2d51('0x25')](_0x2d51('0x19'))[_0x2d51('0x21')](_0x2d6b36,(_0x2fc0de,_0x223932={})=>{const _0x189711=_0x479423[_0x2d51('0x13')]['document'][_0x2d51('0x24')],_0x3a0ade=_0x223932[_0x2d51('0x18')];_0x189711['isCollapsed']?_0x2fc0de(_0x223932):_0x479423['model'][_0x2d51('0x12')](()=>{const _0xd6ee1d=Array[_0x2d51('0x17')](_0x189711[_0x2d51('0x0')]());for(const _0x5de55 of _0xd6ee1d){const _0x3e4342=_0x3a0ade?[_0x5de55]:_0x351de8(_0x2d6b36,_0x5de55,_0x479423[_0x2d51('0x13')]);for(const _0x5da167 of _0x3e4342)_0x479423['plugins'][_0x2d51('0x25')]('TrackChangesEditing')[_0x2d51('0x1e')](_0x5da167,{'commandName':_0x2d6b36,'commandParams':[{'value':_0x3a0ade}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3864=['entries','format','config','markInlineFormat','get','isFormatting','copyFormat','normalizeSizeOptions','find','isCollapsed','getAttributeProperties','getAttributes','*Set\x20format\x20to:*\x20%0','commands','toUpperCase','split','fontColor','enableCommand','fontSize','fontSize.options','TrackChangesEditing','title','afterInit','commandName','model','length','fontBackgroundColor','slice','charAt','locale','change','plugins','getItems','isBlock','getRanges','editor','backward','pasteFormat','fontColor.colors','getLastPosition','word','schema','keys','toLowerCase','getFirstPosition'];(function(_0x423c40,_0x38648b){const _0x4085c7=function(_0x5315a0){while(--_0x5315a0){_0x423c40['push'](_0x423c40['shift']());}};_0x4085c7(++_0x38648b);}(_0x3864,0x17a));const _0x4085=function(_0x423c40,_0x38648b){_0x423c40=_0x423c40-0x0;let _0x4085c7=_0x3864[_0x423c40];return _0x4085c7;};import{Plugin as _0x3332ad}from'ckeditor5/src/core';import{normalizeColorOptions as _0x243e85}from'ckeditor5/src/ui';import{first as _0x3bd231}from'ckeditor5/src/utils';import{getTranslation as _0x380f95}from'../utils/common-translations';export default class W extends _0x3332ad{[_0x4085('0x4')](){const _0xf1dfa5=this[_0x4085('0x11')],_0x49f5cf=_0xf1dfa5[_0x4085('0x6')],_0x4c4ddc=_0x49f5cf['document']['selection'],_0x224f79=_0xf1dfa5['plugins'][_0x4085('0x1f')](_0x4085('0x2')),_0x270c46=_0xf1dfa5[_0x4085('0xb')],_0x11a6d0=_0xf1dfa5[_0x4085('0x28')][_0x4085('0x1f')](_0x4085('0x21')),_0x595a24=_0xf1dfa5[_0x4085('0x28')]['get'](_0x4085('0x13'));_0x11a6d0&&_0x595a24&&(_0x224f79[_0x4085('0x2c')](_0x4085('0x13'),(_0x22979c,_0x33779d={})=>{const _0x29b4c1=_0x33779d;_0x49f5cf[_0x4085('0xc')](()=>{const _0x502287=Array['from'](_0x4c4ddc[_0x4085('0x10')]()),_0xb77452=_0x4c4ddc[_0x4085('0x24')]?[co(_0x49f5cf,_0x4c4ddc)]:_0x502287,_0x5877d4=!!_0x3bd231(function*(_0x458a80,_0x4b0e19){const _0x18cbef=_0x39a033=>!!_0x3bd231(function*(_0x430e5e,_0x4612b3){for(const [_0x379982]of _0x430e5e[_0x4085('0x26')]()){const _0x26bda4=_0x4612b3[_0x4085('0x25')](_0x379982);_0x26bda4&&_0x26bda4[_0x4085('0x20')]&&(yield _0x379982);}}(_0x39a033,_0x4b0e19));for(const _0x3152a2 of _0x458a80[_0x4085('0x10')]())for(const _0x3dc737 of _0x3152a2[_0x4085('0xe')]())!_0x4b0e19[_0x4085('0xf')](_0x3dc737)&&_0x18cbef(_0x3dc737)&&(yield _0x3dc737);for(const _0x478e6f of _0x458a80['getSelectedBlocks']())_0x18cbef(_0x478e6f)&&(yield _0x478e6f);_0x18cbef(_0x458a80)&&(yield _0x458a80);}(_0x4c4ddc,_0x49f5cf[_0x4085('0x17')]));if(_0x5877d4||0x0!==Object[_0x4085('0x18')](_0x29b4c1)[_0x4085('0x7')])for(const _0x4c40a3 of _0xb77452)_0x224f79[_0x4085('0x1e')](_0x4c40a3,{'commandName':_0x4085('0x13'),'commandParams':[_0x29b4c1]});});}),_0x224f79['_descriptionFactory']['registerDescriptionCallback'](_0x107a6d=>{const {data:_0x301094}=_0x107a6d;if(_0x301094&&_0x4085('0x13')===_0x301094[_0x4085('0x5')]){const _0x275758=[],_0x6ca04f=_0x301094['commandParams'][0x0];for(const [_0xb8df8,_0x492863]of Object[_0x4085('0x1b')](_0x6ca04f))_0x275758['push'](io(_0xf1dfa5,_0xb8df8,_0x492863));return _0x275758['length']?{'type':_0x4085('0x1c'),'content':_0x380f95(_0x270c46,_0x4085('0x27'),_0x275758['join'](',\x20'))}:{'type':_0x4085('0x1c'),'content':_0x380f95(_0x270c46,'*Remove\x20all\x20formatting*')};}}),_0xf1dfa5[_0x4085('0xd')][_0x4085('0x1f')](_0x4085('0x2'))[_0x4085('0x2c')](_0x4085('0x21')));}}function co(_0x4a2328,_0x11de42){const _0x19af54=_0x4a2328['createSelection'](_0x11de42);_0x4a2328['modifySelection'](_0x19af54,{'unit':'word','direction':_0x4085('0x12')});const _0x2a17b0=_0x19af54[_0x4085('0x1a')]();_0x4a2328['modifySelection'](_0x19af54,{'unit':_0x4085('0x16'),'direction':'forward'});const _0x21ff97=_0x19af54[_0x4085('0x15')]();return _0x4a2328['createRange'](_0x2a17b0,_0x21ff97);}function io(_0x505fd2,_0x31047e,_0x3a9caf){const _0x2c0c44=_0x505fd2[_0x4085('0xb')]['t'],_0x8976f2=_0x31047e[_0x4085('0x2a')](/(?=[A-Z])/)['join']('\x20'),_0x16c433=_0x2c0c44(_0x8976f2[_0x4085('0xa')](0x0)[_0x4085('0x29')]()+_0x8976f2[_0x4085('0x9')](0x1))[_0x4085('0x19')]();if('boolean'==typeof _0x3a9caf)return _0x16c433;if(_0x4085('0x2b')===_0x31047e||_0x4085('0x8')===_0x31047e){const _0x3eef2a=_0x243e85(_0x505fd2['config'][_0x4085('0x1f')](_0x4085('0x14')))[_0x4085('0x23')](_0x343e02=>_0x343e02[_0x4085('0x6')]==_0x3a9caf);return _0x16c433+'\x20('+(_0x3eef2a?_0x2c0c44(_0x3eef2a['label'])[_0x4085('0x19')]():_0x3a9caf)+')';}if(_0x4085('0x0')===_0x31047e&&isNaN(parseFloat(_0x3a9caf))){const _0x4ad0f8=_0x505fd2['plugins'][_0x4085('0x1f')]('FontSize')[_0x4085('0x22')](_0x505fd2[_0x4085('0x1d')][_0x4085('0x1f')](_0x4085('0x1')))[_0x4085('0x23')](_0x28e5e7=>_0x28e5e7[_0x4085('0x6')]==_0x3a9caf);return _0x16c433+'\x20('+(_0x4ad0f8?_0x2c0c44(_0x4ad0f8[_0x4085('0x3')])[_0x4085('0x19')]():_0x3a9caf)+')';}return _0x16c433+'\x20('+_0x3a9caf+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c9e=['markBlockFormat','title','TrackChangesEditing','heading.options','parent','get','change','match','from','checkChild','afterInit','_descriptionFactory','getSelectedBlocks','heading','registerElementLabel','formatBlock','isObject','editor','format','selection','commandName','config','name','value','plugins','registerDescriptionCallback','ELEMENT_HEADING','blockName','HeadingEditing','enableCommand','model','document','find','commandParams','schema','*Change\x20to:*\x20%0'];(function(_0x500e4b,_0x1c9ec0){const _0x1378cb=function(_0x3d67b7){while(--_0x3d67b7){_0x500e4b['push'](_0x500e4b['shift']());}};_0x1378cb(++_0x1c9ec0);}(_0x1c9e,0x1b4));const _0x1378=function(_0x500e4b,_0x1c9ec0){_0x500e4b=_0x500e4b-0x0;let _0x1378cb=_0x1c9e[_0x500e4b];return _0x1378cb;};import{Plugin as _0x28567d}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x6ae0ec}from'./utils';import{getTranslation as _0x30377b}from'../utils/common-translations';export default class J extends _0x28567d{[_0x1378('0x6')](){const _0x78411a=this['editor'],_0x177d01=_0x78411a['locale'],_0x1759ea=_0x78411a[_0x1378('0x11')][_0x1378('0x1')](_0x1378('0x23'));if(!_0x78411a[_0x1378('0x14')]['has'](_0x1378('0x18')))return;const _0x442e1f=_0x78411a[_0x1378('0x14')][_0x1378('0x1')](_0x1378('0x22'));_0x442e1f[_0x1378('0x19')](_0x1378('0x9'),(_0x943f7a,_0x37cbe7)=>{const _0x2fdbc9=_0x37cbe7[_0x1378('0x13')],_0xaa5909=Array[_0x1378('0x4')](this[_0x1378('0xd')][_0x1378('0x1a')][_0x1378('0x1b')][_0x1378('0xf')][_0x1378('0x8')]())['filter'](_0x2f4f2f=>function(_0x436323,_0x57a0d1,_0x36c476){return _0x36c476[_0x1378('0x5')](_0x436323[_0x1378('0x0')],_0x57a0d1)&&!_0x36c476[_0x1378('0xc')](_0x436323)&&_0x436323[_0x1378('0x12')]!=_0x57a0d1;}(_0x2f4f2f,_0x2fdbc9,this[_0x1378('0xd')][_0x1378('0x1a')][_0x1378('0x1e')]));_0x78411a[_0x1378('0x1a')][_0x1378('0x2')](()=>{for(const _0x2a8698 of _0xaa5909)_0x442e1f[_0x1378('0x20')](_0x2a8698,{'commandName':_0x1378('0x9'),'commandParams':[_0x37cbe7],'formatGroupId':_0x1378('0x17')},_0x6ae0ec(_0x2a8698));});});for(const _0x2a07df of _0x1759ea)'paragraph'!=_0x2a07df[_0x1378('0x1a')]&&_0x442e1f['_descriptionFactory'][_0x1378('0xa')](_0x2a07df[_0x1378('0x1a')],_0x4b811f=>{const _0x5600c1=nn(_0x2a07df[_0x1378('0x1a')]);return null!==_0x5600c1?_0x466807(_0x4b811f,_0x5600c1):_0x563f6d(_0x4b811f,_0x2a07df[_0x1378('0x21')]);});function _0x466807(_0x11cd12,_0x1dff42){return _0x30377b(_0x177d01,_0x1378('0x16'),[_0x11cd12,_0x1dff42]);}function _0x563f6d(_0x4f1fb2,_0x433a83){return _0x30377b(_0x177d01,'ELEMENT_HEADING_CUSTOM',[_0x4f1fb2,_0x433a83]);}_0x442e1f[_0x1378('0x7')][_0x1378('0x15')](_0x3b44d1=>{const {type:_0x265591,data:_0x5891b8}=_0x3b44d1;if(_0x1378('0xb')==_0x265591&&_0x5891b8&&_0x1378('0x9')==_0x5891b8[_0x1378('0x10')]){const _0x4165c8=_0x5891b8[_0x1378('0x1d')][0x0]['value'],_0x27aa19=nn(_0x4165c8);if(null!==_0x27aa19)return{'type':_0x1378('0xe'),'content':_0x30377b(_0x177d01,_0x1378('0x1f'),_0x466807(0x1,_0x27aa19))};const _0x4f2d66=_0x1759ea[_0x1378('0x1c')](_0x10c08b=>_0x10c08b[_0x1378('0x1a')]===_0x4165c8)[_0x1378('0x21')];return{'type':'format','content':_0x30377b(_0x177d01,_0x1378('0x1f'),_0x563f6d(0x1,_0x4f2d66))};}});}}function nn(_0x367275){const _0x890b19=_0x367275[_0x1378('0x3')](/^heading(\d+)$/);return _0x890b19?_0x890b19[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ebe=['TrackChangesEditing','item','change','value','registerDescriptionCallback','format','enableCommand','has','find','*Set\x20highlight:*\x20%0','getLastMatchingPosition','_descriptionFactory','hasAttribute','getAttribute','editor','createRange','highlight','config','get','title','FORMAT_HIGHLIGHT','plugins','model','highlight.options','commandName','push','markInlineFormat','selection','getFirstPosition','getRanges','afterInit','document','locale'];(function(_0x1199bc,_0x2ebe5d){const _0x5c3c09=function(_0x1d868a){while(--_0x1d868a){_0x1199bc['push'](_0x1199bc['shift']());}};_0x5c3c09(++_0x2ebe5d);}(_0x2ebe,0xad));const _0x5c3c=function(_0x1199bc,_0x2ebe5d){_0x1199bc=_0x1199bc-0x0;let _0x5c3c09=_0x2ebe[_0x1199bc];return _0x5c3c09;};import{Plugin as _0x1d6b24}from'ckeditor5/src/core';import{getTranslation as _0x4044dd}from'../utils/common-translations';import{getRangesWithAttribute as _0x51d17f}from'./utils';export default class K extends _0x1d6b24{[_0x5c3c('0x16')](){const _0x4c19a9=this[_0x5c3c('0x6')];if(!_0x4c19a9[_0x5c3c('0xd')][_0x5c3c('0x20')]('HighlightEditing'))return;const _0x19de81=_0x4c19a9['plugins'][_0x5c3c('0xa')](_0x5c3c('0x19'));_0x19de81[_0x5c3c('0x1f')](_0x5c3c('0x8'),(_0x11c022,_0x4e7b95={})=>{const _0x425f35=_0x4c19a9[_0x5c3c('0xe')][_0x5c3c('0x17')][_0x5c3c('0x13')],_0x5e8249=_0x425f35[_0x5c3c('0x5')](_0x5c3c('0x8'));let _0x68e918=_0x4e7b95[_0x5c3c('0x1c')],_0x2b3b98=[];if(_0x425f35['isCollapsed']){const _0x565c43=_0x425f35[_0x5c3c('0x14')]();if(!_0x425f35[_0x5c3c('0x4')](_0x5c3c('0x8')))return void _0x11c022(_0x4e7b95);{const _0x52a36d=_0x1ed505=>_0x1ed505[_0x5c3c('0x1a')][_0x5c3c('0x5')]('highlight')===_0x5e8249,_0x2f2b80=_0x565c43[_0x5c3c('0x2')](_0x52a36d,{'direction':'backward'}),_0x417f92=_0x565c43[_0x5c3c('0x2')](_0x52a36d);_0x2b3b98=[_0x4c19a9[_0x5c3c('0xe')][_0x5c3c('0x7')](_0x2f2b80,_0x417f92)],_0x68e918==_0x5e8249&&(_0x68e918=null);}}else for(const _0x2a3ee4 of _0x425f35[_0x5c3c('0x15')]())_0x68e918?_0x2b3b98[_0x5c3c('0x11')](_0x2a3ee4):_0x2b3b98['push'](..._0x51d17f(_0x5c3c('0x8'),_0x2a3ee4,_0x4c19a9[_0x5c3c('0xe')]));_0x4c19a9[_0x5c3c('0xe')][_0x5c3c('0x1b')](()=>{for(const _0x10f6bf of _0x2b3b98)_0x19de81[_0x5c3c('0x12')](_0x10f6bf,{'commandName':'highlight','commandParams':[{'value':_0x68e918}]});});});const _0x1b5e82=_0x4c19a9[_0x5c3c('0x18')];_0x19de81[_0x5c3c('0x3')][_0x5c3c('0x1d')](_0x4505e4=>{const {type:_0x5d34a9,data:_0x33cf5d}=_0x4505e4;if('formatInline'==_0x5d34a9&&_0x33cf5d&&_0x5c3c('0x8')==_0x33cf5d[_0x5c3c('0x10')]){const _0x204efa=_0x1b5e82['t'],_0x2ebec3=_0x33cf5d['commandParams'][0x0][_0x5c3c('0x1c')];if(_0x2ebec3){const _0x32cb03=_0x4c19a9[_0x5c3c('0x9')]['get'](_0x5c3c('0xf'))[_0x5c3c('0x0')](_0x32170f=>_0x32170f['model']==_0x2ebec3),_0x5d2479=_0x204efa(_0x32cb03['title'])['toLowerCase']();return{'type':_0x5c3c('0x1e'),'content':_0x4044dd(_0x1b5e82,_0x5c3c('0x1'),_0x5d2479),'color':{'value':_0x32cb03['color'],'title':_0x32cb03[_0x5c3c('0xb')]}};}return{'type':_0x5c3c('0x1e'),'content':_0x4044dd(_0x1b5e82,'*Remove\x20highlight*',_0x4044dd(_0x1b5e82,_0x5c3c('0xc')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3736=['ELEMENT_HORIZONTAL_LINE','TrackChangesEditing','dataDowncast','createEmptyElement','get','registerElementLabel','high','for','createPositionAt','plugins','div','createContainerElement','conversion','insert','_descriptionFactory','editor','afterInit','HorizontalLineEditing','enableCommand','ck-horizontal-line','showSuggestionHighlights'];(function(_0x4042a4,_0x373655){const _0x7a26d5=function(_0x74cdd9){while(--_0x74cdd9){_0x4042a4['push'](_0x4042a4['shift']());}};_0x7a26d5(++_0x373655);}(_0x3736,0x172));const _0x7a26=function(_0x4042a4,_0x373655){_0x4042a4=_0x4042a4-0x0;let _0x7a26d5=_0x3736[_0x4042a4];return _0x7a26d5;};import{Plugin as _0x36b6d4}from'ckeditor5/src/core';import{getTranslation as _0x4efd91}from'../utils/common-translations';export default class Q extends _0x36b6d4{[_0x7a26('0x3')](){const _0x5a99bd=this[_0x7a26('0x2')];if(!_0x5a99bd[_0x7a26('0x11')]['has'](_0x7a26('0x4')))return;_0x5a99bd[_0x7a26('0x11')][_0x7a26('0xc')](_0x7a26('0x9'))[_0x7a26('0x5')]('horizontalLine');const _0x105414=_0x5a99bd[_0x7a26('0x11')][_0x7a26('0xc')](_0x7a26('0x9')),_0xed253f=_0x5a99bd['locale'];_0x105414[_0x7a26('0x1')][_0x7a26('0xd')]('horizontalLine',_0x197439=>_0x4efd91(_0xed253f,_0x7a26('0x8'),_0x197439)),_0x5a99bd[_0x7a26('0x14')][_0x7a26('0xf')](_0x7a26('0xa'))['elementToStructure']({'model':'horizontalLine','view':(_0x1a7b27,{writer:_0x22ee8f,options:_0x2cb154})=>{if(!_0x2cb154[_0x7a26('0x7')])return null;const _0x5c687a=_0x22ee8f[_0x7a26('0x13')](_0x7a26('0x12')),_0x1d4b52=_0x22ee8f[_0x7a26('0xb')]('hr');return _0x22ee8f['addClass'](_0x7a26('0x6'),_0x5c687a),_0x22ee8f[_0x7a26('0x0')](_0x22ee8f[_0x7a26('0x10')](_0x5c687a,0x0),_0x1d4b52),_0x5c687a;},'converterPriority':_0x7a26('0xe')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d5c=['ELEMENT_HTML_EMBED','getCustomProperty','getSelectedElement','getAttribute','registerDescriptionCallback','locale','element','get','format','htmlEmbed','has','commandName','_descriptionFactory','model','enableCommand','TrackChangesEditing','rawHtmlApi','editing','*Change\x20%0\x20content*','selection','document','rawHtml','plugins','editor','view'];(function(_0x3439c9,_0x4d5c7c){const _0x1ba8f7=function(_0x1b8e69){while(--_0x1b8e69){_0x3439c9['push'](_0x3439c9['shift']());}};_0x1ba8f7(++_0x4d5c7c);}(_0x4d5c,0x13f));const _0x1ba8=function(_0x3439c9,_0x4d5c7c){_0x3439c9=_0x3439c9-0x0;let _0x1ba8f7=_0x4d5c[_0x3439c9];return _0x1ba8f7;};import{Plugin as _0x151eb4}from'ckeditor5/src/core';import{getTranslation as _0x2d05f0}from'../utils/common-translations';export default class V extends _0x151eb4{['afterInit'](){const _0xdff019=this[_0x1ba8('0x4')];if(!_0xdff019['plugins'][_0x1ba8('0x10')]('HtmlEmbed'))return;const _0x511118=_0xdff019['plugins'][_0x1ba8('0xd')]('TrackChangesEditing'),_0x191561=_0xdff019[_0x1ba8('0xb')],_0x587992=_0xdff019[_0x1ba8('0x17')][_0x1ba8('0x5')]['document'][_0x1ba8('0x0')];_0x511118[_0x1ba8('0x12')]['registerElementLabel'](_0x1ba8('0x2'),_0xd35cd4=>_0x2d05f0(_0x191561,_0x1ba8('0x6'),_0xd35cd4)),_0xdff019[_0x1ba8('0x3')][_0x1ba8('0xd')](_0x1ba8('0x15'))[_0x1ba8('0x14')]('htmlEmbed',(_0x9d8023,_0x557dca)=>{const _0x4b44cc=_0xdff019[_0x1ba8('0x13')],_0xe3b985=_0x4b44cc[_0x1ba8('0x1')][_0x1ba8('0x0')];_0x4b44cc['change'](()=>{const _0x3730fc=function(_0x38c8e7){const _0x36887a=_0x38c8e7[_0x1ba8('0x8')]();if(_0x36887a&&_0x36887a['is'](_0x1ba8('0xc'),_0x1ba8('0x2')))return _0x38c8e7['getSelectedElement']();return null;}(_0xe3b985);if(!_0x3730fc)return void _0x9d8023(null);const _0xa9dba2=_0x3730fc[_0x1ba8('0x9')]('value')||'';if(void 0x0===_0x557dca)return;if(_0x557dca===_0xa9dba2)return;_0x511118['markBlockFormat'](_0x3730fc,{'commandName':_0x1ba8('0xf'),'commandParams':[_0x557dca]}),_0x587992[_0x1ba8('0x8')]()[_0x1ba8('0x7')](_0x1ba8('0x16'))['cancel']();});}),_0x511118[_0x1ba8('0x12')][_0x1ba8('0xa')](_0x116b32=>{const {data:_0x4fb682}=_0x116b32;if(_0x4fb682&&_0x1ba8('0xf')==_0x4fb682[_0x1ba8('0x11')]){const _0x2c6ee4=_0x2d05f0(_0x191561,_0x1ba8('0x6'));return{'type':_0x1ba8('0xe'),'content':_0x2d05f0(_0x191561,_0x1ba8('0x18'),_0x2c6ee4)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xace6=['start','markInsertion','model','fromPosition','ELEMENT_IMAGE','enableCommand','find','createRange','imageCaption','discardSuggestion','commandName','imageStyle','next','convertBlockImageToInline','isCollapsed','convertInlineImageToBlock','isBefore','getSuggestion','imageInline','schema','uploadImage','get','ImageUploadEditing','removeObject','author','getSuggestions','markBlockFormat','join','resizeImage','_descriptionFactory','*Reset\x20image\x20width*','chain','_suggestionFactory','registerElementLabel','findIndex','imageStylePostApply','locale','document','getClosestSelectedImageElement','_findSuggestions','FORMAT_SIDE_IMAGE','formatBlock','imageTypeBlock','nodeBefore','isOwn','editor','discard','ImageBlockEditing','*Remove\x20image\x20text\x20alternative*','differ','getChangedMarkers','newRange','createRangeOn','getCaptionFromImageModelElement','ImageResize','normalizedStyles','getSuggestionCallback','change','backward','accept','getAttribute','deletion','ImageCaptionUtils','isEqual','format','subType','insertion','*Set\x20image\x20width:*\x20%0','commandReversedParams','refresh','length','formatInline','from','element','imageTextAlternative','markInlineFormat','caption','isBlockImage','getFirstRange','commands','suggestion','afterInit','ImageUtils','getNearestSelectionRange','ELEMENT_CAPTION','hasSuggestion','Block\x20image\x20to\x20inline\x20image','toNext','commandParams','isInContent','side','addObject','type','width','detach','value','forceDefaultExecution','filter','end','has','ImageInlineEditing','isIntersecting','head','registerPostFixer','alt','newValue','getContainedElement','Inline\x20image\x20to\x20block\x20image','title','*Format:*\x20%0','ImageStyleEditing','imageStylePreApply','toLowerCase','imageTypeInline','Users','ImageEditing','registerCustomCallback','TrackChangesEditing','markDeletion','selection','plugins','registerDescriptionCallback'];(function(_0x1585b6,_0xace606){const _0x1147ea=function(_0x1381ee){while(--_0x1381ee){_0x1585b6['push'](_0x1585b6['shift']());}};_0x1147ea(++_0xace606);}(_0xace6,0x69));const _0x1147=function(_0x1585b6,_0xace606){_0x1585b6=_0x1585b6-0x0;let _0x1147ea=_0xace6[_0x1585b6];return _0x1147ea;};import{Plugin as _0xc1ce7a}from'ckeditor5/src/core';import{LivePosition as _0xe351a7}from'ckeditor5/src/engine';import{uid as _0x390ff3}from'ckeditor5/src/utils';import{getTranslation as _0x4a2fb9}from'../utils/common-translations';export default class X extends _0xc1ce7a{[_0x1147('0x62')](){const _0x1e0100=this[_0x1147('0x3e')];if(!_0x1e0100['plugins'][_0x1147('0x74')](_0x1147('0xa')))return;const _0xbc0156=_0x1e0100['plugins']['get'](_0x1147('0xc')),_0x2d914a=_0x1e0100[_0x1147('0xf')]['get'](_0x1147('0x63')),_0x107aa1={},_0x50217d=_0x1e0100[_0x1147('0x35')];if(_0xbc0156['enableCommand']('insertImage'),_0xbc0156[_0x1147('0x2e')][_0x1147('0x32')]('imageBlock',_0x2e5c56=>_0x4a2fb9(_0x50217d,_0x1147('0x15'),_0x2e5c56)),_0xbc0156[_0x1147('0x2e')][_0x1147('0x32')](_0x1147('0x23'),_0xfd6be7=>_0x4a2fb9(_0x50217d,'ELEMENT_INLINE_IMAGE',_0xfd6be7)),_0xbc0156[_0x1147('0x2e')]['registerElementLabel'](_0x1147('0x5d'),()=>_0x4a2fb9(_0x50217d,_0x1147('0x65'))),_0x1e0100[_0x1147('0xf')][_0x1147('0x74')](_0x1147('0x27'))&&_0xbc0156[_0x1147('0x16')](_0x1147('0x25')),_0x1e0100['plugins'][_0x1147('0x74')](_0x1147('0x40'))&&_0x1e0100[_0x1147('0xf')]['has'](_0x1147('0x75'))&&(_0xbc0156[_0x1147('0x16')](_0x1147('0x8'),(_0x37cf26,_0xd11fc0)=>{const _0x2e0ad6=_0x2d914a[_0x1147('0x37')](_0x1e0100[_0x1147('0x13')][_0x1147('0x36')][_0x1147('0xe')]);_0x1e0100['model'][_0x1147('0x4a')](()=>{_0xbc0156[_0x1147('0x2b')](_0x2e0ad6,{'commandName':_0x1147('0x8'),'commandParams':[_0xd11fc0]},[],'convertBlockImageToInline');});}),_0xbc0156[_0x1147('0x16')](_0x1147('0x3b'),(_0x5074ec,_0x399e5a)=>{_0x1e0100['model'][_0x1147('0x4a')](_0x13283f=>{let _0x370313=_0x2d914a[_0x1147('0x37')](_0x1e0100['model'][_0x1147('0x36')][_0x1147('0xe')]),_0x4ec7d7=_0x13283f[_0x1147('0x45')](_0x370313);const _0x5d3691=_0xe351a7[_0x1147('0x14')](_0x4ec7d7[_0x1147('0x11')],'toPrevious'),_0x3bd096=_0xe351a7['fromPosition'](_0x4ec7d7[_0x1147('0x73')],_0x1147('0x68'));_0xbc0156[_0x1147('0x71')](()=>_0x5074ec(_0x399e5a)),_0x370313=_0x2d914a[_0x1147('0x37')](_0x1e0100['model'][_0x1147('0x36')][_0x1147('0xe')]),_0x4ec7d7=_0x13283f[_0x1147('0x45')](_0x370313);const _0x46cc76=_0x13283f['createRange'](_0x5d3691,_0x3bd096);_0x5d3691[_0x1147('0x6f')](),_0x3bd096['detach'](),_0xbc0156[_0x1147('0x2b')](_0x370313,{'commandName':'imageTypeInline','commandParams':[]},[],'convertInlineImageToBlock'),_0x46cc76['start'][_0x1147('0x21')](_0x4ec7d7[_0x1147('0x11')])&&_0xbc0156[_0x1147('0x12')](_0x13283f[_0x1147('0x18')](_0x46cc76[_0x1147('0x11')],_0x4ec7d7[_0x1147('0x11')]),_0x1147('0x20')),_0x4ec7d7[_0x1147('0x73')][_0x1147('0x21')](_0x46cc76['end'])&&_0xbc0156[_0x1147('0x12')](_0x13283f[_0x1147('0x18')](_0x4ec7d7[_0x1147('0x73')],_0x46cc76[_0x1147('0x73')]),'convertInlineImageToBlock');});}),_0xbc0156['_suggestionFactory'][_0x1147('0xb')](_0x1147('0x3a'),_0x1147('0x20'),'join',()=>!0x1),_0xbc0156['_suggestionFactory'][_0x1147('0xb')](_0x1147('0x3a'),'convertInlineImageToBlock',_0x1147('0x4c'),()=>!0x1),_0xbc0156[_0x1147('0x31')]['registerCustomCallback'](_0x1147('0x3a'),_0x1147('0x20'),_0x1147('0x3f'),_0xbc0156[_0x1147('0x31')][_0x1147('0x49')](_0x1147('0x3a'),'',_0x1147('0x4c'))),_0xbc0156[_0x1147('0x31')][_0x1147('0xb')](_0x1147('0x53'),'convertInlineImageToBlock',_0x1147('0x2c'),()=>!0x1),_0xbc0156[_0x1147('0x31')][_0x1147('0xb')](_0x1147('0x53'),_0x1147('0x20'),_0x1147('0x3f'),([_0x2011fd])=>{const _0x5da1b6=_0xbc0156[_0x1147('0x31')][_0x1147('0x49')](_0x1147('0x53'),'',_0x1147('0x3f'));let _0x558b64=_0x2011fd[_0x1147('0x11')],_0x19e91c=_0x2011fd[_0x1147('0x73')];const _0x3fd01e=_0x1e0100[_0x1147('0x13')][_0x1147('0x24')][_0x1147('0x64')](_0x558b64,_0x1147('0x4b')),_0x268596=_0x1e0100[_0x1147('0x13')][_0x1147('0x24')]['getNearestSelectionRange'](_0x19e91c,'forward');_0x3fd01e['isCollapsed']&&(_0x558b64=_0x3fd01e['start']),_0x268596[_0x1147('0x1f')]&&(_0x19e91c=_0x268596[_0x1147('0x73')]),_0x5da1b6([_0x1e0100['model'][_0x1147('0x18')](_0x558b64,_0x19e91c)]);}),_0xbc0156[_0x1147('0x31')]['registerCustomCallback']('formatBlock','convertInlineImageToBlock',_0x1147('0x30'),_0x4456c8),_0xbc0156['_suggestionFactory'][_0x1147('0xb')]('insertion','convertInlineImageToBlock',_0x1147('0x30'),_0x4456c8)),_0x1e0100[_0x1147('0xf')][_0x1147('0x74')]('ImageCaptionEditing')&&(_0xbc0156[_0x1147('0x16')]('toggleImageCaption',(_0x3b2dcc,_0x38c05a)=>{const _0x5047e3=_0x1e0100[_0x1147('0xf')][_0x1147('0x26')](_0x1147('0x4f'));let _0x1988f0=_0x2d914a[_0x1147('0x37')](_0x1e0100[_0x1147('0x13')]['document'][_0x1147('0xe')]),_0x359da4=_0x5047e3[_0x1147('0x46')](_0x1988f0);_0x1e0100[_0x1147('0x13')][_0x1147('0x4a')](()=>{if(_0x359da4)return void _0xbc0156[_0x1147('0xd')](_0x1e0100[_0x1147('0x13')][_0x1147('0x45')](_0x359da4));const _0x244b08=_0x2d914a[_0x1147('0x5e')](_0x1988f0);_0x3b2dcc(_0x38c05a),_0x1988f0=_0x2d914a[_0x1147('0x37')](_0x1e0100[_0x1147('0x13')][_0x1147('0x36')]['selection']),_0x359da4=_0x5047e3[_0x1147('0x46')](_0x1988f0),_0xbc0156['markInsertion'](_0x1e0100[_0x1147('0x13')]['createRangeOn'](_0x359da4),_0x244b08?null:_0x1147('0x19'));});}),_0xbc0156[_0x1147('0x31')][_0x1147('0xb')](_0x1147('0x53'),_0x1147('0x19'),_0x1147('0x30'),_0x4456c8)),_0x1e0100[_0x1147('0xf')][_0x1147('0x74')]('ImageStyleEditing')){_0xbc0156[_0x1147('0x16')](_0x1147('0x1c'),(_0xc3a688,_0x4ee1d5)=>{const _0x3ea00b=_0x1e0100['plugins'][_0x1147('0x26')](_0x1147('0x9'))['me'],_0x2ae55b=_0x1e0100['commands'][_0x1147('0x26')](_0x1147('0x1c'));let _0x133cda=_0x2d914a['getClosestSelectedImageElement'](_0x1e0100[_0x1147('0x13')][_0x1147('0x36')][_0x1147('0xe')]),_0x139637=_0x1e0100[_0x1147('0x13')][_0x1147('0x45')](_0x133cda),_0x6666f0=_0x2ae55b['value'];if(_0x6666f0==_0x4ee1d5[_0x1147('0x70')])return;const _0x56fc9b={'commandName':'imageStyle','commandParams':[_0x4ee1d5],'formatGroupId':_0x390ff3()};_0x1e0100['model']['change'](()=>{if(_0xbc0156[_0x1147('0x2a')]()['filter'](_0x530395=>_0x530395['isInContent']&&_0x3ea00b==_0x530395[_0x1147('0x29')]&&(_0x1147('0x3a')==_0x530395[_0x1147('0x6d')]||_0x1147('0x58')==_0x530395[_0x1147('0x6d')])&&(_0x1147('0x6')==_0x530395[_0x1147('0x52')]||_0x1147('0x34')==_0x530395[_0x1147('0x52')])&&_0x530395['getFirstRange']()[_0x1147('0x50')](_0x139637))['forEach'](_0x22992d=>_0xbc0156[_0x1147('0x1a')](_0x22992d[_0x1147('0x77')])),_0x133cda=_0x2d914a[_0x1147('0x37')](_0x1e0100[_0x1147('0x13')][_0x1147('0x36')][_0x1147('0xe')]),_0x139637=_0x1e0100['model']['createRangeOn'](_0x133cda),_0x2ae55b[_0x1147('0x56')](),_0x1e0100['commands'][_0x1147('0x26')](_0x1147('0x8'))[_0x1147('0x56')](),_0x1e0100[_0x1147('0x60')][_0x1147('0x26')]('imageTypeBlock')['refresh'](),_0x6666f0=_0x2ae55b[_0x1147('0x70')],_0x6666f0!=_0x4ee1d5[_0x1147('0x70')])return _0x2d914a['isInlineImage'](_0x133cda)&&_0x2ae55b['shouldConvertImageType'](_0x4ee1d5[_0x1147('0x70')],_0x133cda)?(_0xc3a688(_0x4ee1d5),_0x133cda=_0x2d914a[_0x1147('0x37')](_0x1e0100['model'][_0x1147('0x36')][_0x1147('0xe')]),void _0xbc0156[_0x1147('0x2b')](_0x133cda,{..._0x56fc9b,'commandReversedParams':[{'value':_0x6666f0||null}]},[],_0x1147('0x6'))):void(_0x2d914a['isBlockImage'](_0x133cda)?_0xbc0156[_0x1147('0x2b')](_0x133cda,_0x56fc9b,[],'imageStylePostApply'):_0xbc0156[_0x1147('0x5c')](_0x139637,_0x56fc9b,_0x1147('0x34')));});});for(const _0x3bdb4a of _0x1e0100[_0x1147('0xf')][_0x1147('0x26')](_0x1147('0x5'))[_0x1147('0x48')])_0x107aa1[_0x3bdb4a['name']]=_0x3bdb4a[_0x1147('0x3')][_0x1147('0x7')]();_0xbc0156['_suggestionFactory'][_0x1147('0xb')]('formatBlock',_0x1147('0x6'),_0x1147('0x2c'),()=>!0x1),_0xbc0156[_0x1147('0x31')][_0x1147('0xb')]('formatBlock',_0x1147('0x34'),_0x1147('0x2c'),()=>!0x1),_0xbc0156[_0x1147('0x31')][_0x1147('0xb')](_0x1147('0x58'),'imageStylePostApply',_0x1147('0x2c'),()=>!0x1),_0xbc0156['_suggestionFactory'][_0x1147('0xb')]('formatBlock',_0x1147('0x6'),'accept',()=>!0x1),_0xbc0156[_0x1147('0x31')][_0x1147('0xb')](_0x1147('0x3a'),_0x1147('0x6'),_0x1147('0x3f'),(_0x12d755,_0x5d75bd)=>{_0xbc0156[_0x1147('0x31')][_0x1147('0x49')]('formatBlock','',_0x1147('0x4c'))(_0x12d755,{'commandName':_0x5d75bd[_0x1147('0x1b')],'commandParams':_0x5d75bd[_0x1147('0x55')]});}),_0xbc0156['_suggestionFactory'][_0x1147('0xb')](_0x1147('0x3a'),'imageStylePreApply',_0x1147('0x30'),_0x4456c8);}const _0x28ddc6=[{'type':_0x1147('0x3a'),'subType':_0x1147('0x6')},{'type':_0x1147('0x53'),'subType':'imageCaption'},{'type':_0x1147('0x3a'),'subType':_0x1147('0x20')},{'type':_0x1147('0x53'),'subType':_0x1147('0x20')}];function _0x2b2913(_0x45b480,_0x2532db){const _0x39350a=_0x28ddc6[_0x1147('0x33')](({type:_0x2a848b,subType:_0x9a3aae})=>_0x45b480['type']==_0x2a848b&&_0x45b480['subType']==_0x9a3aae),_0x48a3d1=_0x28ddc6[_0x1147('0x33')](({type:_0x581116,subType:_0x952bbb})=>_0x2532db[_0x1147('0x6d')]==_0x581116&&_0x2532db[_0x1147('0x52')]==_0x952bbb);if(_0x39350a<0x0||_0x48a3d1<0x0)return!0x1;const _0x18d0d0=_0x45b480['getFirstRange'](),_0x1ae38a=_0x2532db['getFirstRange']();if((0x0==_0x39350a||0x1==_0x39350a)&&0x2==_0x48a3d1&&_0x18d0d0[_0x1147('0x76')](_0x1ae38a))return!0x0;if(0x2==_0x39350a&&0x3==_0x48a3d1){const _0x212684=_0xbc0156[_0x1147('0x38')](_0x18d0d0,_0x1147('0x53'))[_0x1147('0x72')](({suggestion:_0x2fa69e,meta:_0x4ee46e})=>_0x4ee46e[_0x1147('0x3d')]&&_0x1147('0x20')==_0x2fa69e[_0x1147('0x52')]);if(_0x212684[_0x1147('0x57')]>0x1&&_0x1ae38a[_0x1147('0x73')][_0x1147('0x50')](_0x18d0d0[_0x1147('0x11')]))return!0x0;if(0x1==_0x212684[_0x1147('0x57')]&&(_0x18d0d0['start'][_0x1147('0x50')](_0x1ae38a[_0x1147('0x73')])||_0x18d0d0[_0x1147('0x73')][_0x1147('0x50')](_0x1ae38a[_0x1147('0x11')])))return!0x0;}if(0x3==_0x39350a&&0x3==_0x48a3d1&&_0x18d0d0[_0x1147('0x11')]['isBefore'](_0x1ae38a[_0x1147('0x11')])){const _0x246d3d=_0x18d0d0['end']['nodeAfter'],_0x88b50d=_0x1ae38a['start'][_0x1147('0x3c')];return _0x2d914a[_0x1147('0x5e')](_0x246d3d)&&_0x246d3d===_0x88b50d;}return!0x1;}function _0x4456c8(_0x26fbd5,_0x3a10b6){return _0x2b2913(_0x26fbd5,_0x3a10b6)?[_0x26fbd5,_0x3a10b6]:_0x2b2913(_0x3a10b6,_0x26fbd5)?[_0x3a10b6,_0x26fbd5]:null;}_0x1e0100['model'][_0x1147('0x36')][_0x1147('0x78')](()=>{let _0x435cfa=!0x1;const _0x38c1d5=Array[_0x1147('0x59')](_0x1e0100[_0x1147('0x13')][_0x1147('0x36')][_0x1147('0x42')][_0x1147('0x43')]());for(const {name:_0x1086d1,data:_0x48aabe}of _0x38c1d5){const {group:_0x170381,type:_0x15c429,subType:_0x5e9bb0,id:_0x1f3044}=_0xbc0156['_splitMarkerName'](_0x1086d1);if(_0x1147('0x61')==_0x170381&&_0xbc0156[_0x1147('0x66')](_0x1f3044)){if(_0x1147('0x3a')==_0x15c429&&(_0x1147('0x6')==_0x5e9bb0||_0x1147('0x34')==_0x5e9bb0)){const _0x1d9dfa=_0xbc0156[_0x1147('0x22')](_0x1f3044);if(_0x48aabe[_0x1147('0x44')]){const _0x46f099=_0x1d9dfa[_0x1147('0x5f')]()[_0x1147('0x1')]();if(_0x2d914a[_0x1147('0x5e')](_0x46f099))continue;_0xbc0156[_0x1147('0x1a')](_0x1d9dfa),_0x435cfa=!0x0;}}if(_0x1147('0x53')==_0x15c429&&_0x1147('0x19')==_0x5e9bb0&&!_0x48aabe[_0x1147('0x44')]){const _0x1210aa=_0xbc0156[_0x1147('0x22')](_0x1f3044);_0x1210aa[_0x1147('0x1d')]&&_0x1210aa['next'][_0x1147('0x6a')]&&(_0xbc0156['discardSuggestion'](_0x1210aa['next']),_0x435cfa=!0x0);}}}return _0x435cfa;}),_0x1e0100[_0x1147('0xf')]['has'](_0x1147('0x47'))&&_0xbc0156[_0x1147('0x16')](_0x1147('0x2d'),(_0x1056bd,_0x4a0a8e)=>{const _0x3c5b6b=_0x2d914a[_0x1147('0x37')](_0x1e0100[_0x1147('0x13')]['document']['selection']);_0x3c5b6b[_0x1147('0x4d')](_0x1147('0x6e'))!=_0x4a0a8e[_0x1147('0x6e')]&&_0x1e0100['model'][_0x1147('0x4a')](()=>{_0xbc0156[_0x1147('0x2b')](_0x3c5b6b,{'commandName':'resizeImage','commandParams':[_0x4a0a8e]});});}),_0x1e0100[_0x1147('0xf')][_0x1147('0x74')]('ImageTextAlternativeEditing')&&_0xbc0156[_0x1147('0x16')](_0x1147('0x5b'),(_0x1e89ae,_0x483e86)=>{const _0x2d7104=_0x2d914a[_0x1147('0x37')](_0x1e0100[_0x1147('0x13')][_0x1147('0x36')][_0x1147('0xe')]);(_0x2d7104['hasAttribute'](_0x1147('0x79'))?_0x2d7104[_0x1147('0x4d')](_0x1147('0x79')):'')!=_0x483e86[_0x1147('0x0')]&&_0x1e0100[_0x1147('0x13')][_0x1147('0x4a')](()=>{_0xbc0156[_0x1147('0x2b')](_0x2d7104,{'commandName':_0x1147('0x5b'),'commandParams':[_0x483e86]});});}),_0xbc0156[_0x1147('0x2e')][_0x1147('0x10')](_0x19d67a=>{if(!!_0x28ddc6[_0x1147('0x17')](({type:_0x271aab,subType:_0x29d697})=>_0x19d67a['type']==_0x271aab&&_0x19d67a[_0x1147('0x52')]==_0x29d697))return _0x19d67a['previous']?{}:void 0x0;}),_0xbc0156[_0x1147('0x2e')][_0x1147('0x10')](_0x5db209=>{if(_0x1147('0x53')==_0x5db209[_0x1147('0x6d')]||_0x1147('0x4e')==_0x5db209[_0x1147('0x6d')]){const _0x43fe3d=_0x5db209[_0x1147('0x1')]();if(_0x43fe3d&&_0x43fe3d['is'](_0x1147('0x5a'),_0x1147('0x5d')))return{'type':_0x1147('0x53')==_0x5db209[_0x1147('0x6d')]?_0x1147('0x6c'):_0x1147('0x28'),'element':_0x43fe3d,'quantity':0x1};}}),_0xbc0156['_descriptionFactory'][_0x1147('0x10')](_0x11c1c2=>_0x1147('0x3a')==_0x11c1c2[_0x1147('0x6d')]&&_0x1147('0x20')==_0x11c1c2[_0x1147('0x52')]?{'type':_0x1147('0x51'),'content':_0x1147('0x2')}:_0x1147('0x3a')==_0x11c1c2['type']&&_0x1147('0x1e')==_0x11c1c2[_0x1147('0x52')]?{'type':_0x1147('0x51'),'content':_0x1147('0x67')}:void 0x0),_0xbc0156['_descriptionFactory'][_0x1147('0x10')](_0x336b90=>{const {data:_0x1f8e1e}=_0x336b90;if(_0x1f8e1e){if('imageStyle'==_0x1f8e1e[_0x1147('0x1b')]){const _0x5abe2e=_0x1f8e1e['commandParams'][0x0][_0x1147('0x70')];return _0x2454f0(_0x1147('0x6b')===_0x5abe2e?_0x4a2fb9(_0x50217d,_0x1147('0x39')):_0x107aa1[_0x5abe2e]||_0x5abe2e);}if('imageTextAlternative'==_0x1f8e1e[_0x1147('0x1b')]){const _0x4c050e=_0x1f8e1e[_0x1147('0x69')][0x0][_0x1147('0x0')];return _0x4c050e?{'type':_0x1147('0x51'),'content':_0x4a2fb9(_0x50217d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c050e+'\x22')}:{'type':_0x1147('0x51'),'content':_0x4a2fb9(_0x50217d,_0x1147('0x41'))};}if(_0x1147('0x2d')==_0x1f8e1e['commandName']){const _0x1b117c=_0x1f8e1e[_0x1147('0x69')][0x0][_0x1147('0x6e')];return _0x1b117c?{'type':_0x1147('0x51'),'content':_0x4a2fb9(_0x50217d,_0x1147('0x54'),_0x1b117c)}:{'type':_0x1147('0x51'),'content':_0x4a2fb9(_0x50217d,_0x1147('0x2f'))};}}function _0x2454f0(_0x546c7a){return{'type':_0x1147('0x51'),'content':_0x4a2fb9(_0x50217d,_0x1147('0x4'),_0x546c7a)};}});}}
|
|
23
|
+
const _0x27a3=['locale','_suggestionFactory','plugins','alt','markInsertion','getChangedMarkers','newValue','registerCustomCallback','*Set\x20image\x20width:*\x20%0','discardSuggestion','insertImage','*Reset\x20image\x20width*','imageInline','find','start','length','ImageCaptionEditing','hasAttribute','value','imageTypeBlock','Users','editor','ImageUtils','detach','width','isBefore','end','refresh','toPrevious','suggestion','author','join','formatInline','imageStylePostApply','schema','insertion','toLowerCase','_descriptionFactory','toggleImageCaption','getSuggestionCallback','formatBlock','getClosestSelectedImageElement','imageTypeInline','hasSuggestion','ELEMENT_CAPTION','markDeletion','commandName','removeObject','has','commands','title','getContainedElement','previous','_splitMarkerName','TrackChangesEditing','get','ImageBlockEditing','subType','selection','name','isEqual','Block\x20image\x20to\x20inline\x20image','registerDescriptionCallback','createRangeOn','change','filter','convertBlockImageToInline','shouldConvertImageType','createRange','next','isCollapsed','nodeAfter','getCaptionFromImageModelElement','isIntersecting','caption','enableCommand','isInContent','differ','registerElementLabel','format','type','FORMAT_SIDE_IMAGE','forceDefaultExecution','afterInit','discard','resizeImage','addObject','ImageTextAlternativeEditing','markBlockFormat','uploadImage','ImageEditing','getAttribute','imageCaption','getFirstRange','getSuggestion','from','ImageResize','backward','accept','convertInlineImageToBlock','forEach','ImageInlineEditing','getNearestSelectionRange','commandParams','ELEMENT_IMAGE','imageBlock','chain','ELEMENT_INLINE_IMAGE','newRange','ImageStyleEditing','fromPosition','getSuggestions','isBlockImage','document','model','head','forward','findIndex','imageStylePreApply','imageTextAlternative','imageStyle','*Format:*\x20%0'];(function(_0x2f3e79,_0x27a345){const _0x45a736=function(_0x5347bf){while(--_0x5347bf){_0x2f3e79['push'](_0x2f3e79['shift']());}};_0x45a736(++_0x27a345);}(_0x27a3,0x12a));const _0x45a7=function(_0x2f3e79,_0x27a345){_0x2f3e79=_0x2f3e79-0x0;let _0x45a736=_0x27a3[_0x2f3e79];return _0x45a736;};import{Plugin as _0x3af018}from'ckeditor5/src/core';import{LivePosition as _0x3517b6}from'ckeditor5/src/engine';import{uid as _0x4203ee}from'ckeditor5/src/utils';import{getTranslation as _0xd6750f}from'../utils/common-translations';export default class X extends _0x3af018{[_0x45a7('0x1d')](){const _0x107f32=this[_0x45a7('0x59')];if(!_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')](_0x45a7('0x24')))return;const _0x55c36e=_0x107f32[_0x45a7('0x46')][_0x45a7('0x1')](_0x45a7('0x0')),_0x2bc28a=_0x107f32[_0x45a7('0x46')]['get'](_0x45a7('0x5a')),_0x58629e={},_0x74b2a3=_0x107f32[_0x45a7('0x44')];if(_0x55c36e['enableCommand'](_0x45a7('0x4e')),_0x55c36e[_0x45a7('0x69')][_0x45a7('0x18')](_0x45a7('0x33'),_0x2e7d35=>_0xd6750f(_0x74b2a3,_0x45a7('0x32'),_0x2e7d35)),_0x55c36e['_descriptionFactory']['registerElementLabel'](_0x45a7('0x50'),_0x2e86a8=>_0xd6750f(_0x74b2a3,_0x45a7('0x35'),_0x2e86a8)),_0x55c36e[_0x45a7('0x69')][_0x45a7('0x18')](_0x45a7('0x14'),()=>_0xd6750f(_0x74b2a3,_0x45a7('0x70'))),_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')]('ImageUploadEditing')&&_0x55c36e[_0x45a7('0x15')](_0x45a7('0x23')),_0x107f32[_0x45a7('0x46')]['has'](_0x45a7('0x2'))&&_0x107f32['plugins'][_0x45a7('0x74')](_0x45a7('0x2f'))&&(_0x55c36e[_0x45a7('0x15')](_0x45a7('0x6e'),(_0x18d3ad,_0x4976a9)=>{const _0xba2954=_0x2bc28a[_0x45a7('0x6d')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')][_0x45a7('0x4')]);_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](()=>{_0x55c36e['markBlockFormat'](_0xba2954,{'commandName':'imageTypeInline','commandParams':[_0x4976a9]},[],'convertBlockImageToInline');});}),_0x55c36e['enableCommand'](_0x45a7('0x57'),(_0x29ddbd,_0x23e231)=>{_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](_0x4454b1=>{let _0x56979c=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x1f0a62=_0x4454b1['createRangeOn'](_0x56979c);const _0x3ff29e=_0x3517b6[_0x45a7('0x38')](_0x1f0a62['start'],_0x45a7('0x60')),_0x5cc874=_0x3517b6[_0x45a7('0x38')](_0x1f0a62[_0x45a7('0x5e')],'toNext');_0x55c36e[_0x45a7('0x1c')](()=>_0x29ddbd(_0x23e231)),_0x56979c=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x1f0a62=_0x4454b1[_0x45a7('0x9')](_0x56979c);const _0x53e527=_0x4454b1['createRange'](_0x3ff29e,_0x5cc874);_0x3ff29e[_0x45a7('0x5b')](),_0x5cc874[_0x45a7('0x5b')](),_0x55c36e[_0x45a7('0x22')](_0x56979c,{'commandName':_0x45a7('0x6e'),'commandParams':[]},[],_0x45a7('0x2d')),_0x53e527[_0x45a7('0x52')]['isBefore'](_0x1f0a62['start'])&&_0x55c36e[_0x45a7('0x48')](_0x4454b1[_0x45a7('0xe')](_0x53e527[_0x45a7('0x52')],_0x1f0a62[_0x45a7('0x52')]),_0x45a7('0x2d')),_0x1f0a62['end'][_0x45a7('0x5d')](_0x53e527[_0x45a7('0x5e')])&&_0x55c36e[_0x45a7('0x48')](_0x4454b1[_0x45a7('0xe')](_0x1f0a62[_0x45a7('0x5e')],_0x53e527[_0x45a7('0x5e')]),_0x45a7('0x2d'));});}),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),'convertInlineImageToBlock',_0x45a7('0x63'),()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),_0x45a7('0x2d'),'accept',()=>!0x1),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')]('formatBlock',_0x45a7('0x2d'),_0x45a7('0x1e'),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x6b')](_0x45a7('0x6c'),'',_0x45a7('0x2c'))),_0x55c36e['_suggestionFactory'][_0x45a7('0x4b')](_0x45a7('0x67'),'convertInlineImageToBlock','join',()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x67'),'convertInlineImageToBlock',_0x45a7('0x1e'),([_0x167b87])=>{const _0xbde312=_0x55c36e['_suggestionFactory'][_0x45a7('0x6b')]('insertion','',_0x45a7('0x1e'));let _0x5e64ca=_0x167b87[_0x45a7('0x52')],_0x265fc5=_0x167b87[_0x45a7('0x5e')];const _0x356164=_0x107f32[_0x45a7('0x3c')]['schema']['getNearestSelectionRange'](_0x5e64ca,_0x45a7('0x2b')),_0x3127d5=_0x107f32[_0x45a7('0x3c')][_0x45a7('0x66')][_0x45a7('0x30')](_0x265fc5,_0x45a7('0x3e'));_0x356164['isCollapsed']&&(_0x5e64ca=_0x356164[_0x45a7('0x52')]),_0x3127d5[_0x45a7('0x10')]&&(_0x265fc5=_0x3127d5[_0x45a7('0x5e')]),_0xbde312([_0x107f32[_0x45a7('0x3c')]['createRange'](_0x5e64ca,_0x265fc5)]);}),_0x55c36e['_suggestionFactory'][_0x45a7('0x4b')]('formatBlock','convertInlineImageToBlock','chain',_0x1cd04a),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')](_0x45a7('0x67'),'convertInlineImageToBlock',_0x45a7('0x34'),_0x1cd04a)),_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')](_0x45a7('0x54'))&&(_0x55c36e[_0x45a7('0x15')](_0x45a7('0x6a'),(_0x4df743,_0x2aaf59)=>{const _0x141bde=_0x107f32['plugins'][_0x45a7('0x1')]('ImageCaptionUtils');let _0x2d145e=_0x2bc28a[_0x45a7('0x6d')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x5603da=_0x141bde['getCaptionFromImageModelElement'](_0x2d145e);_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](()=>{if(_0x5603da)return void _0x55c36e[_0x45a7('0x71')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x9')](_0x5603da));const _0x33684e=_0x2bc28a[_0x45a7('0x3a')](_0x2d145e);_0x4df743(_0x2aaf59),_0x2d145e=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x5603da=_0x141bde[_0x45a7('0x12')](_0x2d145e),_0x55c36e['markInsertion'](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x9')](_0x5603da),_0x33684e?null:_0x45a7('0x26'));});}),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x67'),_0x45a7('0x26'),'chain',_0x1cd04a)),_0x107f32[_0x45a7('0x46')]['has']('ImageStyleEditing')){_0x55c36e['enableCommand'](_0x45a7('0x42'),(_0x4336ec,_0x29911b)=>{const _0x300076=_0x107f32[_0x45a7('0x46')][_0x45a7('0x1')](_0x45a7('0x58'))['me'],_0x11f408=_0x107f32[_0x45a7('0x75')][_0x45a7('0x1')](_0x45a7('0x42'));let _0x2557ad=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]),_0x2c1aa9=_0x107f32['model'][_0x45a7('0x9')](_0x2557ad),_0x5bcc83=_0x11f408[_0x45a7('0x56')];if(_0x5bcc83==_0x29911b[_0x45a7('0x56')])return;const _0x52a0b6={'commandName':'imageStyle','commandParams':[_0x29911b],'formatGroupId':_0x4203ee()};_0x107f32['model']['change'](()=>{if(_0x55c36e[_0x45a7('0x39')]()[_0x45a7('0xb')](_0x4e5f19=>_0x4e5f19['isInContent']&&_0x300076==_0x4e5f19[_0x45a7('0x62')]&&(_0x45a7('0x6c')==_0x4e5f19[_0x45a7('0x1a')]||_0x45a7('0x64')==_0x4e5f19[_0x45a7('0x1a')])&&(_0x45a7('0x40')==_0x4e5f19[_0x45a7('0x3')]||'imageStylePostApply'==_0x4e5f19[_0x45a7('0x3')])&&_0x4e5f19[_0x45a7('0x27')]()['isEqual'](_0x2c1aa9))[_0x45a7('0x2e')](_0x266aa8=>_0x55c36e[_0x45a7('0x4d')](_0x266aa8[_0x45a7('0x3d')])),_0x2557ad=_0x2bc28a['getClosestSelectedImageElement'](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')]['selection']),_0x2c1aa9=_0x107f32[_0x45a7('0x3c')][_0x45a7('0x9')](_0x2557ad),_0x11f408['refresh'](),_0x107f32[_0x45a7('0x75')]['get'](_0x45a7('0x6e'))[_0x45a7('0x5f')](),_0x107f32[_0x45a7('0x75')]['get'](_0x45a7('0x57'))[_0x45a7('0x5f')](),_0x5bcc83=_0x11f408['value'],_0x5bcc83!=_0x29911b[_0x45a7('0x56')])return _0x2bc28a['isInlineImage'](_0x2557ad)&&_0x11f408[_0x45a7('0xd')](_0x29911b[_0x45a7('0x56')],_0x2557ad)?(_0x4336ec(_0x29911b),_0x2557ad=_0x2bc28a[_0x45a7('0x6d')](_0x107f32[_0x45a7('0x3c')][_0x45a7('0x3b')][_0x45a7('0x4')]),void _0x55c36e[_0x45a7('0x22')](_0x2557ad,{..._0x52a0b6,'commandReversedParams':[{'value':_0x5bcc83||null}]},[],'imageStylePreApply')):void(_0x2bc28a['isBlockImage'](_0x2557ad)?_0x55c36e[_0x45a7('0x22')](_0x2557ad,_0x52a0b6,[],_0x45a7('0x65')):_0x55c36e['markInlineFormat'](_0x2c1aa9,_0x52a0b6,_0x45a7('0x65')));});});for(const _0x105d80 of _0x107f32[_0x45a7('0x46')][_0x45a7('0x1')](_0x45a7('0x37'))['normalizedStyles'])_0x58629e[_0x105d80[_0x45a7('0x5')]]=_0x105d80[_0x45a7('0x76')][_0x45a7('0x68')]();_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')]('formatBlock',_0x45a7('0x40'),'join',()=>!0x1),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')](_0x45a7('0x6c'),_0x45a7('0x65'),_0x45a7('0x63'),()=>!0x1),_0x55c36e[_0x45a7('0x45')][_0x45a7('0x4b')](_0x45a7('0x64'),_0x45a7('0x65'),'join',()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),_0x45a7('0x40'),_0x45a7('0x2c'),()=>!0x1),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x45a7('0x1e'),(_0x4a4250,_0x334132)=>{_0x55c36e[_0x45a7('0x45')][_0x45a7('0x6b')]('formatBlock','','accept')(_0x4a4250,{'commandName':_0x334132[_0x45a7('0x72')],'commandParams':_0x334132['commandReversedParams']});}),_0x55c36e[_0x45a7('0x45')]['registerCustomCallback'](_0x45a7('0x6c'),_0x45a7('0x40'),_0x45a7('0x34'),_0x1cd04a);}const _0x23f0cd=[{'type':'formatBlock','subType':_0x45a7('0x40')},{'type':_0x45a7('0x67'),'subType':_0x45a7('0x26')},{'type':_0x45a7('0x6c'),'subType':_0x45a7('0x2d')},{'type':_0x45a7('0x67'),'subType':'convertInlineImageToBlock'}];function _0x52e87a(_0x21053b,_0xa3485){const _0x249d83=_0x23f0cd['findIndex'](({type:_0x5cf31f,subType:_0x56b635})=>_0x21053b[_0x45a7('0x1a')]==_0x5cf31f&&_0x21053b['subType']==_0x56b635),_0xaa6f92=_0x23f0cd[_0x45a7('0x3f')](({type:_0x4e1383,subType:_0x10fcb3})=>_0xa3485[_0x45a7('0x1a')]==_0x4e1383&&_0xa3485[_0x45a7('0x3')]==_0x10fcb3);if(_0x249d83<0x0||_0xaa6f92<0x0)return!0x1;const _0x294472=_0x21053b[_0x45a7('0x27')](),_0x23bf57=_0xa3485[_0x45a7('0x27')]();if((0x0==_0x249d83||0x1==_0x249d83)&&0x2==_0xaa6f92&&_0x294472[_0x45a7('0x13')](_0x23bf57))return!0x0;if(0x2==_0x249d83&&0x3==_0xaa6f92){const _0x4a4940=_0x55c36e['_findSuggestions'](_0x294472,'insertion')[_0x45a7('0xb')](({suggestion:_0x1f1565,meta:_0x3d2359})=>_0x3d2359['isOwn']&&_0x45a7('0x2d')==_0x1f1565[_0x45a7('0x3')]);if(_0x4a4940['length']>0x1&&_0x23bf57['end'][_0x45a7('0x6')](_0x294472[_0x45a7('0x52')]))return!0x0;if(0x1==_0x4a4940[_0x45a7('0x53')]&&(_0x294472[_0x45a7('0x52')][_0x45a7('0x6')](_0x23bf57[_0x45a7('0x5e')])||_0x294472[_0x45a7('0x5e')][_0x45a7('0x6')](_0x23bf57[_0x45a7('0x52')])))return!0x0;}if(0x3==_0x249d83&&0x3==_0xaa6f92&&_0x294472['start'][_0x45a7('0x5d')](_0x23bf57['start'])){const _0xc0cb2d=_0x294472[_0x45a7('0x5e')][_0x45a7('0x11')],_0x14a2cf=_0x23bf57['start']['nodeBefore'];return _0x2bc28a['isBlockImage'](_0xc0cb2d)&&_0xc0cb2d===_0x14a2cf;}return!0x1;}function _0x1cd04a(_0x1a3364,_0x4fcd2f){return _0x52e87a(_0x1a3364,_0x4fcd2f)?[_0x1a3364,_0x4fcd2f]:_0x52e87a(_0x4fcd2f,_0x1a3364)?[_0x4fcd2f,_0x1a3364]:null;}_0x107f32[_0x45a7('0x3c')]['document']['registerPostFixer'](()=>{let _0x3df6d9=!0x1;const _0x17b916=Array[_0x45a7('0x29')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x17')][_0x45a7('0x49')]());for(const {name:_0x207c84,data:_0x16bd99}of _0x17b916){const {group:_0x664134,type:_0x30b230,subType:_0x2d808c,id:_0x400788}=_0x55c36e[_0x45a7('0x79')](_0x207c84);if(_0x45a7('0x61')==_0x664134&&_0x55c36e[_0x45a7('0x6f')](_0x400788)){if(_0x45a7('0x6c')==_0x30b230&&(_0x45a7('0x40')==_0x2d808c||'imageStylePostApply'==_0x2d808c)){const _0x5d28f4=_0x55c36e[_0x45a7('0x28')](_0x400788);if(_0x16bd99[_0x45a7('0x36')]){const _0x1234c8=_0x5d28f4['getFirstRange']()[_0x45a7('0x77')]();if(_0x2bc28a[_0x45a7('0x3a')](_0x1234c8))continue;_0x55c36e[_0x45a7('0x4d')](_0x5d28f4),_0x3df6d9=!0x0;}}if('insertion'==_0x30b230&&_0x45a7('0x26')==_0x2d808c&&!_0x16bd99[_0x45a7('0x36')]){const _0x4dee84=_0x55c36e['getSuggestion'](_0x400788);_0x4dee84['next']&&_0x4dee84[_0x45a7('0xf')][_0x45a7('0x16')]&&(_0x55c36e[_0x45a7('0x4d')](_0x4dee84['next']),_0x3df6d9=!0x0);}}}return _0x3df6d9;}),_0x107f32[_0x45a7('0x46')][_0x45a7('0x74')](_0x45a7('0x2a'))&&_0x55c36e[_0x45a7('0x15')](_0x45a7('0x1f'),(_0x4141aa,_0x586567)=>{const _0x106b1f=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]);_0x106b1f[_0x45a7('0x25')](_0x45a7('0x5c'))!=_0x586567[_0x45a7('0x5c')]&&_0x107f32['model'][_0x45a7('0xa')](()=>{_0x55c36e['markBlockFormat'](_0x106b1f,{'commandName':_0x45a7('0x1f'),'commandParams':[_0x586567]});});}),_0x107f32[_0x45a7('0x46')]['has'](_0x45a7('0x21'))&&_0x55c36e[_0x45a7('0x15')](_0x45a7('0x41'),(_0x4aa66d,_0xb49510)=>{const _0xf2ad29=_0x2bc28a[_0x45a7('0x6d')](_0x107f32['model'][_0x45a7('0x3b')][_0x45a7('0x4')]);(_0xf2ad29[_0x45a7('0x55')](_0x45a7('0x47'))?_0xf2ad29[_0x45a7('0x25')](_0x45a7('0x47')):'')!=_0xb49510[_0x45a7('0x4a')]&&_0x107f32[_0x45a7('0x3c')][_0x45a7('0xa')](()=>{_0x55c36e['markBlockFormat'](_0xf2ad29,{'commandName':_0x45a7('0x41'),'commandParams':[_0xb49510]});});}),_0x55c36e['_descriptionFactory'][_0x45a7('0x8')](_0x380d58=>{if(!!_0x23f0cd[_0x45a7('0x51')](({type:_0x3f7c21,subType:_0x18dc1f})=>_0x380d58[_0x45a7('0x1a')]==_0x3f7c21&&_0x380d58[_0x45a7('0x3')]==_0x18dc1f))return _0x380d58[_0x45a7('0x78')]?{}:void 0x0;}),_0x55c36e['_descriptionFactory'][_0x45a7('0x8')](_0x306e43=>{if(_0x45a7('0x67')==_0x306e43[_0x45a7('0x1a')]||'deletion'==_0x306e43['type']){const _0x45228e=_0x306e43['getContainedElement']();if(_0x45228e&&_0x45228e['is']('element',_0x45a7('0x14')))return{'type':_0x45a7('0x67')==_0x306e43[_0x45a7('0x1a')]?_0x45a7('0x20'):_0x45a7('0x73'),'element':_0x45228e,'quantity':0x1};}}),_0x55c36e[_0x45a7('0x69')][_0x45a7('0x8')](_0x26eb36=>'formatBlock'==_0x26eb36[_0x45a7('0x1a')]&&_0x45a7('0x2d')==_0x26eb36['subType']?{'type':_0x45a7('0x19'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x45a7('0x6c')==_0x26eb36[_0x45a7('0x1a')]&&_0x45a7('0xc')==_0x26eb36[_0x45a7('0x3')]?{'type':_0x45a7('0x19'),'content':_0x45a7('0x7')}:void 0x0),_0x55c36e[_0x45a7('0x69')]['registerDescriptionCallback'](_0x2066d1=>{const {data:_0x2087ec}=_0x2066d1;if(_0x2087ec){if('imageStyle'==_0x2087ec['commandName']){const _0x4ef3c1=_0x2087ec[_0x45a7('0x31')][0x0]['value'];return _0x70d6d6('side'===_0x4ef3c1?_0xd6750f(_0x74b2a3,_0x45a7('0x1b')):_0x58629e[_0x4ef3c1]||_0x4ef3c1);}if(_0x45a7('0x41')==_0x2087ec[_0x45a7('0x72')]){const _0x47b3fb=_0x2087ec['commandParams'][0x0][_0x45a7('0x4a')];return _0x47b3fb?{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47b3fb+'\x22')}:{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,'*Remove\x20image\x20text\x20alternative*')};}if(_0x45a7('0x1f')==_0x2087ec[_0x45a7('0x72')]){const _0x185dc1=_0x2087ec[_0x45a7('0x31')][0x0][_0x45a7('0x5c')];return _0x185dc1?{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,_0x45a7('0x4c'),_0x185dc1)}:{'type':'format','content':_0xd6750f(_0x74b2a3,_0x45a7('0x4f'))};}}function _0x70d6d6(_0x3a0fb0){return{'type':_0x45a7('0x19'),'content':_0xd6750f(_0x74b2a3,_0x45a7('0x43'),_0x3a0fb0)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2afe=['accept','handleSuggestionDescription','editor','model','getSuggestions','source','formatBlock','data','_suggestionFactory','locale','markBlockFormat','enableCommand','getAttribute','replaceImageSource','registerCustomCallback','getSuggestionCallback','format','getSelectedElement','author','has','discard','getContainedElement','change','registerDescriptionCallback','subType','_descriptionFactory','get','*Format:*\x20replace\x20image\x20URL','TrackChangesEditing','plugins','selection','handleReplaceImageCommand','commandName'];(function(_0x1e6423,_0x2afee3){const _0x473650=function(_0x16816b){while(--_0x16816b){_0x1e6423['push'](_0x1e6423['shift']());}};_0x473650(++_0x2afee3);}(_0x2afe,0xe3));const _0x4736=function(_0x1e6423,_0x2afee3){_0x1e6423=_0x1e6423-0x0;let _0x473650=_0x2afe[_0x1e6423];return _0x473650;};import{Plugin as _0x2516ec}from'ckeditor5/src/core';import{getTranslation as _0x400635}from'../utils/common-translations';export default class Y extends _0x2516ec{['afterInit'](){if(!this[_0x4736('0x6')][_0x4736('0x0')][_0x4736('0x17')]('ImageEditing'))return;const _0x432290=this[_0x4736('0x6')]['plugins']['get'](_0x4736('0x20'));_0x432290[_0x4736('0xf')]('replaceImageSource',(_0xe41c76,_0x5c8a1c)=>this['handleReplaceImageCommand'](_0xe41c76,_0x5c8a1c)),_0x432290[_0x4736('0xc')][_0x4736('0x12')](_0x4736('0xa'),_0x4736('0x11'),_0x4736('0x4'),_0x432290[_0x4736('0xc')][_0x4736('0x13')](_0x4736('0xa'),null,_0x4736('0x18'))),_0x432290[_0x4736('0xc')][_0x4736('0x12')](_0x4736('0xa'),_0x4736('0x11'),'discard',_0x432290['_suggestionFactory'][_0x4736('0x13')]('formatBlock',null,_0x4736('0x4'))),_0x432290[_0x4736('0x1d')][_0x4736('0x1b')](_0x4799a4=>this['handleSuggestionDescription'](_0x4799a4));}[_0x4736('0x2')](_0x49956f,_0x207877){const _0x428c0b=this['editor'][_0x4736('0x0')][_0x4736('0x1e')](_0x4736('0x20')),_0x10da97=this[_0x4736('0x6')][_0x4736('0x7')]['document'][_0x4736('0x1')][_0x4736('0x15')]();this['editor']['model'][_0x4736('0x1a')](()=>{let _0x258816=_0x10da97[_0x4736('0x10')]('src');const _0x250341=this[_0x4736('0x6')][_0x4736('0x0')][_0x4736('0x1e')]('Users')['me'];for(const _0x3aa3a0 of _0x428c0b[_0x4736('0x8')]({'skipNotAttached':!0x0})){const _0x4743b8=_0x3aa3a0[_0x4736('0x19')]();if(_0x4736('0x11')===_0x3aa3a0[_0x4736('0x1c')]&&_0x4743b8===_0x10da97){_0x3aa3a0[_0x4736('0x16')]!==_0x250341&&_0x3aa3a0[_0x4736('0x18')](),_0x258816=_0x3aa3a0[_0x4736('0xb')]['commandParams'][0x0][_0x4736('0x9')];break;}}_0x49956f(_0x207877),_0x428c0b[_0x4736('0xe')](_0x10da97,{'commandName':_0x4736('0x11'),'commandParams':[{'source':_0x258816}]},[],_0x4736('0x11'));});}[_0x4736('0x5')](_0x3a7d84){const {data:_0x2dffd1}=_0x3a7d84;if(_0x2dffd1&&_0x4736('0x11')===_0x2dffd1[_0x4736('0x3')]){const _0x7159ea=_0x4736('0x1f');return{'type':_0x4736('0x14'),'content':_0x400635(this[_0x4736('0x6')][_0x4736('0xd')],_0x7159ea)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17c2=['plugins','lowest','_trackChangesValueDuringImport','listenTo','TrackChangesEditing','commands','Users','afterInit','importWord','editor','_setSuggestionData','enableCommand','get','_trackChangesExecuted','dataInsert','value','collaboration_features','bind','track_changes','high','execute','forEach','_handleImportedData'];(function(_0x53fb93,_0x17c2f3){const _0x324601=function(_0x5464b3){while(--_0x5464b3){_0x53fb93['push'](_0x53fb93['shift']());}};_0x324601(++_0x17c2f3);}(_0x17c2,0x1c5));const _0x3246=function(_0x53fb93,_0x17c2f3){_0x53fb93=_0x53fb93-0x0;let _0x324601=_0x17c2[_0x53fb93];return _0x324601;};import{Plugin as _0x16d39d}from'ckeditor5/src/core';export default class Z extends _0x16d39d{constructor(_0x31f677){super(_0x31f677),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x3246('0xe')](){const _0x5db386=this[_0x3246('0x10')],_0x12f376=_0x5db386[_0x3246('0xc')][_0x3246('0x13')](_0x3246('0xf')),_0x47ca16=_0x5db386[_0x3246('0xc')][_0x3246('0x13')]('trackChanges');_0x12f376&&(_0x12f376['on'](_0x3246('0x4'),(_0x169e6e,[,_0x59ab6d])=>{this['_trackChangesValueDuringImport']=_0x47ca16[_0x3246('0x16')],_0x59ab6d[_0x3246('0x0')][_0x3246('0x2')]=!this[_0x3246('0x9')];},{'priority':_0x3246('0x3')}),this[_0x3246('0xa')](_0x12f376,'dataInsert',this[_0x3246('0x6')][_0x3246('0x1')](this)),this[_0x3246('0xa')](_0x12f376,_0x3246('0x15'),()=>{this[_0x3246('0x14')]&&(_0x47ca16['execute'](),this[_0x3246('0x14')]=!0x1);},{'priority':_0x3246('0x8')}),_0x5db386[_0x3246('0x7')]['get'](_0x3246('0xb'))[_0x3246('0x12')](_0x3246('0xf')));}[_0x3246('0x6')](_0x46fefc,_0x339c65){const {suggestions:_0x52dfd6}=_0x339c65,_0x12c350=this[_0x3246('0x10')][_0x3246('0xc')][_0x3246('0x13')]('trackChanges'),_0x343a27=_0x12c350[_0x3246('0x16')];this[_0x3246('0x9')]!==_0x343a27&&(_0x12c350[_0x3246('0x4')](),this['_trackChangesExecuted']=!0x0),_0x52dfd6&&_0x52dfd6[_0x3246('0x5')](({id:_0x456520,type:_0x643b94,author:_0x4fd89b,created_at:_0x23352b})=>{const _0x3a64d4={'id':_0x456520,'type':_0x643b94,'authorId':this[_0x3246('0x10')][_0x3246('0x7')][_0x3246('0x13')](_0x3246('0xd'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4fd89b,'createdAt':_0x23352b?new Date(_0x23352b):new Date(),'source':_0x3246('0xf')}}};this['editor'][_0x3246('0x7')]['get'](_0x3246('0xb'))[_0x3246('0x11')](_0x3a64d4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4780=['locale','change','registerDescriptionCallback','getItems','TrackChangesEditing','indent','outdentBlock','markBlockFormat','enableCommand','getSelectedBlocks','_descriptionFactory','format','afterInit','getItemLabel','*Outdent:*\x20%0','indentBlock','checkAttribute','editor','commandName','plugins','selection','get','IndentBlock','schema','*Indent:*\x20%0','document','outdent','IndentEditing','model'];(function(_0x2084f1,_0x4780f8){const _0x4d8c95=function(_0xab52dd){while(--_0xab52dd){_0x2084f1['push'](_0x2084f1['shift']());}};_0x4d8c95(++_0x4780f8);}(_0x4780,0xec));const _0x4d8c=function(_0x2084f1,_0x4780f8){_0x2084f1=_0x2084f1-0x0;let _0x4d8c95=_0x4780[_0x2084f1];return _0x4d8c95;};import{Plugin as _0x3022c6}from'ckeditor5/src/core';import{getTranslation as _0x7773f6}from'../utils/common-translations';export default class tt extends _0x3022c6{[_0x4d8c('0x8')](){const _0x1bf633=this[_0x4d8c('0xd')],_0x2b872e=_0x1bf633[_0x4d8c('0xf')][_0x4d8c('0x11')](_0x4d8c('0x0'));_0x1bf633['plugins']['has'](_0x4d8c('0x17'))&&(_0x2b872e[_0x4d8c('0x4')](_0x4d8c('0x1')),_0x2b872e[_0x4d8c('0x4')](_0x4d8c('0x16')));const _0x275c9a=_0x1bf633[_0x4d8c('0x19')];if(_0x1bf633[_0x4d8c('0xf')]['has'](_0x4d8c('0x12'))){for(const _0x22fa75 of[_0x4d8c('0xb'),_0x4d8c('0x2')])_0x2b872e[_0x4d8c('0x4')](_0x22fa75,()=>{const _0x38da47=Array['from'](this[_0x4d8c('0xd')][_0x4d8c('0x18')][_0x4d8c('0x15')][_0x4d8c('0x10')][_0x4d8c('0x5')]())['filter'](_0x38bcf7=>this[_0x4d8c('0xd')][_0x4d8c('0x18')][_0x4d8c('0x13')][_0x4d8c('0xc')](_0x38bcf7,'blockIndent'));_0x1bf633['model'][_0x4d8c('0x1a')](()=>{for(const _0x58b71b of _0x38da47)_0x2b872e[_0x4d8c('0x3')](_0x58b71b,{'commandName':_0x22fa75,'commandParams':[{'value':''}],'formatGroupId':_0x4d8c('0xb')});});});_0x2b872e[_0x4d8c('0x6')][_0x4d8c('0x1b')](_0x4477cf=>{const {data:_0x49afb5}=_0x4477cf;if(!_0x49afb5)return;if(_0x4d8c('0xb')!=_0x49afb5[_0x4d8c('0xe')]&&_0x4d8c('0x2')!=_0x49afb5[_0x4d8c('0xe')])return;const _0x4af5ed=_0x4477cf[_0x4d8c('0x1c')]()[0x0],_0x26dbd5=_0x2b872e[_0x4d8c('0x6')][_0x4d8c('0x9')](_0x4af5ed);return'indentBlock'==_0x49afb5[_0x4d8c('0xe')]?{'type':_0x4d8c('0x7'),'content':_0x7773f6(_0x275c9a,_0x4d8c('0x14'),_0x26dbd5)}:_0x4d8c('0x2')==_0x49afb5['commandName']?{'type':'format','content':_0x7773f6(_0x275c9a,_0x4d8c('0xa'),_0x26dbd5)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4baf=['get','input','plugins','editor','init','TrackChangesEditing','requires'];(function(_0x5c0c16,_0x4bafff){var _0x288edb=function(_0x215dc7){while(--_0x215dc7){_0x5c0c16['push'](_0x5c0c16['shift']());}};_0x288edb(++_0x4bafff);}(_0x4baf,0x1e7));var _0x288e=function(_0x5c0c16,_0x4bafff){_0x5c0c16=_0x5c0c16-0x0;var _0x288edb=_0x4baf[_0x5c0c16];return _0x288edb;};import{Plugin as _0x554a3a}from'ckeditor5/src/core';import{Input as _0x206f53}from'ckeditor5/src/typing';export default class it extends _0x554a3a{static get[_0x288e('0x2')](){return[_0x206f53];}[_0x288e('0x0')](){this[_0x288e('0x6')][_0x288e('0x5')][_0x288e('0x3')](_0x288e('0x1'))['enableCommand'](_0x288e('0x4'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a8d=['enableCommand','getRanges','change','unlink','selection','plugins','TrackChangesEditing','markInlineFormat','commandName','linkHref','locale','registerDescriptionCallback','link','*Remove\x20link*','has','model','getFirstRange','hasAttribute','format','document','getFirstPosition','from','commandParams','getAttribute','*Set\x20link:*\x20%0','isCollapsed','get','_descriptionFactory','afterInit'];(function(_0x278efd,_0x4a8d49){const _0x25d079=function(_0x1a4d55){while(--_0x1a4d55){_0x278efd['push'](_0x278efd['shift']());}};_0x25d079(++_0x4a8d49);}(_0x4a8d,0x10a));const _0x25d0=function(_0x278efd,_0x4a8d49){_0x278efd=_0x278efd-0x0;let _0x25d079=_0x4a8d[_0x278efd];return _0x25d079;};import{Plugin as _0x2c5c97}from'ckeditor5/src/core';import{findAttributeRange as _0x11fada}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x541531}from'./utils';import{getTranslation as _0x12f5e0}from'../utils/common-translations';export default class et extends _0x2c5c97{[_0x25d0('0x17')](){const _0x4c24a3=this['editor'];if(!_0x4c24a3[_0x25d0('0x0')][_0x25d0('0x9')]('LinkEditing'))return;const _0x36ee0f=_0x4c24a3[_0x25d0('0x0')][_0x25d0('0x15')](_0x25d0('0x1'));_0x36ee0f[_0x25d0('0x18')](_0x25d0('0x7'),(_0x1259ff,_0xcfc292)=>{const _0x18ed08=_0x4c24a3[_0x25d0('0xa')]['document'][_0x25d0('0x1c')];let _0x254384=[];if(_0x18ed08[_0x25d0('0x14')]){if(!_0x18ed08[_0x25d0('0xc')](_0x25d0('0x4')))return void _0x1259ff(_0xcfc292);{const _0x4e2c16=_0x11fada(_0x18ed08[_0x25d0('0xf')](),'linkHref',_0x18ed08[_0x25d0('0x12')](_0x25d0('0x4')),_0x4c24a3['model']);_0x254384=[_0x4e2c16];}}else _0x254384=Array[_0x25d0('0x10')](_0x18ed08[_0x25d0('0x19')]());_0x4c24a3[_0x25d0('0xa')][_0x25d0('0x1a')](()=>{for(const _0x3d8a69 of _0x254384)_0x36ee0f[_0x25d0('0x2')](_0x3d8a69,{'commandName':_0x25d0('0x7'),'commandParams':[_0xcfc292]});});}),_0x36ee0f[_0x25d0('0x18')]('unlink',()=>{const _0x3743cc=this['editor'][_0x25d0('0xa')],_0x2beaf5=_0x3743cc[_0x25d0('0xe')][_0x25d0('0x1c')];_0x3743cc['change'](()=>{let _0x42834d=[];if(_0x2beaf5[_0x25d0('0x14')])_0x42834d=[_0x11fada(_0x2beaf5[_0x25d0('0xf')](),_0x25d0('0x4'),_0x2beaf5[_0x25d0('0x12')](_0x25d0('0x4')),_0x4c24a3[_0x25d0('0xa')])];else _0x42834d=_0x541531('linkHref',_0x2beaf5[_0x25d0('0xb')](),_0x4c24a3[_0x25d0('0xa')]);for(const _0x58b863 of _0x42834d)_0x36ee0f[_0x25d0('0x2')](_0x58b863,{'commandName':_0x25d0('0x1b'),'commandParams':[]});});}),_0x36ee0f[_0x25d0('0x16')][_0x25d0('0x6')](_0xda620d=>{const {data:_0x4bd645}=_0xda620d,_0x460030=_0x4c24a3[_0x25d0('0x5')];if(_0x4bd645){if(_0x25d0('0x7')==_0x4bd645[_0x25d0('0x3')]){const _0x390043=_0x4bd645[_0x25d0('0x11')][0x0];return{'type':'format','content':_0x12f5e0(_0x460030,_0x25d0('0x13'),'\x22'+_0x390043+'\x22')};}return _0x25d0('0x1b')==_0x4bd645[_0x25d0('0x3')]?{'type':_0x25d0('0xd'),'content':_0x12f5e0(_0x460030,_0x25d0('0x8'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a82=['locale','get','numbered','bulleted','document','element','commands','registerElementLabel','createPositionAt','numberedList','add','blockName','editor','_descriptionFactory','value','ELEMENT_LIST_ITEM','filter','has','selection','before','findIndex','todoList','registerDescriptionCallback','TodoListEditing','*Outdent:*\x20%0','commandParams','nextSibling','plugins','*Change\x20to:*\x20%0','ELEMENT_BULLETED_LIST','*Indent:*\x20%0','getAttribute','enableCommand','commandName','model','execute','checkTodoList','from','slice','previousSibling','parent','listType','ELEMENT_NUMBERED_LIST','forceValue','listItem','change','indentList','listIndent','*Uncheck\x20item*','outdentList','getSelectedBlocks','_selectedElements','replace','TrackChangesEditing','markBlockFormat','createRange','paragraph','*Check\x20item*','name','bulletedList','todoListChecked','format'];(function(_0x549c88,_0x1a827f){const _0x22cf46=function(_0x4d9cd6){while(--_0x4d9cd6){_0x549c88['push'](_0x549c88['shift']());}};_0x22cf46(++_0x1a827f);}(_0x1a82,0x1c7));const _0x22cf=function(_0x549c88,_0x1a827f){_0x549c88=_0x549c88-0x0;let _0x22cf46=_0x1a82[_0x549c88];return _0x22cf46;};import{Plugin as _0x3808a0}from'ckeditor5/src/core';import{getTranslation as _0x1d000f}from'../utils/common-translations';export default class nt extends _0x3808a0{['afterInit'](){const _0x2365ae=this[_0x22cf('0x35')],_0x4adff7=_0x2365ae[_0x22cf('0x29')];if(!_0x2365ae[_0x22cf('0x6')][_0x22cf('0x3a')]('ListEditing'))return;const _0x5a93c3=_0x2365ae[_0x22cf('0x6')]['get'](_0x22cf('0x20')),_0x45b995=_0x2365ae[_0x22cf('0x6')][_0x22cf('0x3a')](_0x22cf('0x2'));function _0x11a558(_0x5729c0){return()=>{const _0x2a900a=_0x2365ae[_0x22cf('0xd')][_0x22cf('0x2d')][_0x22cf('0x3b')],_0x3d753c=_0x2365ae[_0x22cf('0x2f')][_0x22cf('0x2a')](_0x5729c0);if(_0x3d753c[_0x22cf('0x37')])return void _0x2365ae[_0x22cf('0xe')](_0x22cf('0x23'),{});const _0x4b5d76=_0x5729c0['slice'](0x0,-0x4),_0x5cc91b=function(_0x1560d3,_0x4dc947,_0xffa3c8){let _0x7015c0=Array[_0x22cf('0x10')](_0x1560d3)['filter'](_0x4aa118=>function(_0x964bed,_0x73fa56){return _0x73fa56['checkChild'](_0x964bed[_0x22cf('0x13')],_0x22cf('0x17'))&&!_0x73fa56['isObject'](_0x964bed);}(_0x4aa118,_0xffa3c8));_0x7015c0=_0x7015c0[_0x22cf('0x39')](_0xea3fed=>!_0xea3fed['is'](_0x22cf('0x2e'),_0x22cf('0x17'))||_0xea3fed[_0x22cf('0xa')](_0x22cf('0x14'))!=_0x4dc947);const _0x195e5d=new Set();for(const _0x3f7886 of _0x7015c0)_0x3f7886['is'](_0x22cf('0x2e'),_0x22cf('0x17'))?_0x195e5d['add'](ne(_0x3f7886)):_0x195e5d[_0x22cf('0x33')](_0x3f7886);return Array[_0x22cf('0x10')](_0x195e5d);}(_0x2a900a['getSelectedBlocks'](),_0x4b5d76,_0x2365ae['model']['schema']);_0x2365ae[_0x22cf('0xd')][_0x22cf('0x18')](()=>{for(const _0x2361d7 of _0x5cc91b)_0x5a93c3[_0x22cf('0x21')](_0x2361d7,{'commandName':_0x5729c0,'commandParams':[{'forceValue':!_0x3d753c['value']}],'formatGroupId':_0x22cf('0x34')},oe(_0x2361d7));});};}function _0x48c2ae(_0x32696c){return()=>{const _0x1e0b1e=function(_0x55220e){let _0x777c79=Array['from'](_0x55220e);const _0x598c47=_0x777c79[_0x22cf('0x3d')](_0x3ac9d8=>_0x22cf('0x17')!=_0x3ac9d8[_0x22cf('0x25')]);return _0x598c47>-0x1&&(_0x777c79=_0x777c79[_0x22cf('0x11')](0x0,_0x598c47)),_0x777c79;}(_0x2365ae[_0x22cf('0xd')][_0x22cf('0x2d')][_0x22cf('0x3b')][_0x22cf('0x1d')]()),_0x3cb5a1=_0x2365ae[_0x22cf('0xd')][_0x22cf('0x22')](_0x2365ae['model'][_0x22cf('0x31')](_0x1e0b1e[0x0],_0x22cf('0x3c')),_0x2365ae['model'][_0x22cf('0x31')](_0x1e0b1e[_0x1e0b1e['length']-0x1],'end'));_0x2365ae['model'][_0x22cf('0x18')](()=>{_0x5a93c3[_0x22cf('0x21')](_0x3cb5a1,{'commandName':_0x32696c,'commandParams':[],'formatGroupId':_0x22cf('0x1a')},function(_0x53c338){const _0x527638=new Set();for(const _0x4f999b of _0x53c338){let _0x2574c7=_0x4f999b[_0x22cf('0x5')];for(;_0x2574c7&&_0x2574c7[_0x22cf('0xa')](_0x22cf('0x1a'))>_0x4f999b[_0x22cf('0xa')](_0x22cf('0x1a'));)_0x527638['add'](_0x2574c7),_0x2574c7=_0x2574c7[_0x22cf('0x5')];}return Array[_0x22cf('0x10')](_0x527638);}(_0x1e0b1e));});};}_0x5a93c3[_0x22cf('0xb')](_0x22cf('0x32'),_0x11a558('numberedList')),_0x5a93c3[_0x22cf('0xb')]('bulletedList',_0x11a558(_0x22cf('0x26'))),_0x45b995&&_0x5a93c3[_0x22cf('0xb')](_0x22cf('0x0'),_0x11a558(_0x22cf('0x0'))),_0x5a93c3[_0x22cf('0xb')](_0x22cf('0x19'),_0x48c2ae(_0x22cf('0x19'))),_0x5a93c3[_0x22cf('0xb')]('outdentList',_0x48c2ae(_0x22cf('0x1c'))),_0x45b995&&_0x5a93c3[_0x22cf('0xb')](_0x22cf('0xf'),()=>{const _0x5f541c=_0x2365ae[_0x22cf('0x2f')][_0x22cf('0x2a')]('checkTodoList'),_0x2531cb=Array[_0x22cf('0x10')](_0x5f541c[_0x22cf('0x1e')]);_0x2531cb[_0x22cf('0x39')](_0x331491=>_0x331491['getAttribute'](_0x22cf('0x27'))!=_0x5f541c[_0x22cf('0x37')]),_0x2365ae[_0x22cf('0xd')][_0x22cf('0x18')](()=>{for(const _0x3096bb of _0x2531cb)_0x5a93c3[_0x22cf('0x21')](_0x3096bb,{'commandName':_0x22cf('0xf'),'commandParams':[{'forceValue':!_0x5f541c[_0x22cf('0x37')]}]});});}),_0x5a93c3[_0x22cf('0x36')][_0x22cf('0x30')](_0x22cf('0x17'),_0x30da6f=>_0x1d000f(_0x4adff7,_0x22cf('0x38'),_0x30da6f)),_0x5a93c3[_0x22cf('0x36')][_0x22cf('0x1')](_0x4f1601=>{const {data:_0x27e1ef}=_0x4f1601;if(_0x27e1ef){if(_0x22cf('0x32')==_0x27e1ef[_0x22cf('0xc')]||_0x22cf('0x26')==_0x27e1ef['commandName']||_0x22cf('0x0')==_0x27e1ef['commandName'])switch(_0x27e1ef[_0x22cf('0xc')][_0x22cf('0x1f')]('List','')){case _0x22cf('0x2c'):return _0x56b372(_0x1d000f(_0x4adff7,_0x22cf('0x8')));case _0x22cf('0x2b'):return _0x56b372(_0x1d000f(_0x4adff7,_0x22cf('0x15')));case'todo':return _0x56b372(_0x1d000f(_0x4adff7,'ELEMENT_TODO_LIST'));}if(_0x22cf('0x19')==_0x27e1ef[_0x22cf('0xc')])return{'type':'format','content':_0x1d000f(_0x4adff7,_0x22cf('0x9'),_0x1d000f(_0x4adff7,_0x22cf('0x38')))};if('outdentList'==_0x27e1ef[_0x22cf('0xc')])return{'type':'format','content':_0x1d000f(_0x4adff7,_0x22cf('0x3'),_0x1d000f(_0x4adff7,_0x22cf('0x38')))};if(_0x22cf('0xf')==_0x27e1ef[_0x22cf('0xc')])return _0x27e1ef[_0x22cf('0x4')][0x0][_0x22cf('0x16')]?{'type':_0x22cf('0x28'),'content':_0x1d000f(_0x4adff7,_0x22cf('0x24'))}:{'type':_0x22cf('0x28'),'content':_0x1d000f(_0x4adff7,_0x22cf('0x1b'))};}function _0x56b372(_0x6460fa){return{'type':_0x22cf('0x28'),'content':_0x1d000f(_0x4adff7,_0x22cf('0x7'),_0x6460fa)};}});}}function ne(_0x166e4a){const _0x1b97da=_0x166e4a['getAttribute']('listIndent');if(0x0==_0x1b97da)return _0x166e4a;let _0x1bb00a=_0x166e4a;for(;_0x166e4a['previousSibling']&&_0x166e4a[_0x22cf('0x12')]['is'](_0x22cf('0x2e'),_0x22cf('0x17'));){const _0x27a1cc=_0x166e4a[_0x22cf('0x12')]['getAttribute'](_0x22cf('0x1a'));if(_0x27a1cc==_0x1b97da)_0x1bb00a=_0x166e4a[_0x22cf('0x12')];else{if(_0x27a1cc<_0x1b97da)break;}_0x166e4a=_0x166e4a[_0x22cf('0x12')];}return _0x1bb00a;}function oe(_0x680222){const _0x1b4777=[];if(_0x680222['is']('element',_0x22cf('0x17'))&&_0x680222[_0x22cf('0xa')](_0x22cf('0x1a'))>0x0){let _0x5e71f0=_0x680222[_0x22cf('0x5')];for(;_0x5e71f0&&_0x22cf('0x17')==_0x5e71f0['name']&&_0x5e71f0[_0x22cf('0xa')](_0x22cf('0x1a'))==_0x680222['getAttribute'](_0x22cf('0x1a'));)_0x1b4777['push'](_0x5e71f0),_0x5e71f0=_0x5e71f0['nextSibling'];}return _0x1b4777;}
|