@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231030.0 → 0.0.0-nightly-20231101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10d6=['getRanges','*Set\x20font\x20size:*\x20%0','trim','*Reset\x20font\x20color*','*Reset\x20font\x20family*','fontColor','get','title','find','FontFamilyEditing','FontBackgroundColorEditing','selection','plugins','format','toLowerCase','_enableCommand','label','afterInit','model','enableCommand','fontBackgroundColor','commandParams','FontSizeEditing','fontFamily','fontColor.colors','registerDescriptionCallback','has','value','editor','locale','normalizeSizeOptions','isCollapsed','*Set\x20font\x20color:*\x20%0','fontSize','FontSize','config','commandName','change','document'];(function(_0x22d9e5,_0x10d606){const _0x3fde89=function(_0x57a3c3){while(--_0x57a3c3){_0x22d9e5['push'](_0x22d9e5['shift']());}};_0x3fde89(++_0x10d606);}(_0x10d6,0xf6));const _0x3fde=function(_0x22d9e5,_0x10d606){_0x22d9e5=_0x22d9e5-0x0;let _0x3fde89=_0x10d6[_0x22d9e5];return _0x3fde89;};import{Plugin as _0x575b68}from'ckeditor5/src/core';import{normalizeColorOptions as _0x85874c}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0xb43125}from'./utils';import{getTranslation as _0x4f8c7a}from'../utils/common-translations';const eo=[{'pluginName':_0x3fde('0xa'),'commandName':_0x3fde('0x15')},{'pluginName':_0x3fde('0x24'),'commandName':_0x3fde('0xb')},{'pluginName':'FontColorEditing','commandName':_0x3fde('0x20')},{'pluginName':_0x3fde('0x25'),'commandName':_0x3fde('0x8')}];export default class W extends _0x575b68{[_0x3fde('0x5')](){const _0x2c67e4=this[_0x3fde('0x10')][_0x3fde('0x11')];for(const {pluginName:_0x24ee90,commandName:_0x35201a}of eo)this['editor'][_0x3fde('0x0')][_0x3fde('0xe')](_0x24ee90)&&this[_0x3fde('0x3')](_0x35201a);this[_0x3fde('0x10')][_0x3fde('0x0')][_0x3fde('0x21')]('TrackChangesEditing')['_descriptionFactory'][_0x3fde('0xd')](_0x4c9a1f=>{const _0x187555=_0x2c67e4['t'],{data:_0x2f4657}=_0x4c9a1f;if(null!=_0x2f4657){if(_0x3fde('0x15')==_0x2f4657[_0x3fde('0x18')]){const _0x46497f=_0x2f4657['commandParams'][0x0]['value'];if(_0x46497f){const _0x27f651=_0x187555(this[_0x3fde('0x10')][_0x3fde('0x0')][_0x3fde('0x21')](_0x3fde('0x16'))[_0x3fde('0x12')](this['editor']['config']['get']('fontSize.options'))[_0x3fde('0x23')](_0x36de7f=>_0x36de7f[_0x3fde('0x6')]==_0x46497f)[_0x3fde('0x22')])[_0x3fde('0x2')]();return{'type':'format','content':_0x4f8c7a(_0x2c67e4,_0x3fde('0x1c'),_0x27f651)};}return{'type':_0x3fde('0x1'),'content':_0x4f8c7a(_0x2c67e4,'*Reset\x20font\x20size*')};}if(_0x3fde('0xb')==_0x2f4657[_0x3fde('0x18')]){const _0x3dc71c=_0x2f4657[_0x3fde('0x9')][0x0][_0x3fde('0xf')];return _0x3dc71c?{'type':_0x3fde('0x1'),'content':_0x4f8c7a(_0x2c67e4,'*Set\x20font\x20family:*\x20%0',_0x3dc71c)}:{'type':_0x3fde('0x1'),'content':_0x4f8c7a(_0x2c67e4,_0x3fde('0x1f'))};}if('fontColor'==_0x2f4657[_0x3fde('0x18')]){const _0x2bbda1=_0x2f4657['commandParams'][0x0][_0x3fde('0xf')];if(_0x2bbda1){const _0x186107=_0x85874c(this[_0x3fde('0x10')][_0x3fde('0x17')]['get'](_0x3fde('0xc')))[_0x3fde('0x23')](_0x119f05=>_0x119f05[_0x3fde('0x6')]==_0x2bbda1);let _0x2e94c2=_0x2bbda1,_0x4562a6='';return _0x186107&&(_0x2e94c2=_0x186107['label'],_0x4562a6=_0x187555(_0x2e94c2)['toLowerCase']()),{'type':_0x3fde('0x1'),'content':_0x4f8c7a(_0x2c67e4,_0x3fde('0x14'),_0x4562a6)[_0x3fde('0x1d')](),'color':{'value':_0x2bbda1,'title':_0x4562a6||_0x2e94c2}};}return{'type':'format','content':_0x4f8c7a(_0x2c67e4,_0x3fde('0x1e'))};}if('fontBackgroundColor'==_0x2f4657[_0x3fde('0x18')]){const _0x31b68e=_0x2f4657['commandParams'][0x0][_0x3fde('0xf')];if(_0x31b68e){const _0xb2cc6=_0x85874c(this[_0x3fde('0x10')][_0x3fde('0x17')]['get']('fontBackgroundColor.colors'))[_0x3fde('0x23')](_0x2f3adb=>_0x2f3adb[_0x3fde('0x6')]==_0x31b68e);let _0x22a13d=_0x31b68e,_0x2ceeba='';return _0xb2cc6&&(_0x22a13d=_0xb2cc6[_0x3fde('0x4')],_0x2ceeba=_0x187555(_0x22a13d)['toLowerCase']()),{'type':_0x3fde('0x1'),'content':_0x4f8c7a(_0x2c67e4,'*Set\x20font\x20background\x20color:*\x20%0',_0x2ceeba)['trim'](),'color':{'value':_0x31b68e,'title':_0x2ceeba||_0x22a13d}};}return{'type':_0x3fde('0x1'),'content':_0x4f8c7a(_0x2c67e4,'*Reset\x20font\x20background\x20color*')};}}});}[_0x3fde('0x3')](_0x457151){const _0x12f9b0=this[_0x3fde('0x10')];_0x12f9b0[_0x3fde('0x0')][_0x3fde('0x21')]('TrackChangesEditing')[_0x3fde('0x7')](_0x457151,(_0x160630,_0x59bc33={})=>{const _0x5da6f2=_0x12f9b0['model'][_0x3fde('0x1a')][_0x3fde('0x26')],_0xcca4ad=_0x59bc33[_0x3fde('0xf')];_0x5da6f2[_0x3fde('0x13')]?_0x160630(_0x59bc33):_0x12f9b0[_0x3fde('0x6')][_0x3fde('0x19')](()=>{const _0x481f32=Array['from'](_0x5da6f2[_0x3fde('0x1b')]());for(const _0x1567d1 of _0x481f32){const _0x5d4073=_0xcca4ad?[_0x1567d1]:_0xb43125(_0x457151,_0x1567d1,_0x12f9b0[_0x3fde('0x6')]);for(const _0x15223d of _0x5d4073)_0x12f9b0['plugins'][_0x3fde('0x21')]('TrackChangesEditing')['markInlineFormat'](_0x15223d,{'commandName':_0x457151,'commandParams':[{'value':_0xcca4ad}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x85ce=['commands','keys','enableCommand','isBlock','slice','find','get','push','afterInit','editor','commandParams','fontSize','getLastPosition','getFirstPosition','model','length','modifySelection','FontSize','copyFormat','markInlineFormat','*Remove\x20all\x20formatting*','label','split','boolean','pasteFormat','getItems','fontColor.colors','format','isFormatting','locale','document','commandName','entries','plugins','word','config','toLowerCase','getAttributeProperties','selection','getAttributes','getRanges','change','createRange','*Set\x20format\x20to:*\x20%0','_descriptionFactory','title','TrackChangesEditing','join','backward','normalizeSizeOptions','toUpperCase','fontSize.options'];(function(_0x87e6da,_0x85ce00){const _0x395089=function(_0x263a8c){while(--_0x263a8c){_0x87e6da['push'](_0x87e6da['shift']());}};_0x395089(++_0x85ce00);}(_0x85ce,0x87));const _0x3950=function(_0x87e6da,_0x85ce00){_0x87e6da=_0x87e6da-0x0;let _0x395089=_0x85ce[_0x87e6da];return _0x395089;};import{Plugin as _0x3855f9}from'ckeditor5/src/core';import{normalizeColorOptions as _0x359810}from'ckeditor5/src/ui';import{first as _0x1b4b92}from'ckeditor5/src/utils';import{getTranslation as _0x5b0cf3}from'../utils/common-translations';export default class J extends _0x3855f9{[_0x3950('0x1d')](){const _0x3fe208=this[_0x3950('0x1e')],_0x32010e=_0x3fe208['model'],_0x5bf961=_0x32010e[_0x3950('0x33')][_0x3950('0x7')],_0xe69c20=_0x3fe208['plugins'][_0x3950('0x1b')](_0x3950('0xf')),_0x2b49a2=_0x3fe208[_0x3950('0x32')],_0xd3f9a0=_0x3fe208[_0x3950('0x15')][_0x3950('0x1b')](_0x3950('0x27')),_0x168dad=_0x3fe208[_0x3950('0x15')][_0x3950('0x1b')](_0x3950('0x2d'));_0xd3f9a0&&_0x168dad&&(_0xe69c20[_0x3950('0x17')]('pasteFormat',(_0x2eb000,_0x4c3bbe={})=>{const _0x4d6a9f=_0x4c3bbe;_0x32010e[_0x3950('0xa')](()=>{const _0x2ddf07=Array['from'](_0x5bf961[_0x3950('0x9')]()),_0x35aa01=_0x5bf961['isCollapsed']?[io(_0x32010e,_0x5bf961)]:_0x2ddf07,_0x3b23c1=!!_0x1b4b92(function*(_0x4f62bd,_0x5469df){const _0x9e100d=_0x37db3b=>!!_0x1b4b92(function*(_0x4050cf,_0xc3e150){for(const [_0x596b39]of _0x4050cf[_0x3950('0x8')]()){const _0x1a8d18=_0xc3e150[_0x3950('0x6')](_0x596b39);_0x1a8d18&&_0x1a8d18[_0x3950('0x31')]&&(yield _0x596b39);}}(_0x37db3b,_0x5469df));for(const _0x5c5618 of _0x4f62bd[_0x3950('0x9')]())for(const _0x5ba5d7 of _0x5c5618[_0x3950('0x2e')]())!_0x5469df[_0x3950('0x18')](_0x5ba5d7)&&_0x9e100d(_0x5ba5d7)&&(yield _0x5ba5d7);for(const _0x59e97b of _0x4f62bd['getSelectedBlocks']())_0x9e100d(_0x59e97b)&&(yield _0x59e97b);_0x9e100d(_0x4f62bd)&&(yield _0x4f62bd);}(_0x5bf961,_0x32010e['schema']));if(_0x3b23c1||0x0!==Object[_0x3950('0x16')](_0x4d6a9f)[_0x3950('0x24')])for(const _0x153650 of _0x35aa01)_0xe69c20[_0x3950('0x28')](_0x153650,{'commandName':'pasteFormat','commandParams':[_0x4d6a9f]});});}),_0xe69c20[_0x3950('0xd')]['registerDescriptionCallback'](_0x4c4485=>{const {data:_0x296661}=_0x4c4485;if(_0x296661&&'pasteFormat'===_0x296661[_0x3950('0x0')]){const _0x389a00=[],_0x4e07a4=_0x296661[_0x3950('0x1f')][0x0];for(const [_0xfb5fcd,_0xe6248c]of Object[_0x3950('0x1')](_0x4e07a4))_0x389a00[_0x3950('0x1c')](so(_0x3fe208,_0xfb5fcd,_0xe6248c));return _0x389a00[_0x3950('0x24')]?{'type':_0x3950('0x30'),'content':_0x5b0cf3(_0x2b49a2,_0x3950('0xc'),_0x389a00[_0x3950('0x10')](',\x20'))}:{'type':'format','content':_0x5b0cf3(_0x2b49a2,_0x3950('0x29'))};}}),_0x3fe208[_0x3950('0x2')][_0x3950('0x1b')](_0x3950('0xf'))[_0x3950('0x17')](_0x3950('0x27')));}}function io(_0x4c9aa1,_0x8bf9c9){const _0x196d99=_0x4c9aa1['createSelection'](_0x8bf9c9);_0x4c9aa1[_0x3950('0x25')](_0x196d99,{'unit':_0x3950('0x3'),'direction':_0x3950('0x11')});const _0x530f98=_0x196d99[_0x3950('0x22')]();_0x4c9aa1[_0x3950('0x25')](_0x196d99,{'unit':_0x3950('0x3'),'direction':'forward'});const _0x296b6f=_0x196d99[_0x3950('0x21')]();return _0x4c9aa1[_0x3950('0xb')](_0x530f98,_0x296b6f);}function so(_0x1e05ae,_0x1c328a,_0x46933c){const _0x2468cf=_0x1e05ae[_0x3950('0x32')]['t'],_0x47f811=_0x1c328a[_0x3950('0x2b')](/(?=[A-Z])/)[_0x3950('0x10')]('\x20'),_0x5b40be=_0x2468cf(_0x47f811['charAt'](0x0)[_0x3950('0x13')]()+_0x47f811[_0x3950('0x19')](0x1))[_0x3950('0x5')]();if(_0x3950('0x2c')==typeof _0x46933c)return _0x5b40be;if('fontColor'===_0x1c328a||'fontBackgroundColor'===_0x1c328a){const _0x5a5cd0=_0x359810(_0x1e05ae['config'][_0x3950('0x1b')](_0x3950('0x2f')))['find'](_0xb37a08=>_0xb37a08[_0x3950('0x23')]==_0x46933c);return _0x5b40be+'\x20('+(_0x5a5cd0?_0x2468cf(_0x5a5cd0[_0x3950('0x2a')])['toLowerCase']():_0x46933c)+')';}if(_0x3950('0x20')===_0x1c328a&&isNaN(parseFloat(_0x46933c))){const _0x3cefc7=_0x1e05ae['plugins'][_0x3950('0x1b')](_0x3950('0x26'))[_0x3950('0x12')](_0x1e05ae[_0x3950('0x4')][_0x3950('0x1b')](_0x3950('0x14')))[_0x3950('0x1a')](_0x419a11=>_0x419a11[_0x3950('0x23')]==_0x46933c);return _0x5b40be+'\x20('+(_0x3cefc7?_0x2468cf(_0x3cefc7[_0x3950('0xe')])[_0x3950('0x5')]():_0x46933c)+')';}return _0x5b40be+'\x20('+_0x46933c+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x492f=['markBlockFormat','plugins','parent','checkChild','commandName','schema','format','formatBlock','_descriptionFactory','selection','document','model','match','afterInit','blockName','commandParams','paragraph','registerDescriptionCallback','heading.options','name','get','title','config','value','from','heading','ELEMENT_HEADING_CUSTOM','change','find','enableCommand','locale','getSelectedBlocks','*Change\x20to:*\x20%0','isObject','TrackChangesEditing','ELEMENT_HEADING','editor','registerElementLabel','has'];(function(_0x1c364b,_0x492fab){const _0x990d88=function(_0x42631c){while(--_0x42631c){_0x1c364b['push'](_0x1c364b['shift']());}};_0x990d88(++_0x492fab);}(_0x492f,0xda));const _0x990d=function(_0x1c364b,_0x492fab){_0x1c364b=_0x1c364b-0x0;let _0x990d88=_0x492f[_0x1c364b];return _0x990d88;};import{Plugin as _0x262fa4}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xf67c85}from'./utils';import{getTranslation as _0x17818a}from'../utils/common-translations';export default class K extends _0x262fa4{[_0x990d('0x1d')](){const _0x2092be=this['editor'],_0x4968c9=_0x2092be[_0x990d('0x7')],_0x6923bd=_0x2092be[_0x990d('0x26')][_0x990d('0x24')](_0x990d('0x22'));if(!_0x2092be[_0x990d('0x11')][_0x990d('0xf')]('HeadingEditing'))return;const _0x28525f=_0x2092be[_0x990d('0x11')][_0x990d('0x24')](_0x990d('0xb'));_0x28525f[_0x990d('0x6')](_0x990d('0x2'),(_0x50e9c0,_0x549a77)=>{const _0x413b87=_0x549a77['value'],_0x423409=Array[_0x990d('0x1')](this[_0x990d('0xd')][_0x990d('0x1b')][_0x990d('0x1a')][_0x990d('0x19')][_0x990d('0x8')]())['filter'](_0x3d1d7f=>function(_0x4bf701,_0x2e2ee5,_0x392279){return _0x392279[_0x990d('0x13')](_0x4bf701[_0x990d('0x12')],_0x2e2ee5)&&!_0x392279[_0x990d('0xa')](_0x4bf701)&&_0x4bf701[_0x990d('0x23')]!=_0x2e2ee5;}(_0x3d1d7f,_0x413b87,this[_0x990d('0xd')][_0x990d('0x1b')][_0x990d('0x15')]));_0x2092be[_0x990d('0x1b')][_0x990d('0x4')](()=>{for(const _0x25c573 of _0x423409)_0x28525f[_0x990d('0x10')](_0x25c573,{'commandName':'heading','commandParams':[_0x549a77],'formatGroupId':_0x990d('0x1e')},_0xf67c85(_0x25c573));});});for(const _0x31135c of _0x6923bd)_0x990d('0x20')!=_0x31135c[_0x990d('0x1b')]&&_0x28525f['_descriptionFactory'][_0x990d('0xe')](_0x31135c[_0x990d('0x1b')],_0x496823=>{const _0x59214f=nn(_0x31135c['model']);return null!==_0x59214f?_0x14a91d(_0x496823,_0x59214f):_0x50a623(_0x496823,_0x31135c[_0x990d('0x25')]);});function _0x14a91d(_0x568470,_0x476de3){return _0x17818a(_0x4968c9,_0x990d('0xc'),[_0x568470,_0x476de3]);}function _0x50a623(_0x563efb,_0x433618){return _0x17818a(_0x4968c9,_0x990d('0x3'),[_0x563efb,_0x433618]);}_0x28525f[_0x990d('0x18')][_0x990d('0x21')](_0x30a138=>{const {type:_0xdee882,data:_0x596a10}=_0x30a138;if(_0x990d('0x17')==_0xdee882&&_0x596a10&&_0x990d('0x2')==_0x596a10[_0x990d('0x14')]){const _0x5df0d6=_0x596a10[_0x990d('0x1f')][0x0][_0x990d('0x0')],_0x23dfd2=nn(_0x5df0d6);if(null!==_0x23dfd2)return{'type':_0x990d('0x16'),'content':_0x17818a(_0x4968c9,_0x990d('0x9'),_0x14a91d(0x1,_0x23dfd2))};const _0x3b329d=_0x6923bd[_0x990d('0x5')](_0x167758=>_0x167758[_0x990d('0x1b')]===_0x5df0d6)[_0x990d('0x25')];return{'type':_0x990d('0x16'),'content':_0x17818a(_0x4968c9,_0x990d('0x9'),_0x50a623(0x1,_0x3b329d))};}});}}function nn(_0x7114f7){const _0x24944d=_0x7114f7[_0x990d('0x1c')](/^heading(\d+)$/);return _0x24944d?_0x24944d[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1da9=['getLastMatchingPosition','document','locale','item','highlight.options','_descriptionFactory','*Remove\x20highlight*','push','commandParams','selection','color','value','plugins','find','enableCommand','get','createRange','getAttribute','highlight','editor','isCollapsed','change','model','title','getFirstPosition','backward','commandName','hasAttribute','*Set\x20highlight:*\x20%0','toLowerCase','getRanges','formatInline','format','registerDescriptionCallback'];(function(_0x152774,_0x1da957){const _0xc9a422=function(_0x4d8c0b){while(--_0x4d8c0b){_0x152774['push'](_0x152774['shift']());}};_0xc9a422(++_0x1da957);}(_0x1da9,0xbc));const _0xc9a4=function(_0x152774,_0x1da957){_0x152774=_0x152774-0x0;let _0xc9a422=_0x1da9[_0x152774];return _0xc9a422;};import{Plugin as _0x48aabe}from'ckeditor5/src/core';import{getTranslation as _0x58c728}from'../utils/common-translations';import{getRangesWithAttribute as _0x231aa1}from'./utils';export default class Q extends _0x48aabe{['afterInit'](){const _0x4036e5=this[_0xc9a4('0x1')];if(!_0x4036e5[_0xc9a4('0x1c')]['has']('HighlightEditing'))return;const _0x4b983c=_0x4036e5['plugins'][_0xc9a4('0x1f')]('TrackChangesEditing');_0x4b983c[_0xc9a4('0x1e')]('highlight',(_0x439cc6,_0x572789={})=>{const _0x280ebf=_0x4036e5[_0xc9a4('0x4')][_0xc9a4('0x11')][_0xc9a4('0x19')],_0x220fd5=_0x280ebf[_0xc9a4('0x21')](_0xc9a4('0x0'));let _0x239d11=_0x572789[_0xc9a4('0x1b')],_0x14e554=[];if(_0x280ebf[_0xc9a4('0x2')]){const _0x5d2dbe=_0x280ebf[_0xc9a4('0x6')]();if(!_0x280ebf[_0xc9a4('0x9')]('highlight'))return void _0x439cc6(_0x572789);{const _0x1c346b=_0x271f14=>_0x271f14[_0xc9a4('0x13')]['getAttribute'](_0xc9a4('0x0'))===_0x220fd5,_0x4ea105=_0x5d2dbe[_0xc9a4('0x10')](_0x1c346b,{'direction':_0xc9a4('0x7')}),_0x2c1f7e=_0x5d2dbe[_0xc9a4('0x10')](_0x1c346b);_0x14e554=[_0x4036e5[_0xc9a4('0x4')][_0xc9a4('0x20')](_0x4ea105,_0x2c1f7e)],_0x239d11==_0x220fd5&&(_0x239d11=null);}}else for(const _0x42286 of _0x280ebf[_0xc9a4('0xc')]())_0x239d11?_0x14e554[_0xc9a4('0x17')](_0x42286):_0x14e554[_0xc9a4('0x17')](..._0x231aa1(_0xc9a4('0x0'),_0x42286,_0x4036e5[_0xc9a4('0x4')]));_0x4036e5[_0xc9a4('0x4')][_0xc9a4('0x3')](()=>{for(const _0x2c98ba of _0x14e554)_0x4b983c['markInlineFormat'](_0x2c98ba,{'commandName':'highlight','commandParams':[{'value':_0x239d11}]});});});const _0x461bca=_0x4036e5[_0xc9a4('0x12')];_0x4b983c[_0xc9a4('0x15')][_0xc9a4('0xf')](_0x1d1e5f=>{const {type:_0x34b0ab,data:_0x1e303d}=_0x1d1e5f;if(_0xc9a4('0xd')==_0x34b0ab&&_0x1e303d&&_0xc9a4('0x0')==_0x1e303d[_0xc9a4('0x8')]){const _0xa9b58b=_0x461bca['t'],_0x44d72c=_0x1e303d[_0xc9a4('0x18')][0x0][_0xc9a4('0x1b')];if(_0x44d72c){const _0x985cf3=_0x4036e5['config'][_0xc9a4('0x1f')](_0xc9a4('0x14'))[_0xc9a4('0x1d')](_0x143141=>_0x143141['model']==_0x44d72c),_0x30396d=_0xa9b58b(_0x985cf3[_0xc9a4('0x5')])[_0xc9a4('0xb')]();return{'type':_0xc9a4('0xe'),'content':_0x58c728(_0x461bca,_0xc9a4('0xa'),_0x30396d),'color':{'value':_0x985cf3[_0xc9a4('0x1a')],'title':_0x985cf3['title']}};}return{'type':_0xc9a4('0xe'),'content':_0x58c728(_0x461bca,_0xc9a4('0x16'),_0x58c728(_0x461bca,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6e7d=['afterInit','ck-horizontal-line','HorizontalLineEditing','horizontalLine','registerElementLabel','div','showSuggestionHighlights','elementToStructure','editor','insert','locale','has','TrackChangesEditing','ELEMENT_HORIZONTAL_LINE','get','enableCommand','createPositionAt','_descriptionFactory','for','plugins','createContainerElement','dataDowncast'];(function(_0x382edd,_0x6e7d9a){const _0x349524=function(_0x34a851){while(--_0x34a851){_0x382edd['push'](_0x382edd['shift']());}};_0x349524(++_0x6e7d9a);}(_0x6e7d,0x150));const _0x3495=function(_0x382edd,_0x6e7d9a){_0x382edd=_0x382edd-0x0;let _0x349524=_0x6e7d[_0x382edd];return _0x349524;};import{Plugin as _0x3e997f}from'ckeditor5/src/core';import{getTranslation as _0x3bd977}from'../utils/common-translations';export default class V extends _0x3e997f{[_0x3495('0x10')](){const _0xcbccbb=this[_0x3495('0x2')];if(!_0xcbccbb[_0x3495('0xd')][_0x3495('0x5')](_0x3495('0x12')))return;_0xcbccbb[_0x3495('0xd')][_0x3495('0x8')]('TrackChangesEditing')[_0x3495('0x9')]('horizontalLine');const _0x3dda49=_0xcbccbb[_0x3495('0xd')]['get'](_0x3495('0x6')),_0x1487c4=_0xcbccbb[_0x3495('0x4')];_0x3dda49[_0x3495('0xb')][_0x3495('0x14')]('horizontalLine',_0x307152=>_0x3bd977(_0x1487c4,_0x3495('0x7'),_0x307152)),_0xcbccbb['conversion'][_0x3495('0xc')](_0x3495('0xf'))[_0x3495('0x1')]({'model':_0x3495('0x13'),'view':(_0x11a0a0,{writer:_0x452163,options:_0x10f8a6})=>{if(!_0x10f8a6[_0x3495('0x0')])return null;const _0x1ba2a8=_0x452163[_0x3495('0xe')](_0x3495('0x15')),_0x6191d=_0x452163['createEmptyElement']('hr');return _0x452163['addClass'](_0x3495('0x11'),_0x1ba2a8),_0x452163[_0x3495('0x3')](_0x452163[_0x3495('0xa')](_0x1ba2a8,0x0),_0x6191d),_0x1ba2a8;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2257=['registerElementLabel','change','locale','format','view','model','editing','HtmlEmbed','rawHtml','rawHtmlApi','editor','document','plugins','cancel','htmlEmbed','enableCommand','ELEMENT_HTML_EMBED','selection','_descriptionFactory','element','get','registerDescriptionCallback','TrackChangesEditing','afterInit','getSelectedElement','*Change\x20%0\x20content*'];(function(_0x39baec,_0x225796){const _0x26089a=function(_0x21862e){while(--_0x21862e){_0x39baec['push'](_0x39baec['shift']());}};_0x26089a(++_0x225796);}(_0x2257,0x156));const _0x2608=function(_0x39baec,_0x225796){_0x39baec=_0x39baec-0x0;let _0x26089a=_0x2257[_0x39baec];return _0x26089a;};import{Plugin as _0x33fc4f}from'ckeditor5/src/core';import{getTranslation as _0x2faab9}from'../utils/common-translations';export default class X extends _0x33fc4f{[_0x2608('0x13')](){const _0x23bb48=this[_0x2608('0x6')];if(!_0x23bb48[_0x2608('0x8')]['has'](_0x2608('0x3')))return;const _0x192a4d=_0x23bb48[_0x2608('0x8')][_0x2608('0x10')](_0x2608('0x12')),_0xd1f18e=_0x23bb48[_0x2608('0x18')],_0x3512e3=_0x23bb48[_0x2608('0x2')][_0x2608('0x0')][_0x2608('0x7')][_0x2608('0xd')];_0x192a4d['_descriptionFactory'][_0x2608('0x16')](_0x2608('0x4'),_0x13bc24=>_0x2faab9(_0xd1f18e,_0x2608('0xc'),_0x13bc24)),_0x23bb48[_0x2608('0x8')]['get'](_0x2608('0x12'))[_0x2608('0xb')](_0x2608('0xa'),(_0x599624,_0x21a95c)=>{const _0x2b9aeb=_0x23bb48[_0x2608('0x1')],_0x288c1a=_0x2b9aeb[_0x2608('0x7')][_0x2608('0xd')];_0x2b9aeb[_0x2608('0x17')](()=>{const _0x453056=function(_0x5dd212){const _0x4ea7b4=_0x5dd212[_0x2608('0x14')]();if(_0x4ea7b4&&_0x4ea7b4['is'](_0x2608('0xf'),_0x2608('0x4')))return _0x5dd212['getSelectedElement']();return null;}(_0x288c1a);if(!_0x453056)return void _0x599624(null);const _0x1348a2=_0x453056['getAttribute']('value')||'';if(void 0x0===_0x21a95c)return;if(_0x21a95c===_0x1348a2)return;_0x192a4d['markBlockFormat'](_0x453056,{'commandName':_0x2608('0xa'),'commandParams':[_0x21a95c]}),_0x3512e3[_0x2608('0x14')]()['getCustomProperty'](_0x2608('0x5'))[_0x2608('0x9')]();});}),_0x192a4d[_0x2608('0xe')][_0x2608('0x11')](_0x9a7d04=>{const {data:_0x31f48a}=_0x9a7d04;if(_0x31f48a&&_0x2608('0xa')==_0x31f48a['commandName']){const _0x6490b9=_0x2faab9(_0xd1f18e,_0x2608('0xc'));return{'type':_0x2608('0x19'),'content':_0x2faab9(_0xd1f18e,_0x2608('0x15'),_0x6490b9)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3853=['registerPostFixer','editor','imageTypeBlock','toggleImageCaption','toPrevious','ImageStyleEditing','refresh','element','schema','nodeBefore','registerCustomCallback','isInContent','markBlockFormat','imageStylePreApply','getFirstRange','isEqual','document','_splitMarkerName','selection','toNext','chain','formatBlock','formatInline','getContainedElement','newRange','removeObject','getNearestSelectionRange','next','suggestion','imageStyle','caption','isOwn','ImageTextAlternativeEditing','accept','normalizedStyles','hasAttribute','Inline\x20image\x20to\x20block\x20image','Users','side','ImageResize','insertImage','isBlockImage','*Format:*\x20%0','commandName','imageCaption','join','getAttribute','newValue','registerElementLabel','registerDescriptionCallback','ELEMENT_INLINE_IMAGE','commandParams','format','_descriptionFactory','has','forEach','commandReversedParams','ELEMENT_IMAGE','deletion','afterInit','*Set\x20image\x20text\x20alternative:*\x20%0','getSuggestions','imageTypeInline','imageStylePostApply','author','forward','*Reset\x20image\x20width*','isBefore','markDeletion','fromPosition','markInlineFormat','getClosestSelectedImageElement','start','addObject','ImageBlockEditing','toLowerCase','insertion','from','end','createRange','createRangeOn','alt','convertBlockImageToInline','hasSuggestion','forceDefaultExecution','backward','discardSuggestion','model','subType','markInsertion','locale','setImageNaturalSizeAttributes','resizedWidth','length','discard','detach','resizeImage','head','imageBlock','ImageInlineEditing','shouldConvertImageType','plugins','imageTextAlternative','getChangedMarkers','filter','commands','enableCommand','ImageCaptionEditing','findIndex','_suggestionFactory','type','change','find','nodeAfter','width','getSuggestion','get','value','ImageUtils','convertInlineImageToBlock','_findSuggestions'];(function(_0x4b5417,_0x3853ea){const _0x7b028f=function(_0x3e809c){while(--_0x3e809c){_0x4b5417['push'](_0x4b5417['shift']());}};_0x7b028f(++_0x3853ea);}(_0x3853,0x1a0));const _0x7b02=function(_0x4b5417,_0x3853ea){_0x4b5417=_0x4b5417-0x0;let _0x7b028f=_0x3853[_0x4b5417];return _0x7b028f;};import{Plugin as _0x1598b6}from'ckeditor5/src/core';import{LivePosition as _0x31b73a}from'ckeditor5/src/engine';import{uid as _0x25d07b}from'ckeditor5/src/utils';import{getTranslation as _0x3383c9}from'../utils/common-translations';export default class Y extends _0x1598b6{[_0x7b02('0x6')](){const _0x1624c8=this[_0x7b02('0x45')];if(!_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')]('ImageEditing'))return;const _0x71e9bb=_0x1624c8['plugins'][_0x7b02('0x3f')]('TrackChangesEditing'),_0x51e8e1=_0x1624c8[_0x7b02('0x30')][_0x7b02('0x3f')](_0x7b02('0x41')),_0x39d6ce={},_0x270e7b=_0x1624c8[_0x7b02('0x25')];if(_0x71e9bb['enableCommand'](_0x7b02('0x6c')),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x74')](_0x7b02('0x2d'),_0x4a3c08=>_0x3383c9(_0x270e7b,_0x7b02('0x4'),_0x4a3c08)),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x74')]('imageInline',_0x3b0eaa=>_0x3383c9(_0x270e7b,_0x7b02('0x76'),_0x3b0eaa)),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x74')]('caption',()=>_0x3383c9(_0x270e7b,'ELEMENT_CAPTION')),_0x1624c8['plugins'][_0x7b02('0x1')]('ImageUploadEditing')&&_0x71e9bb['enableCommand']('uploadImage'),_0x1624c8['plugins'][_0x7b02('0x1')](_0x7b02('0x15'))&&_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x2e'))&&(_0x71e9bb[_0x7b02('0x35')]('imageTypeInline',(_0xe6b321,_0x2b4632)=>{const _0x4ae276=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model']['document'][_0x7b02('0x56')]);_0x1624c8[_0x7b02('0x22')]['change'](()=>{_0x71e9bb['markBlockFormat'](_0x4ae276,{'commandName':_0x7b02('0x9'),'commandParams':[_0x2b4632]},[],_0x7b02('0x1d'));});}),_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x46'),(_0x439c6f,_0x158f88)=>{_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](_0x34aa2d=>{let _0x478a32=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')]['selection']),_0x59671d=_0x34aa2d[_0x7b02('0x1b')](_0x478a32);const _0x542a4e=_0x31b73a[_0x7b02('0x10')](_0x59671d[_0x7b02('0x13')],_0x7b02('0x48')),_0x2f1ba4=_0x31b73a['fromPosition'](_0x59671d[_0x7b02('0x19')],_0x7b02('0x57'));_0x71e9bb[_0x7b02('0x1f')](()=>_0x439c6f(_0x158f88)),_0x478a32=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')][_0x7b02('0x56')]),_0x59671d=_0x34aa2d[_0x7b02('0x1b')](_0x478a32);const _0x3d048b=_0x34aa2d['createRange'](_0x542a4e,_0x2f1ba4);_0x542a4e['detach'](),_0x2f1ba4[_0x7b02('0x2a')](),_0x71e9bb[_0x7b02('0x50')](_0x478a32,{'commandName':_0x7b02('0x9'),'commandParams':[_0x158f88]},[],_0x7b02('0x42')),_0x3d048b[_0x7b02('0x13')]['isBefore'](_0x59671d[_0x7b02('0x13')])&&_0x71e9bb[_0x7b02('0x24')](_0x34aa2d[_0x7b02('0x1a')](_0x3d048b[_0x7b02('0x13')],_0x59671d['start']),_0x7b02('0x42')),_0x59671d[_0x7b02('0x19')][_0x7b02('0xe')](_0x3d048b[_0x7b02('0x19')])&&_0x71e9bb[_0x7b02('0x24')](_0x34aa2d[_0x7b02('0x1a')](_0x59671d['end'],_0x3d048b[_0x7b02('0x19')]),_0x7b02('0x42'));});}),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x42'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')]['registerCustomCallback']('formatBlock',_0x7b02('0x42'),_0x7b02('0x65'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x42'),_0x7b02('0x29'),_0x71e9bb[_0x7b02('0x38')]['getSuggestionCallback'](_0x7b02('0x59'),'','accept')),_0x71e9bb[_0x7b02('0x38')]['registerCustomCallback'](_0x7b02('0x17'),'convertInlineImageToBlock','join',()=>!0x1),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x17'),_0x7b02('0x42'),_0x7b02('0x29'),([_0x2f7e1f])=>{const _0x49866c=_0x71e9bb[_0x7b02('0x38')]['getSuggestionCallback'](_0x7b02('0x17'),'',_0x7b02('0x29'));let _0x8867e4=_0x2f7e1f[_0x7b02('0x13')],_0xc8009e=_0x2f7e1f[_0x7b02('0x19')];const _0x520362=_0x1624c8['model'][_0x7b02('0x4c')][_0x7b02('0x5e')](_0x8867e4,_0x7b02('0x20')),_0x1ac750=_0x1624c8['model'][_0x7b02('0x4c')][_0x7b02('0x5e')](_0xc8009e,_0x7b02('0xc'));_0x520362['isCollapsed']&&(_0x8867e4=_0x520362[_0x7b02('0x13')]),_0x1ac750['isCollapsed']&&(_0xc8009e=_0x1ac750[_0x7b02('0x19')]),_0x49866c([_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1a')](_0x8867e4,_0xc8009e)]);}),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x42'),'chain',_0x5b5499),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')]('insertion',_0x7b02('0x42'),_0x7b02('0x58'),_0x5b5499)),_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x36'))&&(_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x47'),(_0x18108f,_0x3b7996)=>{const _0x220660=_0x1624c8[_0x7b02('0x30')][_0x7b02('0x3f')]('ImageCaptionUtils');let _0x2297f4=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model'][_0x7b02('0x54')][_0x7b02('0x56')]),_0x5275c8=_0x220660['getCaptionFromImageModelElement'](_0x2297f4);_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{if(_0x5275c8)return void _0x71e9bb[_0x7b02('0xf')](_0x1624c8['model'][_0x7b02('0x1b')](_0x5275c8));const _0x129fe1=_0x51e8e1[_0x7b02('0x6d')](_0x2297f4);_0x18108f(_0x3b7996),_0x2297f4=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')][_0x7b02('0x56')]),_0x5275c8=_0x220660['getCaptionFromImageModelElement'](_0x2297f4),_0x71e9bb[_0x7b02('0x24')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1b')](_0x5275c8),_0x129fe1?null:_0x7b02('0x70'));});}),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x17'),'imageCaption',_0x7b02('0x58'),_0x5b5499)),_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x49'))){_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x61'),(_0x1749fb,_0x449867)=>{const _0x17ce76=_0x1624c8[_0x7b02('0x30')]['get'](_0x7b02('0x69'))['me'],_0x1e24d1=_0x1624c8[_0x7b02('0x34')][_0x7b02('0x3f')](_0x7b02('0x61'));let _0x273775=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model']['document']['selection']),_0x534f67=_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1b')](_0x273775),_0x343ce5=_0x1e24d1[_0x7b02('0x40')];if(_0x343ce5==_0x449867[_0x7b02('0x40')])return;const _0x3cc67b={'commandName':_0x7b02('0x61'),'commandParams':[_0x449867],'formatGroupId':_0x25d07b()};_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{if(_0x71e9bb[_0x7b02('0x8')]()[_0x7b02('0x33')](_0x44b200=>_0x44b200[_0x7b02('0x4f')]&&_0x17ce76==_0x44b200[_0x7b02('0xb')]&&(_0x7b02('0x59')==_0x44b200['type']||_0x7b02('0x5a')==_0x44b200[_0x7b02('0x39')])&&(_0x7b02('0x51')==_0x44b200['subType']||'imageStylePostApply'==_0x44b200[_0x7b02('0x23')])&&_0x44b200[_0x7b02('0x52')]()[_0x7b02('0x53')](_0x534f67))[_0x7b02('0x2')](_0x100d0c=>_0x71e9bb[_0x7b02('0x21')](_0x100d0c[_0x7b02('0x2c')])),_0x273775=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')]['selection']),_0x534f67=_0x1624c8[_0x7b02('0x22')][_0x7b02('0x1b')](_0x273775),_0x1e24d1['refresh'](),_0x1624c8[_0x7b02('0x34')][_0x7b02('0x3f')]('imageTypeInline')[_0x7b02('0x4a')](),_0x1624c8[_0x7b02('0x34')][_0x7b02('0x3f')](_0x7b02('0x46'))['refresh'](),_0x343ce5=_0x1e24d1[_0x7b02('0x40')],_0x343ce5!=_0x449867[_0x7b02('0x40')])return _0x51e8e1['isInlineImage'](_0x273775)&&_0x1e24d1[_0x7b02('0x2f')](_0x449867[_0x7b02('0x40')],_0x273775)?(_0x1749fb({..._0x449867,'setImageSizes':!0x1}),_0x273775=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')]['document']['selection']),void _0x71e9bb['markBlockFormat'](_0x273775,{..._0x3cc67b,'commandReversedParams':[{'value':_0x343ce5||null,'setImageSizes':!0x1}]},[],_0x7b02('0x51'))):void(_0x51e8e1[_0x7b02('0x6d')](_0x273775)?_0x71e9bb[_0x7b02('0x50')](_0x273775,_0x3cc67b,[],_0x7b02('0xa')):_0x71e9bb[_0x7b02('0x11')](_0x534f67,_0x3cc67b,'imageStylePostApply'));});});for(const _0x36d665 of _0x1624c8[_0x7b02('0x30')][_0x7b02('0x3f')]('ImageStyleEditing')[_0x7b02('0x66')])_0x39d6ce[_0x36d665['name']]=_0x36d665['title'][_0x7b02('0x16')]();_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')]('formatBlock',_0x7b02('0x51'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0xa'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')](_0x7b02('0x5a'),_0x7b02('0xa'),_0x7b02('0x71'),()=>!0x1),_0x71e9bb['_suggestionFactory'][_0x7b02('0x4e')](_0x7b02('0x59'),_0x7b02('0x51'),_0x7b02('0x65'),([_0x580a89])=>{_0x51e8e1[_0x7b02('0x26')](_0x580a89[_0x7b02('0x5b')]());}),_0x71e9bb[_0x7b02('0x38')]['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4cb778,_0x306b34)=>{_0x71e9bb[_0x7b02('0x38')]['getSuggestionCallback'](_0x7b02('0x59'),'',_0x7b02('0x65'))(_0x4cb778,{'commandName':_0x306b34[_0x7b02('0x6f')],'commandParams':_0x306b34[_0x7b02('0x3')]});}),_0x71e9bb[_0x7b02('0x38')][_0x7b02('0x4e')]('formatBlock',_0x7b02('0x51'),_0x7b02('0x58'),_0x5b5499);}const _0x11ac2a=[{'type':_0x7b02('0x59'),'subType':'imageStylePreApply'},{'type':_0x7b02('0x17'),'subType':'imageCaption'},{'type':_0x7b02('0x59'),'subType':_0x7b02('0x42')},{'type':'insertion','subType':_0x7b02('0x42')}];function _0x505487(_0x54076a,_0x6489ce){const _0x2b43f0=_0x11ac2a['findIndex'](({type:_0x1c9fb2,subType:_0x40e586})=>_0x54076a['type']==_0x1c9fb2&&_0x54076a[_0x7b02('0x23')]==_0x40e586),_0x34b999=_0x11ac2a[_0x7b02('0x37')](({type:_0xc93c02,subType:_0x169685})=>_0x6489ce[_0x7b02('0x39')]==_0xc93c02&&_0x6489ce['subType']==_0x169685);if(_0x2b43f0<0x0||_0x34b999<0x0)return!0x1;const _0x1c517d=_0x54076a[_0x7b02('0x52')](),_0x3732dc=_0x6489ce[_0x7b02('0x52')]();if((0x0==_0x2b43f0||0x1==_0x2b43f0)&&0x2==_0x34b999&&_0x1c517d['isIntersecting'](_0x3732dc))return!0x0;if(0x2==_0x2b43f0&&0x3==_0x34b999){const _0x53d683=_0x71e9bb[_0x7b02('0x43')](_0x1c517d,_0x7b02('0x17'))[_0x7b02('0x33')](({suggestion:_0x1d150f,meta:_0x357a65})=>_0x357a65[_0x7b02('0x63')]&&_0x7b02('0x42')==_0x1d150f['subType']);if(_0x53d683['length']>0x1&&_0x3732dc[_0x7b02('0x19')][_0x7b02('0x53')](_0x1c517d[_0x7b02('0x13')]))return!0x0;if(0x1==_0x53d683[_0x7b02('0x28')]&&(_0x1c517d[_0x7b02('0x13')][_0x7b02('0x53')](_0x3732dc[_0x7b02('0x19')])||_0x1c517d['end'][_0x7b02('0x53')](_0x3732dc[_0x7b02('0x13')])))return!0x0;}if(0x3==_0x2b43f0&&0x3==_0x34b999&&_0x1c517d[_0x7b02('0x13')][_0x7b02('0xe')](_0x3732dc[_0x7b02('0x13')])){const _0x26def3=_0x1c517d[_0x7b02('0x19')][_0x7b02('0x3c')],_0x2d4796=_0x3732dc[_0x7b02('0x13')][_0x7b02('0x4d')];return _0x51e8e1['isBlockImage'](_0x26def3)&&_0x26def3===_0x2d4796;}return!0x1;}function _0x5b5499(_0x2a9355,_0x13ac54){return _0x505487(_0x2a9355,_0x13ac54)?[_0x2a9355,_0x13ac54]:_0x505487(_0x13ac54,_0x2a9355)?[_0x13ac54,_0x2a9355]:null;}_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')][_0x7b02('0x44')](()=>{let _0x911b3d=!0x1;const _0x36b732=Array[_0x7b02('0x18')](_0x1624c8[_0x7b02('0x22')][_0x7b02('0x54')]['differ'][_0x7b02('0x32')]());for(const {name:_0x1275a5,data:_0x258c24}of _0x36b732){const {group:_0x2c1366,type:_0x1e4161,subType:_0x13b1cc,id:_0x5ea40a}=_0x71e9bb[_0x7b02('0x55')](_0x1275a5);if(_0x7b02('0x60')==_0x2c1366&&_0x71e9bb[_0x7b02('0x1e')](_0x5ea40a)){if('formatBlock'==_0x1e4161&&(_0x7b02('0x51')==_0x13b1cc||_0x7b02('0xa')==_0x13b1cc)){const _0x3bdb06=_0x71e9bb[_0x7b02('0x3e')](_0x5ea40a);if(_0x258c24[_0x7b02('0x5c')]){const _0x59ccbd=_0x3bdb06[_0x7b02('0x52')]()[_0x7b02('0x5b')]();if(_0x51e8e1['isBlockImage'](_0x59ccbd))continue;_0x71e9bb[_0x7b02('0x21')](_0x3bdb06),_0x911b3d=!0x0;}}if(_0x7b02('0x17')==_0x1e4161&&_0x7b02('0x70')==_0x13b1cc&&!_0x258c24[_0x7b02('0x5c')]){const _0x521818=_0x71e9bb[_0x7b02('0x3e')](_0x5ea40a);_0x521818[_0x7b02('0x5f')]&&_0x521818[_0x7b02('0x5f')][_0x7b02('0x4f')]&&(_0x71e9bb[_0x7b02('0x21')](_0x521818['next']),_0x911b3d=!0x0);}}}return _0x911b3d;}),_0x1624c8['plugins']['has'](_0x7b02('0x6b'))&&_0x71e9bb['enableCommand'](_0x7b02('0x2b'),(_0x1ccec5,_0x1a4512)=>{const _0x441311=_0x51e8e1[_0x7b02('0x12')](_0x1624c8['model'][_0x7b02('0x54')][_0x7b02('0x56')]);_0x441311['getAttribute'](_0x7b02('0x27'))!=_0x1a4512['width']&&_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{_0x71e9bb['markBlockFormat'](_0x441311,{'commandName':_0x7b02('0x2b'),'commandParams':[_0x1a4512]});});}),_0x1624c8[_0x7b02('0x30')][_0x7b02('0x1')](_0x7b02('0x64'))&&_0x71e9bb[_0x7b02('0x35')](_0x7b02('0x31'),(_0xd6359e,_0x253f35)=>{const _0x4818e7=_0x51e8e1[_0x7b02('0x12')](_0x1624c8[_0x7b02('0x22')]['document'][_0x7b02('0x56')]);(_0x4818e7[_0x7b02('0x67')](_0x7b02('0x1c'))?_0x4818e7[_0x7b02('0x72')](_0x7b02('0x1c')):'')!=_0x253f35['newValue']&&_0x1624c8[_0x7b02('0x22')][_0x7b02('0x3a')](()=>{_0x71e9bb['markBlockFormat'](_0x4818e7,{'commandName':_0x7b02('0x31'),'commandParams':[_0x253f35]});});}),_0x71e9bb[_0x7b02('0x0')]['registerDescriptionCallback'](_0xb3dc60=>{if(!!_0x11ac2a[_0x7b02('0x3b')](({type:_0x2a8016,subType:_0x8bf54a})=>_0xb3dc60[_0x7b02('0x39')]==_0x2a8016&&_0xb3dc60[_0x7b02('0x23')]==_0x8bf54a))return _0xb3dc60['previous']?{}:void 0x0;}),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x75')](_0x12e533=>{if(_0x7b02('0x17')==_0x12e533[_0x7b02('0x39')]||_0x7b02('0x5')==_0x12e533[_0x7b02('0x39')]){const _0x3223dc=_0x12e533[_0x7b02('0x5b')]();if(_0x3223dc&&_0x3223dc['is'](_0x7b02('0x4b'),_0x7b02('0x62')))return{'type':_0x7b02('0x17')==_0x12e533['type']?_0x7b02('0x14'):_0x7b02('0x5d'),'element':_0x3223dc,'quantity':0x1};}}),_0x71e9bb['_descriptionFactory'][_0x7b02('0x75')](_0x347546=>'formatBlock'==_0x347546[_0x7b02('0x39')]&&_0x7b02('0x42')==_0x347546['subType']?{'type':_0x7b02('0x78'),'content':_0x7b02('0x68')}:_0x7b02('0x59')==_0x347546[_0x7b02('0x39')]&&_0x7b02('0x1d')==_0x347546[_0x7b02('0x23')]?{'type':_0x7b02('0x78'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x71e9bb[_0x7b02('0x0')][_0x7b02('0x75')](_0x36c53f=>{const {data:_0x225ec6}=_0x36c53f;if(_0x225ec6){if('imageStyle'==_0x225ec6[_0x7b02('0x6f')]){const _0x5d3af6=_0x225ec6[_0x7b02('0x77')][0x0][_0x7b02('0x40')];return _0x41ec73(_0x7b02('0x6a')===_0x5d3af6?_0x3383c9(_0x270e7b,'FORMAT_SIDE_IMAGE'):_0x39d6ce[_0x5d3af6]||_0x5d3af6);}if(_0x7b02('0x31')==_0x225ec6['commandName']){const _0x148882=_0x225ec6['commandParams'][0x0][_0x7b02('0x73')];return _0x148882?{'type':_0x7b02('0x78'),'content':_0x3383c9(_0x270e7b,_0x7b02('0x7'),'\x22'+_0x148882+'\x22')}:{'type':_0x7b02('0x78'),'content':_0x3383c9(_0x270e7b,'*Remove\x20image\x20text\x20alternative*')};}if(_0x7b02('0x2b')==_0x225ec6['commandName']){const _0x40931c=_0x225ec6[_0x7b02('0x77')][0x0][_0x7b02('0x3d')];return _0x40931c?{'type':'format','content':_0x3383c9(_0x270e7b,'*Set\x20image\x20width:*\x20%0',_0x40931c)}:{'type':_0x7b02('0x78'),'content':_0x3383c9(_0x270e7b,_0x7b02('0xd'))};}}function _0x41ec73(_0x34b27e){return{'type':'format','content':_0x3383c9(_0x270e7b,_0x7b02('0x6e'),_0x34b27e)};}});}}
|
|
23
|
+
const _0x3191=['registerElementLabel','isCollapsed','ELEMENT_IMAGE','formatInline','formatBlock','chain','*Reset\x20image\x20width*','previous','*Set\x20image\x20text\x20alternative:*\x20%0','suggestion','differ','type','getSuggestionCallback','deletion','getAttribute','addObject','insertImage','markBlockFormat','ImageTextAlternativeEditing','setImageNaturalSizeAttributes','start','isBlockImage','imageStyle','*Set\x20image\x20width:*\x20%0','ImageUtils','nodeBefore','imageStylePreApply','find','commandParams','ImageStyleEditing','convertInlineImageToBlock','format','resizeImage','*Remove\x20image\x20text\x20alternative*','detach','Block\x20image\x20to\x20inline\x20image','_splitMarkerName','accept','model','fromPosition','backward','from','refresh','editor','ELEMENT_CAPTION','imageCaption','forward','getContainedElement','alt','discard','toPrevious','FORMAT_SIDE_IMAGE','imageInline','uploadImage','selection','imageBlock','registerPostFixer','Inline\x20image\x20to\x20block\x20image','filter','Users','commandName','ImageResize','length','newValue','ELEMENT_INLINE_IMAGE','afterInit','value','change','locale','ImageUploadEditing','next','isIntersecting','plugins','getCaptionFromImageModelElement','registerCustomCallback','author','_descriptionFactory','*Format:*\x20%0','width','markInlineFormat','isOwn','isBefore','toLowerCase','isInContent','has','isEqual','nodeAfter','enableCommand','caption','title','imageTypeInline','imageTextAlternative','isInlineImage','schema','getClosestSelectedImageElement','toggleImageCaption','resizedWidth','getFirstRange','subType','join','getSuggestions','insertion','end','discardSuggestion','registerDescriptionCallback','get','commands','side','document','imageStylePostApply','name','createRangeOn','createRange','TrackChangesEditing','element','imageTypeBlock','_suggestionFactory','forceDefaultExecution','forEach','findIndex','getNearestSelectionRange','convertBlockImageToInline','markInsertion'];(function(_0x479a52,_0x3191eb){const _0x5d5f6f=function(_0x4caa22){while(--_0x4caa22){_0x479a52['push'](_0x479a52['shift']());}};_0x5d5f6f(++_0x3191eb);}(_0x3191,0x191));const _0x5d5f=function(_0x479a52,_0x3191eb){_0x479a52=_0x479a52-0x0;let _0x5d5f6f=_0x3191[_0x479a52];return _0x5d5f6f;};import{Plugin as _0x3be795}from'ckeditor5/src/core';import{LivePosition as _0xe0ca4f}from'ckeditor5/src/engine';import{uid as _0x76d123}from'ckeditor5/src/utils';import{getTranslation as _0x37c209}from'../utils/common-translations';export default class Y extends _0x3be795{[_0x5d5f('0x21')](){const _0x31a652=this[_0x5d5f('0xb')];if(!_0x31a652[_0x5d5f('0x28')]['has']('ImageEditing'))return;const _0xce346d=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x51')),_0x5b3911=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x73')),_0x4ea709={},_0x22fc11=_0x31a652[_0x5d5f('0x24')];if(_0xce346d['enableCommand'](_0x5d5f('0x6b')),_0xce346d[_0x5d5f('0x2c')]['registerElementLabel'](_0x5d5f('0x17'),_0x3da106=>_0x37c209(_0x22fc11,_0x5d5f('0x5d'),_0x3da106)),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x5b')](_0x5d5f('0x14'),_0x46a987=>_0x37c209(_0x22fc11,_0x5d5f('0x20'),_0x46a987)),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x5b')](_0x5d5f('0x38'),()=>_0x37c209(_0x22fc11,_0x5d5f('0xc'))),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x25'))&&_0xce346d[_0x5d5f('0x37')](_0x5d5f('0x15')),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')]('ImageBlockEditing')&&_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')]('ImageInlineEditing')&&(_0xce346d['enableCommand']('imageTypeInline',(_0x1277ad,_0x1a5f71)=>{const _0x3b2412=_0x5b3911['getClosestSelectedImageElement'](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')]['selection']);_0x31a652[_0x5d5f('0x6')]['change'](()=>{_0xce346d['markBlockFormat'](_0x3b2412,{'commandName':_0x5d5f('0x3a'),'commandParams':[_0x1a5f71]},[],_0x5d5f('0x59'));});}),_0xce346d['enableCommand'](_0x5d5f('0x53'),(_0x33db69,_0x29a2ce)=>{_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](_0x12c7c6=>{let _0x4af0ac=_0x5b3911[_0x5d5f('0x3e')](_0x31a652['model'][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x32cdfb=_0x12c7c6[_0x5d5f('0x4f')](_0x4af0ac);const _0x1fff5c=_0xe0ca4f[_0x5d5f('0x7')](_0x32cdfb[_0x5d5f('0x6f')],_0x5d5f('0x12')),_0x2659de=_0xe0ca4f[_0x5d5f('0x7')](_0x32cdfb[_0x5d5f('0x46')],'toNext');_0xce346d[_0x5d5f('0x55')](()=>_0x33db69(_0x29a2ce)),_0x4af0ac=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x32cdfb=_0x12c7c6[_0x5d5f('0x4f')](_0x4af0ac);const _0x5349f0=_0x12c7c6[_0x5d5f('0x50')](_0x1fff5c,_0x2659de);_0x1fff5c[_0x5d5f('0x2')](),_0x2659de[_0x5d5f('0x2')](),_0xce346d[_0x5d5f('0x6c')](_0x4af0ac,{'commandName':_0x5d5f('0x3a'),'commandParams':[_0x29a2ce]},[],_0x5d5f('0x79')),_0x5349f0[_0x5d5f('0x6f')][_0x5d5f('0x31')](_0x32cdfb[_0x5d5f('0x6f')])&&_0xce346d['markInsertion'](_0x12c7c6[_0x5d5f('0x50')](_0x5349f0[_0x5d5f('0x6f')],_0x32cdfb['start']),_0x5d5f('0x79')),_0x32cdfb[_0x5d5f('0x46')][_0x5d5f('0x31')](_0x5349f0['end'])&&_0xce346d[_0x5d5f('0x5a')](_0x12c7c6[_0x5d5f('0x50')](_0x32cdfb[_0x5d5f('0x46')],_0x5349f0[_0x5d5f('0x46')]),_0x5d5f('0x79'));});}),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')](_0x5d5f('0x5f'),_0x5d5f('0x79'),_0x5d5f('0x43'),()=>!0x1),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x79'),_0x5d5f('0x5'),()=>!0x1),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')](_0x5d5f('0x5f'),_0x5d5f('0x79'),'discard',_0xce346d['_suggestionFactory'][_0x5d5f('0x67')]('formatBlock','',_0x5d5f('0x5'))),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')](_0x5d5f('0x45'),_0x5d5f('0x79'),'join',()=>!0x1),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback']('insertion',_0x5d5f('0x79'),_0x5d5f('0x11'),([_0x28d94e])=>{const _0x1a273d=_0xce346d[_0x5d5f('0x54')]['getSuggestionCallback'](_0x5d5f('0x45'),'',_0x5d5f('0x11'));let _0x520629=_0x28d94e[_0x5d5f('0x6f')],_0x3eeba6=_0x28d94e[_0x5d5f('0x46')];const _0x65683d=_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x3d')][_0x5d5f('0x58')](_0x520629,_0x5d5f('0x8')),_0xa7a510=_0x31a652['model']['schema'][_0x5d5f('0x58')](_0x3eeba6,_0x5d5f('0xe'));_0x65683d[_0x5d5f('0x5c')]&&(_0x520629=_0x65683d[_0x5d5f('0x6f')]),_0xa7a510[_0x5d5f('0x5c')]&&(_0x3eeba6=_0xa7a510[_0x5d5f('0x46')]),_0x1a273d([_0x31a652[_0x5d5f('0x6')]['createRange'](_0x520629,_0x3eeba6)]);}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x79'),_0x5d5f('0x60'),_0x397b98),_0xce346d['_suggestionFactory']['registerCustomCallback'](_0x5d5f('0x45'),_0x5d5f('0x79'),_0x5d5f('0x60'),_0x397b98)),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')]('ImageCaptionEditing')&&(_0xce346d[_0x5d5f('0x37')](_0x5d5f('0x3f'),(_0x54e966,_0x11f568)=>{const _0x34dc2c=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')]('ImageCaptionUtils');let _0x4914da=_0x5b3911['getClosestSelectedImageElement'](_0x31a652['model']['document']['selection']),_0x14df8f=_0x34dc2c[_0x5d5f('0x29')](_0x4914da);_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{if(_0x14df8f)return void _0xce346d['markDeletion'](_0x31a652['model'][_0x5d5f('0x4f')](_0x14df8f));const _0x13fcd=_0x5b3911[_0x5d5f('0x70')](_0x4914da);_0x54e966(_0x11f568),_0x4914da=_0x5b3911['getClosestSelectedImageElement'](_0x31a652['model']['document'][_0x5d5f('0x16')]),_0x14df8f=_0x34dc2c[_0x5d5f('0x29')](_0x4914da),_0xce346d[_0x5d5f('0x5a')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4f')](_0x14df8f),_0x13fcd?null:_0x5d5f('0xd'));});}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback']('insertion',_0x5d5f('0xd'),_0x5d5f('0x60'),_0x397b98)),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x78'))){_0xce346d[_0x5d5f('0x37')]('imageStyle',(_0x2a7478,_0x422189)=>{const _0x50ed71=_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x1b'))['me'],_0x539101=_0x31a652[_0x5d5f('0x4a')][_0x5d5f('0x49')](_0x5d5f('0x71'));let _0x4e63ee=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x2bef97=_0x31a652[_0x5d5f('0x6')]['createRangeOn'](_0x4e63ee),_0x5385ba=_0x539101[_0x5d5f('0x22')];if(_0x5385ba==_0x422189[_0x5d5f('0x22')])return;const _0x1dcd1d={'commandName':'imageStyle','commandParams':[_0x422189],'formatGroupId':_0x76d123()};_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{if(_0xce346d[_0x5d5f('0x44')]()[_0x5d5f('0x1a')](_0x1d01db=>_0x1d01db[_0x5d5f('0x33')]&&_0x50ed71==_0x1d01db[_0x5d5f('0x2b')]&&(_0x5d5f('0x5f')==_0x1d01db['type']||_0x5d5f('0x5e')==_0x1d01db[_0x5d5f('0x66')])&&('imageStylePreApply'==_0x1d01db['subType']||_0x5d5f('0x4d')==_0x1d01db[_0x5d5f('0x42')])&&_0x1d01db[_0x5d5f('0x41')]()[_0x5d5f('0x35')](_0x2bef97))[_0x5d5f('0x56')](_0x3202cd=>_0xce346d[_0x5d5f('0x47')](_0x3202cd['head'])),_0x4e63ee=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),_0x2bef97=_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4f')](_0x4e63ee),_0x539101[_0x5d5f('0xa')](),_0x31a652[_0x5d5f('0x4a')][_0x5d5f('0x49')](_0x5d5f('0x3a'))[_0x5d5f('0xa')](),_0x31a652['commands'][_0x5d5f('0x49')](_0x5d5f('0x53'))[_0x5d5f('0xa')](),_0x5385ba=_0x539101[_0x5d5f('0x22')],_0x5385ba!=_0x422189['value'])return _0x5b3911[_0x5d5f('0x3c')](_0x4e63ee)&&_0x539101['shouldConvertImageType'](_0x422189[_0x5d5f('0x22')],_0x4e63ee)?(_0x2a7478({..._0x422189,'setImageSizes':!0x1}),_0x4e63ee=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x4c')][_0x5d5f('0x16')]),void _0xce346d[_0x5d5f('0x6c')](_0x4e63ee,{..._0x1dcd1d,'commandReversedParams':[{'value':_0x5385ba||null,'setImageSizes':!0x1}]},[],_0x5d5f('0x75'))):void(_0x5b3911[_0x5d5f('0x70')](_0x4e63ee)?_0xce346d[_0x5d5f('0x6c')](_0x4e63ee,_0x1dcd1d,[],'imageStylePostApply'):_0xce346d[_0x5d5f('0x2f')](_0x2bef97,_0x1dcd1d,_0x5d5f('0x4d')));});});for(const _0x33f32d of _0x31a652[_0x5d5f('0x28')][_0x5d5f('0x49')](_0x5d5f('0x78'))['normalizedStyles'])_0x4ea709[_0x33f32d[_0x5d5f('0x4e')]]=_0x33f32d[_0x5d5f('0x39')][_0x5d5f('0x32')]();_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x75'),_0x5d5f('0x43'),()=>!0x1),_0xce346d['_suggestionFactory'][_0x5d5f('0x2a')](_0x5d5f('0x5f'),_0x5d5f('0x4d'),_0x5d5f('0x43'),()=>!0x1),_0xce346d['_suggestionFactory']['registerCustomCallback'](_0x5d5f('0x5e'),_0x5d5f('0x4d'),'join',()=>!0x1),_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x2a')]('formatBlock',_0x5d5f('0x75'),_0x5d5f('0x5'),([_0x53c2ff])=>{_0x5b3911[_0x5d5f('0x6e')](_0x53c2ff['getContainedElement']());}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x75'),_0x5d5f('0x11'),(_0x5ad1f3,_0x58fc28)=>{_0xce346d[_0x5d5f('0x54')][_0x5d5f('0x67')](_0x5d5f('0x5f'),'',_0x5d5f('0x5'))(_0x5ad1f3,{'commandName':_0x58fc28[_0x5d5f('0x1c')],'commandParams':_0x58fc28['commandReversedParams']});}),_0xce346d[_0x5d5f('0x54')]['registerCustomCallback'](_0x5d5f('0x5f'),_0x5d5f('0x75'),'chain',_0x397b98);}const _0x16bbe8=[{'type':_0x5d5f('0x5f'),'subType':_0x5d5f('0x75')},{'type':_0x5d5f('0x45'),'subType':'imageCaption'},{'type':_0x5d5f('0x5f'),'subType':'convertInlineImageToBlock'},{'type':_0x5d5f('0x45'),'subType':_0x5d5f('0x79')}];function _0x4eb3fb(_0xc40c0f,_0x113d72){const _0x3dc120=_0x16bbe8['findIndex'](({type:_0x4fb1ec,subType:_0x415240})=>_0xc40c0f[_0x5d5f('0x66')]==_0x4fb1ec&&_0xc40c0f[_0x5d5f('0x42')]==_0x415240),_0x4d3571=_0x16bbe8[_0x5d5f('0x57')](({type:_0x4b85db,subType:_0x44aaf4})=>_0x113d72[_0x5d5f('0x66')]==_0x4b85db&&_0x113d72[_0x5d5f('0x42')]==_0x44aaf4);if(_0x3dc120<0x0||_0x4d3571<0x0)return!0x1;const _0x54f471=_0xc40c0f[_0x5d5f('0x41')](),_0x5e1534=_0x113d72[_0x5d5f('0x41')]();if((0x0==_0x3dc120||0x1==_0x3dc120)&&0x2==_0x4d3571&&_0x54f471[_0x5d5f('0x27')](_0x5e1534))return!0x0;if(0x2==_0x3dc120&&0x3==_0x4d3571){const _0x1dbd1f=_0xce346d['_findSuggestions'](_0x54f471,_0x5d5f('0x45'))[_0x5d5f('0x1a')](({suggestion:_0x3eb170,meta:_0x2a331e})=>_0x2a331e[_0x5d5f('0x30')]&&_0x5d5f('0x79')==_0x3eb170[_0x5d5f('0x42')]);if(_0x1dbd1f['length']>0x1&&_0x5e1534[_0x5d5f('0x46')][_0x5d5f('0x35')](_0x54f471[_0x5d5f('0x6f')]))return!0x0;if(0x1==_0x1dbd1f[_0x5d5f('0x1e')]&&(_0x54f471[_0x5d5f('0x6f')][_0x5d5f('0x35')](_0x5e1534[_0x5d5f('0x46')])||_0x54f471[_0x5d5f('0x46')]['isEqual'](_0x5e1534[_0x5d5f('0x6f')])))return!0x0;}if(0x3==_0x3dc120&&0x3==_0x4d3571&&_0x54f471[_0x5d5f('0x6f')][_0x5d5f('0x31')](_0x5e1534[_0x5d5f('0x6f')])){const _0x3e3dd8=_0x54f471[_0x5d5f('0x46')][_0x5d5f('0x36')],_0x5e7cd5=_0x5e1534[_0x5d5f('0x6f')][_0x5d5f('0x74')];return _0x5b3911[_0x5d5f('0x70')](_0x3e3dd8)&&_0x3e3dd8===_0x5e7cd5;}return!0x1;}function _0x397b98(_0x818f02,_0x5a8b32){return _0x4eb3fb(_0x818f02,_0x5a8b32)?[_0x818f02,_0x5a8b32]:_0x4eb3fb(_0x5a8b32,_0x818f02)?[_0x5a8b32,_0x818f02]:null;}_0x31a652['model']['document'][_0x5d5f('0x18')](()=>{let _0x33fe20=!0x1;const _0x36934e=Array[_0x5d5f('0x9')](_0x31a652['model'][_0x5d5f('0x4c')][_0x5d5f('0x65')]['getChangedMarkers']());for(const {name:_0x18cfd2,data:_0xec04ed}of _0x36934e){const {group:_0x3de568,type:_0x37505e,subType:_0x4715cb,id:_0x5ed9d0}=_0xce346d[_0x5d5f('0x4')](_0x18cfd2);if(_0x5d5f('0x64')==_0x3de568&&_0xce346d['hasSuggestion'](_0x5ed9d0)){if('formatBlock'==_0x37505e&&(_0x5d5f('0x75')==_0x4715cb||_0x5d5f('0x4d')==_0x4715cb)){const _0x610af0=_0xce346d['getSuggestion'](_0x5ed9d0);if(_0xec04ed['newRange']){const _0x927819=_0x610af0['getFirstRange']()['getContainedElement']();if(_0x5b3911[_0x5d5f('0x70')](_0x927819))continue;_0xce346d['discardSuggestion'](_0x610af0),_0x33fe20=!0x0;}}if(_0x5d5f('0x45')==_0x37505e&&_0x5d5f('0xd')==_0x4715cb&&!_0xec04ed['newRange']){const _0x2b34a2=_0xce346d['getSuggestion'](_0x5ed9d0);_0x2b34a2[_0x5d5f('0x26')]&&_0x2b34a2[_0x5d5f('0x26')][_0x5d5f('0x33')]&&(_0xce346d[_0x5d5f('0x47')](_0x2b34a2[_0x5d5f('0x26')]),_0x33fe20=!0x0);}}}return _0x33fe20;}),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x1d'))&&_0xce346d['enableCommand'](_0x5d5f('0x0'),(_0x4c3f68,_0x18275c)=>{const _0x4075bf=_0x5b3911[_0x5d5f('0x3e')](_0x31a652[_0x5d5f('0x6')]['document'][_0x5d5f('0x16')]);_0x4075bf['getAttribute'](_0x5d5f('0x40'))!=_0x18275c[_0x5d5f('0x2e')]&&_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{_0xce346d[_0x5d5f('0x6c')](_0x4075bf,{'commandName':_0x5d5f('0x0'),'commandParams':[_0x18275c]});});}),_0x31a652[_0x5d5f('0x28')][_0x5d5f('0x34')](_0x5d5f('0x6d'))&&_0xce346d[_0x5d5f('0x37')](_0x5d5f('0x3b'),(_0x5473ea,_0x33e6a4)=>{const _0x106691=_0x5b3911[_0x5d5f('0x3e')](_0x31a652['model'][_0x5d5f('0x4c')][_0x5d5f('0x16')]);(_0x106691['hasAttribute']('alt')?_0x106691[_0x5d5f('0x69')](_0x5d5f('0x10')):'')!=_0x33e6a4[_0x5d5f('0x1f')]&&_0x31a652[_0x5d5f('0x6')][_0x5d5f('0x23')](()=>{_0xce346d[_0x5d5f('0x6c')](_0x106691,{'commandName':_0x5d5f('0x3b'),'commandParams':[_0x33e6a4]});});}),_0xce346d['_descriptionFactory'][_0x5d5f('0x48')](_0x358212=>{if(!!_0x16bbe8[_0x5d5f('0x76')](({type:_0x58d615,subType:_0x45188e})=>_0x358212[_0x5d5f('0x66')]==_0x58d615&&_0x358212[_0x5d5f('0x42')]==_0x45188e))return _0x358212[_0x5d5f('0x62')]?{}:void 0x0;}),_0xce346d['_descriptionFactory']['registerDescriptionCallback'](_0x2ab6b4=>{if(_0x5d5f('0x45')==_0x2ab6b4[_0x5d5f('0x66')]||_0x5d5f('0x68')==_0x2ab6b4[_0x5d5f('0x66')]){const _0x3745a5=_0x2ab6b4[_0x5d5f('0xf')]();if(_0x3745a5&&_0x3745a5['is'](_0x5d5f('0x52'),_0x5d5f('0x38')))return{'type':'insertion'==_0x2ab6b4[_0x5d5f('0x66')]?_0x5d5f('0x6a'):'removeObject','element':_0x3745a5,'quantity':0x1};}}),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x48')](_0x1cde16=>'formatBlock'==_0x1cde16[_0x5d5f('0x66')]&&_0x5d5f('0x79')==_0x1cde16[_0x5d5f('0x42')]?{'type':'format','content':_0x5d5f('0x19')}:_0x5d5f('0x5f')==_0x1cde16['type']&&_0x5d5f('0x59')==_0x1cde16[_0x5d5f('0x42')]?{'type':_0x5d5f('0x7a'),'content':_0x5d5f('0x3')}:void 0x0),_0xce346d[_0x5d5f('0x2c')][_0x5d5f('0x48')](_0x1668f6=>{const {data:_0x29e8e0}=_0x1668f6;if(_0x29e8e0){if('imageStyle'==_0x29e8e0['commandName']){const _0x42c93d=_0x29e8e0[_0x5d5f('0x77')][0x0][_0x5d5f('0x22')];return _0x4b69bc(_0x5d5f('0x4b')===_0x42c93d?_0x37c209(_0x22fc11,_0x5d5f('0x13')):_0x4ea709[_0x42c93d]||_0x42c93d);}if('imageTextAlternative'==_0x29e8e0[_0x5d5f('0x1c')]){const _0x58916c=_0x29e8e0[_0x5d5f('0x77')][0x0][_0x5d5f('0x1f')];return _0x58916c?{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x63'),'\x22'+_0x58916c+'\x22')}:{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x1'))};}if(_0x5d5f('0x0')==_0x29e8e0['commandName']){const _0x7b677c=_0x29e8e0['commandParams'][0x0]['width'];return _0x7b677c?{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x72'),_0x7b677c)}:{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x61'))};}}function _0x4b69bc(_0x4d6cf1){return{'type':_0x5d5f('0x7a'),'content':_0x37c209(_0x22fc11,_0x5d5f('0x2d'),_0x4d6cf1)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a01=['editor','formatBlock','getAttribute','subType','accept','plugins','data','locale','getSuggestionCallback','_descriptionFactory','getSuggestions','afterInit','*Format:*\x20replace\x20image\x20URL','author','enableCommand','has','_suggestionFactory','registerCustomCallback','get','discard','handleSuggestionDescription','commandParams','getContainedElement','model','registerDescriptionCallback','change','ImageEditing','format','replaceImageSource','getSelectedElement','src','selection','handleReplaceImageCommand','document','TrackChangesEditing'];(function(_0x109b6c,_0x3a01c1){const _0x2ebad3=function(_0x930f7e){while(--_0x930f7e){_0x109b6c['push'](_0x109b6c['shift']());}};_0x2ebad3(++_0x3a01c1);}(_0x3a01,0xa9));const _0x2eba=function(_0x109b6c,_0x3a01c1){_0x109b6c=_0x109b6c-0x0;let _0x2ebad3=_0x3a01[_0x109b6c];return _0x2ebad3;};import{Plugin as _0x3ad03f}from'ckeditor5/src/core';import{getTranslation as _0x303388}from'../utils/common-translations';export default class Z extends _0x3ad03f{[_0x2eba('0x11')](){if(!this[_0x2eba('0x6')][_0x2eba('0xb')][_0x2eba('0x15')](_0x2eba('0x20')))return;const _0x143568=this[_0x2eba('0x6')]['plugins'][_0x2eba('0x18')](_0x2eba('0x5'));_0x143568[_0x2eba('0x14')](_0x2eba('0x22'),(_0x89ffbb,_0x522cf9)=>this[_0x2eba('0x3')](_0x89ffbb,_0x522cf9)),_0x143568[_0x2eba('0x16')][_0x2eba('0x17')](_0x2eba('0x7'),'replaceImageSource','accept',_0x143568[_0x2eba('0x16')][_0x2eba('0xe')](_0x2eba('0x7'),null,_0x2eba('0x19'))),_0x143568[_0x2eba('0x16')]['registerCustomCallback']('formatBlock',_0x2eba('0x22'),_0x2eba('0x19'),_0x143568[_0x2eba('0x16')][_0x2eba('0xe')]('formatBlock',null,_0x2eba('0xa'))),_0x143568[_0x2eba('0xf')][_0x2eba('0x1e')](_0x2f8c98=>this[_0x2eba('0x1a')](_0x2f8c98));}[_0x2eba('0x3')](_0x34d494,_0x47cf3f){const _0x3e251e=this[_0x2eba('0x6')]['plugins'][_0x2eba('0x18')](_0x2eba('0x5')),_0x1f85d6=this['editor'][_0x2eba('0x1d')][_0x2eba('0x4')][_0x2eba('0x2')][_0x2eba('0x0')]();this[_0x2eba('0x6')][_0x2eba('0x1d')][_0x2eba('0x1f')](()=>{let _0x522264=_0x1f85d6[_0x2eba('0x8')](_0x2eba('0x1'));const _0x2c9291=this[_0x2eba('0x6')]['plugins'][_0x2eba('0x18')]('Users')['me'];for(const _0x13f8d1 of _0x3e251e[_0x2eba('0x10')]({'skipNotAttached':!0x0})){const _0x3e03d6=_0x13f8d1[_0x2eba('0x1c')]();if(_0x2eba('0x22')===_0x13f8d1[_0x2eba('0x9')]&&_0x3e03d6===_0x1f85d6){_0x13f8d1[_0x2eba('0x13')]!==_0x2c9291&&_0x13f8d1[_0x2eba('0x19')](),_0x522264=_0x13f8d1[_0x2eba('0xc')][_0x2eba('0x1b')][0x0]['source'];break;}}_0x34d494(_0x47cf3f),_0x3e251e['markBlockFormat'](_0x1f85d6,{'commandName':_0x2eba('0x22'),'commandParams':[{'source':_0x522264}]},[],_0x2eba('0x22'));});}[_0x2eba('0x1a')](_0x267776){const {data:_0x44f095}=_0x267776;if(_0x44f095&&'replaceImageSource'===_0x44f095['commandName']){const _0xbda8ed=_0x2eba('0x12');return{'type':_0x2eba('0x21'),'content':_0x303388(this[_0x2eba('0x6')][_0x2eba('0xd')],_0xbda8ed)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb257=['afterInit','track_changes','plugins','_setSuggestionData','importWord','_handleImportedData','TrackChangesEditing','execute','collaboration_features','dataInsert','listenTo','get','trackChanges','_trackChangesExecuted','value','enableCommand','commands','editor','Users','_trackChangesValueDuringImport','bind','forEach'];(function(_0x59b4e1,_0xb25780){const _0x46b7f3=function(_0x2d4447){while(--_0x2d4447){_0x59b4e1['push'](_0x59b4e1['shift']());}};_0x46b7f3(++_0xb25780);}(_0xb257,0x1dd));const _0x46b7=function(_0x59b4e1,_0xb25780){_0x59b4e1=_0x59b4e1-0x0;let _0x46b7f3=_0xb257[_0x59b4e1];return _0x46b7f3;};import{Plugin as _0x23cca6}from'ckeditor5/src/core';export default class tt extends _0x23cca6{constructor(_0x11288d){super(_0x11288d),this['_trackChangesValueDuringImport']=!0x1,this[_0x46b7('0x14')]=!0x1;}[_0x46b7('0x7')](){const _0x160a53=this[_0x46b7('0x2')],_0x18f726=_0x160a53['commands'][_0x46b7('0x12')](_0x46b7('0xb')),_0x469df9=_0x160a53[_0x46b7('0x1')][_0x46b7('0x12')](_0x46b7('0x13'));_0x18f726&&(_0x18f726['on'](_0x46b7('0xe'),(_0xbc7ca8,[,_0x4a1dae])=>{this[_0x46b7('0x4')]=_0x469df9['value'],_0x4a1dae[_0x46b7('0xf')][_0x46b7('0x8')]=!this[_0x46b7('0x4')];},{'priority':'high'}),this[_0x46b7('0x11')](_0x18f726,_0x46b7('0x10'),this[_0x46b7('0xc')][_0x46b7('0x5')](this)),this[_0x46b7('0x11')](_0x18f726,_0x46b7('0x10'),()=>{this[_0x46b7('0x14')]&&(_0x469df9[_0x46b7('0xe')](),this[_0x46b7('0x14')]=!0x1);},{'priority':'lowest'}),_0x160a53[_0x46b7('0x9')][_0x46b7('0x12')](_0x46b7('0xd'))[_0x46b7('0x0')](_0x46b7('0xb')));}[_0x46b7('0xc')](_0x3189c2,_0x1ef348){const {suggestions:_0xffeae9}=_0x1ef348,_0x41d448=this[_0x46b7('0x2')]['commands'][_0x46b7('0x12')]('trackChanges'),_0xabb332=_0x41d448[_0x46b7('0x15')];this[_0x46b7('0x4')]!==_0xabb332&&(_0x41d448['execute'](),this[_0x46b7('0x14')]=!0x0),_0xffeae9&&_0xffeae9[_0x46b7('0x6')](({id:_0xf3aa55,type:_0x30a501,author:_0x19e5f5,created_at:_0x2c3861})=>{const _0x2c52ae={'id':_0xf3aa55,'type':_0x30a501,'authorId':this[_0x46b7('0x2')]['plugins']['get'](_0x46b7('0x3'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x19e5f5,'createdAt':_0x2c3861?new Date(_0x2c3861):new Date(),'source':_0x46b7('0xb')}}};this['editor']['plugins']['get']('TrackChangesEditing')[_0x46b7('0xa')](_0x2c52ae);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x522d=['selection','IndentBlock','model','getItems','from','editor','filter','checkAttribute','markBlockFormat','commandName','*Indent:*\x20%0','getItemLabel','IndentEditing','outdent','plugins','outdentBlock','get','change','blockIndent','registerDescriptionCallback','schema','locale','has','enableCommand','indentBlock','indent','document','TrackChangesEditing','format','_descriptionFactory'];(function(_0xe7dac6,_0x522d22){const _0xf48119=function(_0x497a42){while(--_0x497a42){_0xe7dac6['push'](_0xe7dac6['shift']());}};_0xf48119(++_0x522d22);}(_0x522d,0xa0));const _0xf481=function(_0xe7dac6,_0x522d22){_0xe7dac6=_0xe7dac6-0x0;let _0xf48119=_0x522d[_0xe7dac6];return _0xf48119;};import{Plugin as _0x2ac7ab}from'ckeditor5/src/core';import{getTranslation as _0xb9659e}from'../utils/common-translations';export default class it extends _0x2ac7ab{['afterInit'](){const _0x1f875d=this[_0xf481('0x19')],_0x45cb78=_0x1f875d[_0xf481('0x4')][_0xf481('0x6')](_0xf481('0x11'));_0x1f875d['plugins'][_0xf481('0xc')](_0xf481('0x2'))&&(_0x45cb78['enableCommand'](_0xf481('0xf')),_0x45cb78[_0xf481('0xd')](_0xf481('0x3')));const _0x5e952f=_0x1f875d[_0xf481('0xb')];if(_0x1f875d[_0xf481('0x4')][_0xf481('0xc')](_0xf481('0x15'))){for(const _0x80af4a of[_0xf481('0xe'),_0xf481('0x5')])_0x45cb78[_0xf481('0xd')](_0x80af4a,()=>{const _0x3196cf=Array[_0xf481('0x18')](this[_0xf481('0x19')][_0xf481('0x16')][_0xf481('0x10')][_0xf481('0x14')]['getSelectedBlocks']())[_0xf481('0x1a')](_0x49137d=>this[_0xf481('0x19')][_0xf481('0x16')][_0xf481('0xa')][_0xf481('0x1b')](_0x49137d,_0xf481('0x8')));_0x1f875d['model'][_0xf481('0x7')](()=>{for(const _0x41e2e8 of _0x3196cf)_0x45cb78[_0xf481('0x1c')](_0x41e2e8,{'commandName':_0x80af4a,'commandParams':[{'value':''}],'formatGroupId':_0xf481('0xe')});});});_0x45cb78[_0xf481('0x13')][_0xf481('0x9')](_0x1df4d6=>{const {data:_0x374272}=_0x1df4d6;if(!_0x374272)return;if(_0xf481('0xe')!=_0x374272[_0xf481('0x1d')]&&_0xf481('0x5')!=_0x374272[_0xf481('0x1d')])return;const _0x96ef80=_0x1df4d6[_0xf481('0x17')]()[0x0],_0x4755ba=_0x45cb78[_0xf481('0x13')][_0xf481('0x1')](_0x96ef80);return _0xf481('0xe')==_0x374272[_0xf481('0x1d')]?{'type':_0xf481('0x12'),'content':_0xb9659e(_0x5e952f,_0xf481('0x0'),_0x4755ba)}:_0xf481('0x5')==_0x374272['commandName']?{'type':_0xf481('0x12'),'content':_0xb9659e(_0x5e952f,'*Outdent:*\x20%0',_0x4755ba)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x596d=['get','requires','init','editor','enableCommand','plugins','TrackChangesEditing','input'];(function(_0x2b022c,_0x596d29){var _0x347839=function(_0x2ff15f){while(--_0x2ff15f){_0x2b022c['push'](_0x2b022c['shift']());}};_0x347839(++_0x596d29);}(_0x596d,0x118));var _0x3478=function(_0x2b022c,_0x596d29){_0x2b022c=_0x2b022c-0x0;var _0x347839=_0x596d[_0x2b022c];return _0x347839;};import{Plugin as _0x2fa529}from'ckeditor5/src/core';import{Input as _0x5f2e9e}from'ckeditor5/src/typing';export default class et extends _0x2fa529{static get[_0x3478('0x1')](){return[_0x5f2e9e];}[_0x3478('0x2')](){this[_0x3478('0x3')][_0x3478('0x5')][_0x3478('0x0')](_0x3478('0x6'))[_0x3478('0x4')](_0x3478('0x7'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6990=['registerDescriptionCallback','*Remove\x20link*','getFirstPosition','LinkEditing','model','enableCommand','plugins','markInlineFormat','format','locale','getRanges','getAttribute','link','change','get','_descriptionFactory','commandParams','*Set\x20link:*\x20%0','getFirstRange','selection','isCollapsed','TrackChangesEditing','commandName','has','linkHref','document','editor','hasAttribute'];(function(_0x54dab1,_0x6990bb){const _0x3b003e=function(_0x5373f1){while(--_0x5373f1){_0x54dab1['push'](_0x54dab1['shift']());}};_0x3b003e(++_0x6990bb);}(_0x6990,0x1c8));const _0x3b00=function(_0x54dab1,_0x6990bb){_0x54dab1=_0x54dab1-0x0;let _0x3b003e=_0x6990[_0x54dab1];return _0x3b003e;};import{Plugin as _0x5e440c}from'ckeditor5/src/core';import{findAttributeRange as _0x8a0614}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x14fafc}from'./utils';import{getTranslation as _0x327521}from'../utils/common-translations';export default class nt extends _0x5e440c{['afterInit'](){const _0x4b25c8=this[_0x3b00('0x12')];if(!_0x4b25c8[_0x3b00('0x1a')][_0x3b00('0xf')](_0x3b00('0x17')))return;const _0x57acdb=_0x4b25c8['plugins'][_0x3b00('0x6')](_0x3b00('0xd'));_0x57acdb[_0x3b00('0x19')]('link',(_0x1d00aa,_0x376b44)=>{const _0x1993a5=_0x4b25c8[_0x3b00('0x18')]['document']['selection'];let _0x2ce5aa=[];if(_0x1993a5[_0x3b00('0xc')]){if(!_0x1993a5[_0x3b00('0x13')](_0x3b00('0x10')))return void _0x1d00aa(_0x376b44);{const _0x478571=_0x8a0614(_0x1993a5[_0x3b00('0x16')](),_0x3b00('0x10'),_0x1993a5[_0x3b00('0x3')](_0x3b00('0x10')),_0x4b25c8['model']);_0x2ce5aa=[_0x478571];}}else _0x2ce5aa=Array['from'](_0x1993a5[_0x3b00('0x2')]());_0x4b25c8[_0x3b00('0x18')][_0x3b00('0x5')](()=>{for(const _0x5ed2b6 of _0x2ce5aa)_0x57acdb[_0x3b00('0x1b')](_0x5ed2b6,{'commandName':_0x3b00('0x4'),'commandParams':[_0x376b44]});});}),_0x57acdb['enableCommand']('unlink',()=>{const _0x223a44=this[_0x3b00('0x12')][_0x3b00('0x18')],_0xc966da=_0x223a44[_0x3b00('0x11')][_0x3b00('0xb')];_0x223a44[_0x3b00('0x5')](()=>{let _0x4aa305=[];if(_0xc966da[_0x3b00('0xc')])_0x4aa305=[_0x8a0614(_0xc966da[_0x3b00('0x16')](),_0x3b00('0x10'),_0xc966da[_0x3b00('0x3')](_0x3b00('0x10')),_0x4b25c8['model'])];else _0x4aa305=_0x14fafc(_0x3b00('0x10'),_0xc966da[_0x3b00('0xa')](),_0x4b25c8[_0x3b00('0x18')]);for(const _0x3513ac of _0x4aa305)_0x57acdb['markInlineFormat'](_0x3513ac,{'commandName':'unlink','commandParams':[]});});}),_0x57acdb[_0x3b00('0x7')][_0x3b00('0x14')](_0x150741=>{const {data:_0x10ae0d}=_0x150741,_0x26954f=_0x4b25c8[_0x3b00('0x1')];if(_0x10ae0d){if('link'==_0x10ae0d[_0x3b00('0xe')]){const _0x4c3a98=_0x10ae0d[_0x3b00('0x8')][0x0];return{'type':'format','content':_0x327521(_0x26954f,_0x3b00('0x9'),'\x22'+_0x4c3a98+'\x22')};}return'unlink'==_0x10ae0d[_0x3b00('0xe')]?{'type':_0x3b00('0x0'),'content':_0x327521(_0x26954f,_0x3b00('0x15'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c73=['name','getSelectedBlocks','commandName','*Indent:*\x20%0','indentList','isObject','TodoListEditing','afterInit','schema','*Check\x20item*','filter','replace','model','commands','execute','enableCommand','markBlockFormat','push','TrackChangesEditing','getAttribute','has','paragraph','slice','listType','listIndent','get','before','editor','registerDescriptionCallback','*Change\x20to:*\x20%0','_selectedElements','selection','ELEMENT_BULLETED_LIST','change','ELEMENT_LIST_ITEM','ELEMENT_TODO_LIST','*Outdent:*\x20%0','ListEditing','*Uncheck\x20item*','blockName','ELEMENT_NUMBERED_LIST','checkTodoList','plugins','listItem','todoListChecked','commandParams','from','numberedList','locale','element','nextSibling','checkChild','add','outdentList','todoList','bulletedList','end','createPositionAt','document','parent','_descriptionFactory','todo','numbered','createRange','List','format','bulleted','registerElementLabel','previousSibling','value'];(function(_0x27df53,_0x2c734f){const _0x5ab3fa=function(_0x27d024){while(--_0x27d024){_0x27df53['push'](_0x27df53['shift']());}};_0x5ab3fa(++_0x2c734f);}(_0x2c73,0x10b));const _0x5ab3=function(_0x27df53,_0x2c734f){_0x27df53=_0x27df53-0x0;let _0x5ab3fa=_0x2c73[_0x27df53];return _0x5ab3fa;};import{Plugin as _0x1a360a}from'ckeditor5/src/core';import{getTranslation as _0x5aa0fa}from'../utils/common-translations';export default class st extends _0x1a360a{[_0x5ab3('0x14')](){const _0x54eb92=this[_0x5ab3('0x28')],_0x54c76d=_0x54eb92[_0x5ab3('0x3d')];if(!_0x54eb92[_0x5ab3('0x37')][_0x5ab3('0x21')](_0x5ab3('0x32')))return;const _0x299e6c=_0x54eb92[_0x5ab3('0x37')]['get'](_0x5ab3('0x1f')),_0x102abb=_0x54eb92[_0x5ab3('0x37')][_0x5ab3('0x21')](_0x5ab3('0x13'));function _0x638965(_0xc8d1e6){return()=>{const _0x42474a=_0x54eb92[_0x5ab3('0x19')]['document'][_0x5ab3('0x2c')],_0x2fca8d=_0x54eb92[_0x5ab3('0x1a')]['get'](_0xc8d1e6);if(_0x2fca8d[_0x5ab3('0xc')])return void _0x54eb92[_0x5ab3('0x1b')](_0x5ab3('0x22'),{});const _0x5802de=_0xc8d1e6[_0x5ab3('0x23')](0x0,-0x4),_0x289536=function(_0x1e13b6,_0x29fc71,_0x9f1712){let _0x20761f=Array['from'](_0x1e13b6)[_0x5ab3('0x17')](_0x1b9a31=>function(_0x315adb,_0x1049a3){return _0x1049a3[_0x5ab3('0x40')](_0x315adb[_0x5ab3('0x2')],'listItem')&&!_0x1049a3[_0x5ab3('0x12')](_0x315adb);}(_0x1b9a31,_0x9f1712));_0x20761f=_0x20761f[_0x5ab3('0x17')](_0x3bb22f=>!_0x3bb22f['is'](_0x5ab3('0x3e'),'listItem')||_0x3bb22f[_0x5ab3('0x20')](_0x5ab3('0x24'))!=_0x29fc71);const _0x59ccb0=new Set();for(const _0x335110 of _0x20761f)_0x335110['is'](_0x5ab3('0x3e'),_0x5ab3('0x38'))?_0x59ccb0[_0x5ab3('0x41')](ne(_0x335110)):_0x59ccb0[_0x5ab3('0x41')](_0x335110);return Array['from'](_0x59ccb0);}(_0x42474a[_0x5ab3('0xe')](),_0x5802de,_0x54eb92[_0x5ab3('0x19')][_0x5ab3('0x15')]);_0x54eb92[_0x5ab3('0x19')][_0x5ab3('0x2e')](()=>{for(const _0x44ae70 of _0x289536)_0x299e6c[_0x5ab3('0x1d')](_0x44ae70,{'commandName':_0xc8d1e6,'commandParams':[{'forceValue':!_0x2fca8d[_0x5ab3('0xc')]}],'formatGroupId':_0x5ab3('0x34')},oe(_0x44ae70));});};}function _0x20750f(_0x1880a5){return()=>{const _0x5d47a1=function(_0x20818c){let _0x208dfc=Array[_0x5ab3('0x3b')](_0x20818c);const _0x5315a8=_0x208dfc['findIndex'](_0x3e179d=>_0x5ab3('0x38')!=_0x3e179d['name']);return _0x5315a8>-0x1&&(_0x208dfc=_0x208dfc[_0x5ab3('0x23')](0x0,_0x5315a8)),_0x208dfc;}(_0x54eb92['model'][_0x5ab3('0x1')][_0x5ab3('0x2c')][_0x5ab3('0xe')]()),_0x6c14f5=_0x54eb92[_0x5ab3('0x19')][_0x5ab3('0x6')](_0x54eb92['model'][_0x5ab3('0x0')](_0x5d47a1[0x0],_0x5ab3('0x27')),_0x54eb92[_0x5ab3('0x19')][_0x5ab3('0x0')](_0x5d47a1[_0x5d47a1['length']-0x1],_0x5ab3('0x45')));_0x54eb92['model'][_0x5ab3('0x2e')](()=>{_0x299e6c[_0x5ab3('0x1d')](_0x6c14f5,{'commandName':_0x1880a5,'commandParams':[],'formatGroupId':_0x5ab3('0x25')},function(_0x58aec3){const _0x31dad0=new Set();for(const _0x10541f of _0x58aec3){let _0x103dae=_0x10541f['nextSibling'];for(;_0x103dae&&_0x103dae[_0x5ab3('0x20')](_0x5ab3('0x25'))>_0x10541f[_0x5ab3('0x20')](_0x5ab3('0x25'));)_0x31dad0[_0x5ab3('0x41')](_0x103dae),_0x103dae=_0x103dae[_0x5ab3('0x3f')];}return Array[_0x5ab3('0x3b')](_0x31dad0);}(_0x5d47a1));});};}_0x299e6c[_0x5ab3('0x1c')]('numberedList',_0x638965(_0x5ab3('0x3c'))),_0x299e6c[_0x5ab3('0x1c')](_0x5ab3('0x44'),_0x638965(_0x5ab3('0x44'))),_0x102abb&&_0x299e6c[_0x5ab3('0x1c')](_0x5ab3('0x43'),_0x638965('todoList')),_0x299e6c[_0x5ab3('0x1c')](_0x5ab3('0x11'),_0x20750f(_0x5ab3('0x11'))),_0x299e6c[_0x5ab3('0x1c')](_0x5ab3('0x42'),_0x20750f(_0x5ab3('0x42'))),_0x102abb&&_0x299e6c[_0x5ab3('0x1c')]('checkTodoList',()=>{const _0x1309fe=_0x54eb92[_0x5ab3('0x1a')][_0x5ab3('0x26')](_0x5ab3('0x36')),_0xd731e8=Array['from'](_0x1309fe[_0x5ab3('0x2b')]);_0xd731e8[_0x5ab3('0x17')](_0x12539a=>_0x12539a['getAttribute'](_0x5ab3('0x39'))!=_0x1309fe['value']),_0x54eb92['model']['change'](()=>{for(const _0x26e815 of _0xd731e8)_0x299e6c['markBlockFormat'](_0x26e815,{'commandName':_0x5ab3('0x36'),'commandParams':[{'forceValue':!_0x1309fe[_0x5ab3('0xc')]}]});});}),_0x299e6c[_0x5ab3('0x3')][_0x5ab3('0xa')](_0x5ab3('0x38'),_0x4efcdb=>_0x5aa0fa(_0x54c76d,_0x5ab3('0x2f'),_0x4efcdb)),_0x299e6c[_0x5ab3('0x3')][_0x5ab3('0x29')](_0x3b1308=>{const {data:_0x6e6578}=_0x3b1308;if(_0x6e6578){if('numberedList'==_0x6e6578[_0x5ab3('0xf')]||'bulletedList'==_0x6e6578['commandName']||'todoList'==_0x6e6578[_0x5ab3('0xf')])switch(_0x6e6578[_0x5ab3('0xf')][_0x5ab3('0x18')](_0x5ab3('0x7'),'')){case _0x5ab3('0x9'):return _0x26adbd(_0x5aa0fa(_0x54c76d,_0x5ab3('0x2d')));case _0x5ab3('0x5'):return _0x26adbd(_0x5aa0fa(_0x54c76d,_0x5ab3('0x35')));case _0x5ab3('0x4'):return _0x26adbd(_0x5aa0fa(_0x54c76d,_0x5ab3('0x30')));}if(_0x5ab3('0x11')==_0x6e6578['commandName'])return{'type':_0x5ab3('0x8'),'content':_0x5aa0fa(_0x54c76d,_0x5ab3('0x10'),_0x5aa0fa(_0x54c76d,'ELEMENT_LIST_ITEM'))};if(_0x5ab3('0x42')==_0x6e6578[_0x5ab3('0xf')])return{'type':'format','content':_0x5aa0fa(_0x54c76d,_0x5ab3('0x31'),_0x5aa0fa(_0x54c76d,_0x5ab3('0x2f')))};if('checkTodoList'==_0x6e6578[_0x5ab3('0xf')])return _0x6e6578[_0x5ab3('0x3a')][0x0]['forceValue']?{'type':_0x5ab3('0x8'),'content':_0x5aa0fa(_0x54c76d,_0x5ab3('0x16'))}:{'type':_0x5ab3('0x8'),'content':_0x5aa0fa(_0x54c76d,_0x5ab3('0x33'))};}function _0x26adbd(_0xb80a3d){return{'type':'format','content':_0x5aa0fa(_0x54c76d,_0x5ab3('0x2a'),_0xb80a3d)};}});}}function ne(_0x4db5ae){const _0x4a8604=_0x4db5ae['getAttribute']('listIndent');if(0x0==_0x4a8604)return _0x4db5ae;let _0x55a0c2=_0x4db5ae;for(;_0x4db5ae['previousSibling']&&_0x4db5ae[_0x5ab3('0xb')]['is'](_0x5ab3('0x3e'),_0x5ab3('0x38'));){const _0x655940=_0x4db5ae[_0x5ab3('0xb')]['getAttribute'](_0x5ab3('0x25'));if(_0x655940==_0x4a8604)_0x55a0c2=_0x4db5ae[_0x5ab3('0xb')];else{if(_0x655940<_0x4a8604)break;}_0x4db5ae=_0x4db5ae[_0x5ab3('0xb')];}return _0x55a0c2;}function oe(_0x27d317){const _0x514a43=[];if(_0x27d317['is'](_0x5ab3('0x3e'),_0x5ab3('0x38'))&&_0x27d317['getAttribute'](_0x5ab3('0x25'))>0x0){let _0x52e498=_0x27d317['nextSibling'];for(;_0x52e498&&_0x5ab3('0x38')==_0x52e498[_0x5ab3('0xd')]&&_0x52e498[_0x5ab3('0x20')]('listIndent')==_0x27d317['getAttribute'](_0x5ab3('0x25'));)_0x514a43[_0x5ab3('0x1e')](_0x52e498),_0x52e498=_0x52e498['nextSibling'];}return _0x514a43;}
|