@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.1
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 _0x274e=['*Reset\x20font\x20family*','fontBackgroundColor','config','_enableCommand','from','commandName','markInlineFormat','fontColor','model','plugins','*Reset\x20font\x20background\x20color*','normalizeSizeOptions','toLowerCase','afterInit','find','registerDescriptionCallback','label','locale','_descriptionFactory','fontFamily','*Reset\x20font\x20size*','enableCommand','isCollapsed','get','FontBackgroundColorEditing','change','TrackChangesEditing','trim','fontSize','document','*Set\x20font\x20color:*\x20%0','FontColorEditing','title','value','fontColor.colors','has','*Set\x20font\x20family:*\x20%0','commandParams','format','FontFamilyEditing','fontSize.options','editor'];(function(_0x3ace13,_0x274e5f){const _0x598093=function(_0x43b0cc){while(--_0x43b0cc){_0x3ace13['push'](_0x3ace13['shift']());}};_0x598093(++_0x274e5f);}(_0x274e,0x15b));const _0x5980=function(_0x3ace13,_0x274e5f){_0x3ace13=_0x3ace13-0x0;let _0x598093=_0x274e[_0x3ace13];return _0x598093;};import{Plugin as _0x1591b4}from'ckeditor5/src/core';import{normalizeColorOptions as _0x30e401}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x21ebd7}from'./utils';import{getTranslation as _0x50fb89}from'../utils/common-translations';const Zt=[{'pluginName':'FontSizeEditing','commandName':_0x5980('0x11')},{'pluginName':_0x5980('0x1c'),'commandName':_0x5980('0x8')},{'pluginName':_0x5980('0x14'),'commandName':'fontColor'},{'pluginName':_0x5980('0xd'),'commandName':_0x5980('0x20')}];export default class H extends _0x1591b4{[_0x5980('0x2')](){const _0x145731=this[_0x5980('0x1e')][_0x5980('0x6')];for(const {pluginName:_0x5354ab,commandName:_0x511c08}of Zt)this['editor']['plugins'][_0x5980('0x18')](_0x5354ab)&&this[_0x5980('0x22')](_0x511c08);this['editor'][_0x5980('0x28')][_0x5980('0xc')]('TrackChangesEditing')[_0x5980('0x7')][_0x5980('0x4')](_0x55f071=>{const _0xc34637=_0x145731['t'],{data:_0x137377}=_0x55f071;if(null!=_0x137377){if(_0x5980('0x11')==_0x137377['commandName']){const _0x3cdafe=_0x137377['commandParams'][0x0][_0x5980('0x16')];if(_0x3cdafe){const _0x11c599=_0xc34637(this['editor'][_0x5980('0x28')][_0x5980('0xc')]('FontSize')[_0x5980('0x0')](this['editor']['config']['get'](_0x5980('0x1d')))['find'](_0x9fc710=>_0x9fc710['model']==_0x3cdafe)[_0x5980('0x15')])[_0x5980('0x1')]();return{'type':'format','content':_0x50fb89(_0x145731,'*Set\x20font\x20size:*\x20%0',_0x11c599)};}return{'type':_0x5980('0x1b'),'content':_0x50fb89(_0x145731,_0x5980('0x9'))};}if(_0x5980('0x8')==_0x137377['commandName']){const _0x4878e0=_0x137377[_0x5980('0x1a')][0x0][_0x5980('0x16')];return _0x4878e0?{'type':_0x5980('0x1b'),'content':_0x50fb89(_0x145731,_0x5980('0x19'),_0x4878e0)}:{'type':_0x5980('0x1b'),'content':_0x50fb89(_0x145731,_0x5980('0x1f'))};}if(_0x5980('0x26')==_0x137377[_0x5980('0x24')]){const _0x473d1b=_0x137377[_0x5980('0x1a')][0x0][_0x5980('0x16')];if(_0x473d1b){const _0x350265=_0x30e401(this[_0x5980('0x1e')][_0x5980('0x21')]['get'](_0x5980('0x17')))[_0x5980('0x3')](_0x4ecb29=>_0x4ecb29['model']==_0x473d1b);let _0x244630=_0x473d1b,_0x29f98a='';return _0x350265&&(_0x244630=_0x350265[_0x5980('0x5')],_0x29f98a=_0xc34637(_0x244630)[_0x5980('0x1')]()),{'type':_0x5980('0x1b'),'content':_0x50fb89(_0x145731,_0x5980('0x13'),_0x29f98a)[_0x5980('0x10')](),'color':{'value':_0x473d1b,'title':_0x29f98a||_0x244630}};}return{'type':_0x5980('0x1b'),'content':_0x50fb89(_0x145731,'*Reset\x20font\x20color*')};}if(_0x5980('0x20')==_0x137377['commandName']){const _0x59943b=_0x137377[_0x5980('0x1a')][0x0][_0x5980('0x16')];if(_0x59943b){const _0x9903d=_0x30e401(this[_0x5980('0x1e')][_0x5980('0x21')][_0x5980('0xc')]('fontBackgroundColor.colors'))[_0x5980('0x3')](_0x15f9b8=>_0x15f9b8[_0x5980('0x27')]==_0x59943b);let _0x4d0eeb=_0x59943b,_0xcd9472='';return _0x9903d&&(_0x4d0eeb=_0x9903d[_0x5980('0x5')],_0xcd9472=_0xc34637(_0x4d0eeb)['toLowerCase']()),{'type':_0x5980('0x1b'),'content':_0x50fb89(_0x145731,'*Set\x20font\x20background\x20color:*\x20%0',_0xcd9472)[_0x5980('0x10')](),'color':{'value':_0x59943b,'title':_0xcd9472||_0x4d0eeb}};}return{'type':'format','content':_0x50fb89(_0x145731,_0x5980('0x29'))};}}});}[_0x5980('0x22')](_0x5a17a2){const _0x431265=this[_0x5980('0x1e')];_0x431265[_0x5980('0x28')][_0x5980('0xc')](_0x5980('0xf'))[_0x5980('0xa')](_0x5a17a2,(_0x2d768f,_0x3218e4={})=>{const _0x84bc68=_0x431265[_0x5980('0x27')][_0x5980('0x12')]['selection'],_0x192019=_0x3218e4[_0x5980('0x16')];_0x84bc68[_0x5980('0xb')]?_0x2d768f(_0x3218e4):_0x431265['model'][_0x5980('0xe')](()=>{const _0x3a0e26=Array[_0x5980('0x23')](_0x84bc68['getRanges']());for(const _0x3f5b4a of _0x3a0e26){const _0x2d7e45=_0x192019?[_0x3f5b4a]:_0x21ebd7(_0x5a17a2,_0x3f5b4a,_0x431265['model']);for(const _0x45d773 of _0x2d7e45)_0x431265['plugins'][_0x5980('0xc')](_0x5980('0xf'))[_0x5980('0x25')](_0x45d773,{'commandName':_0x5a17a2,'commandParams':[{'value':_0x192019}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22d9=['*Set\x20format\x20to:*\x20%0','markInlineFormat','fontSize.options','from','join','format','isBlock','label','change','copyFormat','isFormatting','_descriptionFactory','getAttributeProperties','getRanges','enableCommand','plugins','getFirstPosition','registerDescriptionCallback','keys','forward','word','pasteFormat','getAttributes','split','backward','fontSize','config','title','createRange','editor','getSelectedBlocks','boolean','fontBackgroundColor','getItems','afterInit','push','modifySelection','charAt','find','get','document','createSelection','locale','normalizeSizeOptions','commands','schema','commandParams','length','model','fontColor.colors','commandName','toLowerCase','selection','FontSize'];(function(_0xa2669f,_0x22d943){const _0x1252a8=function(_0x14ee1b){while(--_0x14ee1b){_0xa2669f['push'](_0xa2669f['shift']());}};_0x1252a8(++_0x22d943);}(_0x22d9,0x8e));const _0x1252=function(_0xa2669f,_0x22d943){_0xa2669f=_0xa2669f-0x0;let _0x1252a8=_0x22d9[_0xa2669f];return _0x1252a8;};import{Plugin as _0x352db8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5074ff}from'ckeditor5/src/ui';import{first as _0x428d8e}from'ckeditor5/src/utils';import{getTranslation as _0x1156ef}from'../utils/common-translations';export default class W extends _0x352db8{[_0x1252('0x0')](){const _0x2e8bb6=this[_0x1252('0x31')],_0xb26a1f=_0x2e8bb6['model'],_0x42635c=_0xb26a1f[_0x1252('0x6')][_0x1252('0x12')],_0x1b2800=_0x2e8bb6['plugins']['get']('TrackChangesEditing'),_0x108d60=_0x2e8bb6['locale'],_0x4ed3b5=_0x2e8bb6[_0x1252('0xa')][_0x1252('0x5')](_0x1252('0x1d')),_0x5482eb=_0x2e8bb6[_0x1252('0xa')]['get']('pasteFormat');_0x4ed3b5&&_0x5482eb&&(_0x1b2800[_0x1252('0x22')]('pasteFormat',(_0x32b1c5,_0x12da14={})=>{const _0x3b08ee=_0x12da14;_0xb26a1f[_0x1252('0x1c')](()=>{const _0x118003=Array[_0x1252('0x17')](_0x42635c[_0x1252('0x21')]()),_0x2b3bfe=_0x42635c['isCollapsed']?[ro(_0xb26a1f,_0x42635c)]:_0x118003,_0x2279ba=!!_0x428d8e(function*(_0x259db0,_0x53f26e){const _0x2cfce5=_0x5aa55d=>!!_0x428d8e(function*(_0x3e80a7,_0x487091){for(const [_0x874c4b]of _0x3e80a7[_0x1252('0x2a')]()){const _0x44ff29=_0x487091[_0x1252('0x20')](_0x874c4b);_0x44ff29&&_0x44ff29[_0x1252('0x1e')]&&(yield _0x874c4b);}}(_0x5aa55d,_0x53f26e));for(const _0x198962 of _0x259db0[_0x1252('0x21')]())for(const _0x308ab2 of _0x198962[_0x1252('0x35')]())!_0x53f26e[_0x1252('0x1a')](_0x308ab2)&&_0x2cfce5(_0x308ab2)&&(yield _0x308ab2);for(const _0x3e1fc9 of _0x259db0[_0x1252('0x32')]())_0x2cfce5(_0x3e1fc9)&&(yield _0x3e1fc9);_0x2cfce5(_0x259db0)&&(yield _0x259db0);}(_0x42635c,_0xb26a1f[_0x1252('0xb')]));if(_0x2279ba||0x0!==Object[_0x1252('0x26')](_0x3b08ee)[_0x1252('0xd')])for(const _0xe206dd of _0x2b3bfe)_0x1b2800[_0x1252('0x15')](_0xe206dd,{'commandName':_0x1252('0x29'),'commandParams':[_0x3b08ee]});});}),_0x1b2800[_0x1252('0x1f')][_0x1252('0x25')](_0x5d987a=>{const {data:_0xf42e32}=_0x5d987a;if(_0xf42e32&&'pasteFormat'===_0xf42e32[_0x1252('0x10')]){const _0x4c8959=[],_0x1394f6=_0xf42e32[_0x1252('0xc')][0x0];for(const [_0x439741,_0x529d2a]of Object['entries'](_0x1394f6))_0x4c8959[_0x1252('0x1')](no(_0x2e8bb6,_0x439741,_0x529d2a));return _0x4c8959[_0x1252('0xd')]?{'type':_0x1252('0x19'),'content':_0x1156ef(_0x108d60,_0x1252('0x14'),_0x4c8959['join'](',\x20'))}:{'type':_0x1252('0x19'),'content':_0x1156ef(_0x108d60,'*Remove\x20all\x20formatting*')};}}),_0x2e8bb6[_0x1252('0x23')][_0x1252('0x5')]('TrackChangesEditing')[_0x1252('0x22')](_0x1252('0x1d')));}}function ro(_0x4d3d3e,_0x5da8f9){const _0x19f71f=_0x4d3d3e[_0x1252('0x7')](_0x5da8f9);_0x4d3d3e['modifySelection'](_0x19f71f,{'unit':_0x1252('0x28'),'direction':_0x1252('0x2c')});const _0x2646e8=_0x19f71f[_0x1252('0x24')]();_0x4d3d3e[_0x1252('0x2')](_0x19f71f,{'unit':_0x1252('0x28'),'direction':_0x1252('0x27')});const _0x2deb43=_0x19f71f['getLastPosition']();return _0x4d3d3e[_0x1252('0x30')](_0x2646e8,_0x2deb43);}function no(_0x2baba6,_0x57581e,_0xae4e60){const _0x23329c=_0x2baba6[_0x1252('0x8')]['t'],_0x4c2dcb=_0x57581e[_0x1252('0x2b')](/(?=[A-Z])/)[_0x1252('0x18')]('\x20'),_0x3e8935=_0x23329c(_0x4c2dcb[_0x1252('0x3')](0x0)['toUpperCase']()+_0x4c2dcb['slice'](0x1))[_0x1252('0x11')]();if(_0x1252('0x33')==typeof _0xae4e60)return _0x3e8935;if('fontColor'===_0x57581e||_0x1252('0x34')===_0x57581e){const _0x131436=_0x5074ff(_0x2baba6[_0x1252('0x2e')][_0x1252('0x5')](_0x1252('0xf')))[_0x1252('0x4')](_0x47c586=>_0x47c586[_0x1252('0xe')]==_0xae4e60);return _0x3e8935+'\x20('+(_0x131436?_0x23329c(_0x131436[_0x1252('0x1b')])[_0x1252('0x11')]():_0xae4e60)+')';}if(_0x1252('0x2d')===_0x57581e&&isNaN(parseFloat(_0xae4e60))){const _0x369abc=_0x2baba6[_0x1252('0x23')][_0x1252('0x5')](_0x1252('0x13'))[_0x1252('0x9')](_0x2baba6[_0x1252('0x2e')]['get'](_0x1252('0x16')))[_0x1252('0x4')](_0x253a82=>_0x253a82[_0x1252('0xe')]==_0xae4e60);return _0x3e8935+'\x20('+(_0x369abc?_0x23329c(_0x369abc[_0x1252('0x2f')])[_0x1252('0x11')]():_0xae4e60)+')';}return _0x3e8935+'\x20('+_0xae4e60+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56cb=['formatBlock','value','TrackChangesEditing','enableCommand','model','heading.options','get','has','match','format','_descriptionFactory','HeadingEditing','config','locale','parent','afterInit','ELEMENT_HEADING_CUSTOM','markBlockFormat','plugins','*Change\x20to:*\x20%0','registerDescriptionCallback','filter','ELEMENT_HEADING','heading','commandName','find','change','checkChild','title','editor','getSelectedBlocks'];(function(_0x5ddefd,_0x56cb01){const _0x2ab578=function(_0x1fdf79){while(--_0x1fdf79){_0x5ddefd['push'](_0x5ddefd['shift']());}};_0x2ab578(++_0x56cb01);}(_0x56cb,0x1ee));const _0x2ab5=function(_0x5ddefd,_0x56cb01){_0x5ddefd=_0x5ddefd-0x0;let _0x2ab578=_0x56cb[_0x5ddefd];return _0x2ab578;};import{Plugin as _0x2b9fba}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xa6fd89}from'./utils';import{getTranslation as _0x12dab2}from'../utils/common-translations';export default class J extends _0x2b9fba{[_0x2ab5('0x11')](){const _0x1f6c2d=this[_0x2ab5('0x0')],_0x2ebf92=_0x1f6c2d[_0x2ab5('0xf')],_0x36fd46=_0x1f6c2d[_0x2ab5('0xe')]['get'](_0x2ab5('0x7'));if(!_0x1f6c2d[_0x2ab5('0x14')][_0x2ab5('0x9')](_0x2ab5('0xd')))return;const _0xa4a466=_0x1f6c2d[_0x2ab5('0x14')][_0x2ab5('0x8')](_0x2ab5('0x4'));_0xa4a466[_0x2ab5('0x5')](_0x2ab5('0x19'),(_0x299a93,_0xf7e9f3)=>{const _0x26af26=_0xf7e9f3['value'],_0x2de9fe=Array['from'](this[_0x2ab5('0x0')]['model']['document']['selection'][_0x2ab5('0x1')]())[_0x2ab5('0x17')](_0x1f045b=>function(_0x21822b,_0x4dd861,_0x548dec){return _0x548dec[_0x2ab5('0x1d')](_0x21822b[_0x2ab5('0x10')],_0x4dd861)&&!_0x548dec['isObject'](_0x21822b)&&_0x21822b['name']!=_0x4dd861;}(_0x1f045b,_0x26af26,this[_0x2ab5('0x0')][_0x2ab5('0x6')]['schema']));_0x1f6c2d['model'][_0x2ab5('0x1c')](()=>{for(const _0x405590 of _0x2de9fe)_0xa4a466[_0x2ab5('0x13')](_0x405590,{'commandName':_0x2ab5('0x19'),'commandParams':[_0xf7e9f3],'formatGroupId':'blockName'},_0xa6fd89(_0x405590));});});for(const _0x57c300 of _0x36fd46)'paragraph'!=_0x57c300[_0x2ab5('0x6')]&&_0xa4a466[_0x2ab5('0xc')]['registerElementLabel'](_0x57c300[_0x2ab5('0x6')],_0x2f99a7=>{const _0x573611=nn(_0x57c300['model']);return null!==_0x573611?_0x46817d(_0x2f99a7,_0x573611):_0x3b6a1f(_0x2f99a7,_0x57c300[_0x2ab5('0x1e')]);});function _0x46817d(_0x1b88a7,_0x71d3fa){return _0x12dab2(_0x2ebf92,_0x2ab5('0x18'),[_0x1b88a7,_0x71d3fa]);}function _0x3b6a1f(_0x53b775,_0x2f1a37){return _0x12dab2(_0x2ebf92,_0x2ab5('0x12'),[_0x53b775,_0x2f1a37]);}_0xa4a466[_0x2ab5('0xc')][_0x2ab5('0x16')](_0x49edd6=>{const {type:_0xedd613,data:_0x5c0534}=_0x49edd6;if(_0x2ab5('0x2')==_0xedd613&&_0x5c0534&&_0x2ab5('0x19')==_0x5c0534[_0x2ab5('0x1a')]){const _0x10566d=_0x5c0534['commandParams'][0x0][_0x2ab5('0x3')],_0x21fd03=nn(_0x10566d);if(null!==_0x21fd03)return{'type':_0x2ab5('0xb'),'content':_0x12dab2(_0x2ebf92,'*Change\x20to:*\x20%0',_0x46817d(0x1,_0x21fd03))};const _0x2d2e7d=_0x36fd46[_0x2ab5('0x1b')](_0x23378d=>_0x23378d[_0x2ab5('0x6')]===_0x10566d)[_0x2ab5('0x1e')];return{'type':_0x2ab5('0xb'),'content':_0x12dab2(_0x2ebf92,_0x2ab5('0x15'),_0x3b6a1f(0x1,_0x2d2e7d))};}});}}function nn(_0x453048){const _0x2f058b=_0x453048[_0x2ab5('0xa')](/^heading(\d+)$/);return _0x2f058b?_0x2f058b[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29db=['plugins','FORMAT_HIGHLIGHT','value','highlight','getLastMatchingPosition','has','format','title','locale','*Set\x20highlight:*\x20%0','item','*Remove\x20highlight*','push','editor','highlight.options','_descriptionFactory','model','isCollapsed','HighlightEditing','getAttribute','getFirstPosition','afterInit','createRange','color','enableCommand','commandParams','change','config','hasAttribute','backward'];(function(_0x4a3484,_0x29dbaf){const _0x2cd00c=function(_0x5d38b8){while(--_0x5d38b8){_0x4a3484['push'](_0x4a3484['shift']());}};_0x2cd00c(++_0x29dbaf);}(_0x29db,0x19c));const _0x2cd0=function(_0x4a3484,_0x29dbaf){_0x4a3484=_0x4a3484-0x0;let _0x2cd00c=_0x29db[_0x4a3484];return _0x2cd00c;};import{Plugin as _0x16b43b}from'ckeditor5/src/core';import{getTranslation as _0x114490}from'../utils/common-translations';import{getRangesWithAttribute as _0x200a55}from'./utils';export default class K extends _0x16b43b{[_0x2cd0('0x1d')](){const _0x28fb60=this[_0x2cd0('0x15')];if(!_0x28fb60[_0x2cd0('0x8')][_0x2cd0('0xd')](_0x2cd0('0x1a')))return;const _0xe6fd45=_0x28fb60[_0x2cd0('0x8')]['get']('TrackChangesEditing');_0xe6fd45[_0x2cd0('0x2')]('highlight',(_0x138379,_0xf07c68={})=>{const _0x4497c8=_0x28fb60[_0x2cd0('0x18')]['document']['selection'],_0x303c6b=_0x4497c8[_0x2cd0('0x1b')](_0x2cd0('0xb'));let _0x2087f7=_0xf07c68['value'],_0x356f3c=[];if(_0x4497c8[_0x2cd0('0x19')]){const _0x2f2261=_0x4497c8[_0x2cd0('0x1c')]();if(!_0x4497c8[_0x2cd0('0x6')](_0x2cd0('0xb')))return void _0x138379(_0xf07c68);{const _0x1d8e20=_0x5a48ab=>_0x5a48ab[_0x2cd0('0x12')][_0x2cd0('0x1b')](_0x2cd0('0xb'))===_0x303c6b,_0x22f7a6=_0x2f2261['getLastMatchingPosition'](_0x1d8e20,{'direction':_0x2cd0('0x7')}),_0xc85d82=_0x2f2261[_0x2cd0('0xc')](_0x1d8e20);_0x356f3c=[_0x28fb60[_0x2cd0('0x18')][_0x2cd0('0x0')](_0x22f7a6,_0xc85d82)],_0x2087f7==_0x303c6b&&(_0x2087f7=null);}}else for(const _0x288f97 of _0x4497c8['getRanges']())_0x2087f7?_0x356f3c[_0x2cd0('0x14')](_0x288f97):_0x356f3c[_0x2cd0('0x14')](..._0x200a55('highlight',_0x288f97,_0x28fb60[_0x2cd0('0x18')]));_0x28fb60[_0x2cd0('0x18')][_0x2cd0('0x4')](()=>{for(const _0x2dcc56 of _0x356f3c)_0xe6fd45['markInlineFormat'](_0x2dcc56,{'commandName':_0x2cd0('0xb'),'commandParams':[{'value':_0x2087f7}]});});});const _0x2f6a5d=_0x28fb60[_0x2cd0('0x10')];_0xe6fd45[_0x2cd0('0x17')]['registerDescriptionCallback'](_0x2c7741=>{const {type:_0x4abc8f,data:_0x3b779d}=_0x2c7741;if('formatInline'==_0x4abc8f&&_0x3b779d&&'highlight'==_0x3b779d['commandName']){const _0x2718af=_0x2f6a5d['t'],_0x525392=_0x3b779d[_0x2cd0('0x3')][0x0][_0x2cd0('0xa')];if(_0x525392){const _0x40bbe5=_0x28fb60[_0x2cd0('0x5')]['get'](_0x2cd0('0x16'))['find'](_0x37562a=>_0x37562a['model']==_0x525392),_0x362a46=_0x2718af(_0x40bbe5[_0x2cd0('0xf')])['toLowerCase']();return{'type':_0x2cd0('0xe'),'content':_0x114490(_0x2f6a5d,_0x2cd0('0x11'),_0x362a46),'color':{'value':_0x40bbe5[_0x2cd0('0x1')],'title':_0x40bbe5['title']}};}return{'type':_0x2cd0('0xe'),'content':_0x114490(_0x2f6a5d,_0x2cd0('0x13'),_0x114490(_0x2f6a5d,_0x2cd0('0x9')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4164=['editor','dataDowncast','_descriptionFactory','has','ck-horizontal-line','plugins','locale','horizontalLine','get','insert','for','showSuggestionHighlights','createPositionAt','createContainerElement','div','high','ELEMENT_HORIZONTAL_LINE','TrackChangesEditing','afterInit'];(function(_0x26d392,_0x416426){const _0x13b014=function(_0x3be5f3){while(--_0x3be5f3){_0x26d392['push'](_0x26d392['shift']());}};_0x13b014(++_0x416426);}(_0x4164,0x107));const _0x13b0=function(_0x26d392,_0x416426){_0x26d392=_0x26d392-0x0;let _0x13b014=_0x4164[_0x26d392];return _0x13b014;};import{Plugin as _0x2637a5}from'ckeditor5/src/core';import{getTranslation as _0x566322}from'../utils/common-translations';export default class Q extends _0x2637a5{[_0x13b0('0x2')](){const _0x11b6fa=this[_0x13b0('0x3')];if(!_0x11b6fa[_0x13b0('0x8')][_0x13b0('0x6')]('HorizontalLineEditing'))return;_0x11b6fa[_0x13b0('0x8')][_0x13b0('0xb')](_0x13b0('0x1'))['enableCommand'](_0x13b0('0xa'));const _0x1f5b61=_0x11b6fa[_0x13b0('0x8')][_0x13b0('0xb')]('TrackChangesEditing'),_0x5ccb6e=_0x11b6fa[_0x13b0('0x9')];_0x1f5b61[_0x13b0('0x5')]['registerElementLabel'](_0x13b0('0xa'),_0x94c651=>_0x566322(_0x5ccb6e,_0x13b0('0x0'),_0x94c651)),_0x11b6fa['conversion'][_0x13b0('0xd')](_0x13b0('0x4'))['elementToStructure']({'model':'horizontalLine','view':(_0x3beb43,{writer:_0x5ba248,options:_0x4c11ba})=>{if(!_0x4c11ba[_0x13b0('0xe')])return null;const _0x3d5496=_0x5ba248[_0x13b0('0x10')](_0x13b0('0x11')),_0x2fc6fb=_0x5ba248['createEmptyElement']('hr');return _0x5ba248['addClass'](_0x13b0('0x7'),_0x3d5496),_0x5ba248[_0x13b0('0xc')](_0x5ba248[_0x13b0('0xf')](_0x3d5496,0x0),_0x2fc6fb),_0x3d5496;},'converterPriority':_0x13b0('0x12')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33f0=['*Change\x20%0\x20content*','registerDescriptionCallback','rawHtml','htmlEmbed','selection','_descriptionFactory','editor','locale','cancel','getSelectedElement','rawHtmlApi','enableCommand','getCustomProperty','ELEMENT_HTML_EMBED','registerElementLabel','get','format','TrackChangesEditing','commandName','has','editing','plugins','markBlockFormat','element','document'];(function(_0x3c77d8,_0x33f0c5){const _0x1a2882=function(_0x18cc38){while(--_0x18cc38){_0x3c77d8['push'](_0x3c77d8['shift']());}};_0x1a2882(++_0x33f0c5);}(_0x33f0,0x162));const _0x1a28=function(_0x3c77d8,_0x33f0c5){_0x3c77d8=_0x3c77d8-0x0;let _0x1a2882=_0x33f0[_0x3c77d8];return _0x1a2882;};import{Plugin as _0x5bc11c}from'ckeditor5/src/core';import{getTranslation as _0x427401}from'../utils/common-translations';export default class V extends _0x5bc11c{['afterInit'](){const _0x75f8b9=this[_0x1a28('0x2')];if(!_0x75f8b9['plugins'][_0x1a28('0xf')]('HtmlEmbed'))return;const _0x3daf3d=_0x75f8b9[_0x1a28('0x11')][_0x1a28('0xb')]('TrackChangesEditing'),_0x3ac65b=_0x75f8b9[_0x1a28('0x3')],_0x22e0ef=_0x75f8b9[_0x1a28('0x10')]['view'][_0x1a28('0x14')][_0x1a28('0x0')];_0x3daf3d[_0x1a28('0x1')][_0x1a28('0xa')]('rawHtml',_0x1664fe=>_0x427401(_0x3ac65b,_0x1a28('0x9'),_0x1664fe)),_0x75f8b9[_0x1a28('0x11')][_0x1a28('0xb')](_0x1a28('0xd'))[_0x1a28('0x7')](_0x1a28('0x18'),(_0x5e436e,_0xb969c0)=>{const _0x4007d8=_0x75f8b9['model'],_0x30e1db=_0x4007d8[_0x1a28('0x14')]['selection'];_0x4007d8['change'](()=>{const _0x2f410b=function(_0x523b9e){const _0x261570=_0x523b9e[_0x1a28('0x5')]();if(_0x261570&&_0x261570['is'](_0x1a28('0x13'),_0x1a28('0x17')))return _0x523b9e['getSelectedElement']();return null;}(_0x30e1db);if(!_0x2f410b)return void _0x5e436e(null);const _0x3e0c99=_0x2f410b['getAttribute']('value')||'';if(void 0x0===_0xb969c0)return;if(_0xb969c0===_0x3e0c99)return;_0x3daf3d[_0x1a28('0x12')](_0x2f410b,{'commandName':'htmlEmbed','commandParams':[_0xb969c0]}),_0x22e0ef[_0x1a28('0x5')]()[_0x1a28('0x8')](_0x1a28('0x6'))[_0x1a28('0x4')]();});}),_0x3daf3d[_0x1a28('0x1')][_0x1a28('0x16')](_0xa3f9a4=>{const {data:_0x20e519}=_0xa3f9a4;if(_0x20e519&&_0x1a28('0x18')==_0x20e519[_0x1a28('0xe')]){const _0x35d0fd=_0x427401(_0x3ac65b,_0x1a28('0x9'));return{'type':_0x1a28('0xc'),'content':_0x427401(_0x3ac65b,_0x1a28('0x15'),_0x35d0fd)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2bef=['Users','createRangeOn','type','refresh','format','title','markDeletion','imageStylePreApply','isOwn','forEach','resizeImage','imageTextAlternative','ImageResize','_splitMarkerName','nodeBefore','element','isBlockImage','side','nodeAfter','isInlineImage','ImageTextAlternativeEditing','detach','toggleImageCaption','commandName','hasSuggestion','_suggestionFactory','getSuggestion','model','ImageCaptionUtils','suggestion','*Set\x20image\x20width:*\x20%0','TrackChangesEditing','markBlockFormat','previous','getCaptionFromImageModelElement','addObject','forward','ELEMENT_CAPTION','chain','backward','ImageEditing','*Reset\x20image\x20width*','removeObject','discardSuggestion','getChangedMarkers','insertImage','start','registerDescriptionCallback','isEqual','accept','discard','find','length','registerElementLabel','change','getClosestSelectedImageElement','convertInlineImageToBlock','imageCaption','createRange','alt','enableCommand','getNearestSelectionRange','afterInit','ELEMENT_IMAGE','imageStylePostApply','document','author','subType','uploadImage','imageTypeBlock','locale','name','Inline\x20image\x20to\x20block\x20image','isInContent','getSuggestionCallback','get','editor','getAttribute','head','end','differ','commandParams','FORMAT_SIDE_IMAGE','formatInline','ELEMENT_INLINE_IMAGE','Block\x20image\x20to\x20inline\x20image','imageStyle','selection','value','getFirstRange','plugins','convertBlockImageToInline','filter','_descriptionFactory','newValue','markInsertion','getSuggestions','isBefore','insertion','imageTypeInline','newRange','next','toPrevious','commands','normalizedStyles','join','imageBlock','_findSuggestions','ImageBlockEditing','markInlineFormat','registerCustomCallback','has','ImageUtils','from','width','fromPosition','findIndex','schema','ImageStyleEditing','imageInline','formatBlock','hasAttribute'];(function(_0x22028e,_0x2befc6){const _0x372c93=function(_0x433d8f){while(--_0x433d8f){_0x22028e['push'](_0x22028e['shift']());}};_0x372c93(++_0x2befc6);}(_0x2bef,0xf2));const _0x372c=function(_0x22028e,_0x2befc6){_0x22028e=_0x22028e-0x0;let _0x372c93=_0x2bef[_0x22028e];return _0x372c93;};import{Plugin as _0x1c9b82}from'ckeditor5/src/core';import{LivePosition as _0x59b41d}from'ckeditor5/src/engine';import{uid as _0x2e5afa}from'ckeditor5/src/utils';import{getTranslation as _0x1983e0}from'../utils/common-translations';export default class X extends _0x1c9b82{[_0x372c('0x40')](){const _0x18cb78=this[_0x372c('0x4e')];if(!_0x18cb78['plugins'][_0x372c('0x71')](_0x372c('0x2a')))return;const _0x9c19ad=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x21')),_0x4e63eb=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x72')),_0x411518={},_0x3600be=_0x18cb78[_0x372c('0x48')];if(_0x9c19ad[_0x372c('0x3e')](_0x372c('0x2f')),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x37')](_0x372c('0x6c'),_0x1710bf=>_0x1983e0(_0x3600be,_0x372c('0x41'),_0x1710bf)),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x37')](_0x372c('0x79'),_0x3bc850=>_0x1983e0(_0x3600be,_0x372c('0x56'),_0x3bc850)),_0x9c19ad[_0x372c('0x5f')]['registerElementLabel']('caption',()=>_0x1983e0(_0x3600be,_0x372c('0x27'))),_0x18cb78[_0x372c('0x5c')]['has']('ImageUploadEditing')&&_0x9c19ad['enableCommand'](_0x372c('0x46')),_0x18cb78['plugins'][_0x372c('0x71')](_0x372c('0x6e'))&&_0x18cb78[_0x372c('0x5c')]['has']('ImageInlineEditing')&&(_0x9c19ad[_0x372c('0x3e')](_0x372c('0x65'),(_0x3230f8,_0x2ea0a5)=>{const _0xb27acc=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')]['document'][_0x372c('0x59')]);_0x18cb78[_0x372c('0x1d')][_0x372c('0x38')](()=>{_0x9c19ad[_0x372c('0x22')](_0xb27acc,{'commandName':_0x372c('0x65'),'commandParams':[_0x2ea0a5]},[],_0x372c('0x5d'));});}),_0x9c19ad[_0x372c('0x3e')](_0x372c('0x47'),(_0x2bb628,_0x36b734)=>{_0x18cb78[_0x372c('0x1d')]['change'](_0x4df152=>{let _0x1d485d=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')]['document'][_0x372c('0x59')]),_0x2bf588=_0x4df152[_0x372c('0x3')](_0x1d485d);const _0x42bd6b=_0x59b41d[_0x372c('0x75')](_0x2bf588[_0x372c('0x30')],_0x372c('0x68')),_0x1cb079=_0x59b41d[_0x372c('0x75')](_0x2bf588[_0x372c('0x51')],'toNext');_0x9c19ad['forceDefaultExecution'](()=>_0x2bb628(_0x36b734)),_0x1d485d=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')][_0x372c('0x59')]),_0x2bf588=_0x4df152[_0x372c('0x3')](_0x1d485d);const _0x482431=_0x4df152[_0x372c('0x3c')](_0x42bd6b,_0x1cb079);_0x42bd6b['detach'](),_0x1cb079[_0x372c('0x17')](),_0x9c19ad[_0x372c('0x22')](_0x1d485d,{'commandName':_0x372c('0x65'),'commandParams':[]},[],_0x372c('0x3a')),_0x482431[_0x372c('0x30')][_0x372c('0x63')](_0x2bf588['start'])&&_0x9c19ad[_0x372c('0x61')](_0x4df152['createRange'](_0x482431[_0x372c('0x30')],_0x2bf588[_0x372c('0x30')]),_0x372c('0x3a')),_0x2bf588[_0x372c('0x51')][_0x372c('0x63')](_0x482431[_0x372c('0x51')])&&_0x9c19ad[_0x372c('0x61')](_0x4df152['createRange'](_0x2bf588[_0x372c('0x51')],_0x482431['end']),_0x372c('0x3a'));});}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x3a'),'join',()=>{}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x3a'),_0x372c('0x33'),()=>{}),_0x9c19ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock',_0x372c('0x34'),_0x9c19ad['_suggestionFactory'][_0x372c('0x4c')]('formatBlock','',_0x372c('0x33'))),_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x64'),_0x372c('0x3a'),_0x372c('0x6b'),()=>{}),_0x9c19ad['_suggestionFactory']['registerCustomCallback']('insertion',_0x372c('0x3a'),_0x372c('0x34'),([_0x53c8e2])=>{const _0x18dcba=_0x9c19ad['_suggestionFactory'][_0x372c('0x4c')](_0x372c('0x64'),'','discard');let _0x264bac=_0x53c8e2['start'],_0xb87ae8=_0x53c8e2[_0x372c('0x51')];const _0x448543=_0x18cb78[_0x372c('0x1d')][_0x372c('0x77')][_0x372c('0x3f')](_0x264bac,_0x372c('0x29')),_0x2542a4=_0x18cb78['model'][_0x372c('0x77')][_0x372c('0x3f')](_0xb87ae8,_0x372c('0x26'));_0x448543['isCollapsed']&&(_0x264bac=_0x448543[_0x372c('0x30')]),_0x2542a4['isCollapsed']&&(_0xb87ae8=_0x2542a4[_0x372c('0x51')]),_0x18dcba([_0x18cb78['model'][_0x372c('0x3c')](_0x264bac,_0xb87ae8)]);}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),'convertInlineImageToBlock',_0x372c('0x28'),_0x52ada4),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')]('insertion',_0x372c('0x3a'),'chain',_0x52ada4)),_0x18cb78[_0x372c('0x5c')]['has']('ImageCaptionEditing')&&(_0x9c19ad[_0x372c('0x3e')](_0x372c('0x18'),(_0x5a5eb6,_0x541534)=>{const _0x1149f6=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x1e'));let _0x3202ec=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x59')]),_0x3b2d84=_0x1149f6[_0x372c('0x24')](_0x3202ec);_0x18cb78[_0x372c('0x1d')][_0x372c('0x38')](()=>{if(_0x3b2d84)return void _0x9c19ad[_0x372c('0x8')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x3b2d84));const _0x3ac4e9=_0x4e63eb[_0x372c('0x12')](_0x3202ec);_0x5a5eb6(_0x541534),_0x3202ec=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')]['document']['selection']),_0x3b2d84=_0x1149f6[_0x372c('0x24')](_0x3202ec),_0x9c19ad[_0x372c('0x61')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x3b2d84),_0x3ac4e9?null:_0x372c('0x3b'));});}),_0x9c19ad[_0x372c('0x1b')]['registerCustomCallback'](_0x372c('0x64'),_0x372c('0x3b'),'chain',_0x52ada4)),_0x18cb78[_0x372c('0x5c')][_0x372c('0x71')](_0x372c('0x78'))){_0x9c19ad[_0x372c('0x3e')]('imageStyle',(_0x177b77,_0x517463)=>{const _0x30eb71=_0x18cb78[_0x372c('0x5c')][_0x372c('0x4d')](_0x372c('0x2'))['me'],_0x1eb414=_0x18cb78[_0x372c('0x69')][_0x372c('0x4d')](_0x372c('0x58'));let _0x4857b2=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')][_0x372c('0x59')]),_0x157bde=_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x4857b2),_0x4224a0=_0x1eb414[_0x372c('0x5a')];if(_0x4224a0==_0x517463[_0x372c('0x5a')])return;const _0x371e83={'commandName':_0x372c('0x58'),'commandParams':[_0x517463],'formatGroupId':_0x2e5afa()};_0x18cb78['model'][_0x372c('0x38')](()=>{if(_0x9c19ad[_0x372c('0x62')]()[_0x372c('0x5e')](_0x57d768=>_0x57d768[_0x372c('0x4b')]&&_0x30eb71==_0x57d768[_0x372c('0x44')]&&(_0x372c('0x0')==_0x57d768['type']||'formatInline'==_0x57d768['type'])&&(_0x372c('0x9')==_0x57d768[_0x372c('0x45')]||_0x372c('0x42')==_0x57d768[_0x372c('0x45')])&&_0x57d768[_0x372c('0x5b')]()[_0x372c('0x32')](_0x157bde))[_0x372c('0xb')](_0x2f9ceb=>_0x9c19ad['discardSuggestion'](_0x2f9ceb[_0x372c('0x50')])),_0x4857b2=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')]['selection']),_0x157bde=_0x18cb78[_0x372c('0x1d')][_0x372c('0x3')](_0x4857b2),_0x1eb414[_0x372c('0x5')](),_0x18cb78['commands'][_0x372c('0x4d')](_0x372c('0x65'))[_0x372c('0x5')](),_0x18cb78[_0x372c('0x69')][_0x372c('0x4d')](_0x372c('0x47'))[_0x372c('0x5')](),_0x4224a0=_0x1eb414['value'],_0x4224a0!=_0x517463[_0x372c('0x5a')])return _0x4e63eb[_0x372c('0x15')](_0x4857b2)&&_0x1eb414['shouldConvertImageType'](_0x517463[_0x372c('0x5a')],_0x4857b2)?(_0x177b77(_0x517463),_0x4857b2=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x59')]),void _0x9c19ad['markBlockFormat'](_0x4857b2,{..._0x371e83,'commandReversedParams':[{'value':_0x4224a0||null}]},[],_0x372c('0x9'))):void(_0x4e63eb[_0x372c('0x12')](_0x4857b2)?_0x9c19ad[_0x372c('0x22')](_0x4857b2,_0x371e83,[],_0x372c('0x42')):_0x9c19ad[_0x372c('0x6f')](_0x157bde,_0x371e83,_0x372c('0x42')));});});for(const _0x599deb of _0x18cb78[_0x372c('0x5c')]['get'](_0x372c('0x78'))[_0x372c('0x6a')])_0x411518[_0x599deb[_0x372c('0x49')]]=_0x599deb[_0x372c('0x7')]['toLowerCase']();_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x9'),_0x372c('0x6b'),()=>{}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x42'),_0x372c('0x6b'),()=>{}),_0x9c19ad[_0x372c('0x1b')][_0x372c('0x70')](_0x372c('0x55'),'imageStylePostApply',_0x372c('0x6b'),()=>{}),_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x0'),_0x372c('0x9'),'accept',()=>{}),_0x9c19ad['_suggestionFactory']['registerCustomCallback'](_0x372c('0x0'),_0x372c('0x9'),'discard',(_0x3c3128,_0x40bd4f)=>{_0x9c19ad['_suggestionFactory'][_0x372c('0x4c')](_0x372c('0x0'),'',_0x372c('0x33'))(_0x3c3128,{'commandName':_0x40bd4f[_0x372c('0x19')],'commandParams':_0x40bd4f['commandReversedParams']});}),_0x9c19ad['_suggestionFactory'][_0x372c('0x70')](_0x372c('0x0'),'imageStylePreApply',_0x372c('0x28'),_0x52ada4);}const _0x27cc94=[{'type':_0x372c('0x0'),'subType':_0x372c('0x9')},{'type':_0x372c('0x64'),'subType':_0x372c('0x3b')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x372c('0x64'),'subType':_0x372c('0x3a')}];function _0x4cc6d1(_0x16cc62,_0x10ad27){const _0x336025=_0x27cc94[_0x372c('0x76')](({type:_0x57de2f,subType:_0x2c8e38})=>_0x16cc62[_0x372c('0x4')]==_0x57de2f&&_0x16cc62[_0x372c('0x45')]==_0x2c8e38),_0x2c9e14=_0x27cc94[_0x372c('0x76')](({type:_0x5e82ed,subType:_0x510d9e})=>_0x10ad27[_0x372c('0x4')]==_0x5e82ed&&_0x10ad27['subType']==_0x510d9e);if(_0x336025<0x0||_0x2c9e14<0x0)return!0x1;const _0xed9356=_0x16cc62[_0x372c('0x5b')](),_0x2ef393=_0x10ad27[_0x372c('0x5b')]();if((0x0==_0x336025||0x1==_0x336025)&&0x2==_0x2c9e14&&_0xed9356['isIntersecting'](_0x2ef393))return!0x0;if(0x2==_0x336025&&0x3==_0x2c9e14){const _0x35bf38=_0x9c19ad[_0x372c('0x6d')](_0xed9356,_0x372c('0x64'))['filter'](({suggestion:_0x3885d5,meta:_0x267ee9})=>_0x267ee9[_0x372c('0xa')]&&'convertInlineImageToBlock'==_0x3885d5[_0x372c('0x45')]);if(_0x35bf38[_0x372c('0x36')]>0x1&&_0x2ef393['end'][_0x372c('0x32')](_0xed9356['start']))return!0x0;if(0x1==_0x35bf38[_0x372c('0x36')]&&(_0xed9356[_0x372c('0x30')]['isEqual'](_0x2ef393['end'])||_0xed9356['end']['isEqual'](_0x2ef393[_0x372c('0x30')])))return!0x0;}if(0x3==_0x336025&&0x3==_0x2c9e14&&_0xed9356[_0x372c('0x30')][_0x372c('0x63')](_0x2ef393[_0x372c('0x30')])){const _0xc49a74=_0xed9356['end'][_0x372c('0x14')],_0x5a6ecc=_0x2ef393[_0x372c('0x30')][_0x372c('0x10')];return _0x4e63eb['isBlockImage'](_0xc49a74)&&_0xc49a74===_0x5a6ecc;}return!0x1;}function _0x52ada4(_0x45e57f,_0x4b8618){return _0x4cc6d1(_0x45e57f,_0x4b8618)?[_0x45e57f,_0x4b8618]:_0x4cc6d1(_0x4b8618,_0x45e57f)?[_0x4b8618,_0x45e57f]:null;}_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')]['registerPostFixer'](()=>{let _0x206808=!0x1;const _0x114f17=Array[_0x372c('0x73')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x52')][_0x372c('0x2e')]());for(const {name:_0x248a91,data:_0x43bc7e}of _0x114f17){const {group:_0x492084,type:_0x3d044a,subType:_0x284305,id:_0x31142c}=_0x9c19ad[_0x372c('0xf')](_0x248a91);if(_0x372c('0x1f')==_0x492084&&_0x9c19ad[_0x372c('0x1a')](_0x31142c)){if(_0x372c('0x0')==_0x3d044a&&(_0x372c('0x9')==_0x284305||'imageStylePostApply'==_0x284305)){const _0x4f08a0=_0x9c19ad[_0x372c('0x1c')](_0x31142c);if(_0x43bc7e[_0x372c('0x66')]){const _0x179083=_0x4f08a0[_0x372c('0x5b')]()['getContainedElement']();if(_0x4e63eb[_0x372c('0x12')](_0x179083))continue;_0x9c19ad[_0x372c('0x2d')](_0x4f08a0),_0x206808=!0x0;}}if(_0x372c('0x64')==_0x3d044a&&'imageCaption'==_0x284305&&!_0x43bc7e['newRange']){const _0x44f065=_0x9c19ad['getSuggestion'](_0x31142c);_0x44f065[_0x372c('0x67')]&&_0x44f065[_0x372c('0x67')][_0x372c('0x4b')]&&(_0x9c19ad['discardSuggestion'](_0x44f065[_0x372c('0x67')]),_0x206808=!0x0);}}}return _0x206808;}),_0x18cb78[_0x372c('0x5c')][_0x372c('0x71')](_0x372c('0xe'))&&_0x9c19ad[_0x372c('0x3e')](_0x372c('0xc'),(_0x1b88ef,_0x51b4c7)=>{const _0x4d90ac=_0x4e63eb[_0x372c('0x39')](_0x18cb78['model'][_0x372c('0x43')][_0x372c('0x59')]);_0x4d90ac[_0x372c('0x4f')](_0x372c('0x74'))!=_0x51b4c7[_0x372c('0x74')]&&_0x18cb78[_0x372c('0x1d')]['change'](()=>{_0x9c19ad[_0x372c('0x22')](_0x4d90ac,{'commandName':_0x372c('0xc'),'commandParams':[_0x51b4c7]});});}),_0x18cb78[_0x372c('0x5c')][_0x372c('0x71')](_0x372c('0x16'))&&_0x9c19ad['enableCommand'](_0x372c('0xd'),(_0xbfe3d6,_0x5683bc)=>{const _0xebccba=_0x4e63eb[_0x372c('0x39')](_0x18cb78[_0x372c('0x1d')][_0x372c('0x43')][_0x372c('0x59')]);(_0xebccba[_0x372c('0x1')]('alt')?_0xebccba[_0x372c('0x4f')](_0x372c('0x3d')):'')!=_0x5683bc[_0x372c('0x60')]&&_0x18cb78['model'][_0x372c('0x38')](()=>{_0x9c19ad[_0x372c('0x22')](_0xebccba,{'commandName':'imageTextAlternative','commandParams':[_0x5683bc]});});}),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x4cf2d1=>{if(!!_0x27cc94[_0x372c('0x35')](({type:_0x1e5680,subType:_0x2283c0})=>_0x4cf2d1['type']==_0x1e5680&&_0x4cf2d1[_0x372c('0x45')]==_0x2283c0))return _0x4cf2d1[_0x372c('0x23')]?{}:void 0x0;}),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x2ecc49=>{if('insertion'==_0x2ecc49[_0x372c('0x4')]||'deletion'==_0x2ecc49[_0x372c('0x4')]){const _0xd63fd0=_0x2ecc49['getContainedElement']();if(_0xd63fd0&&_0xd63fd0['is'](_0x372c('0x11'),'caption'))return{'type':_0x372c('0x64')==_0x2ecc49[_0x372c('0x4')]?_0x372c('0x25'):_0x372c('0x2c'),'element':_0xd63fd0,'quantity':0x1};}}),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x23dc4f=>_0x372c('0x0')==_0x23dc4f[_0x372c('0x4')]&&_0x372c('0x3a')==_0x23dc4f['subType']?{'type':'format','content':_0x372c('0x4a')}:_0x372c('0x0')==_0x23dc4f[_0x372c('0x4')]&&_0x372c('0x5d')==_0x23dc4f[_0x372c('0x45')]?{'type':'format','content':_0x372c('0x57')}:void 0x0),_0x9c19ad[_0x372c('0x5f')][_0x372c('0x31')](_0x29be2e=>{const {data:_0x94aaf0}=_0x29be2e;if(_0x94aaf0){if(_0x372c('0x58')==_0x94aaf0[_0x372c('0x19')]){const _0x5203d0=_0x94aaf0[_0x372c('0x53')][0x0][_0x372c('0x5a')];return _0x4456fe(_0x372c('0x13')===_0x5203d0?_0x1983e0(_0x3600be,_0x372c('0x54')):_0x411518[_0x5203d0]||_0x5203d0);}if(_0x372c('0xd')==_0x94aaf0['commandName']){const _0x25083e=_0x94aaf0[_0x372c('0x53')][0x0]['newValue'];return _0x25083e?{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25083e+'\x22')}:{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x94aaf0[_0x372c('0x19')]){const _0x50e84e=_0x94aaf0[_0x372c('0x53')][0x0][_0x372c('0x74')];return _0x50e84e?{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,_0x372c('0x20'),_0x50e84e)}:{'type':'format','content':_0x1983e0(_0x3600be,_0x372c('0x2b'))};}}function _0x4456fe(_0x2819f3){return{'type':_0x372c('0x6'),'content':_0x1983e0(_0x3600be,'*Format:*\x20%0',_0x2819f3)};}});}}
|
|
23
|
+
const _0xab43=['toggleImageCaption','imageTextAlternative','afterInit','type','editor','_findSuggestions','newValue','_splitMarkerName','ImageTextAlternativeEditing','caption','title','ImageCaptionUtils','resizeImage','width','forEach','isInlineImage','ELEMENT_IMAGE','createRange','imageCaption','nodeAfter','getClosestSelectedImageElement','get','isCollapsed','imageTypeBlock','alt','join','filter','side','createRangeOn','plugins','getSuggestionCallback','ImageUploadEditing','suggestion','ImageUtils','ELEMENT_INLINE_IMAGE','isIntersecting','_suggestionFactory','forceDefaultExecution','convertBlockImageToInline','registerElementLabel','imageBlock','getSuggestions','discard','imageStylePreApply','commandReversedParams','end','ImageResize','formatBlock','imageInline','subType','getSuggestion','insertion','selection','isInContent','markInsertion','name','model','markBlockFormat','Users','ELEMENT_CAPTION','imageStylePostApply','toNext','next','convertInlineImageToBlock','schema','chain','markDeletion','enableCommand','toLowerCase','markInlineFormat','commandName','start','ImageCaptionEditing','ImageInlineEditing','backward','registerCustomCallback','FORMAT_SIDE_IMAGE','format','author','element','getNearestSelectionRange','change','commands','hasSuggestion','has','*Remove\x20image\x20text\x20alternative*','refresh','getFirstRange','registerDescriptionCallback','getAttribute','addObject','findIndex','ImageStyleEditing','isBlockImage','document','hasAttribute','value','TrackChangesEditing','ImageEditing','forward','ImageBlockEditing','*Set\x20image\x20width:*\x20%0','imageTypeInline','_descriptionFactory','accept','formatInline','commandParams','isEqual','nodeBefore','differ','*Set\x20image\x20text\x20alternative:*\x20%0','getCaptionFromImageModelElement','from','isOwn','detach','isBefore','Block\x20image\x20to\x20inline\x20image','length','toPrevious','*Reset\x20image\x20width*','head','imageStyle','discardSuggestion'];(function(_0x534573,_0xab4387){const _0x23997a=function(_0x2b67b2){while(--_0x2b67b2){_0x534573['push'](_0x534573['shift']());}};_0x23997a(++_0xab4387);}(_0xab43,0x1c2));const _0x2399=function(_0x534573,_0xab4387){_0x534573=_0x534573-0x0;let _0x23997a=_0xab43[_0x534573];return _0x23997a;};import{Plugin as _0x27e410}from'ckeditor5/src/core';import{LivePosition as _0x380c5c}from'ckeditor5/src/engine';import{uid as _0x5aabf4}from'ckeditor5/src/utils';import{getTranslation as _0x2c82b2}from'../utils/common-translations';export default class X extends _0x27e410{[_0x2399('0x2c')](){const _0x4f522a=this[_0x2399('0x2e')];if(!_0x4f522a[_0x2399('0x47')][_0x2399('0x3')](_0x2399('0x11')))return;const _0x474b3f=_0x4f522a['plugins'][_0x2399('0x3f')](_0x2399('0x10')),_0x2d8480=_0x4f522a[_0x2399('0x47')][_0x2399('0x3f')](_0x2399('0x4b')),_0x167f5d={},_0x16c59b=_0x4f522a['locale'];if(_0x474b3f[_0x2399('0x6d')]('insertImage'),_0x474b3f[_0x2399('0x16')]['registerElementLabel'](_0x2399('0x52'),_0x281dad=>_0x2c82b2(_0x16c59b,_0x2399('0x3a'),_0x281dad)),_0x474b3f[_0x2399('0x16')][_0x2399('0x51')](_0x2399('0x5a'),_0x293cb7=>_0x2c82b2(_0x16c59b,_0x2399('0x4c'),_0x293cb7)),_0x474b3f[_0x2399('0x16')][_0x2399('0x51')]('caption',()=>_0x2c82b2(_0x16c59b,_0x2399('0x65'))),_0x4f522a['plugins'][_0x2399('0x3')](_0x2399('0x49'))&&_0x474b3f['enableCommand']('uploadImage'),_0x4f522a['plugins']['has'](_0x2399('0x13'))&&_0x4f522a[_0x2399('0x47')][_0x2399('0x3')](_0x2399('0x73'))&&(_0x474b3f[_0x2399('0x6d')](_0x2399('0x15'),(_0x52b0ed,_0x8c6247)=>{const _0x464af7=_0x2d8480[_0x2399('0x3e')](_0x4f522a[_0x2399('0x62')][_0x2399('0xd')][_0x2399('0x5e')]);_0x4f522a['model'][_0x2399('0x0')](()=>{_0x474b3f['markBlockFormat'](_0x464af7,{'commandName':'imageTypeInline','commandParams':[_0x8c6247]},[],_0x2399('0x50'));});}),_0x474b3f[_0x2399('0x6d')](_0x2399('0x41'),(_0x374267,_0x3a8297)=>{_0x4f522a[_0x2399('0x62')][_0x2399('0x0')](_0x48c03b=>{let _0x15e307=_0x2d8480[_0x2399('0x3e')](_0x4f522a[_0x2399('0x62')][_0x2399('0xd')][_0x2399('0x5e')]),_0x15e8a4=_0x48c03b[_0x2399('0x46')](_0x15e307);const _0x1ea88c=_0x380c5c['fromPosition'](_0x15e8a4[_0x2399('0x71')],_0x2399('0x25')),_0x529db8=_0x380c5c['fromPosition'](_0x15e8a4[_0x2399('0x57')],_0x2399('0x67'));_0x474b3f[_0x2399('0x4f')](()=>_0x374267(_0x3a8297)),_0x15e307=_0x2d8480[_0x2399('0x3e')](_0x4f522a[_0x2399('0x62')][_0x2399('0xd')]['selection']),_0x15e8a4=_0x48c03b[_0x2399('0x46')](_0x15e307);const _0x105d44=_0x48c03b[_0x2399('0x3b')](_0x1ea88c,_0x529db8);_0x1ea88c['detach'](),_0x529db8[_0x2399('0x21')](),_0x474b3f[_0x2399('0x63')](_0x15e307,{'commandName':'imageTypeInline','commandParams':[]},[],'convertInlineImageToBlock'),_0x105d44[_0x2399('0x71')]['isBefore'](_0x15e8a4[_0x2399('0x71')])&&_0x474b3f['markInsertion'](_0x48c03b['createRange'](_0x105d44[_0x2399('0x71')],_0x15e8a4[_0x2399('0x71')]),_0x2399('0x69')),_0x15e8a4[_0x2399('0x57')][_0x2399('0x22')](_0x105d44[_0x2399('0x57')])&&_0x474b3f[_0x2399('0x60')](_0x48c03b[_0x2399('0x3b')](_0x15e8a4[_0x2399('0x57')],_0x105d44[_0x2399('0x57')]),_0x2399('0x69'));});}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')]('formatBlock',_0x2399('0x69'),_0x2399('0x43'),()=>{}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')](_0x2399('0x59'),_0x2399('0x69'),_0x2399('0x17'),()=>{}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')]('formatBlock','convertInlineImageToBlock',_0x2399('0x54'),_0x474b3f['_suggestionFactory'][_0x2399('0x48')](_0x2399('0x59'),'',_0x2399('0x17'))),_0x474b3f[_0x2399('0x4e')]['registerCustomCallback'](_0x2399('0x5d'),_0x2399('0x69'),_0x2399('0x43'),()=>{}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')]('insertion','convertInlineImageToBlock','discard',([_0x1e5f54])=>{const _0x2dc889=_0x474b3f[_0x2399('0x4e')][_0x2399('0x48')](_0x2399('0x5d'),'',_0x2399('0x54'));let _0x2e32fc=_0x1e5f54[_0x2399('0x71')],_0x2feda6=_0x1e5f54[_0x2399('0x57')];const _0x2c7489=_0x4f522a['model'][_0x2399('0x6a')][_0x2399('0x7a')](_0x2e32fc,_0x2399('0x74')),_0x3a3b3b=_0x4f522a[_0x2399('0x62')][_0x2399('0x6a')][_0x2399('0x7a')](_0x2feda6,_0x2399('0x12'));_0x2c7489['isCollapsed']&&(_0x2e32fc=_0x2c7489[_0x2399('0x71')]),_0x3a3b3b[_0x2399('0x40')]&&(_0x2feda6=_0x3a3b3b['end']),_0x2dc889([_0x4f522a[_0x2399('0x62')]['createRange'](_0x2e32fc,_0x2feda6)]);}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')]('formatBlock','convertInlineImageToBlock','chain',_0x301bfc),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')](_0x2399('0x5d'),_0x2399('0x69'),_0x2399('0x6b'),_0x301bfc)),_0x4f522a[_0x2399('0x47')][_0x2399('0x3')](_0x2399('0x72'))&&(_0x474b3f[_0x2399('0x6d')](_0x2399('0x2a'),(_0x42af57,_0x3b744e)=>{const _0x28a4ab=_0x4f522a[_0x2399('0x47')][_0x2399('0x3f')](_0x2399('0x35'));let _0x5f1004=_0x2d8480['getClosestSelectedImageElement'](_0x4f522a[_0x2399('0x62')]['document'][_0x2399('0x5e')]),_0x4cca96=_0x28a4ab[_0x2399('0x1e')](_0x5f1004);_0x4f522a[_0x2399('0x62')][_0x2399('0x0')](()=>{if(_0x4cca96)return void _0x474b3f[_0x2399('0x6c')](_0x4f522a[_0x2399('0x62')][_0x2399('0x46')](_0x4cca96));const _0x3188cf=_0x2d8480[_0x2399('0xc')](_0x5f1004);_0x42af57(_0x3b744e),_0x5f1004=_0x2d8480['getClosestSelectedImageElement'](_0x4f522a['model'][_0x2399('0xd')][_0x2399('0x5e')]),_0x4cca96=_0x28a4ab[_0x2399('0x1e')](_0x5f1004),_0x474b3f[_0x2399('0x60')](_0x4f522a[_0x2399('0x62')][_0x2399('0x46')](_0x4cca96),_0x3188cf?null:_0x2399('0x3c'));});}),_0x474b3f['_suggestionFactory'][_0x2399('0x75')](_0x2399('0x5d'),_0x2399('0x3c'),'chain',_0x301bfc)),_0x4f522a[_0x2399('0x47')][_0x2399('0x3')](_0x2399('0xb'))){_0x474b3f[_0x2399('0x6d')](_0x2399('0x28'),(_0x4c3fb7,_0xaa8224)=>{const _0x3f1a27=_0x4f522a[_0x2399('0x47')][_0x2399('0x3f')](_0x2399('0x64'))['me'],_0x730991=_0x4f522a['commands'][_0x2399('0x3f')](_0x2399('0x28'));let _0x378d39=_0x2d8480[_0x2399('0x3e')](_0x4f522a[_0x2399('0x62')]['document'][_0x2399('0x5e')]),_0xb495b3=_0x4f522a[_0x2399('0x62')][_0x2399('0x46')](_0x378d39),_0x40eb11=_0x730991[_0x2399('0xf')];if(_0x40eb11==_0xaa8224[_0x2399('0xf')])return;const _0x65c3f5={'commandName':_0x2399('0x28'),'commandParams':[_0xaa8224],'formatGroupId':_0x5aabf4()};_0x4f522a[_0x2399('0x62')][_0x2399('0x0')](()=>{if(_0x474b3f[_0x2399('0x53')]()[_0x2399('0x44')](_0x1d1437=>_0x1d1437['isInContent']&&_0x3f1a27==_0x1d1437[_0x2399('0x78')]&&('formatBlock'==_0x1d1437['type']||'formatInline'==_0x1d1437[_0x2399('0x2d')])&&(_0x2399('0x55')==_0x1d1437[_0x2399('0x5b')]||'imageStylePostApply'==_0x1d1437['subType'])&&_0x1d1437[_0x2399('0x6')]()[_0x2399('0x1a')](_0xb495b3))[_0x2399('0x38')](_0x4df946=>_0x474b3f[_0x2399('0x29')](_0x4df946[_0x2399('0x27')])),_0x378d39=_0x2d8480[_0x2399('0x3e')](_0x4f522a['model'][_0x2399('0xd')][_0x2399('0x5e')]),_0xb495b3=_0x4f522a[_0x2399('0x62')][_0x2399('0x46')](_0x378d39),_0x730991[_0x2399('0x5')](),_0x4f522a[_0x2399('0x1')][_0x2399('0x3f')](_0x2399('0x15'))[_0x2399('0x5')](),_0x4f522a[_0x2399('0x1')]['get'](_0x2399('0x41'))[_0x2399('0x5')](),_0x40eb11=_0x730991[_0x2399('0xf')],_0x40eb11!=_0xaa8224[_0x2399('0xf')])return _0x2d8480[_0x2399('0x39')](_0x378d39)&&_0x730991['shouldConvertImageType'](_0xaa8224[_0x2399('0xf')],_0x378d39)?(_0x4c3fb7(_0xaa8224),_0x378d39=_0x2d8480[_0x2399('0x3e')](_0x4f522a[_0x2399('0x62')][_0x2399('0xd')][_0x2399('0x5e')]),void _0x474b3f[_0x2399('0x63')](_0x378d39,{..._0x65c3f5,'commandReversedParams':[{'value':_0x40eb11||null}]},[],_0x2399('0x55'))):void(_0x2d8480[_0x2399('0xc')](_0x378d39)?_0x474b3f['markBlockFormat'](_0x378d39,_0x65c3f5,[],_0x2399('0x66')):_0x474b3f[_0x2399('0x6f')](_0xb495b3,_0x65c3f5,'imageStylePostApply'));});});for(const _0x1fe622 of _0x4f522a[_0x2399('0x47')][_0x2399('0x3f')](_0x2399('0xb'))['normalizedStyles'])_0x167f5d[_0x1fe622[_0x2399('0x61')]]=_0x1fe622[_0x2399('0x34')][_0x2399('0x6e')]();_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')](_0x2399('0x59'),_0x2399('0x55'),_0x2399('0x43'),()=>{}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')]('formatBlock',_0x2399('0x66'),'join',()=>{}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')](_0x2399('0x18'),_0x2399('0x66'),'join',()=>{}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')]('formatBlock','imageStylePreApply',_0x2399('0x17'),()=>{}),_0x474b3f['_suggestionFactory'][_0x2399('0x75')](_0x2399('0x59'),_0x2399('0x55'),_0x2399('0x54'),(_0xe5ceca,_0x1aea18)=>{_0x474b3f[_0x2399('0x4e')][_0x2399('0x48')](_0x2399('0x59'),'',_0x2399('0x17'))(_0xe5ceca,{'commandName':_0x1aea18[_0x2399('0x70')],'commandParams':_0x1aea18[_0x2399('0x56')]});}),_0x474b3f[_0x2399('0x4e')][_0x2399('0x75')]('formatBlock',_0x2399('0x55'),'chain',_0x301bfc);}const _0x592158=[{'type':_0x2399('0x59'),'subType':_0x2399('0x55')},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x2399('0x5d'),'subType':_0x2399('0x69')}];function _0xdd497e(_0x4e8805,_0x108d84){const _0x414e8a=_0x592158[_0x2399('0xa')](({type:_0x1114ca,subType:_0x569bc3})=>_0x4e8805[_0x2399('0x2d')]==_0x1114ca&&_0x4e8805[_0x2399('0x5b')]==_0x569bc3),_0x4381a7=_0x592158['findIndex'](({type:_0x182e73,subType:_0x6ae81})=>_0x108d84[_0x2399('0x2d')]==_0x182e73&&_0x108d84[_0x2399('0x5b')]==_0x6ae81);if(_0x414e8a<0x0||_0x4381a7<0x0)return!0x1;const _0x2c1979=_0x4e8805[_0x2399('0x6')](),_0x4b8dd2=_0x108d84['getFirstRange']();if((0x0==_0x414e8a||0x1==_0x414e8a)&&0x2==_0x4381a7&&_0x2c1979[_0x2399('0x4d')](_0x4b8dd2))return!0x0;if(0x2==_0x414e8a&&0x3==_0x4381a7){const _0x3b0b5a=_0x474b3f[_0x2399('0x2f')](_0x2c1979,_0x2399('0x5d'))['filter'](({suggestion:_0x3c8d69,meta:_0x2eea19})=>_0x2eea19[_0x2399('0x20')]&&_0x2399('0x69')==_0x3c8d69[_0x2399('0x5b')]);if(_0x3b0b5a[_0x2399('0x24')]>0x1&&_0x4b8dd2[_0x2399('0x57')][_0x2399('0x1a')](_0x2c1979['start']))return!0x0;if(0x1==_0x3b0b5a[_0x2399('0x24')]&&(_0x2c1979[_0x2399('0x71')][_0x2399('0x1a')](_0x4b8dd2[_0x2399('0x57')])||_0x2c1979[_0x2399('0x57')][_0x2399('0x1a')](_0x4b8dd2['start'])))return!0x0;}if(0x3==_0x414e8a&&0x3==_0x4381a7&&_0x2c1979[_0x2399('0x71')][_0x2399('0x22')](_0x4b8dd2['start'])){const _0x3f5e14=_0x2c1979['end'][_0x2399('0x3d')],_0x402804=_0x4b8dd2[_0x2399('0x71')][_0x2399('0x1b')];return _0x2d8480[_0x2399('0xc')](_0x3f5e14)&&_0x3f5e14===_0x402804;}return!0x1;}function _0x301bfc(_0x2731fa,_0x3f0e10){return _0xdd497e(_0x2731fa,_0x3f0e10)?[_0x2731fa,_0x3f0e10]:_0xdd497e(_0x3f0e10,_0x2731fa)?[_0x3f0e10,_0x2731fa]:null;}_0x4f522a[_0x2399('0x62')][_0x2399('0xd')]['registerPostFixer'](()=>{let _0xfceda1=!0x1;const _0x387385=Array[_0x2399('0x1f')](_0x4f522a[_0x2399('0x62')][_0x2399('0xd')][_0x2399('0x1c')]['getChangedMarkers']());for(const {name:_0x1d2335,data:_0x2eced5}of _0x387385){const {group:_0x211947,type:_0x343f65,subType:_0x4b71f6,id:_0x4ca529}=_0x474b3f[_0x2399('0x31')](_0x1d2335);if(_0x2399('0x4a')==_0x211947&&_0x474b3f[_0x2399('0x2')](_0x4ca529)){if('formatBlock'==_0x343f65&&(_0x2399('0x55')==_0x4b71f6||_0x2399('0x66')==_0x4b71f6)){const _0x718500=_0x474b3f[_0x2399('0x5c')](_0x4ca529);if(_0x2eced5['newRange']){const _0x1b1e08=_0x718500[_0x2399('0x6')]()['getContainedElement']();if(_0x2d8480[_0x2399('0xc')](_0x1b1e08))continue;_0x474b3f[_0x2399('0x29')](_0x718500),_0xfceda1=!0x0;}}if(_0x2399('0x5d')==_0x343f65&&_0x2399('0x3c')==_0x4b71f6&&!_0x2eced5['newRange']){const _0x475723=_0x474b3f['getSuggestion'](_0x4ca529);_0x475723[_0x2399('0x68')]&&_0x475723['next'][_0x2399('0x5f')]&&(_0x474b3f['discardSuggestion'](_0x475723[_0x2399('0x68')]),_0xfceda1=!0x0);}}}return _0xfceda1;}),_0x4f522a[_0x2399('0x47')][_0x2399('0x3')](_0x2399('0x58'))&&_0x474b3f['enableCommand'](_0x2399('0x36'),(_0x391747,_0x4f6cf7)=>{const _0x34ad7b=_0x2d8480[_0x2399('0x3e')](_0x4f522a[_0x2399('0x62')][_0x2399('0xd')][_0x2399('0x5e')]);_0x34ad7b[_0x2399('0x8')](_0x2399('0x37'))!=_0x4f6cf7[_0x2399('0x37')]&&_0x4f522a[_0x2399('0x62')]['change'](()=>{_0x474b3f[_0x2399('0x63')](_0x34ad7b,{'commandName':_0x2399('0x36'),'commandParams':[_0x4f6cf7]});});}),_0x4f522a[_0x2399('0x47')][_0x2399('0x3')](_0x2399('0x32'))&&_0x474b3f[_0x2399('0x6d')]('imageTextAlternative',(_0x49b9d5,_0xca70e5)=>{const _0x1a493f=_0x2d8480[_0x2399('0x3e')](_0x4f522a[_0x2399('0x62')]['document']['selection']);(_0x1a493f[_0x2399('0xe')](_0x2399('0x42'))?_0x1a493f[_0x2399('0x8')](_0x2399('0x42')):'')!=_0xca70e5[_0x2399('0x30')]&&_0x4f522a[_0x2399('0x62')][_0x2399('0x0')](()=>{_0x474b3f['markBlockFormat'](_0x1a493f,{'commandName':_0x2399('0x2b'),'commandParams':[_0xca70e5]});});}),_0x474b3f[_0x2399('0x16')][_0x2399('0x7')](_0x6aecd1=>{if(!!_0x592158['find'](({type:_0x19ee50,subType:_0x282e36})=>_0x6aecd1[_0x2399('0x2d')]==_0x19ee50&&_0x6aecd1[_0x2399('0x5b')]==_0x282e36))return _0x6aecd1['previous']?{}:void 0x0;}),_0x474b3f[_0x2399('0x16')][_0x2399('0x7')](_0x140cd8=>{if(_0x2399('0x5d')==_0x140cd8[_0x2399('0x2d')]||'deletion'==_0x140cd8[_0x2399('0x2d')]){const _0x453f79=_0x140cd8['getContainedElement']();if(_0x453f79&&_0x453f79['is'](_0x2399('0x79'),_0x2399('0x33')))return{'type':_0x2399('0x5d')==_0x140cd8['type']?_0x2399('0x9'):'removeObject','element':_0x453f79,'quantity':0x1};}}),_0x474b3f['_descriptionFactory'][_0x2399('0x7')](_0x2427fc=>_0x2399('0x59')==_0x2427fc[_0x2399('0x2d')]&&_0x2399('0x69')==_0x2427fc[_0x2399('0x5b')]?{'type':_0x2399('0x77'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x2399('0x59')==_0x2427fc[_0x2399('0x2d')]&&'convertBlockImageToInline'==_0x2427fc[_0x2399('0x5b')]?{'type':_0x2399('0x77'),'content':_0x2399('0x23')}:void 0x0),_0x474b3f[_0x2399('0x16')]['registerDescriptionCallback'](_0x13fd3d=>{const {data:_0x48c421}=_0x13fd3d;if(_0x48c421){if('imageStyle'==_0x48c421[_0x2399('0x70')]){const _0x2afa74=_0x48c421['commandParams'][0x0][_0x2399('0xf')];return _0x54f3ca(_0x2399('0x45')===_0x2afa74?_0x2c82b2(_0x16c59b,_0x2399('0x76')):_0x167f5d[_0x2afa74]||_0x2afa74);}if(_0x2399('0x2b')==_0x48c421[_0x2399('0x70')]){const _0x2404b6=_0x48c421[_0x2399('0x19')][0x0][_0x2399('0x30')];return _0x2404b6?{'type':_0x2399('0x77'),'content':_0x2c82b2(_0x16c59b,_0x2399('0x1d'),'\x22'+_0x2404b6+'\x22')}:{'type':_0x2399('0x77'),'content':_0x2c82b2(_0x16c59b,_0x2399('0x4'))};}if(_0x2399('0x36')==_0x48c421[_0x2399('0x70')]){const _0x55e092=_0x48c421[_0x2399('0x19')][0x0][_0x2399('0x37')];return _0x55e092?{'type':_0x2399('0x77'),'content':_0x2c82b2(_0x16c59b,_0x2399('0x14'),_0x55e092)}:{'type':_0x2399('0x77'),'content':_0x2c82b2(_0x16c59b,_0x2399('0x26'))};}}function _0x54f3ca(_0x41c532){return{'type':_0x2399('0x77'),'content':_0x2c82b2(_0x16c59b,'*Format:*\x20%0',_0x41c532)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3129=['Users','afterInit','data','ImageEditing','*Format:*\x20replace\x20image\x20URL','commandParams','commandName','document','getSelectedElement','TrackChangesEditing','getSuggestionCallback','registerDescriptionCallback','getSuggestions','subType','get','handleSuggestionDescription','change','enableCommand','registerCustomCallback','_suggestionFactory','model','replaceImageSource','format','editor','getContainedElement','handleReplaceImageCommand','markBlockFormat','formatBlock','src','source','author','plugins','selection','has','accept','discard'];(function(_0x23aa50,_0x312978){const _0x4a05ac=function(_0x134f77){while(--_0x134f77){_0x23aa50['push'](_0x23aa50['shift']());}};_0x4a05ac(++_0x312978);}(_0x3129,0xf9));const _0x4a05=function(_0x23aa50,_0x312978){_0x23aa50=_0x23aa50-0x0;let _0x4a05ac=_0x3129[_0x23aa50];return _0x4a05ac;};import{Plugin as _0x32bbb0}from'ckeditor5/src/core';import{getTranslation as _0x294c08}from'../utils/common-translations';export default class Y extends _0x32bbb0{[_0x4a05('0x4')](){if(!this[_0x4a05('0x1a')][_0x4a05('0x22')][_0x4a05('0x0')](_0x4a05('0x6')))return;const _0xae9296=this[_0x4a05('0x1a')][_0x4a05('0x22')]['get'](_0x4a05('0xc'));_0xae9296[_0x4a05('0x14')]('replaceImageSource',(_0x2d52f3,_0xbc6591)=>this[_0x4a05('0x1c')](_0x2d52f3,_0xbc6591)),_0xae9296['_suggestionFactory'][_0x4a05('0x15')]('formatBlock',_0x4a05('0x18'),'accept',_0xae9296[_0x4a05('0x16')][_0x4a05('0xd')](_0x4a05('0x1e'),null,'discard')),_0xae9296[_0x4a05('0x16')][_0x4a05('0x15')](_0x4a05('0x1e'),_0x4a05('0x18'),_0x4a05('0x2'),_0xae9296['_suggestionFactory'][_0x4a05('0xd')]('formatBlock',null,_0x4a05('0x1'))),_0xae9296['_descriptionFactory'][_0x4a05('0xe')](_0x1c2844=>this[_0x4a05('0x12')](_0x1c2844));}[_0x4a05('0x1c')](_0x36d323,_0x25e11a){const _0x5f37cf=this['editor']['plugins'][_0x4a05('0x11')](_0x4a05('0xc')),_0x3c8e18=this[_0x4a05('0x1a')][_0x4a05('0x17')][_0x4a05('0xa')][_0x4a05('0x23')][_0x4a05('0xb')]();this[_0x4a05('0x1a')][_0x4a05('0x17')][_0x4a05('0x13')](()=>{let _0x5d10e0=_0x3c8e18['getAttribute'](_0x4a05('0x1f'));const _0x2b7f2b=this[_0x4a05('0x1a')][_0x4a05('0x22')][_0x4a05('0x11')](_0x4a05('0x3'))['me'];for(const _0x4531d6 of _0x5f37cf[_0x4a05('0xf')]({'skipNotAttached':!0x0})){const _0x1f348c=_0x4531d6[_0x4a05('0x1b')]();if('replaceImageSource'===_0x4531d6[_0x4a05('0x10')]&&_0x1f348c===_0x3c8e18){_0x4531d6[_0x4a05('0x21')]!==_0x2b7f2b&&_0x4531d6[_0x4a05('0x2')](),_0x5d10e0=_0x4531d6[_0x4a05('0x5')][_0x4a05('0x8')][0x0][_0x4a05('0x20')];break;}}_0x36d323(_0x25e11a),_0x5f37cf[_0x4a05('0x1d')](_0x3c8e18,{'commandName':'replaceImageSource','commandParams':[{'source':_0x5d10e0}]},[],_0x4a05('0x18'));});}[_0x4a05('0x12')](_0x50002a){const {data:_0x29391f}=_0x50002a;if(_0x29391f&&_0x4a05('0x18')===_0x29391f[_0x4a05('0x9')]){const _0x3931fd=_0x4a05('0x7');return{'type':_0x4a05('0x19'),'content':_0x294c08(this[_0x4a05('0x1a')]['locale'],_0x3931fd)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2500=['importWord','high','dataInsert','Users','lowest','track_changes','editor','_handleImportedData','_setSuggestionData','execute','plugins','forEach','get','afterInit','commands','value','_trackChangesValueDuringImport','TrackChangesEditing','listenTo','bind','_trackChangesExecuted','trackChanges'];(function(_0x4a9518,_0x250006){const _0x5ba899=function(_0x1bba5d){while(--_0x1bba5d){_0x4a9518['push'](_0x4a9518['shift']());}};_0x5ba899(++_0x250006);}(_0x2500,0x19d));const _0x5ba8=function(_0x4a9518,_0x250006){_0x4a9518=_0x4a9518-0x0;let _0x5ba899=_0x2500[_0x4a9518];return _0x5ba899;};import{Plugin as _0x3beb55}from'ckeditor5/src/core';export default class Z extends _0x3beb55{constructor(_0x9114f3){super(_0x9114f3),this[_0x5ba8('0x15')]=!0x1,this[_0x5ba8('0x3')]=!0x1;}[_0x5ba8('0x12')](){const _0x14a9d6=this[_0x5ba8('0xb')],_0x2f16ea=_0x14a9d6[_0x5ba8('0x13')][_0x5ba8('0x11')]('importWord'),_0x5bf5a6=_0x14a9d6['commands'][_0x5ba8('0x11')]('trackChanges');_0x2f16ea&&(_0x2f16ea['on'](_0x5ba8('0xe'),(_0x3a905b,[,_0x1eb4a6])=>{this[_0x5ba8('0x15')]=_0x5bf5a6['value'],_0x1eb4a6['collaboration_features'][_0x5ba8('0xa')]=!this[_0x5ba8('0x15')];},{'priority':_0x5ba8('0x6')}),this[_0x5ba8('0x1')](_0x2f16ea,_0x5ba8('0x7'),this[_0x5ba8('0xc')][_0x5ba8('0x2')](this)),this[_0x5ba8('0x1')](_0x2f16ea,_0x5ba8('0x7'),()=>{this[_0x5ba8('0x3')]&&(_0x5bf5a6['execute'](),this[_0x5ba8('0x3')]=!0x1);},{'priority':_0x5ba8('0x9')}),_0x14a9d6[_0x5ba8('0xf')]['get'](_0x5ba8('0x0'))['enableCommand'](_0x5ba8('0x5')));}[_0x5ba8('0xc')](_0xa395a2,_0x30c1d2){const {suggestions:_0xc1c33}=_0x30c1d2,_0x385680=this[_0x5ba8('0xb')][_0x5ba8('0x13')][_0x5ba8('0x11')](_0x5ba8('0x4')),_0x2e631d=_0x385680[_0x5ba8('0x14')];this[_0x5ba8('0x15')]!==_0x2e631d&&(_0x385680['execute'](),this[_0x5ba8('0x3')]=!0x0),_0xc1c33&&_0xc1c33[_0x5ba8('0x10')](({id:_0x22fbb5,type:_0x5ed25d,author:_0x57a0c9,created_at:_0x5b99a9})=>{const _0x4e7153={'id':_0x22fbb5,'type':_0x5ed25d,'authorId':this['editor']['plugins'][_0x5ba8('0x11')](_0x5ba8('0x8'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57a0c9,'createdAt':_0x5b99a9?new Date(_0x5b99a9):new Date(),'source':_0x5ba8('0x5')}}};this['editor']['plugins'][_0x5ba8('0x11')]('TrackChangesEditing')[_0x5ba8('0xd')](_0x4e7153);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38c1=['commandName','IndentBlock','schema','outdentBlock','editor','has','enableCommand','TrackChangesEditing','document','format','_descriptionFactory','markBlockFormat','get','blockIndent','*Indent:*\x20%0','plugins','registerDescriptionCallback','getItemLabel','getSelectedBlocks','IndentEditing','model','indentBlock','*Outdent:*\x20%0'];(function(_0x1dd0ec,_0x38c1ee){const _0x2ff770=function(_0x8b8a98){while(--_0x8b8a98){_0x1dd0ec['push'](_0x1dd0ec['shift']());}};_0x2ff770(++_0x38c1ee);}(_0x38c1,0xe1));const _0x2ff7=function(_0x1dd0ec,_0x38c1ee){_0x1dd0ec=_0x1dd0ec-0x0;let _0x2ff770=_0x38c1[_0x1dd0ec];return _0x2ff770;};import{Plugin as _0x1e478e}from'ckeditor5/src/core';import{getTranslation as _0x119c0d}from'../utils/common-translations';export default class tt extends _0x1e478e{['afterInit'](){const _0x25d3cb=this[_0x2ff7('0x9')],_0x20db52=_0x25d3cb['plugins'][_0x2ff7('0x11')](_0x2ff7('0xc'));_0x25d3cb[_0x2ff7('0x14')]['has'](_0x2ff7('0x1'))&&(_0x20db52[_0x2ff7('0xb')]('indent'),_0x20db52[_0x2ff7('0xb')]('outdent'));const _0x4f469b=_0x25d3cb['locale'];if(_0x25d3cb[_0x2ff7('0x14')][_0x2ff7('0xa')](_0x2ff7('0x6'))){for(const _0x558217 of[_0x2ff7('0x3'),_0x2ff7('0x8')])_0x20db52['enableCommand'](_0x558217,()=>{const _0x570c5e=Array['from'](this['editor'][_0x2ff7('0x2')][_0x2ff7('0xd')]['selection'][_0x2ff7('0x0')]())['filter'](_0x563ff2=>this[_0x2ff7('0x9')]['model'][_0x2ff7('0x7')]['checkAttribute'](_0x563ff2,_0x2ff7('0x12')));_0x25d3cb['model']['change'](()=>{for(const _0x426979 of _0x570c5e)_0x20db52[_0x2ff7('0x10')](_0x426979,{'commandName':_0x558217,'commandParams':[{'value':''}],'formatGroupId':_0x2ff7('0x3')});});});_0x20db52[_0x2ff7('0xf')][_0x2ff7('0x15')](_0x3503a9=>{const {data:_0x4aea7e}=_0x3503a9;if(!_0x4aea7e)return;if(_0x2ff7('0x3')!=_0x4aea7e[_0x2ff7('0x5')]&&'outdentBlock'!=_0x4aea7e[_0x2ff7('0x5')])return;const _0x3df5fc=_0x3503a9['getItems']()[0x0],_0x518cf1=_0x20db52[_0x2ff7('0xf')][_0x2ff7('0x16')](_0x3df5fc);return _0x2ff7('0x3')==_0x4aea7e['commandName']?{'type':_0x2ff7('0xe'),'content':_0x119c0d(_0x4f469b,_0x2ff7('0x13'),_0x518cf1)}:'outdentBlock'==_0x4aea7e['commandName']?{'type':'format','content':_0x119c0d(_0x4f469b,_0x2ff7('0x4'),_0x518cf1)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x335d=['input','enableCommand','editor','init'];(function(_0x3b17a8,_0x335d29){var _0x593b07=function(_0x4e2559){while(--_0x4e2559){_0x3b17a8['push'](_0x3b17a8['shift']());}};_0x593b07(++_0x335d29);}(_0x335d,0x15c));var _0x593b=function(_0x3b17a8,_0x335d29){_0x3b17a8=_0x3b17a8-0x0;var _0x593b07=_0x335d[_0x3b17a8];return _0x593b07;};import{Plugin as _0x164052}from'ckeditor5/src/core';import{Input as _0xa647a4}from'ckeditor5/src/typing';export default class it extends _0x164052{static get['requires'](){return[_0xa647a4];}[_0x593b('0x3')](){this[_0x593b('0x2')]['plugins']['get']('TrackChangesEditing')[_0x593b('0x1')](_0x593b('0x0'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43cf=['markInlineFormat','LinkEditing','commandName','unlink','link','format','model','afterInit','commandParams','document','TrackChangesEditing','hasAttribute','selection','isCollapsed','registerDescriptionCallback','enableCommand','linkHref','has','_descriptionFactory','locale','getAttribute','*Remove\x20link*','plugins','getFirstPosition','from'];(function(_0x1cc4bd,_0x43cf70){const _0x1b9ff9=function(_0x1308ef){while(--_0x1308ef){_0x1cc4bd['push'](_0x1cc4bd['shift']());}};_0x1b9ff9(++_0x43cf70);}(_0x43cf,0xdc));const _0x1b9f=function(_0x1cc4bd,_0x43cf70){_0x1cc4bd=_0x1cc4bd-0x0;let _0x1b9ff9=_0x43cf[_0x1cc4bd];return _0x1b9ff9;};import{Plugin as _0x3dddc9}from'ckeditor5/src/core';import{findAttributeRange as _0xcfd49d}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x1b1b73}from'./utils';import{getTranslation as _0x326acc}from'../utils/common-translations';export default class et extends _0x3dddc9{[_0x1b9f('0xc')](){const _0x1ba4e1=this['editor'];if(!_0x1ba4e1[_0x1b9f('0x2')][_0x1b9f('0x16')](_0x1b9f('0x6')))return;const _0x296e88=_0x1ba4e1[_0x1b9f('0x2')]['get'](_0x1b9f('0xf'));_0x296e88[_0x1b9f('0x14')](_0x1b9f('0x9'),(_0x8ccc65,_0x186034)=>{const _0x508d77=_0x1ba4e1[_0x1b9f('0xb')][_0x1b9f('0xe')][_0x1b9f('0x11')];let _0x4a5601=[];if(_0x508d77['isCollapsed']){if(!_0x508d77[_0x1b9f('0x10')](_0x1b9f('0x15')))return void _0x8ccc65(_0x186034);{const _0x22aec5=_0xcfd49d(_0x508d77[_0x1b9f('0x3')](),_0x1b9f('0x15'),_0x508d77[_0x1b9f('0x0')](_0x1b9f('0x15')),_0x1ba4e1['model']);_0x4a5601=[_0x22aec5];}}else _0x4a5601=Array[_0x1b9f('0x4')](_0x508d77['getRanges']());_0x1ba4e1[_0x1b9f('0xb')]['change'](()=>{for(const _0x3fed9f of _0x4a5601)_0x296e88[_0x1b9f('0x5')](_0x3fed9f,{'commandName':_0x1b9f('0x9'),'commandParams':[_0x186034]});});}),_0x296e88['enableCommand'](_0x1b9f('0x8'),()=>{const _0x213282=this['editor'][_0x1b9f('0xb')],_0x3c8e2b=_0x213282[_0x1b9f('0xe')][_0x1b9f('0x11')];_0x213282['change'](()=>{let _0x32496b=[];if(_0x3c8e2b[_0x1b9f('0x12')])_0x32496b=[_0xcfd49d(_0x3c8e2b['getFirstPosition'](),_0x1b9f('0x15'),_0x3c8e2b[_0x1b9f('0x0')](_0x1b9f('0x15')),_0x1ba4e1['model'])];else _0x32496b=_0x1b1b73(_0x1b9f('0x15'),_0x3c8e2b['getFirstRange'](),_0x1ba4e1['model']);for(const _0xaf4c2 of _0x32496b)_0x296e88[_0x1b9f('0x5')](_0xaf4c2,{'commandName':'unlink','commandParams':[]});});}),_0x296e88[_0x1b9f('0x17')][_0x1b9f('0x13')](_0x32357d=>{const {data:_0x17807e}=_0x32357d,_0x388742=_0x1ba4e1[_0x1b9f('0x18')];if(_0x17807e){if(_0x1b9f('0x9')==_0x17807e[_0x1b9f('0x7')]){const _0x5e185f=_0x17807e[_0x1b9f('0xd')][0x0];return{'type':_0x1b9f('0xa'),'content':_0x326acc(_0x388742,'*Set\x20link:*\x20%0','\x22'+_0x5e185f+'\x22')};}return'unlink'==_0x17807e[_0x1b9f('0x7')]?{'type':_0x1b9f('0xa'),'content':_0x326acc(_0x388742,_0x1b9f('0x1'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46c5=['editor','todo','getAttribute','slice','end','filter','element','*Uncheck\x20item*','createRange','listIndent','*Indent:*\x20%0','ELEMENT_TODO_LIST','indentList','has','isObject','bulletedList','model','get','from','createPositionAt','forceValue','_descriptionFactory','value','todoListChecked','execute','numberedList','ELEMENT_BULLETED_LIST','listType','commands','ELEMENT_LIST_ITEM','selection','getSelectedBlocks','todoList','plugins','findIndex','commandName','schema','add','enableCommand','commandParams','document','*Check\x20item*','locale','List','registerDescriptionCallback','outdentList','TodoListEditing','*Change\x20to:*\x20%0','markBlockFormat','*Outdent:*\x20%0','change','checkTodoList','previousSibling','nextSibling','TrackChangesEditing','numbered','listItem','_selectedElements','parent','format','name','ListEditing'];(function(_0x6439a5,_0x46c52a){const _0x40cf25=function(_0x1df937){while(--_0x1df937){_0x6439a5['push'](_0x6439a5['shift']());}};_0x40cf25(++_0x46c52a);}(_0x46c5,0x7e));const _0x40cf=function(_0x6439a5,_0x46c52a){_0x6439a5=_0x6439a5-0x0;let _0x40cf25=_0x46c5[_0x6439a5];return _0x40cf25;};import{Plugin as _0x4b46f7}from'ckeditor5/src/core';import{getTranslation as _0x2a77a8}from'../utils/common-translations';export default class st extends _0x4b46f7{['afterInit'](){const _0x5e0570=this[_0x40cf('0x3c')],_0x47bbfe=_0x5e0570[_0x40cf('0x28')];if(!_0x5e0570[_0x40cf('0x1f')][_0x40cf('0xb')](_0x40cf('0x3b')))return;const _0x4a7d7a=_0x5e0570[_0x40cf('0x1f')][_0x40cf('0xf')](_0x40cf('0x34')),_0x597165=_0x5e0570['plugins'][_0x40cf('0xb')](_0x40cf('0x2c'));function _0x8990b5(_0x90fece){return()=>{const _0x21c113=_0x5e0570[_0x40cf('0xe')]['document'][_0x40cf('0x1c')],_0x5e1ecc=_0x5e0570['commands'][_0x40cf('0xf')](_0x90fece);if(_0x5e1ecc[_0x40cf('0x14')])return void _0x5e0570[_0x40cf('0x16')]('paragraph',{});const _0x56fe42=_0x90fece[_0x40cf('0x1')](0x0,-0x4),_0x12d95a=function(_0x375b40,_0x9010be,_0x2b85ee){let _0x387b99=Array[_0x40cf('0x10')](_0x375b40)[_0x40cf('0x3')](_0x3b3980=>function(_0x35aafc,_0x4590ba){return _0x4590ba['checkChild'](_0x35aafc[_0x40cf('0x38')],'listItem')&&!_0x4590ba[_0x40cf('0xc')](_0x35aafc);}(_0x3b3980,_0x2b85ee));_0x387b99=_0x387b99['filter'](_0x9e439f=>!_0x9e439f['is'](_0x40cf('0x4'),'listItem')||_0x9e439f[_0x40cf('0x0')](_0x40cf('0x19'))!=_0x9010be);const _0x86e5d7=new Set();for(const _0x429408 of _0x387b99)_0x429408['is'](_0x40cf('0x4'),'listItem')?_0x86e5d7[_0x40cf('0x23')](ne(_0x429408)):_0x86e5d7[_0x40cf('0x23')](_0x429408);return Array[_0x40cf('0x10')](_0x86e5d7);}(_0x21c113[_0x40cf('0x1d')](),_0x56fe42,_0x5e0570['model'][_0x40cf('0x22')]);_0x5e0570[_0x40cf('0xe')][_0x40cf('0x30')](()=>{for(const _0x55e597 of _0x12d95a)_0x4a7d7a[_0x40cf('0x2e')](_0x55e597,{'commandName':_0x90fece,'commandParams':[{'forceValue':!_0x5e1ecc[_0x40cf('0x14')]}],'formatGroupId':'blockName'},oe(_0x55e597));});};}function _0x9ee78d(_0x2460c8){return()=>{const _0xc55dec=function(_0x2292b5){let _0xc303bb=Array['from'](_0x2292b5);const _0x498b73=_0xc303bb[_0x40cf('0x20')](_0x220f2e=>_0x40cf('0x36')!=_0x220f2e[_0x40cf('0x3a')]);return _0x498b73>-0x1&&(_0xc303bb=_0xc303bb[_0x40cf('0x1')](0x0,_0x498b73)),_0xc303bb;}(_0x5e0570[_0x40cf('0xe')][_0x40cf('0x26')][_0x40cf('0x1c')][_0x40cf('0x1d')]()),_0x2402d5=_0x5e0570[_0x40cf('0xe')][_0x40cf('0x6')](_0x5e0570['model'][_0x40cf('0x11')](_0xc55dec[0x0],'before'),_0x5e0570[_0x40cf('0xe')][_0x40cf('0x11')](_0xc55dec[_0xc55dec['length']-0x1],_0x40cf('0x2')));_0x5e0570[_0x40cf('0xe')]['change'](()=>{_0x4a7d7a[_0x40cf('0x2e')](_0x2402d5,{'commandName':_0x2460c8,'commandParams':[],'formatGroupId':_0x40cf('0x7')},function(_0x56e51a){const _0x3a54b4=new Set();for(const _0x581fa2 of _0x56e51a){let _0x2caea8=_0x581fa2['nextSibling'];for(;_0x2caea8&&_0x2caea8['getAttribute'](_0x40cf('0x7'))>_0x581fa2[_0x40cf('0x0')](_0x40cf('0x7'));)_0x3a54b4['add'](_0x2caea8),_0x2caea8=_0x2caea8['nextSibling'];}return Array[_0x40cf('0x10')](_0x3a54b4);}(_0xc55dec));});};}_0x4a7d7a[_0x40cf('0x24')](_0x40cf('0x17'),_0x8990b5(_0x40cf('0x17'))),_0x4a7d7a[_0x40cf('0x24')]('bulletedList',_0x8990b5(_0x40cf('0xd'))),_0x597165&&_0x4a7d7a[_0x40cf('0x24')](_0x40cf('0x1e'),_0x8990b5(_0x40cf('0x1e'))),_0x4a7d7a[_0x40cf('0x24')](_0x40cf('0xa'),_0x9ee78d(_0x40cf('0xa'))),_0x4a7d7a[_0x40cf('0x24')](_0x40cf('0x2b'),_0x9ee78d(_0x40cf('0x2b'))),_0x597165&&_0x4a7d7a['enableCommand'](_0x40cf('0x31'),()=>{const _0x155393=_0x5e0570[_0x40cf('0x1a')]['get'](_0x40cf('0x31')),_0x32ac8a=Array[_0x40cf('0x10')](_0x155393[_0x40cf('0x37')]);_0x32ac8a[_0x40cf('0x3')](_0x1b1116=>_0x1b1116[_0x40cf('0x0')](_0x40cf('0x15'))!=_0x155393[_0x40cf('0x14')]),_0x5e0570[_0x40cf('0xe')]['change'](()=>{for(const _0x2f3fd9 of _0x32ac8a)_0x4a7d7a[_0x40cf('0x2e')](_0x2f3fd9,{'commandName':_0x40cf('0x31'),'commandParams':[{'forceValue':!_0x155393[_0x40cf('0x14')]}]});});}),_0x4a7d7a['_descriptionFactory']['registerElementLabel'](_0x40cf('0x36'),_0xecbc4d=>_0x2a77a8(_0x47bbfe,_0x40cf('0x1b'),_0xecbc4d)),_0x4a7d7a[_0x40cf('0x13')][_0x40cf('0x2a')](_0x798087=>{const {data:_0x159434}=_0x798087;if(_0x159434){if(_0x40cf('0x17')==_0x159434[_0x40cf('0x21')]||_0x40cf('0xd')==_0x159434[_0x40cf('0x21')]||_0x40cf('0x1e')==_0x159434[_0x40cf('0x21')])switch(_0x159434[_0x40cf('0x21')]['replace'](_0x40cf('0x29'),'')){case'bulleted':return _0x348f87(_0x2a77a8(_0x47bbfe,_0x40cf('0x18')));case _0x40cf('0x35'):return _0x348f87(_0x2a77a8(_0x47bbfe,'ELEMENT_NUMBERED_LIST'));case _0x40cf('0x3d'):return _0x348f87(_0x2a77a8(_0x47bbfe,_0x40cf('0x9')));}if(_0x40cf('0xa')==_0x159434['commandName'])return{'type':_0x40cf('0x39'),'content':_0x2a77a8(_0x47bbfe,_0x40cf('0x8'),_0x2a77a8(_0x47bbfe,'ELEMENT_LIST_ITEM'))};if(_0x40cf('0x2b')==_0x159434[_0x40cf('0x21')])return{'type':_0x40cf('0x39'),'content':_0x2a77a8(_0x47bbfe,_0x40cf('0x2f'),_0x2a77a8(_0x47bbfe,_0x40cf('0x1b')))};if(_0x40cf('0x31')==_0x159434['commandName'])return _0x159434[_0x40cf('0x25')][0x0][_0x40cf('0x12')]?{'type':_0x40cf('0x39'),'content':_0x2a77a8(_0x47bbfe,_0x40cf('0x27'))}:{'type':_0x40cf('0x39'),'content':_0x2a77a8(_0x47bbfe,_0x40cf('0x5'))};}function _0x348f87(_0x5b7a87){return{'type':'format','content':_0x2a77a8(_0x47bbfe,_0x40cf('0x2d'),_0x5b7a87)};}});}}function ne(_0x577124){const _0x4293f7=_0x577124['getAttribute']('listIndent');if(0x0==_0x4293f7)return _0x577124;let _0xbca2f9=_0x577124;for(;_0x577124['previousSibling']&&_0x577124['previousSibling']['is']('element',_0x40cf('0x36'));){const _0x591fb2=_0x577124[_0x40cf('0x32')][_0x40cf('0x0')]('listIndent');if(_0x591fb2==_0x4293f7)_0xbca2f9=_0x577124[_0x40cf('0x32')];else{if(_0x591fb2<_0x4293f7)break;}_0x577124=_0x577124[_0x40cf('0x32')];}return _0xbca2f9;}function oe(_0x36fd79){const _0x2ae7d1=[];if(_0x36fd79['is'](_0x40cf('0x4'),_0x40cf('0x36'))&&_0x36fd79[_0x40cf('0x0')](_0x40cf('0x7'))>0x0){let _0x4281e2=_0x36fd79[_0x40cf('0x33')];for(;_0x4281e2&&_0x40cf('0x36')==_0x4281e2[_0x40cf('0x3a')]&&_0x4281e2['getAttribute'](_0x40cf('0x7'))==_0x36fd79['getAttribute'](_0x40cf('0x7'));)_0x2ae7d1['push'](_0x4281e2),_0x4281e2=_0x4281e2[_0x40cf('0x33')];}return _0x2ae7d1;}
|