@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230914.0 → 0.0.0-nightly-20230915.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ead=['markInlineFormat','find','registerDescriptionCallback','editor','fontSize','model','fontColor.colors','title','trim','*Reset\x20font\x20color*','fontBackgroundColor.colors','locale','fontBackgroundColor','enableCommand','afterInit','fontFamily','TrackChangesEditing','get','*Reset\x20font\x20size*','*Set\x20font\x20background\x20color:*\x20%0','_descriptionFactory','fontSize.options','*Set\x20font\x20color:*\x20%0','FontSizeEditing','config','change','value','normalizeSizeOptions','FontBackgroundColorEditing','selection','FontFamilyEditing','has','FontSize','fontColor','*Reset\x20font\x20background\x20color*','_enableCommand','plugins','format','label','toLowerCase','commandParams','commandName'];(function(_0x1896f2,_0x3ead39){const _0x3b1d0c=function(_0x15d52f){while(--_0x15d52f){_0x1896f2['push'](_0x1896f2['shift']());}};_0x3b1d0c(++_0x3ead39);}(_0x3ead,0xcb));const _0x3b1d=function(_0x1896f2,_0x3ead39){_0x1896f2=_0x1896f2-0x0;let _0x3b1d0c=_0x3ead[_0x1896f2];return _0x3b1d0c;};import{Plugin as _0x261f67}from'ckeditor5/src/core';import{normalizeColorOptions as _0x137e10}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x2a5784}from'./utils';import{getTranslation as _0x235b7f}from'../utils/common-translations';const eo=[{'pluginName':_0x3b1d('0x1e'),'commandName':_0x3b1d('0xb')},{'pluginName':_0x3b1d('0x25'),'commandName':_0x3b1d('0x16')},{'pluginName':'FontColorEditing','commandName':_0x3b1d('0x28')},{'pluginName':_0x3b1d('0x23'),'commandName':_0x3b1d('0x13')}];export default class H extends _0x261f67{[_0x3b1d('0x15')](){const _0x44d519=this['editor'][_0x3b1d('0x12')];for(const {pluginName:_0x1c0d9a,commandName:_0xc2a5e}of eo)this['editor'][_0x3b1d('0x1')][_0x3b1d('0x26')](_0x1c0d9a)&&this[_0x3b1d('0x0')](_0xc2a5e);this[_0x3b1d('0xa')][_0x3b1d('0x1')][_0x3b1d('0x18')](_0x3b1d('0x17'))[_0x3b1d('0x1b')][_0x3b1d('0x9')](_0x538a01=>{const _0xcb4a8=_0x44d519['t'],{data:_0x47d610}=_0x538a01;if(null!=_0x47d610){if('fontSize'==_0x47d610[_0x3b1d('0x6')]){const _0x132a20=_0x47d610[_0x3b1d('0x5')][0x0][_0x3b1d('0x21')];if(_0x132a20){const _0x5c3a2f=_0xcb4a8(this[_0x3b1d('0xa')][_0x3b1d('0x1')]['get'](_0x3b1d('0x27'))[_0x3b1d('0x22')](this[_0x3b1d('0xa')][_0x3b1d('0x1f')]['get'](_0x3b1d('0x1c')))[_0x3b1d('0x8')](_0x314c56=>_0x314c56[_0x3b1d('0xc')]==_0x132a20)[_0x3b1d('0xe')])[_0x3b1d('0x4')]();return{'type':_0x3b1d('0x2'),'content':_0x235b7f(_0x44d519,'*Set\x20font\x20size:*\x20%0',_0x5c3a2f)};}return{'type':'format','content':_0x235b7f(_0x44d519,_0x3b1d('0x19'))};}if(_0x3b1d('0x16')==_0x47d610[_0x3b1d('0x6')]){const _0x427524=_0x47d610[_0x3b1d('0x5')][0x0][_0x3b1d('0x21')];return _0x427524?{'type':_0x3b1d('0x2'),'content':_0x235b7f(_0x44d519,'*Set\x20font\x20family:*\x20%0',_0x427524)}:{'type':_0x3b1d('0x2'),'content':_0x235b7f(_0x44d519,'*Reset\x20font\x20family*')};}if(_0x3b1d('0x28')==_0x47d610[_0x3b1d('0x6')]){const _0x3b8b44=_0x47d610[_0x3b1d('0x5')][0x0][_0x3b1d('0x21')];if(_0x3b8b44){const _0x22bc01=_0x137e10(this[_0x3b1d('0xa')]['config'][_0x3b1d('0x18')](_0x3b1d('0xd')))[_0x3b1d('0x8')](_0x525b9a=>_0x525b9a[_0x3b1d('0xc')]==_0x3b8b44);let _0x1ad6d9=_0x3b8b44,_0x27f67d='';return _0x22bc01&&(_0x1ad6d9=_0x22bc01[_0x3b1d('0x3')],_0x27f67d=_0xcb4a8(_0x1ad6d9)[_0x3b1d('0x4')]()),{'type':_0x3b1d('0x2'),'content':_0x235b7f(_0x44d519,_0x3b1d('0x1d'),_0x27f67d)[_0x3b1d('0xf')](),'color':{'value':_0x3b8b44,'title':_0x27f67d||_0x1ad6d9}};}return{'type':_0x3b1d('0x2'),'content':_0x235b7f(_0x44d519,_0x3b1d('0x10'))};}if(_0x3b1d('0x13')==_0x47d610[_0x3b1d('0x6')]){const _0x5ebfb3=_0x47d610[_0x3b1d('0x5')][0x0][_0x3b1d('0x21')];if(_0x5ebfb3){const _0x10db5a=_0x137e10(this[_0x3b1d('0xa')][_0x3b1d('0x1f')][_0x3b1d('0x18')](_0x3b1d('0x11')))[_0x3b1d('0x8')](_0x54645e=>_0x54645e[_0x3b1d('0xc')]==_0x5ebfb3);let _0xf10f78=_0x5ebfb3,_0x3a4c22='';return _0x10db5a&&(_0xf10f78=_0x10db5a[_0x3b1d('0x3')],_0x3a4c22=_0xcb4a8(_0xf10f78)[_0x3b1d('0x4')]()),{'type':_0x3b1d('0x2'),'content':_0x235b7f(_0x44d519,_0x3b1d('0x1a'),_0x3a4c22)[_0x3b1d('0xf')](),'color':{'value':_0x5ebfb3,'title':_0x3a4c22||_0xf10f78}};}return{'type':'format','content':_0x235b7f(_0x44d519,_0x3b1d('0x29'))};}}});}[_0x3b1d('0x0')](_0xb2acb7){const _0x18d8dc=this[_0x3b1d('0xa')];_0x18d8dc[_0x3b1d('0x1')][_0x3b1d('0x18')]('TrackChangesEditing')[_0x3b1d('0x14')](_0xb2acb7,(_0x37c096,_0x3a3863={})=>{const _0xce677a=_0x18d8dc[_0x3b1d('0xc')]['document'][_0x3b1d('0x24')],_0x3c621d=_0x3a3863[_0x3b1d('0x21')];_0xce677a['isCollapsed']?_0x37c096(_0x3a3863):_0x18d8dc[_0x3b1d('0xc')][_0x3b1d('0x20')](()=>{const _0x493a99=Array['from'](_0xce677a['getRanges']());for(const _0x33a0f1 of _0x493a99){const _0x3b6c68=_0x3c621d?[_0x33a0f1]:_0x2a5784(_0xb2acb7,_0x33a0f1,_0x18d8dc[_0x3b1d('0xc')]);for(const _0x486239 of _0x3b6c68)_0x18d8dc[_0x3b1d('0x1')][_0x3b1d('0x18')](_0x3b1d('0x17'))[_0x3b1d('0x7')](_0x486239,{'commandName':_0xb2acb7,'commandParams':[{'value':_0x3c621d}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ac2=['title','*Set\x20format\x20to:*\x20%0','*Remove\x20all\x20formatting*','format','slice','document','registerDescriptionCallback','length','config','join','getLastPosition','push','createSelection','change','commandParams','commandName','label','isBlock','editor','FontSize','keys','selection','pasteFormat','split','model','get','getFirstPosition','fontBackgroundColor','toLowerCase','afterInit','fontSize','getRanges','fontColor.colors','charAt','markInlineFormat','schema','enableCommand','commands','getItems','getAttributeProperties','normalizeSizeOptions','fontColor','find','toUpperCase','entries','isCollapsed','copyFormat','fontSize.options','plugins'];(function(_0x41ba6a,_0x5ac218){const _0x284ff2=function(_0x3dc769){while(--_0x3dc769){_0x41ba6a['push'](_0x41ba6a['shift']());}};_0x284ff2(++_0x5ac218);}(_0x5ac2,0x178));const _0x284f=function(_0x41ba6a,_0x5ac218){_0x41ba6a=_0x41ba6a-0x0;let _0x284ff2=_0x5ac2[_0x41ba6a];return _0x284ff2;};import{Plugin as _0x2ee2c5}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1e52fd}from'ckeditor5/src/ui';import{first as _0x1f7c11}from'ckeditor5/src/utils';import{getTranslation as _0x45aa5c}from'../utils/common-translations';export default class W extends _0x2ee2c5{[_0x284f('0x2d')](){const _0xec9df3=this[_0x284f('0x22')],_0x3b1505=_0xec9df3['model'],_0x545929=_0x3b1505[_0x284f('0x15')][_0x284f('0x25')],_0x2795d6=_0xec9df3['plugins'][_0x284f('0x29')]('TrackChangesEditing'),_0x4726a4=_0xec9df3['locale'],_0x3edff5=_0xec9df3['commands'][_0x284f('0x29')](_0x284f('0xd')),_0x5e5675=_0xec9df3[_0x284f('0x4')][_0x284f('0x29')](_0x284f('0x26'));_0x3edff5&&_0x5e5675&&(_0x2795d6[_0x284f('0x3')](_0x284f('0x26'),(_0x575f5c,_0x325331={})=>{const _0x3a98d5=_0x325331;_0x3b1505[_0x284f('0x1d')](()=>{const _0x38fae9=Array['from'](_0x545929[_0x284f('0x2f')]()),_0x210ab2=_0x545929[_0x284f('0xc')]?[co(_0x3b1505,_0x545929)]:_0x38fae9,_0x15c8d7=!!_0x1f7c11(function*(_0x21e42a,_0x4a0068){const _0x488033=_0x1cef93=>!!_0x1f7c11(function*(_0x4eec17,_0x5d3466){for(const [_0x400557]of _0x4eec17['getAttributes']()){const _0x52b39d=_0x5d3466[_0x284f('0x6')](_0x400557);_0x52b39d&&_0x52b39d['isFormatting']&&(yield _0x400557);}}(_0x1cef93,_0x4a0068));for(const _0x550bc6 of _0x21e42a[_0x284f('0x2f')]())for(const _0x1c1499 of _0x550bc6[_0x284f('0x5')]())!_0x4a0068[_0x284f('0x21')](_0x1c1499)&&_0x488033(_0x1c1499)&&(yield _0x1c1499);for(const _0x4ce226 of _0x21e42a['getSelectedBlocks']())_0x488033(_0x4ce226)&&(yield _0x4ce226);_0x488033(_0x21e42a)&&(yield _0x21e42a);}(_0x545929,_0x3b1505[_0x284f('0x2')]));if(_0x15c8d7||0x0!==Object[_0x284f('0x24')](_0x3a98d5)[_0x284f('0x17')])for(const _0x36fc57 of _0x210ab2)_0x2795d6[_0x284f('0x1')](_0x36fc57,{'commandName':_0x284f('0x26'),'commandParams':[_0x3a98d5]});});}),_0x2795d6['_descriptionFactory'][_0x284f('0x16')](_0x26eabb=>{const {data:_0x5babe9}=_0x26eabb;if(_0x5babe9&&'pasteFormat'===_0x5babe9[_0x284f('0x1f')]){const _0x151d48=[],_0x3d73fe=_0x5babe9[_0x284f('0x1e')][0x0];for(const [_0x450ee2,_0x2981b7]of Object[_0x284f('0xb')](_0x3d73fe))_0x151d48[_0x284f('0x1b')](io(_0xec9df3,_0x450ee2,_0x2981b7));return _0x151d48[_0x284f('0x17')]?{'type':_0x284f('0x13'),'content':_0x45aa5c(_0x4726a4,_0x284f('0x11'),_0x151d48[_0x284f('0x19')](',\x20'))}:{'type':_0x284f('0x13'),'content':_0x45aa5c(_0x4726a4,_0x284f('0x12'))};}}),_0xec9df3[_0x284f('0xf')][_0x284f('0x29')]('TrackChangesEditing')['enableCommand'](_0x284f('0xd')));}}function co(_0xadca87,_0x2fa211){const _0x40d497=_0xadca87[_0x284f('0x1c')](_0x2fa211);_0xadca87['modifySelection'](_0x40d497,{'unit':'word','direction':'backward'});const _0x2ab80c=_0x40d497[_0x284f('0x2a')]();_0xadca87['modifySelection'](_0x40d497,{'unit':'word','direction':'forward'});const _0xc53802=_0x40d497[_0x284f('0x1a')]();return _0xadca87['createRange'](_0x2ab80c,_0xc53802);}function io(_0x19fa67,_0x35c52d,_0x401580){const _0x20aeed=_0x19fa67['locale']['t'],_0x7091b0=_0x35c52d[_0x284f('0x27')](/(?=[A-Z])/)['join']('\x20'),_0x1ca195=_0x20aeed(_0x7091b0[_0x284f('0x0')](0x0)[_0x284f('0xa')]()+_0x7091b0[_0x284f('0x14')](0x1))[_0x284f('0x2c')]();if('boolean'==typeof _0x401580)return _0x1ca195;if(_0x284f('0x8')===_0x35c52d||_0x284f('0x2b')===_0x35c52d){const _0x2a3bec=_0x1e52fd(_0x19fa67[_0x284f('0x18')][_0x284f('0x29')](_0x284f('0x30')))[_0x284f('0x9')](_0x2f1cc1=>_0x2f1cc1[_0x284f('0x28')]==_0x401580);return _0x1ca195+'\x20('+(_0x2a3bec?_0x20aeed(_0x2a3bec[_0x284f('0x20')])[_0x284f('0x2c')]():_0x401580)+')';}if(_0x284f('0x2e')===_0x35c52d&&isNaN(parseFloat(_0x401580))){const _0x548092=_0x19fa67[_0x284f('0xf')][_0x284f('0x29')](_0x284f('0x23'))[_0x284f('0x7')](_0x19fa67[_0x284f('0x18')]['get'](_0x284f('0xe')))[_0x284f('0x9')](_0x56faaa=>_0x56faaa[_0x284f('0x28')]==_0x401580);return _0x1ca195+'\x20('+(_0x548092?_0x20aeed(_0x548092[_0x284f('0x10')])['toLowerCase']():_0x401580)+')';}return _0x1ca195+'\x20('+_0x401580+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x276b=['TrackChangesEditing','registerElementLabel','markBlockFormat','model','from','find','document','ELEMENT_HEADING_CUSTOM','ELEMENT_HEADING','blockName','get','has','locale','enableCommand','editor','name','parent','filter','checkChild','commandName','heading.options','paragraph','afterInit','getSelectedBlocks','heading','registerDescriptionCallback','config','selection','plugins','HeadingEditing','_descriptionFactory','title','format','value'];(function(_0x5a4657,_0x276bf2){const _0x3edd57=function(_0x36aed2){while(--_0x36aed2){_0x5a4657['push'](_0x5a4657['shift']());}};_0x3edd57(++_0x276bf2);}(_0x276b,0x1df));const _0x3edd=function(_0x5a4657,_0x276bf2){_0x5a4657=_0x5a4657-0x0;let _0x3edd57=_0x276b[_0x5a4657];return _0x3edd57;};import{Plugin as _0x32da50}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x481fbb}from'./utils';import{getTranslation as _0xe62899}from'../utils/common-translations';export default class J extends _0x32da50{[_0x3edd('0x13')](){const _0xf288b9=this['editor'],_0x14362b=_0xf288b9[_0x3edd('0x9')],_0x570c4f=_0xf288b9[_0x3edd('0x17')][_0x3edd('0x7')](_0x3edd('0x11'));if(!_0xf288b9[_0x3edd('0x19')][_0x3edd('0x8')](_0x3edd('0x1a')))return;const _0x888b3d=_0xf288b9[_0x3edd('0x19')][_0x3edd('0x7')](_0x3edd('0x1f'));_0x888b3d[_0x3edd('0xa')]('heading',(_0x44ba02,_0x43d578)=>{const _0x2d7e35=_0x43d578[_0x3edd('0x1e')],_0x3993b7=Array[_0x3edd('0x1')](this[_0x3edd('0xb')][_0x3edd('0x0')][_0x3edd('0x3')][_0x3edd('0x18')][_0x3edd('0x14')]())[_0x3edd('0xe')](_0x3067ac=>function(_0x294288,_0x5614cc,_0x416440){return _0x416440[_0x3edd('0xf')](_0x294288[_0x3edd('0xd')],_0x5614cc)&&!_0x416440['isObject'](_0x294288)&&_0x294288[_0x3edd('0xc')]!=_0x5614cc;}(_0x3067ac,_0x2d7e35,this[_0x3edd('0xb')][_0x3edd('0x0')]['schema']));_0xf288b9[_0x3edd('0x0')]['change'](()=>{for(const _0xef7783 of _0x3993b7)_0x888b3d[_0x3edd('0x21')](_0xef7783,{'commandName':_0x3edd('0x15'),'commandParams':[_0x43d578],'formatGroupId':_0x3edd('0x6')},_0x481fbb(_0xef7783));});});for(const _0x495ee3 of _0x570c4f)_0x3edd('0x12')!=_0x495ee3[_0x3edd('0x0')]&&_0x888b3d[_0x3edd('0x1b')][_0x3edd('0x20')](_0x495ee3['model'],_0x3da656=>{const _0x312c84=nn(_0x495ee3[_0x3edd('0x0')]);return null!==_0x312c84?_0x3f0d1b(_0x3da656,_0x312c84):_0x1ef5d0(_0x3da656,_0x495ee3['title']);});function _0x3f0d1b(_0x5ba6ba,_0x1d5978){return _0xe62899(_0x14362b,_0x3edd('0x5'),[_0x5ba6ba,_0x1d5978]);}function _0x1ef5d0(_0x17e622,_0x298815){return _0xe62899(_0x14362b,_0x3edd('0x4'),[_0x17e622,_0x298815]);}_0x888b3d[_0x3edd('0x1b')][_0x3edd('0x16')](_0x169cea=>{const {type:_0x176b80,data:_0x7a14cd}=_0x169cea;if('formatBlock'==_0x176b80&&_0x7a14cd&&_0x3edd('0x15')==_0x7a14cd[_0x3edd('0x10')]){const _0x30d311=_0x7a14cd['commandParams'][0x0][_0x3edd('0x1e')],_0x3ba0f6=nn(_0x30d311);if(null!==_0x3ba0f6)return{'type':_0x3edd('0x1d'),'content':_0xe62899(_0x14362b,'*Change\x20to:*\x20%0',_0x3f0d1b(0x1,_0x3ba0f6))};const _0x4c9c76=_0x570c4f[_0x3edd('0x2')](_0x5cb8b2=>_0x5cb8b2['model']===_0x30d311)[_0x3edd('0x1c')];return{'type':'format','content':_0xe62899(_0x14362b,'*Change\x20to:*\x20%0',_0x1ef5d0(0x1,_0x4c9c76))};}});}}function nn(_0x5a90cd){const _0x35695c=_0x5a90cd['match'](/^heading(\d+)$/);return _0x35695c?_0x35695c[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5749=['has','color','toLowerCase','*Remove\x20highlight*','push','find','get','model','FORMAT_HIGHLIGHT','registerDescriptionCallback','commandName','formatInline','title','HighlightEditing','selection','config','enableCommand','format','item','highlight','TrackChangesEditing','change','markInlineFormat','commandParams','plugins','editor','getAttribute','getLastMatchingPosition','locale','isCollapsed','value','createRange'];(function(_0x36755b,_0x574965){const _0x4ed824=function(_0x222a1a){while(--_0x222a1a){_0x36755b['push'](_0x36755b['shift']());}};_0x4ed824(++_0x574965);}(_0x5749,0x148));const _0x4ed8=function(_0x36755b,_0x574965){_0x36755b=_0x36755b-0x0;let _0x4ed824=_0x5749[_0x36755b];return _0x4ed824;};import{Plugin as _0x249d8c}from'ckeditor5/src/core';import{getTranslation as _0x462f93}from'../utils/common-translations';import{getRangesWithAttribute as _0xefe427}from'./utils';export default class K extends _0x249d8c{['afterInit'](){const _0x5c9a1e=this[_0x4ed8('0x11')];if(!_0x5c9a1e[_0x4ed8('0x10')][_0x4ed8('0x18')](_0x4ed8('0x5')))return;const _0x3b9027=_0x5c9a1e['plugins'][_0x4ed8('0x1e')](_0x4ed8('0xc'));_0x3b9027[_0x4ed8('0x8')](_0x4ed8('0xb'),(_0x342f01,_0x5b6c4e={})=>{const _0xb4d6ac=_0x5c9a1e[_0x4ed8('0x1f')]['document'][_0x4ed8('0x6')],_0x4f545a=_0xb4d6ac[_0x4ed8('0x12')](_0x4ed8('0xb'));let _0x4dc148=_0x5b6c4e[_0x4ed8('0x16')],_0x53d4b7=[];if(_0xb4d6ac[_0x4ed8('0x15')]){const _0x314e5e=_0xb4d6ac['getFirstPosition']();if(!_0xb4d6ac['hasAttribute']('highlight'))return void _0x342f01(_0x5b6c4e);{const _0x4bdcdb=_0x3ec2a3=>_0x3ec2a3[_0x4ed8('0xa')][_0x4ed8('0x12')](_0x4ed8('0xb'))===_0x4f545a,_0x17b6da=_0x314e5e[_0x4ed8('0x13')](_0x4bdcdb,{'direction':'backward'}),_0x596aac=_0x314e5e[_0x4ed8('0x13')](_0x4bdcdb);_0x53d4b7=[_0x5c9a1e[_0x4ed8('0x1f')][_0x4ed8('0x17')](_0x17b6da,_0x596aac)],_0x4dc148==_0x4f545a&&(_0x4dc148=null);}}else for(const _0x1819d0 of _0xb4d6ac['getRanges']())_0x4dc148?_0x53d4b7['push'](_0x1819d0):_0x53d4b7[_0x4ed8('0x1c')](..._0xefe427('highlight',_0x1819d0,_0x5c9a1e[_0x4ed8('0x1f')]));_0x5c9a1e[_0x4ed8('0x1f')][_0x4ed8('0xd')](()=>{for(const _0x15c9f6 of _0x53d4b7)_0x3b9027[_0x4ed8('0xe')](_0x15c9f6,{'commandName':_0x4ed8('0xb'),'commandParams':[{'value':_0x4dc148}]});});});const _0x20cedd=_0x5c9a1e[_0x4ed8('0x14')];_0x3b9027['_descriptionFactory'][_0x4ed8('0x1')](_0x434326=>{const {type:_0x2ef02d,data:_0x2b2dc0}=_0x434326;if(_0x4ed8('0x3')==_0x2ef02d&&_0x2b2dc0&&_0x4ed8('0xb')==_0x2b2dc0[_0x4ed8('0x2')]){const _0x4a38fd=_0x20cedd['t'],_0x4e818b=_0x2b2dc0[_0x4ed8('0xf')][0x0][_0x4ed8('0x16')];if(_0x4e818b){const _0x5dba54=_0x5c9a1e[_0x4ed8('0x7')][_0x4ed8('0x1e')]('highlight.options')[_0x4ed8('0x1d')](_0x5561af=>_0x5561af['model']==_0x4e818b),_0x265e63=_0x4a38fd(_0x5dba54[_0x4ed8('0x4')])[_0x4ed8('0x1a')]();return{'type':'format','content':_0x462f93(_0x20cedd,'*Set\x20highlight:*\x20%0',_0x265e63),'color':{'value':_0x5dba54[_0x4ed8('0x19')],'title':_0x5dba54['title']}};}return{'type':_0x4ed8('0x9'),'content':_0x462f93(_0x20cedd,_0x4ed8('0x1b'),_0x462f93(_0x20cedd,_0x4ed8('0x0')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56ec=['HorizontalLineEditing','horizontalLine','TrackChangesEditing','createEmptyElement','elementToStructure','afterInit','high','createContainerElement','_descriptionFactory','enableCommand','conversion','showSuggestionHighlights','dataDowncast','createPositionAt','locale','ELEMENT_HORIZONTAL_LINE','plugins','has','get'];(function(_0xd8163a,_0x56ec83){const _0xd44bb0=function(_0x591f6b){while(--_0x591f6b){_0xd8163a['push'](_0xd8163a['shift']());}};_0xd44bb0(++_0x56ec83);}(_0x56ec,0x9c));const _0xd44b=function(_0xd8163a,_0x56ec83){_0xd8163a=_0xd8163a-0x0;let _0xd44bb0=_0x56ec[_0xd8163a];return _0xd44bb0;};import{Plugin as _0x14a879}from'ckeditor5/src/core';import{getTranslation as _0x2ce5d1}from'../utils/common-translations';export default class Q extends _0x14a879{[_0xd44b('0x1')](){const _0x4748d2=this['editor'];if(!_0x4748d2['plugins'][_0xd44b('0xd')](_0xd44b('0xf')))return;_0x4748d2[_0xd44b('0xc')]['get'](_0xd44b('0x11'))[_0xd44b('0x5')]('horizontalLine');const _0x411365=_0x4748d2[_0xd44b('0xc')][_0xd44b('0xe')](_0xd44b('0x11')),_0x41eb90=_0x4748d2[_0xd44b('0xa')];_0x411365[_0xd44b('0x4')]['registerElementLabel'](_0xd44b('0x10'),_0x487d0c=>_0x2ce5d1(_0x41eb90,_0xd44b('0xb'),_0x487d0c)),_0x4748d2[_0xd44b('0x6')]['for'](_0xd44b('0x8'))[_0xd44b('0x0')]({'model':_0xd44b('0x10'),'view':(_0x377c72,{writer:_0x97c47b,options:_0x9dc6ab})=>{if(!_0x9dc6ab[_0xd44b('0x7')])return null;const _0x34673b=_0x97c47b[_0xd44b('0x3')]('div'),_0xaeca0a=_0x97c47b[_0xd44b('0x12')]('hr');return _0x97c47b['addClass']('ck-horizontal-line',_0x34673b),_0x97c47b['insert'](_0x97c47b[_0xd44b('0x9')](_0x34673b,0x0),_0xaeca0a),_0x34673b;},'converterPriority':_0xd44b('0x2')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6707=['format','HtmlEmbed','markBlockFormat','model','change','htmlEmbed','getCustomProperty','registerDescriptionCallback','registerElementLabel','plugins','locale','selection','getAttribute','ELEMENT_HTML_EMBED','cancel','document','getSelectedElement','get','_descriptionFactory','element','commandName','view','afterInit','*Change\x20%0\x20content*','has','TrackChangesEditing','rawHtml'];(function(_0x10ecad,_0x670716){const _0x225b2c=function(_0xa06dae){while(--_0xa06dae){_0x10ecad['push'](_0x10ecad['shift']());}};_0x225b2c(++_0x670716);}(_0x6707,0xab));const _0x225b=function(_0x10ecad,_0x670716){_0x10ecad=_0x10ecad-0x0;let _0x225b2c=_0x6707[_0x10ecad];return _0x225b2c;};import{Plugin as _0x2939df}from'ckeditor5/src/core';import{getTranslation as _0x2baa80}from'../utils/common-translations';export default class V extends _0x2939df{[_0x225b('0xd')](){const _0x3b0b03=this['editor'];if(!_0x3b0b03[_0x225b('0x0')][_0x225b('0xf')](_0x225b('0x13')))return;const _0x473fea=_0x3b0b03[_0x225b('0x0')]['get'](_0x225b('0x10')),_0x26b630=_0x3b0b03[_0x225b('0x1')],_0x16a5d0=_0x3b0b03['editing'][_0x225b('0xc')]['document'][_0x225b('0x2')];_0x473fea[_0x225b('0x9')][_0x225b('0x1a')]('rawHtml',_0x392818=>_0x2baa80(_0x26b630,_0x225b('0x4'),_0x392818)),_0x3b0b03[_0x225b('0x0')][_0x225b('0x8')](_0x225b('0x10'))['enableCommand'](_0x225b('0x17'),(_0x14c334,_0x1ae52d)=>{const _0x13d960=_0x3b0b03[_0x225b('0x15')],_0x38f22a=_0x13d960[_0x225b('0x6')]['selection'];_0x13d960[_0x225b('0x16')](()=>{const _0x228375=function(_0x3e9429){const _0x49d71a=_0x3e9429[_0x225b('0x7')]();if(_0x49d71a&&_0x49d71a['is'](_0x225b('0xa'),_0x225b('0x11')))return _0x3e9429[_0x225b('0x7')]();return null;}(_0x38f22a);if(!_0x228375)return void _0x14c334(null);const _0x4714a4=_0x228375[_0x225b('0x3')]('value')||'';if(void 0x0===_0x1ae52d)return;if(_0x1ae52d===_0x4714a4)return;_0x473fea[_0x225b('0x14')](_0x228375,{'commandName':_0x225b('0x17'),'commandParams':[_0x1ae52d]}),_0x16a5d0['getSelectedElement']()[_0x225b('0x18')]('rawHtmlApi')[_0x225b('0x5')]();});}),_0x473fea[_0x225b('0x9')][_0x225b('0x19')](_0x1da256=>{const {data:_0x1e8880}=_0x1da256;if(_0x1e8880&&_0x225b('0x17')==_0x1e8880[_0x225b('0xb')]){const _0x1576db=_0x2baa80(_0x26b630,'ELEMENT_HTML_EMBED');return{'type':_0x225b('0x12'),'content':_0x2baa80(_0x26b630,_0x225b('0xe'),_0x1576db)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4161=['convertBlockImageToInline','*Set\x20image\x20width:*\x20%0','ImageInlineEditing','element','commandName','formatInline','model','side','getSuggestions','removeObject','hasSuggestion','isEqual','findIndex','imageBlock','nodeAfter','suggestion','shouldConvertImageType','*Format:*\x20%0','commandReversedParams','isOwn','Block\x20image\x20to\x20inline\x20image','convertInlineImageToBlock','_findSuggestions','_descriptionFactory','registerCustomCallback','end','imageStylePostApply','previous','newValue','name','plugins','has','getSuggestionCallback','getFirstRange','type','imageTypeInline','ImageEditing','TrackChangesEditing','_splitMarkerName','value','insertImage','markBlockFormat','nodeBefore','commandParams','toNext','imageCaption','ELEMENT_INLINE_IMAGE','getNearestSelectionRange','find','accept','start','chain','subType','schema','getCaptionFromImageModelElement','resizeImage','alt','refresh','newRange','backward','next','enableCommand','discard','document','formatBlock','ELEMENT_IMAGE','_suggestionFactory','createRangeOn','markInsertion','isBefore','join','ImageTextAlternativeEditing','forEach','filter','author','ELEMENT_CAPTION','isInContent','editor','get','selection','ImageCaptionUtils','isCollapsed','afterInit','imageStyle','length','registerElementLabel','*Set\x20image\x20text\x20alternative:*\x20%0','discardSuggestion','title','FORMAT_SIDE_IMAGE','imageStylePreApply','hasAttribute','uploadImage','createRange','getAttribute','getContainedElement','getSuggestion','isInlineImage','ImageStyleEditing','commands','ImageBlockEditing','getChangedMarkers','imageTextAlternative','getClosestSelectedImageElement','forward','ImageUtils','registerDescriptionCallback','change','caption','insertion','head','isIntersecting','ImageUploadEditing','format','normalizedStyles','width','isBlockImage'];(function(_0x161bc4,_0x416113){const _0x25547a=function(_0x578199){while(--_0x578199){_0x161bc4['push'](_0x161bc4['shift']());}};_0x25547a(++_0x416113);}(_0x4161,0xc0));const _0x2554=function(_0x161bc4,_0x416113){_0x161bc4=_0x161bc4-0x0;let _0x25547a=_0x4161[_0x161bc4];return _0x25547a;};import{Plugin as _0x167ba9}from'ckeditor5/src/core';import{LivePosition as _0x1174ea}from'ckeditor5/src/engine';import{uid as _0x471a56}from'ckeditor5/src/utils';import{getTranslation as _0x40c7fb}from'../utils/common-translations';export default class X extends _0x167ba9{[_0x2554('0x7')](){const _0x322b02=this[_0x2554('0x2')];if(!_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x4e')))return;const _0x3ee166=_0x322b02['plugins'][_0x2554('0x3')](_0x2554('0x4f')),_0x5b4b0e=_0x322b02[_0x2554('0x48')][_0x2554('0x3')](_0x2554('0x1e')),_0x3f4e23={},_0x370200=_0x322b02['locale'];if(_0x3ee166[_0x2554('0x67')](_0x2554('0x52')),_0x3ee166['_descriptionFactory'][_0x2554('0xa')](_0x2554('0x37'),_0x401ea0=>_0x40c7fb(_0x370200,_0x2554('0x6b'),_0x401ea0)),_0x3ee166[_0x2554('0x41')][_0x2554('0xa')]('imageInline',_0x9fbf05=>_0x40c7fb(_0x370200,_0x2554('0x58'),_0x9fbf05)),_0x3ee166[_0x2554('0x41')][_0x2554('0xa')](_0x2554('0x21'),()=>_0x40c7fb(_0x370200,_0x2554('0x0'))),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x25'))&&_0x3ee166[_0x2554('0x67')](_0x2554('0x11')),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x19'))&&_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x2c'))&&(_0x3ee166[_0x2554('0x67')](_0x2554('0x4d'),(_0x179aff,_0x5602bc)=>{const _0x3b4b77=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')]['document'][_0x2554('0x4')]);_0x322b02[_0x2554('0x30')][_0x2554('0x20')](()=>{_0x3ee166[_0x2554('0x53')](_0x3b4b77,{'commandName':_0x2554('0x4d'),'commandParams':[_0x5602bc]},[],_0x2554('0x2a'));});}),_0x3ee166['enableCommand']('imageTypeBlock',(_0x2b2779,_0x3258d9)=>{_0x322b02['model'][_0x2554('0x20')](_0x2024dd=>{let _0x43b73c=_0x5b4b0e['getClosestSelectedImageElement'](_0x322b02[_0x2554('0x30')]['document'][_0x2554('0x4')]),_0x2fb2a6=_0x2024dd['createRangeOn'](_0x43b73c);const _0x1f7122=_0x1174ea['fromPosition'](_0x2fb2a6[_0x2554('0x5c')],'toPrevious'),_0x97da0=_0x1174ea['fromPosition'](_0x2fb2a6[_0x2554('0x43')],_0x2554('0x56'));_0x3ee166['forceDefaultExecution'](()=>_0x2b2779(_0x3258d9)),_0x43b73c=_0x5b4b0e['getClosestSelectedImageElement'](_0x322b02[_0x2554('0x30')][_0x2554('0x69')][_0x2554('0x4')]),_0x2fb2a6=_0x2024dd[_0x2554('0x6d')](_0x43b73c);const _0x5f3c09=_0x2024dd['createRange'](_0x1f7122,_0x97da0);_0x1f7122['detach'](),_0x97da0['detach'](),_0x3ee166['markBlockFormat'](_0x43b73c,{'commandName':_0x2554('0x4d'),'commandParams':[]},[],_0x2554('0x3f')),_0x5f3c09[_0x2554('0x5c')]['isBefore'](_0x2fb2a6[_0x2554('0x5c')])&&_0x3ee166[_0x2554('0x6e')](_0x2024dd[_0x2554('0x12')](_0x5f3c09['start'],_0x2fb2a6[_0x2554('0x5c')]),_0x2554('0x3f')),_0x2fb2a6['end'][_0x2554('0x6f')](_0x5f3c09[_0x2554('0x43')])&&_0x3ee166[_0x2554('0x6e')](_0x2024dd[_0x2554('0x12')](_0x2fb2a6['end'],_0x5f3c09['end']),_0x2554('0x3f'));});}),_0x3ee166[_0x2554('0x6c')]['registerCustomCallback']('formatBlock',_0x2554('0x3f'),_0x2554('0x70'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x3f'),'accept',()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x3f'),_0x2554('0x68'),_0x3ee166[_0x2554('0x6c')]['getSuggestionCallback']('formatBlock','',_0x2554('0x5b'))),_0x3ee166[_0x2554('0x6c')]['registerCustomCallback'](_0x2554('0x22'),_0x2554('0x3f'),'join',()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x22'),_0x2554('0x3f'),_0x2554('0x68'),([_0x4f367b])=>{const _0x2b15d2=_0x3ee166[_0x2554('0x6c')][_0x2554('0x4a')](_0x2554('0x22'),'',_0x2554('0x68'));let _0x44a44f=_0x4f367b[_0x2554('0x5c')],_0x44062a=_0x4f367b[_0x2554('0x43')];const _0x1efefe=_0x322b02[_0x2554('0x30')][_0x2554('0x5f')][_0x2554('0x59')](_0x44a44f,_0x2554('0x65')),_0x150897=_0x322b02[_0x2554('0x30')][_0x2554('0x5f')][_0x2554('0x59')](_0x44062a,_0x2554('0x1d'));_0x1efefe[_0x2554('0x6')]&&(_0x44a44f=_0x1efefe[_0x2554('0x5c')]),_0x150897['isCollapsed']&&(_0x44062a=_0x150897[_0x2554('0x43')]),_0x2b15d2([_0x322b02[_0x2554('0x30')][_0x2554('0x12')](_0x44a44f,_0x44062a)]);}),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x3f'),_0x2554('0x5d'),_0x1e8562),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')]('insertion',_0x2554('0x3f'),_0x2554('0x5d'),_0x1e8562)),_0x322b02[_0x2554('0x48')][_0x2554('0x49')]('ImageCaptionEditing')&&(_0x3ee166[_0x2554('0x67')]('toggleImageCaption',(_0x3aef66,_0x55ce75)=>{const _0x3f8412=_0x322b02['plugins'][_0x2554('0x3')](_0x2554('0x5'));let _0x227541=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')][_0x2554('0x69')]['selection']),_0x1f7e71=_0x3f8412[_0x2554('0x60')](_0x227541);_0x322b02['model'][_0x2554('0x20')](()=>{if(_0x1f7e71)return void _0x3ee166['markDeletion'](_0x322b02[_0x2554('0x30')][_0x2554('0x6d')](_0x1f7e71));const _0x31adbe=_0x5b4b0e[_0x2554('0x29')](_0x227541);_0x3aef66(_0x55ce75),_0x227541=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')]['document']['selection']),_0x1f7e71=_0x3f8412[_0x2554('0x60')](_0x227541),_0x3ee166[_0x2554('0x6e')](_0x322b02[_0x2554('0x30')][_0x2554('0x6d')](_0x1f7e71),_0x31adbe?null:_0x2554('0x57'));});}),_0x3ee166[_0x2554('0x6c')]['registerCustomCallback'](_0x2554('0x22'),_0x2554('0x57'),_0x2554('0x5d'),_0x1e8562)),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x17'))){_0x3ee166['enableCommand'](_0x2554('0x8'),(_0x10d6ef,_0xc549e)=>{const _0x17255f=_0x322b02['plugins'][_0x2554('0x3')]('Users')['me'],_0x264324=_0x322b02[_0x2554('0x18')][_0x2554('0x3')](_0x2554('0x8'));let _0x34e918=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')][_0x2554('0x69')][_0x2554('0x4')]),_0x258f3b=_0x322b02[_0x2554('0x30')][_0x2554('0x6d')](_0x34e918),_0x41756=_0x264324['value'];if(_0x41756==_0xc549e[_0x2554('0x51')])return;const _0x451b18={'commandName':_0x2554('0x8'),'commandParams':[_0xc549e],'formatGroupId':_0x471a56()};_0x322b02[_0x2554('0x30')][_0x2554('0x20')](()=>{if(_0x3ee166[_0x2554('0x32')]()[_0x2554('0x73')](_0x4bd5bd=>_0x4bd5bd[_0x2554('0x1')]&&_0x17255f==_0x4bd5bd[_0x2554('0x74')]&&(_0x2554('0x6a')==_0x4bd5bd[_0x2554('0x4c')]||_0x2554('0x2f')==_0x4bd5bd['type'])&&('imageStylePreApply'==_0x4bd5bd[_0x2554('0x5e')]||_0x2554('0x44')==_0x4bd5bd['subType'])&&_0x4bd5bd['getFirstRange']()[_0x2554('0x35')](_0x258f3b))[_0x2554('0x72')](_0x4b55a1=>_0x3ee166[_0x2554('0xc')](_0x4b55a1[_0x2554('0x23')])),_0x34e918=_0x5b4b0e['getClosestSelectedImageElement'](_0x322b02[_0x2554('0x30')][_0x2554('0x69')][_0x2554('0x4')]),_0x258f3b=_0x322b02[_0x2554('0x30')]['createRangeOn'](_0x34e918),_0x264324[_0x2554('0x63')](),_0x322b02[_0x2554('0x18')][_0x2554('0x3')](_0x2554('0x4d'))['refresh'](),_0x322b02['commands'][_0x2554('0x3')]('imageTypeBlock')[_0x2554('0x63')](),_0x41756=_0x264324[_0x2554('0x51')],_0x41756!=_0xc549e[_0x2554('0x51')])return _0x5b4b0e[_0x2554('0x16')](_0x34e918)&&_0x264324[_0x2554('0x3a')](_0xc549e[_0x2554('0x51')],_0x34e918)?(_0x10d6ef(_0xc549e),_0x34e918=_0x5b4b0e[_0x2554('0x1c')](_0x322b02['model'][_0x2554('0x69')][_0x2554('0x4')]),void _0x3ee166['markBlockFormat'](_0x34e918,{..._0x451b18,'commandReversedParams':[{'value':_0x41756||null}]},[],_0x2554('0xf'))):void(_0x5b4b0e[_0x2554('0x29')](_0x34e918)?_0x3ee166[_0x2554('0x53')](_0x34e918,_0x451b18,[],_0x2554('0x44')):_0x3ee166['markInlineFormat'](_0x258f3b,_0x451b18,_0x2554('0x44')));});});for(const _0xf101de of _0x322b02[_0x2554('0x48')]['get']('ImageStyleEditing')[_0x2554('0x27')])_0x3f4e23[_0xf101de[_0x2554('0x47')]]=_0xf101de[_0x2554('0xd')]['toLowerCase']();_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),'imageStylePreApply',_0x2554('0x70'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0x44'),'join',()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x2f'),_0x2554('0x44'),_0x2554('0x70'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0xf'),_0x2554('0x5b'),()=>!0x1),_0x3ee166[_0x2554('0x6c')][_0x2554('0x42')]('formatBlock',_0x2554('0xf'),_0x2554('0x68'),(_0x191f64,_0x260a41)=>{_0x3ee166[_0x2554('0x6c')][_0x2554('0x4a')](_0x2554('0x6a'),'',_0x2554('0x5b'))(_0x191f64,{'commandName':_0x260a41[_0x2554('0x2e')],'commandParams':_0x260a41[_0x2554('0x3c')]});}),_0x3ee166['_suggestionFactory'][_0x2554('0x42')](_0x2554('0x6a'),_0x2554('0xf'),_0x2554('0x5d'),_0x1e8562);}const _0x355a4d=[{'type':'formatBlock','subType':_0x2554('0xf')},{'type':_0x2554('0x22'),'subType':_0x2554('0x57')},{'type':_0x2554('0x6a'),'subType':_0x2554('0x3f')},{'type':_0x2554('0x22'),'subType':'convertInlineImageToBlock'}];function _0x42f9e5(_0x3d9765,_0x2f612b){const _0x3ca2ed=_0x355a4d[_0x2554('0x36')](({type:_0x1db37c,subType:_0x8dd270})=>_0x3d9765[_0x2554('0x4c')]==_0x1db37c&&_0x3d9765[_0x2554('0x5e')]==_0x8dd270),_0x1f9096=_0x355a4d['findIndex'](({type:_0x57e5ab,subType:_0x232ac3})=>_0x2f612b[_0x2554('0x4c')]==_0x57e5ab&&_0x2f612b[_0x2554('0x5e')]==_0x232ac3);if(_0x3ca2ed<0x0||_0x1f9096<0x0)return!0x1;const _0x1457c2=_0x3d9765[_0x2554('0x4b')](),_0xa3a313=_0x2f612b[_0x2554('0x4b')]();if((0x0==_0x3ca2ed||0x1==_0x3ca2ed)&&0x2==_0x1f9096&&_0x1457c2[_0x2554('0x24')](_0xa3a313))return!0x0;if(0x2==_0x3ca2ed&&0x3==_0x1f9096){const _0x5b8495=_0x3ee166[_0x2554('0x40')](_0x1457c2,'insertion')[_0x2554('0x73')](({suggestion:_0x19aae5,meta:_0x2d3c2c})=>_0x2d3c2c[_0x2554('0x3d')]&&_0x2554('0x3f')==_0x19aae5['subType']);if(_0x5b8495[_0x2554('0x9')]>0x1&&_0xa3a313[_0x2554('0x43')]['isEqual'](_0x1457c2[_0x2554('0x5c')]))return!0x0;if(0x1==_0x5b8495[_0x2554('0x9')]&&(_0x1457c2[_0x2554('0x5c')][_0x2554('0x35')](_0xa3a313[_0x2554('0x43')])||_0x1457c2[_0x2554('0x43')][_0x2554('0x35')](_0xa3a313[_0x2554('0x5c')])))return!0x0;}if(0x3==_0x3ca2ed&&0x3==_0x1f9096&&_0x1457c2[_0x2554('0x5c')]['isBefore'](_0xa3a313[_0x2554('0x5c')])){const _0x42fe2e=_0x1457c2['end'][_0x2554('0x38')],_0x1f3e03=_0xa3a313[_0x2554('0x5c')][_0x2554('0x54')];return _0x5b4b0e[_0x2554('0x29')](_0x42fe2e)&&_0x42fe2e===_0x1f3e03;}return!0x1;}function _0x1e8562(_0x1cbc32,_0x5e3cae){return _0x42f9e5(_0x1cbc32,_0x5e3cae)?[_0x1cbc32,_0x5e3cae]:_0x42f9e5(_0x5e3cae,_0x1cbc32)?[_0x5e3cae,_0x1cbc32]:null;}_0x322b02['model'][_0x2554('0x69')]['registerPostFixer'](()=>{let _0x89ed9f=!0x1;const _0x2cf41c=Array['from'](_0x322b02[_0x2554('0x30')][_0x2554('0x69')]['differ'][_0x2554('0x1a')]());for(const {name:_0x450ca5,data:_0x219fef}of _0x2cf41c){const {group:_0x19bb01,type:_0x5179b1,subType:_0x485c02,id:_0x50c5db}=_0x3ee166[_0x2554('0x50')](_0x450ca5);if(_0x2554('0x39')==_0x19bb01&&_0x3ee166[_0x2554('0x34')](_0x50c5db)){if(_0x2554('0x6a')==_0x5179b1&&(_0x2554('0xf')==_0x485c02||_0x2554('0x44')==_0x485c02)){const _0x3e2fc1=_0x3ee166[_0x2554('0x15')](_0x50c5db);if(_0x219fef[_0x2554('0x64')]){const _0x1e2016=_0x3e2fc1[_0x2554('0x4b')]()[_0x2554('0x14')]();if(_0x5b4b0e[_0x2554('0x29')](_0x1e2016))continue;_0x3ee166[_0x2554('0xc')](_0x3e2fc1),_0x89ed9f=!0x0;}}if(_0x2554('0x22')==_0x5179b1&&_0x2554('0x57')==_0x485c02&&!_0x219fef[_0x2554('0x64')]){const _0x5e806d=_0x3ee166[_0x2554('0x15')](_0x50c5db);_0x5e806d[_0x2554('0x66')]&&_0x5e806d[_0x2554('0x66')][_0x2554('0x1')]&&(_0x3ee166['discardSuggestion'](_0x5e806d['next']),_0x89ed9f=!0x0);}}}return _0x89ed9f;}),_0x322b02[_0x2554('0x48')][_0x2554('0x49')]('ImageResize')&&_0x3ee166[_0x2554('0x67')](_0x2554('0x61'),(_0x330722,_0x56ddbe)=>{const _0x152152=_0x5b4b0e[_0x2554('0x1c')](_0x322b02[_0x2554('0x30')]['document'][_0x2554('0x4')]);_0x152152[_0x2554('0x13')]('width')!=_0x56ddbe['width']&&_0x322b02[_0x2554('0x30')][_0x2554('0x20')](()=>{_0x3ee166[_0x2554('0x53')](_0x152152,{'commandName':_0x2554('0x61'),'commandParams':[_0x56ddbe]});});}),_0x322b02[_0x2554('0x48')][_0x2554('0x49')](_0x2554('0x71'))&&_0x3ee166['enableCommand'](_0x2554('0x1b'),(_0x44a0d7,_0x4d8e2d)=>{const _0x5183f0=_0x5b4b0e[_0x2554('0x1c')](_0x322b02['model'][_0x2554('0x69')][_0x2554('0x4')]);(_0x5183f0[_0x2554('0x10')](_0x2554('0x62'))?_0x5183f0[_0x2554('0x13')](_0x2554('0x62')):'')!=_0x4d8e2d[_0x2554('0x46')]&&_0x322b02['model'][_0x2554('0x20')](()=>{_0x3ee166[_0x2554('0x53')](_0x5183f0,{'commandName':_0x2554('0x1b'),'commandParams':[_0x4d8e2d]});});}),_0x3ee166['_descriptionFactory']['registerDescriptionCallback'](_0x41cc61=>{if(!!_0x355a4d[_0x2554('0x5a')](({type:_0x2fdca3,subType:_0xb56d57})=>_0x41cc61['type']==_0x2fdca3&&_0x41cc61[_0x2554('0x5e')]==_0xb56d57))return _0x41cc61[_0x2554('0x45')]?{}:void 0x0;}),_0x3ee166[_0x2554('0x41')][_0x2554('0x1f')](_0xb4e06=>{if(_0x2554('0x22')==_0xb4e06[_0x2554('0x4c')]||'deletion'==_0xb4e06[_0x2554('0x4c')]){const _0x599ff9=_0xb4e06['getContainedElement']();if(_0x599ff9&&_0x599ff9['is'](_0x2554('0x2d'),'caption'))return{'type':_0x2554('0x22')==_0xb4e06[_0x2554('0x4c')]?'addObject':_0x2554('0x33'),'element':_0x599ff9,'quantity':0x1};}}),_0x3ee166[_0x2554('0x41')][_0x2554('0x1f')](_0x5472e2=>_0x2554('0x6a')==_0x5472e2[_0x2554('0x4c')]&&'convertInlineImageToBlock'==_0x5472e2[_0x2554('0x5e')]?{'type':_0x2554('0x26'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x2554('0x6a')==_0x5472e2[_0x2554('0x4c')]&&_0x2554('0x2a')==_0x5472e2[_0x2554('0x5e')]?{'type':_0x2554('0x26'),'content':_0x2554('0x3e')}:void 0x0),_0x3ee166[_0x2554('0x41')][_0x2554('0x1f')](_0x9960de=>{const {data:_0x3306b9}=_0x9960de;if(_0x3306b9){if(_0x2554('0x8')==_0x3306b9[_0x2554('0x2e')]){const _0x10f3e8=_0x3306b9[_0x2554('0x55')][0x0][_0x2554('0x51')];return _0x117364(_0x2554('0x31')===_0x10f3e8?_0x40c7fb(_0x370200,_0x2554('0xe')):_0x3f4e23[_0x10f3e8]||_0x10f3e8);}if(_0x2554('0x1b')==_0x3306b9[_0x2554('0x2e')]){const _0x118e05=_0x3306b9[_0x2554('0x55')][0x0][_0x2554('0x46')];return _0x118e05?{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,_0x2554('0xb'),'\x22'+_0x118e05+'\x22')}:{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,'*Remove\x20image\x20text\x20alternative*')};}if(_0x2554('0x61')==_0x3306b9[_0x2554('0x2e')]){const _0x1d17fd=_0x3306b9['commandParams'][0x0][_0x2554('0x28')];return _0x1d17fd?{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,_0x2554('0x2b'),_0x1d17fd)}:{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,'*Reset\x20image\x20width*')};}}function _0x117364(_0x497500){return{'type':_0x2554('0x26'),'content':_0x40c7fb(_0x370200,_0x2554('0x3b'),_0x497500)};}});}}
|
|
23
|
+
const _0x5554=['imageTextAlternative','imageStylePostApply','selection','discardSuggestion','getContainedElement','ImageEditing','imageCaption','Block\x20image\x20to\x20inline\x20image','plugins','resizeImage','markDeletion','createRangeOn','getSuggestionCallback','Users','findIndex','accept','imageTypeInline','deletion','isBlockImage','ELEMENT_CAPTION','ELEMENT_IMAGE','from','toPrevious','*Set\x20image\x20text\x20alternative:*\x20%0','side','formatBlock','ImageResize','commandName','convertBlockImageToInline','getCaptionFromImageModelElement','markBlockFormat','forward','isCollapsed','type','createRange','end','differ','width','subType','getSuggestion','get','TrackChangesEditing','alt','ELEMENT_INLINE_IMAGE','_suggestionFactory','commandParams','enableCommand','model','refresh','toggleImageCaption','isIntersecting','schema','*Format:*\x20%0','ImageBlockEditing','discard','format','filter','removeObject','ImageUtils','find','document','*Remove\x20image\x20text\x20alternative*','newValue','imageBlock','isInContent','value','join','next','markInlineFormat','has','ImageUploadEditing','change','start','ImageStyleEditing','formatInline','chain','getNearestSelectionRange','insertion','commands','length','title','registerDescriptionCallback','isEqual','*Reset\x20image\x20width*','suggestion','imageStyle','newRange','getSuggestions','imageTypeBlock','convertInlineImageToBlock','isBefore','markInsertion','getClosestSelectedImageElement','_splitMarkerName','ImageCaptionUtils','isInlineImage','registerPostFixer','uploadImage','_descriptionFactory','registerElementLabel','locale','element','caption','getFirstRange','registerCustomCallback','isOwn','detach','fromPosition','_findSuggestions','imageStylePreApply','nodeBefore','FORMAT_SIDE_IMAGE','toNext','forEach','nodeAfter'];(function(_0x1a72a4,_0x555477){const _0x555110=function(_0x3a91a8){while(--_0x3a91a8){_0x1a72a4['push'](_0x1a72a4['shift']());}};_0x555110(++_0x555477);}(_0x5554,0xd3));const _0x5551=function(_0x1a72a4,_0x555477){_0x1a72a4=_0x1a72a4-0x0;let _0x555110=_0x5554[_0x1a72a4];return _0x555110;};import{Plugin as _0xe35551}from'ckeditor5/src/core';import{LivePosition as _0x27ecd4}from'ckeditor5/src/engine';import{uid as _0x5d17ad}from'ckeditor5/src/utils';import{getTranslation as _0x1ab700}from'../utils/common-translations';export default class X extends _0xe35551{['afterInit'](){const _0x3ccb72=this['editor'];if(!_0x3ccb72[_0x5551('0x1b')]['has'](_0x5551('0x18')))return;const _0x4fde06=_0x3ccb72['plugins'][_0x5551('0x3b')](_0x5551('0x3c')),_0xb48b6a=_0x3ccb72[_0x5551('0x1b')][_0x5551('0x3b')](_0x5551('0x4d')),_0x3d7432={},_0x28f616=_0x3ccb72[_0x5551('0x4')];if(_0x4fde06[_0x5551('0x41')]('insertImage'),_0x4fde06[_0x5551('0x2')][_0x5551('0x3')](_0x5551('0x52'),_0x2864c4=>_0x1ab700(_0x28f616,_0x5551('0x27'),_0x2864c4)),_0x4fde06[_0x5551('0x2')][_0x5551('0x3')]('imageInline',_0x2a5a2b=>_0x1ab700(_0x28f616,_0x5551('0x3e'),_0x2a5a2b)),_0x4fde06['_descriptionFactory'][_0x5551('0x3')]('caption',()=>_0x1ab700(_0x28f616,_0x5551('0x26'))),_0x3ccb72['plugins'][_0x5551('0x58')](_0x5551('0x59'))&&_0x4fde06['enableCommand'](_0x5551('0x1')),_0x3ccb72[_0x5551('0x1b')][_0x5551('0x58')](_0x5551('0x48'))&&_0x3ccb72['plugins']['has']('ImageInlineEditing')&&(_0x4fde06[_0x5551('0x41')](_0x5551('0x23'),(_0x4adb1a,_0x68cee3)=>{const _0x48f686=_0xb48b6a[_0x5551('0x6f')](_0x3ccb72[_0x5551('0x42')]['document'][_0x5551('0x15')]);_0x3ccb72[_0x5551('0x42')]['change'](()=>{_0x4fde06['markBlockFormat'](_0x48f686,{'commandName':_0x5551('0x23'),'commandParams':[_0x68cee3]},[],_0x5551('0x2f'));});}),_0x4fde06[_0x5551('0x41')]('imageTypeBlock',(_0x1c31dd,_0x21b5aa)=>{_0x3ccb72['model'][_0x5551('0x5a')](_0x415717=>{let _0x505251=_0xb48b6a['getClosestSelectedImageElement'](_0x3ccb72[_0x5551('0x42')]['document']['selection']),_0x183195=_0x415717['createRangeOn'](_0x505251);const _0x47db57=_0x27ecd4[_0x5551('0xb')](_0x183195[_0x5551('0x5b')],_0x5551('0x29')),_0x55dc1a=_0x27ecd4[_0x5551('0xb')](_0x183195[_0x5551('0x36')],_0x5551('0x10'));_0x4fde06['forceDefaultExecution'](()=>_0x1c31dd(_0x21b5aa)),_0x505251=_0xb48b6a['getClosestSelectedImageElement'](_0x3ccb72[_0x5551('0x42')][_0x5551('0x4f')][_0x5551('0x15')]),_0x183195=_0x415717['createRangeOn'](_0x505251);const _0x1996b1=_0x415717[_0x5551('0x35')](_0x47db57,_0x55dc1a);_0x47db57[_0x5551('0xa')](),_0x55dc1a[_0x5551('0xa')](),_0x4fde06[_0x5551('0x31')](_0x505251,{'commandName':'imageTypeInline','commandParams':[]},[],_0x5551('0x6c')),_0x1996b1[_0x5551('0x5b')][_0x5551('0x6d')](_0x183195[_0x5551('0x5b')])&&_0x4fde06[_0x5551('0x6e')](_0x415717['createRange'](_0x1996b1['start'],_0x183195['start']),_0x5551('0x6c')),_0x183195['end'][_0x5551('0x6d')](_0x1996b1['end'])&&_0x4fde06[_0x5551('0x6e')](_0x415717[_0x5551('0x35')](_0x183195[_0x5551('0x36')],_0x1996b1['end']),_0x5551('0x6c'));});}),_0x4fde06[_0x5551('0x3f')]['registerCustomCallback']('formatBlock',_0x5551('0x6c'),_0x5551('0x55'),()=>!0x1),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x2c'),_0x5551('0x6c'),_0x5551('0x22'),()=>!0x1),_0x4fde06['_suggestionFactory']['registerCustomCallback'](_0x5551('0x2c'),_0x5551('0x6c'),'discard',_0x4fde06[_0x5551('0x3f')][_0x5551('0x1f')]('formatBlock','','accept')),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x60'),'convertInlineImageToBlock',_0x5551('0x55'),()=>!0x1),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x60'),_0x5551('0x6c'),_0x5551('0x49'),([_0x3089df])=>{const _0x1f48f5=_0x4fde06[_0x5551('0x3f')][_0x5551('0x1f')]('insertion','',_0x5551('0x49'));let _0x5b2ecb=_0x3089df['start'],_0x503f2b=_0x3089df[_0x5551('0x36')];const _0x30aa11=_0x3ccb72['model'][_0x5551('0x46')][_0x5551('0x5f')](_0x5b2ecb,'backward'),_0x2e71e1=_0x3ccb72[_0x5551('0x42')][_0x5551('0x46')]['getNearestSelectionRange'](_0x503f2b,_0x5551('0x32'));_0x30aa11[_0x5551('0x33')]&&(_0x5b2ecb=_0x30aa11[_0x5551('0x5b')]),_0x2e71e1[_0x5551('0x33')]&&(_0x503f2b=_0x2e71e1[_0x5551('0x36')]),_0x1f48f5([_0x3ccb72['model'][_0x5551('0x35')](_0x5b2ecb,_0x503f2b)]);}),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x2c'),_0x5551('0x6c'),'chain',_0x5dc8ef),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x60'),_0x5551('0x6c'),'chain',_0x5dc8ef)),_0x3ccb72[_0x5551('0x1b')][_0x5551('0x58')]('ImageCaptionEditing')&&(_0x4fde06[_0x5551('0x41')](_0x5551('0x44'),(_0x14b9c4,_0x584a13)=>{const _0x76869b=_0x3ccb72[_0x5551('0x1b')][_0x5551('0x3b')](_0x5551('0x71'));let _0x2be9b8=_0xb48b6a[_0x5551('0x6f')](_0x3ccb72['model'][_0x5551('0x4f')][_0x5551('0x15')]),_0x48f094=_0x76869b[_0x5551('0x30')](_0x2be9b8);_0x3ccb72[_0x5551('0x42')][_0x5551('0x5a')](()=>{if(_0x48f094)return void _0x4fde06[_0x5551('0x1d')](_0x3ccb72['model'][_0x5551('0x1e')](_0x48f094));const _0x526a6d=_0xb48b6a['isBlockImage'](_0x2be9b8);_0x14b9c4(_0x584a13),_0x2be9b8=_0xb48b6a[_0x5551('0x6f')](_0x3ccb72[_0x5551('0x42')][_0x5551('0x4f')]['selection']),_0x48f094=_0x76869b[_0x5551('0x30')](_0x2be9b8),_0x4fde06[_0x5551('0x6e')](_0x3ccb72[_0x5551('0x42')][_0x5551('0x1e')](_0x48f094),_0x526a6d?null:_0x5551('0x19'));});}),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x60'),_0x5551('0x19'),_0x5551('0x5e'),_0x5dc8ef)),_0x3ccb72[_0x5551('0x1b')][_0x5551('0x58')]('ImageStyleEditing')){_0x4fde06[_0x5551('0x41')]('imageStyle',(_0x135eab,_0x451dff)=>{const _0x5e0276=_0x3ccb72[_0x5551('0x1b')][_0x5551('0x3b')](_0x5551('0x20'))['me'],_0x437066=_0x3ccb72[_0x5551('0x61')][_0x5551('0x3b')](_0x5551('0x68'));let _0x2bd59a=_0xb48b6a[_0x5551('0x6f')](_0x3ccb72['model'][_0x5551('0x4f')]['selection']),_0x139f2c=_0x3ccb72[_0x5551('0x42')]['createRangeOn'](_0x2bd59a),_0x46d60e=_0x437066[_0x5551('0x54')];if(_0x46d60e==_0x451dff['value'])return;const _0x161a45={'commandName':_0x5551('0x68'),'commandParams':[_0x451dff],'formatGroupId':_0x5d17ad()};_0x3ccb72[_0x5551('0x42')][_0x5551('0x5a')](()=>{if(_0x4fde06[_0x5551('0x6a')]()[_0x5551('0x4b')](_0x58d595=>_0x58d595[_0x5551('0x53')]&&_0x5e0276==_0x58d595['author']&&(_0x5551('0x2c')==_0x58d595['type']||_0x5551('0x5d')==_0x58d595[_0x5551('0x34')])&&('imageStylePreApply'==_0x58d595[_0x5551('0x39')]||'imageStylePostApply'==_0x58d595['subType'])&&_0x58d595['getFirstRange']()[_0x5551('0x65')](_0x139f2c))[_0x5551('0x11')](_0x3df973=>_0x4fde06[_0x5551('0x16')](_0x3df973['head'])),_0x2bd59a=_0xb48b6a[_0x5551('0x6f')](_0x3ccb72['model'][_0x5551('0x4f')]['selection']),_0x139f2c=_0x3ccb72['model'][_0x5551('0x1e')](_0x2bd59a),_0x437066[_0x5551('0x43')](),_0x3ccb72[_0x5551('0x61')]['get'](_0x5551('0x23'))[_0x5551('0x43')](),_0x3ccb72[_0x5551('0x61')]['get'](_0x5551('0x6b'))['refresh'](),_0x46d60e=_0x437066[_0x5551('0x54')],_0x46d60e!=_0x451dff[_0x5551('0x54')])return _0xb48b6a[_0x5551('0x72')](_0x2bd59a)&&_0x437066['shouldConvertImageType'](_0x451dff[_0x5551('0x54')],_0x2bd59a)?(_0x135eab(_0x451dff),_0x2bd59a=_0xb48b6a[_0x5551('0x6f')](_0x3ccb72['model'][_0x5551('0x4f')][_0x5551('0x15')]),void _0x4fde06[_0x5551('0x31')](_0x2bd59a,{..._0x161a45,'commandReversedParams':[{'value':_0x46d60e||null}]},[],'imageStylePreApply')):void(_0xb48b6a[_0x5551('0x25')](_0x2bd59a)?_0x4fde06[_0x5551('0x31')](_0x2bd59a,_0x161a45,[],_0x5551('0x14')):_0x4fde06[_0x5551('0x57')](_0x139f2c,_0x161a45,_0x5551('0x14')));});});for(const _0x44a297 of _0x3ccb72['plugins'][_0x5551('0x3b')](_0x5551('0x5c'))['normalizedStyles'])_0x3d7432[_0x44a297['name']]=_0x44a297[_0x5551('0x63')]['toLowerCase']();_0x4fde06[_0x5551('0x3f')]['registerCustomCallback'](_0x5551('0x2c'),_0x5551('0xd'),_0x5551('0x55'),()=>!0x1),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x2c'),_0x5551('0x14'),_0x5551('0x55'),()=>!0x1),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')]('formatInline',_0x5551('0x14'),_0x5551('0x55'),()=>!0x1),_0x4fde06['_suggestionFactory']['registerCustomCallback'](_0x5551('0x2c'),_0x5551('0xd'),_0x5551('0x22'),()=>!0x1),_0x4fde06[_0x5551('0x3f')]['registerCustomCallback'](_0x5551('0x2c'),'imageStylePreApply',_0x5551('0x49'),(_0x4a4b25,_0x2fa975)=>{_0x4fde06[_0x5551('0x3f')]['getSuggestionCallback'](_0x5551('0x2c'),'',_0x5551('0x22'))(_0x4a4b25,{'commandName':_0x2fa975[_0x5551('0x2e')],'commandParams':_0x2fa975['commandReversedParams']});}),_0x4fde06[_0x5551('0x3f')][_0x5551('0x8')](_0x5551('0x2c'),'imageStylePreApply',_0x5551('0x5e'),_0x5dc8ef);}const _0x53be06=[{'type':_0x5551('0x2c'),'subType':'imageStylePreApply'},{'type':_0x5551('0x60'),'subType':_0x5551('0x19')},{'type':_0x5551('0x2c'),'subType':'convertInlineImageToBlock'},{'type':_0x5551('0x60'),'subType':'convertInlineImageToBlock'}];function _0x3e1ae8(_0x5dbfda,_0x1bd41f){const _0x2eaf5c=_0x53be06[_0x5551('0x21')](({type:_0x9f7a38,subType:_0x35b70a})=>_0x5dbfda[_0x5551('0x34')]==_0x9f7a38&&_0x5dbfda['subType']==_0x35b70a),_0x4936f3=_0x53be06[_0x5551('0x21')](({type:_0x52939a,subType:_0x347327})=>_0x1bd41f[_0x5551('0x34')]==_0x52939a&&_0x1bd41f[_0x5551('0x39')]==_0x347327);if(_0x2eaf5c<0x0||_0x4936f3<0x0)return!0x1;const _0x254349=_0x5dbfda[_0x5551('0x7')](),_0x3c8283=_0x1bd41f[_0x5551('0x7')]();if((0x0==_0x2eaf5c||0x1==_0x2eaf5c)&&0x2==_0x4936f3&&_0x254349[_0x5551('0x45')](_0x3c8283))return!0x0;if(0x2==_0x2eaf5c&&0x3==_0x4936f3){const _0x8d94ba=_0x4fde06[_0x5551('0xc')](_0x254349,_0x5551('0x60'))[_0x5551('0x4b')](({suggestion:_0x11fcf7,meta:_0x17b034})=>_0x17b034[_0x5551('0x9')]&&_0x5551('0x6c')==_0x11fcf7[_0x5551('0x39')]);if(_0x8d94ba[_0x5551('0x62')]>0x1&&_0x3c8283['end'][_0x5551('0x65')](_0x254349['start']))return!0x0;if(0x1==_0x8d94ba[_0x5551('0x62')]&&(_0x254349[_0x5551('0x5b')][_0x5551('0x65')](_0x3c8283[_0x5551('0x36')])||_0x254349[_0x5551('0x36')][_0x5551('0x65')](_0x3c8283[_0x5551('0x5b')])))return!0x0;}if(0x3==_0x2eaf5c&&0x3==_0x4936f3&&_0x254349[_0x5551('0x5b')][_0x5551('0x6d')](_0x3c8283[_0x5551('0x5b')])){const _0x2fb7bf=_0x254349[_0x5551('0x36')][_0x5551('0x12')],_0x50d8a6=_0x3c8283[_0x5551('0x5b')][_0x5551('0xe')];return _0xb48b6a[_0x5551('0x25')](_0x2fb7bf)&&_0x2fb7bf===_0x50d8a6;}return!0x1;}function _0x5dc8ef(_0x5e1d6a,_0x34345f){return _0x3e1ae8(_0x5e1d6a,_0x34345f)?[_0x5e1d6a,_0x34345f]:_0x3e1ae8(_0x34345f,_0x5e1d6a)?[_0x34345f,_0x5e1d6a]:null;}_0x3ccb72[_0x5551('0x42')][_0x5551('0x4f')][_0x5551('0x0')](()=>{let _0x63879d=!0x1;const _0x43baff=Array[_0x5551('0x28')](_0x3ccb72[_0x5551('0x42')]['document'][_0x5551('0x37')]['getChangedMarkers']());for(const {name:_0x4ae47f,data:_0x291b}of _0x43baff){const {group:_0x3ecfc0,type:_0x35f43a,subType:_0x4fdec8,id:_0x35bcd4}=_0x4fde06[_0x5551('0x70')](_0x4ae47f);if(_0x5551('0x67')==_0x3ecfc0&&_0x4fde06['hasSuggestion'](_0x35bcd4)){if(_0x5551('0x2c')==_0x35f43a&&(_0x5551('0xd')==_0x4fdec8||_0x5551('0x14')==_0x4fdec8)){const _0x4b3ad8=_0x4fde06['getSuggestion'](_0x35bcd4);if(_0x291b[_0x5551('0x69')]){const _0x1b7dec=_0x4b3ad8['getFirstRange']()[_0x5551('0x17')]();if(_0xb48b6a[_0x5551('0x25')](_0x1b7dec))continue;_0x4fde06[_0x5551('0x16')](_0x4b3ad8),_0x63879d=!0x0;}}if(_0x5551('0x60')==_0x35f43a&&'imageCaption'==_0x4fdec8&&!_0x291b[_0x5551('0x69')]){const _0x52627e=_0x4fde06[_0x5551('0x3a')](_0x35bcd4);_0x52627e[_0x5551('0x56')]&&_0x52627e[_0x5551('0x56')]['isInContent']&&(_0x4fde06[_0x5551('0x16')](_0x52627e[_0x5551('0x56')]),_0x63879d=!0x0);}}}return _0x63879d;}),_0x3ccb72[_0x5551('0x1b')][_0x5551('0x58')](_0x5551('0x2d'))&&_0x4fde06['enableCommand'](_0x5551('0x1c'),(_0xdc2da1,_0xd2be47)=>{const _0xddc9d0=_0xb48b6a[_0x5551('0x6f')](_0x3ccb72['model'][_0x5551('0x4f')][_0x5551('0x15')]);_0xddc9d0['getAttribute'](_0x5551('0x38'))!=_0xd2be47[_0x5551('0x38')]&&_0x3ccb72[_0x5551('0x42')]['change'](()=>{_0x4fde06['markBlockFormat'](_0xddc9d0,{'commandName':_0x5551('0x1c'),'commandParams':[_0xd2be47]});});}),_0x3ccb72[_0x5551('0x1b')][_0x5551('0x58')]('ImageTextAlternativeEditing')&&_0x4fde06['enableCommand']('imageTextAlternative',(_0xd98864,_0x568854)=>{const _0x2c216d=_0xb48b6a['getClosestSelectedImageElement'](_0x3ccb72[_0x5551('0x42')][_0x5551('0x4f')]['selection']);(_0x2c216d['hasAttribute']('alt')?_0x2c216d['getAttribute'](_0x5551('0x3d')):'')!=_0x568854[_0x5551('0x51')]&&_0x3ccb72['model'][_0x5551('0x5a')](()=>{_0x4fde06[_0x5551('0x31')](_0x2c216d,{'commandName':_0x5551('0x13'),'commandParams':[_0x568854]});});}),_0x4fde06[_0x5551('0x2')][_0x5551('0x64')](_0x2d494b=>{if(!!_0x53be06[_0x5551('0x4e')](({type:_0x21e0f0,subType:_0x41d562})=>_0x2d494b[_0x5551('0x34')]==_0x21e0f0&&_0x2d494b[_0x5551('0x39')]==_0x41d562))return _0x2d494b['previous']?{}:void 0x0;}),_0x4fde06[_0x5551('0x2')][_0x5551('0x64')](_0x1e4196=>{if(_0x5551('0x60')==_0x1e4196[_0x5551('0x34')]||_0x5551('0x24')==_0x1e4196[_0x5551('0x34')]){const _0x1d5a61=_0x1e4196[_0x5551('0x17')]();if(_0x1d5a61&&_0x1d5a61['is'](_0x5551('0x5'),_0x5551('0x6')))return{'type':_0x5551('0x60')==_0x1e4196[_0x5551('0x34')]?'addObject':_0x5551('0x4c'),'element':_0x1d5a61,'quantity':0x1};}}),_0x4fde06['_descriptionFactory']['registerDescriptionCallback'](_0x15f6f2=>_0x5551('0x2c')==_0x15f6f2['type']&&_0x5551('0x6c')==_0x15f6f2[_0x5551('0x39')]?{'type':_0x5551('0x4a'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x5551('0x2c')==_0x15f6f2['type']&&'convertBlockImageToInline'==_0x15f6f2['subType']?{'type':_0x5551('0x4a'),'content':_0x5551('0x1a')}:void 0x0),_0x4fde06[_0x5551('0x2')][_0x5551('0x64')](_0x4598a4=>{const {data:_0x4babdf}=_0x4598a4;if(_0x4babdf){if('imageStyle'==_0x4babdf['commandName']){const _0x42e114=_0x4babdf['commandParams'][0x0]['value'];return _0xbf10eb(_0x5551('0x2b')===_0x42e114?_0x1ab700(_0x28f616,_0x5551('0xf')):_0x3d7432[_0x42e114]||_0x42e114);}if(_0x5551('0x13')==_0x4babdf[_0x5551('0x2e')]){const _0xae5dca=_0x4babdf['commandParams'][0x0][_0x5551('0x51')];return _0xae5dca?{'type':_0x5551('0x4a'),'content':_0x1ab700(_0x28f616,_0x5551('0x2a'),'\x22'+_0xae5dca+'\x22')}:{'type':_0x5551('0x4a'),'content':_0x1ab700(_0x28f616,_0x5551('0x50'))};}if('resizeImage'==_0x4babdf[_0x5551('0x2e')]){const _0x21d7aa=_0x4babdf[_0x5551('0x40')][0x0][_0x5551('0x38')];return _0x21d7aa?{'type':_0x5551('0x4a'),'content':_0x1ab700(_0x28f616,'*Set\x20image\x20width:*\x20%0',_0x21d7aa)}:{'type':_0x5551('0x4a'),'content':_0x1ab700(_0x28f616,_0x5551('0x66'))};}}function _0xbf10eb(_0x238f25){return{'type':_0x5551('0x4a'),'content':_0x1ab700(_0x28f616,_0x5551('0x47'),_0x238f25)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57c7=['editor','markBlockFormat','get','formatBlock','has','plugins','getSuggestions','handleReplaceImageCommand','selection','registerCustomCallback','replaceImageSource','enableCommand','_suggestionFactory','format','src','author','accept','commandParams','discard','handleSuggestionDescription','subType','locale','Users','model','source','TrackChangesEditing','getContainedElement','_descriptionFactory','change','*Format:*\x20replace\x20image\x20URL','registerDescriptionCallback'];(function(_0x574021,_0x57c7dc){const _0x8cc3aa=function(_0xdf3216){while(--_0xdf3216){_0x574021['push'](_0x574021['shift']());}};_0x8cc3aa(++_0x57c7dc);}(_0x57c7,0x1d2));const _0x8cc3=function(_0x574021,_0x57c7dc){_0x574021=_0x574021-0x0;let _0x8cc3aa=_0x57c7[_0x574021];return _0x8cc3aa;};import{Plugin as _0x14ede6}from'ckeditor5/src/core';import{getTranslation as _0x56fbef}from'../utils/common-translations';export default class Y extends _0x14ede6{['afterInit'](){if(!this[_0x8cc3('0x1e')][_0x8cc3('0x4')][_0x8cc3('0x3')]('ImageEditing'))return;const _0x1d85ce=this['editor'][_0x8cc3('0x4')][_0x8cc3('0x1')](_0x8cc3('0x18'));_0x1d85ce[_0x8cc3('0xa')](_0x8cc3('0x9'),(_0x19881f,_0x101346)=>this[_0x8cc3('0x6')](_0x19881f,_0x101346)),_0x1d85ce[_0x8cc3('0xb')][_0x8cc3('0x8')]('formatBlock',_0x8cc3('0x9'),_0x8cc3('0xf'),_0x1d85ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x8cc3('0x11'))),_0x1d85ce[_0x8cc3('0xb')][_0x8cc3('0x8')](_0x8cc3('0x2'),_0x8cc3('0x9'),_0x8cc3('0x11'),_0x1d85ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x8cc3('0xf'))),_0x1d85ce[_0x8cc3('0x1a')][_0x8cc3('0x1d')](_0xf8d575=>this[_0x8cc3('0x12')](_0xf8d575));}[_0x8cc3('0x6')](_0x4ad05e,_0x54af90){const _0xa2139e=this['editor']['plugins'][_0x8cc3('0x1')](_0x8cc3('0x18')),_0x2fd928=this[_0x8cc3('0x1e')][_0x8cc3('0x16')]['document'][_0x8cc3('0x7')]['getSelectedElement']();this[_0x8cc3('0x1e')][_0x8cc3('0x16')][_0x8cc3('0x1b')](()=>{let _0x9fa011=_0x2fd928['getAttribute'](_0x8cc3('0xd'));const _0x3d3c21=this['editor'][_0x8cc3('0x4')][_0x8cc3('0x1')](_0x8cc3('0x15'))['me'];for(const _0x4d70b6 of _0xa2139e[_0x8cc3('0x5')]({'skipNotAttached':!0x0})){const _0x277da3=_0x4d70b6[_0x8cc3('0x19')]();if(_0x8cc3('0x9')===_0x4d70b6[_0x8cc3('0x13')]&&_0x277da3===_0x2fd928){_0x4d70b6[_0x8cc3('0xe')]!==_0x3d3c21&&_0x4d70b6[_0x8cc3('0x11')](),_0x9fa011=_0x4d70b6['data'][_0x8cc3('0x10')][0x0][_0x8cc3('0x17')];break;}}_0x4ad05e(_0x54af90),_0xa2139e[_0x8cc3('0x0')](_0x2fd928,{'commandName':_0x8cc3('0x9'),'commandParams':[{'source':_0x9fa011}]},[],_0x8cc3('0x9'));});}[_0x8cc3('0x12')](_0x59113c){const {data:_0x39d370}=_0x59113c;if(_0x39d370&&'replaceImageSource'===_0x39d370['commandName']){const _0x40ffa6=_0x8cc3('0x1c');return{'type':_0x8cc3('0xc'),'content':_0x56fbef(this['editor'][_0x8cc3('0x14')],_0x40ffa6)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1480=['afterInit','_setSuggestionData','_trackChangesExecuted','TrackChangesEditing','get','editor','forEach','dataInsert','value','_handleImportedData','_trackChangesValueDuringImport','track_changes','commands','importWord','listenTo','enableCommand','Users','execute','trackChanges','high','plugins'];(function(_0x4b1a05,_0x148071){const _0x4bd7e0=function(_0x42acaf){while(--_0x42acaf){_0x4b1a05['push'](_0x4b1a05['shift']());}};_0x4bd7e0(++_0x148071);}(_0x1480,0x19f));const _0x4bd7=function(_0x4b1a05,_0x148071){_0x4b1a05=_0x4b1a05-0x0;let _0x4bd7e0=_0x1480[_0x4b1a05];return _0x4bd7e0;};import{Plugin as _0x1ce0d1}from'ckeditor5/src/core';export default class Z extends _0x1ce0d1{constructor(_0x2bf7f5){super(_0x2bf7f5),this[_0x4bd7('0xf')]=!0x1,this[_0x4bd7('0x7')]=!0x1;}[_0x4bd7('0x5')](){const _0x16b2f9=this['editor'],_0x24754a=_0x16b2f9[_0x4bd7('0x11')][_0x4bd7('0x9')](_0x4bd7('0x12')),_0x14f090=_0x16b2f9[_0x4bd7('0x11')]['get'](_0x4bd7('0x2'));_0x24754a&&(_0x24754a['on'](_0x4bd7('0x1'),(_0x248a6f,[,_0x29d3ce])=>{this[_0x4bd7('0xf')]=_0x14f090['value'],_0x29d3ce['collaboration_features'][_0x4bd7('0x10')]=!this['_trackChangesValueDuringImport'];},{'priority':_0x4bd7('0x3')}),this[_0x4bd7('0x13')](_0x24754a,_0x4bd7('0xc'),this[_0x4bd7('0xe')]['bind'](this)),this[_0x4bd7('0x13')](_0x24754a,_0x4bd7('0xc'),()=>{this[_0x4bd7('0x7')]&&(_0x14f090[_0x4bd7('0x1')](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x16b2f9[_0x4bd7('0x4')][_0x4bd7('0x9')](_0x4bd7('0x8'))[_0x4bd7('0x14')](_0x4bd7('0x12')));}[_0x4bd7('0xe')](_0x50311e,_0x2784d9){const {suggestions:_0x37fa32}=_0x2784d9,_0x32eaa7=this[_0x4bd7('0xa')][_0x4bd7('0x11')][_0x4bd7('0x9')](_0x4bd7('0x2')),_0x4508b1=_0x32eaa7[_0x4bd7('0xd')];this[_0x4bd7('0xf')]!==_0x4508b1&&(_0x32eaa7[_0x4bd7('0x1')](),this[_0x4bd7('0x7')]=!0x0),_0x37fa32&&_0x37fa32[_0x4bd7('0xb')](({id:_0x5281fc,type:_0x1537d1,author:_0x7b956d,created_at:_0x45bec9})=>{const _0x89a708={'id':_0x5281fc,'type':_0x1537d1,'authorId':this[_0x4bd7('0xa')]['plugins'][_0x4bd7('0x9')](_0x4bd7('0x0'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x7b956d,'createdAt':_0x45bec9?new Date(_0x45bec9):new Date(),'source':_0x4bd7('0x12')}}};this[_0x4bd7('0xa')]['plugins'][_0x4bd7('0x9')]('TrackChangesEditing')[_0x4bd7('0x6')](_0x89a708);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35a0=['from','getItemLabel','outdentBlock','afterInit','_descriptionFactory','*Outdent:*\x20%0','schema','change','commandName','filter','enableCommand','locale','blockIndent','indentBlock','*Indent:*\x20%0','registerDescriptionCallback','editor','plugins','getItems','format','model','get','IndentBlock','has','selection','getSelectedBlocks'];(function(_0x278fb3,_0x35a055){const _0x2992d4=function(_0x5823db){while(--_0x5823db){_0x278fb3['push'](_0x278fb3['shift']());}};_0x2992d4(++_0x35a055);}(_0x35a0,0x10a));const _0x2992=function(_0x278fb3,_0x35a055){_0x278fb3=_0x278fb3-0x0;let _0x2992d4=_0x35a0[_0x278fb3];return _0x2992d4;};import{Plugin as _0x56c1be}from'ckeditor5/src/core';import{getTranslation as _0x383c29}from'../utils/common-translations';export default class tt extends _0x56c1be{[_0x2992('0x17')](){const _0x2458e3=this[_0x2992('0xa')],_0x1ce986=_0x2458e3['plugins'][_0x2992('0xf')]('TrackChangesEditing');_0x2458e3[_0x2992('0xb')][_0x2992('0x11')]('IndentEditing')&&(_0x1ce986[_0x2992('0x4')]('indent'),_0x1ce986[_0x2992('0x4')]('outdent'));const _0x492607=_0x2458e3[_0x2992('0x5')];if(_0x2458e3[_0x2992('0xb')][_0x2992('0x11')](_0x2992('0x10'))){for(const _0x25db7a of[_0x2992('0x7'),_0x2992('0x16')])_0x1ce986[_0x2992('0x4')](_0x25db7a,()=>{const _0x55e3cd=Array[_0x2992('0x14')](this[_0x2992('0xa')][_0x2992('0xe')]['document'][_0x2992('0x12')][_0x2992('0x13')]())[_0x2992('0x3')](_0x42d519=>this[_0x2992('0xa')][_0x2992('0xe')][_0x2992('0x0')]['checkAttribute'](_0x42d519,_0x2992('0x6')));_0x2458e3[_0x2992('0xe')][_0x2992('0x1')](()=>{for(const _0x1a473b of _0x55e3cd)_0x1ce986['markBlockFormat'](_0x1a473b,{'commandName':_0x25db7a,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x1ce986['_descriptionFactory'][_0x2992('0x9')](_0x549d1d=>{const {data:_0x348516}=_0x549d1d;if(!_0x348516)return;if(_0x2992('0x7')!=_0x348516['commandName']&&'outdentBlock'!=_0x348516[_0x2992('0x2')])return;const _0x55832e=_0x549d1d[_0x2992('0xc')]()[0x0],_0xe56fdd=_0x1ce986[_0x2992('0x18')][_0x2992('0x15')](_0x55832e);return'indentBlock'==_0x348516['commandName']?{'type':_0x2992('0xd'),'content':_0x383c29(_0x492607,_0x2992('0x8'),_0xe56fdd)}:_0x2992('0x16')==_0x348516[_0x2992('0x2')]?{'type':_0x2992('0xd'),'content':_0x383c29(_0x492607,_0x2992('0x19'),_0xe56fdd)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5958=['plugins','enableCommand','get','editor','requires'];(function(_0x447ba3,_0x5958ee){var _0x561468=function(_0x31f5f7){while(--_0x31f5f7){_0x447ba3['push'](_0x447ba3['shift']());}};_0x561468(++_0x5958ee);}(_0x5958,0x183));var _0x5614=function(_0x447ba3,_0x5958ee){_0x447ba3=_0x447ba3-0x0;var _0x561468=_0x5958[_0x447ba3];return _0x561468;};import{Plugin as _0x28e977}from'ckeditor5/src/core';import{Input as _0x173a0c}from'ckeditor5/src/typing';export default class it extends _0x28e977{static get[_0x5614('0x2')](){return[_0x173a0c];}['init'](){this[_0x5614('0x1')][_0x5614('0x3')][_0x5614('0x0')]('TrackChangesEditing')[_0x5614('0x4')]('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1457=['get','*Set\x20link:*\x20%0','getFirstRange','getAttribute','getRanges','locale','isCollapsed','enableCommand','change','document','selection','linkHref','editor','from','format','registerDescriptionCallback','markInlineFormat','link','_descriptionFactory','*Remove\x20link*','unlink','hasAttribute','plugins','LinkEditing','model','commandName'];(function(_0x20073b,_0x145780){const _0x23c14e=function(_0x2c4391){while(--_0x2c4391){_0x20073b['push'](_0x20073b['shift']());}};_0x23c14e(++_0x145780);}(_0x1457,0xea));const _0x23c1=function(_0x20073b,_0x145780){_0x20073b=_0x20073b-0x0;let _0x23c14e=_0x1457[_0x20073b];return _0x23c14e;};import{Plugin as _0x4944e7}from'ckeditor5/src/core';import{findAttributeRange as _0x5e6e4f}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x2b02fc}from'./utils';import{getTranslation as _0x350814}from'../utils/common-translations';export default class et extends _0x4944e7{['afterInit'](){const _0x46be43=this[_0x23c1('0xc')];if(!_0x46be43[_0x23c1('0x16')]['has'](_0x23c1('0x17')))return;const _0x319b78=_0x46be43['plugins'][_0x23c1('0x0')]('TrackChangesEditing');_0x319b78[_0x23c1('0x7')]('link',(_0x326ec0,_0x22cdf0)=>{const _0x2c6bd6=_0x46be43[_0x23c1('0x18')][_0x23c1('0x9')]['selection'];let _0x451c47=[];if(_0x2c6bd6[_0x23c1('0x6')]){if(!_0x2c6bd6[_0x23c1('0x15')](_0x23c1('0xb')))return void _0x326ec0(_0x22cdf0);{const _0x4417b0=_0x5e6e4f(_0x2c6bd6['getFirstPosition'](),'linkHref',_0x2c6bd6['getAttribute'](_0x23c1('0xb')),_0x46be43[_0x23c1('0x18')]);_0x451c47=[_0x4417b0];}}else _0x451c47=Array[_0x23c1('0xd')](_0x2c6bd6[_0x23c1('0x4')]());_0x46be43['model'][_0x23c1('0x8')](()=>{for(const _0x714428 of _0x451c47)_0x319b78[_0x23c1('0x10')](_0x714428,{'commandName':_0x23c1('0x11'),'commandParams':[_0x22cdf0]});});}),_0x319b78[_0x23c1('0x7')](_0x23c1('0x14'),()=>{const _0x1b6ef1=this[_0x23c1('0xc')][_0x23c1('0x18')],_0x51e57d=_0x1b6ef1[_0x23c1('0x9')][_0x23c1('0xa')];_0x1b6ef1[_0x23c1('0x8')](()=>{let _0x1d3070=[];if(_0x51e57d[_0x23c1('0x6')])_0x1d3070=[_0x5e6e4f(_0x51e57d['getFirstPosition'](),_0x23c1('0xb'),_0x51e57d[_0x23c1('0x3')]('linkHref'),_0x46be43[_0x23c1('0x18')])];else _0x1d3070=_0x2b02fc(_0x23c1('0xb'),_0x51e57d[_0x23c1('0x2')](),_0x46be43[_0x23c1('0x18')]);for(const _0xaa02 of _0x1d3070)_0x319b78[_0x23c1('0x10')](_0xaa02,{'commandName':_0x23c1('0x14'),'commandParams':[]});});}),_0x319b78[_0x23c1('0x12')][_0x23c1('0xf')](_0x4fcd3e=>{const {data:_0x461234}=_0x4fcd3e,_0x6368ee=_0x46be43[_0x23c1('0x5')];if(_0x461234){if(_0x23c1('0x11')==_0x461234[_0x23c1('0x19')]){const _0x1b11c3=_0x461234['commandParams'][0x0];return{'type':_0x23c1('0xe'),'content':_0x350814(_0x6368ee,_0x23c1('0x1'),'\x22'+_0x1b11c3+'\x22')};}return _0x23c1('0x14')==_0x461234['commandName']?{'type':'format','content':_0x350814(_0x6368ee,_0x23c1('0x13'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x597a=['afterInit','selection','before','getAttribute','todoListChecked','name','from','commands','_descriptionFactory','markBlockFormat','numberedList','todoList','filter','*Change\x20to:*\x20%0','createPositionAt','blockName','value','commandParams','ELEMENT_LIST_ITEM','todo','*Outdent:*\x20%0','add','slice','bulleted','checkTodoList','document','bulletedList','isObject','createRange','plugins','outdentList','paragraph','schema','registerElementLabel','commandName','*Uncheck\x20item*','parent','end','ELEMENT_BULLETED_LIST','indentList','listItem','previousSibling','enableCommand','getSelectedBlocks','findIndex','model','length','List','*Indent:*\x20%0','has','listIndent','numbered','registerDescriptionCallback','element','editor','ListEditing','nextSibling','push','*Check\x20item*','execute','TrackChangesEditing','listType','ELEMENT_TODO_LIST','change','get','format'];(function(_0x1b81ad,_0x597aeb){const _0x1447f2=function(_0x14b234){while(--_0x14b234){_0x1b81ad['push'](_0x1b81ad['shift']());}};_0x1447f2(++_0x597aeb);}(_0x597a,0xd7));const _0x1447=function(_0x1b81ad,_0x597aeb){_0x1b81ad=_0x1b81ad-0x0;let _0x1447f2=_0x597a[_0x1b81ad];return _0x1447f2;};import{Plugin as _0x4ece22}from'ckeditor5/src/core';import{getTranslation as _0x21b125}from'../utils/common-translations';export default class nt extends _0x4ece22{[_0x1447('0x31')](){const _0x1242c5=this[_0x1447('0x25')],_0x51c330=_0x1242c5['locale'];if(!_0x1242c5[_0x1447('0xc')]['has'](_0x1447('0x26')))return;const _0x33b4ec=_0x1242c5[_0x1447('0xc')][_0x1447('0x2f')](_0x1447('0x2b')),_0x5c2ed9=_0x1242c5[_0x1447('0xc')][_0x1447('0x20')]('TodoListEditing');function _0x2517c6(_0x3cac22){return()=>{const _0x2f3e1d=_0x1242c5[_0x1447('0x1c')][_0x1447('0x8')][_0x1447('0x32')],_0x5c4e8c=_0x1242c5['commands'][_0x1447('0x2f')](_0x3cac22);if(_0x5c4e8c[_0x1447('0x41')])return void _0x1242c5[_0x1447('0x2a')](_0x1447('0xe'),{});const _0x2d2061=_0x3cac22['slice'](0x0,-0x4),_0x17c5af=function(_0x4bb75e,_0x1b7ad0,_0x2cddd9){let _0x206ca5=Array[_0x1447('0x37')](_0x4bb75e)['filter'](_0x187e2e=>function(_0x39a639,_0x3c8d77){return _0x3c8d77['checkChild'](_0x39a639[_0x1447('0x13')],_0x1447('0x17'))&&!_0x3c8d77[_0x1447('0xa')](_0x39a639);}(_0x187e2e,_0x2cddd9));_0x206ca5=_0x206ca5[_0x1447('0x3d')](_0xe2792d=>!_0xe2792d['is'](_0x1447('0x24'),'listItem')||_0xe2792d[_0x1447('0x34')](_0x1447('0x2c'))!=_0x1b7ad0);const _0x2ad7b=new Set();for(const _0x2c5510 of _0x206ca5)_0x2c5510['is'](_0x1447('0x24'),_0x1447('0x17'))?_0x2ad7b[_0x1447('0x4')](ne(_0x2c5510)):_0x2ad7b[_0x1447('0x4')](_0x2c5510);return Array['from'](_0x2ad7b);}(_0x2f3e1d[_0x1447('0x1a')](),_0x2d2061,_0x1242c5['model'][_0x1447('0xf')]);_0x1242c5['model']['change'](()=>{for(const _0x467866 of _0x17c5af)_0x33b4ec[_0x1447('0x3a')](_0x467866,{'commandName':_0x3cac22,'commandParams':[{'forceValue':!_0x5c4e8c['value']}],'formatGroupId':_0x1447('0x40')},oe(_0x467866));});};}function _0x5e3ab9(_0x18024d){return()=>{const _0x32cdae=function(_0x1e3a12){let _0x1726ad=Array[_0x1447('0x37')](_0x1e3a12);const _0x4dad89=_0x1726ad[_0x1447('0x1b')](_0x32a389=>_0x1447('0x17')!=_0x32a389[_0x1447('0x36')]);return _0x4dad89>-0x1&&(_0x1726ad=_0x1726ad[_0x1447('0x5')](0x0,_0x4dad89)),_0x1726ad;}(_0x1242c5[_0x1447('0x1c')][_0x1447('0x8')][_0x1447('0x32')][_0x1447('0x1a')]()),_0x1a9413=_0x1242c5['model'][_0x1447('0xb')](_0x1242c5[_0x1447('0x1c')][_0x1447('0x3f')](_0x32cdae[0x0],_0x1447('0x33')),_0x1242c5['model'][_0x1447('0x3f')](_0x32cdae[_0x32cdae[_0x1447('0x1d')]-0x1],_0x1447('0x14')));_0x1242c5['model'][_0x1447('0x2e')](()=>{_0x33b4ec[_0x1447('0x3a')](_0x1a9413,{'commandName':_0x18024d,'commandParams':[],'formatGroupId':_0x1447('0x21')},function(_0x92e344){const _0x3bb5f6=new Set();for(const _0x426de5 of _0x92e344){let _0x1f9bda=_0x426de5[_0x1447('0x27')];for(;_0x1f9bda&&_0x1f9bda[_0x1447('0x34')]('listIndent')>_0x426de5[_0x1447('0x34')](_0x1447('0x21'));)_0x3bb5f6[_0x1447('0x4')](_0x1f9bda),_0x1f9bda=_0x1f9bda[_0x1447('0x27')];}return Array[_0x1447('0x37')](_0x3bb5f6);}(_0x32cdae));});};}_0x33b4ec[_0x1447('0x19')](_0x1447('0x3b'),_0x2517c6(_0x1447('0x3b'))),_0x33b4ec[_0x1447('0x19')]('bulletedList',_0x2517c6(_0x1447('0x9'))),_0x5c2ed9&&_0x33b4ec['enableCommand'](_0x1447('0x3c'),_0x2517c6(_0x1447('0x3c'))),_0x33b4ec[_0x1447('0x19')](_0x1447('0x16'),_0x5e3ab9(_0x1447('0x16'))),_0x33b4ec[_0x1447('0x19')](_0x1447('0xd'),_0x5e3ab9(_0x1447('0xd'))),_0x5c2ed9&&_0x33b4ec[_0x1447('0x19')](_0x1447('0x7'),()=>{const _0x55f116=_0x1242c5[_0x1447('0x38')][_0x1447('0x2f')]('checkTodoList'),_0x22b22b=Array[_0x1447('0x37')](_0x55f116['_selectedElements']);_0x22b22b[_0x1447('0x3d')](_0x429aa4=>_0x429aa4[_0x1447('0x34')](_0x1447('0x35'))!=_0x55f116[_0x1447('0x41')]),_0x1242c5['model']['change'](()=>{for(const _0x1f497e of _0x22b22b)_0x33b4ec[_0x1447('0x3a')](_0x1f497e,{'commandName':_0x1447('0x7'),'commandParams':[{'forceValue':!_0x55f116[_0x1447('0x41')]}]});});}),_0x33b4ec['_descriptionFactory'][_0x1447('0x10')](_0x1447('0x17'),_0x22e51c=>_0x21b125(_0x51c330,_0x1447('0x1'),_0x22e51c)),_0x33b4ec[_0x1447('0x39')][_0x1447('0x23')](_0x3408a8=>{const {data:_0x58d9cc}=_0x3408a8;if(_0x58d9cc){if(_0x1447('0x3b')==_0x58d9cc[_0x1447('0x11')]||'bulletedList'==_0x58d9cc[_0x1447('0x11')]||_0x1447('0x3c')==_0x58d9cc[_0x1447('0x11')])switch(_0x58d9cc[_0x1447('0x11')]['replace'](_0x1447('0x1e'),'')){case _0x1447('0x6'):return _0x3cae9e(_0x21b125(_0x51c330,_0x1447('0x15')));case _0x1447('0x22'):return _0x3cae9e(_0x21b125(_0x51c330,'ELEMENT_NUMBERED_LIST'));case _0x1447('0x2'):return _0x3cae9e(_0x21b125(_0x51c330,_0x1447('0x2d')));}if('indentList'==_0x58d9cc[_0x1447('0x11')])return{'type':_0x1447('0x30'),'content':_0x21b125(_0x51c330,_0x1447('0x1f'),_0x21b125(_0x51c330,_0x1447('0x1')))};if('outdentList'==_0x58d9cc[_0x1447('0x11')])return{'type':_0x1447('0x30'),'content':_0x21b125(_0x51c330,_0x1447('0x3'),_0x21b125(_0x51c330,_0x1447('0x1')))};if('checkTodoList'==_0x58d9cc[_0x1447('0x11')])return _0x58d9cc[_0x1447('0x0')][0x0]['forceValue']?{'type':_0x1447('0x30'),'content':_0x21b125(_0x51c330,_0x1447('0x29'))}:{'type':_0x1447('0x30'),'content':_0x21b125(_0x51c330,_0x1447('0x12'))};}function _0x3cae9e(_0x5e6b46){return{'type':_0x1447('0x30'),'content':_0x21b125(_0x51c330,_0x1447('0x3e'),_0x5e6b46)};}});}}function ne(_0xe59b32){const _0x1df41d=_0xe59b32['getAttribute']('listIndent');if(0x0==_0x1df41d)return _0xe59b32;let _0x4b1e41=_0xe59b32;for(;_0xe59b32[_0x1447('0x18')]&&_0xe59b32[_0x1447('0x18')]['is']('element','listItem');){const _0xaf555e=_0xe59b32[_0x1447('0x18')][_0x1447('0x34')](_0x1447('0x21'));if(_0xaf555e==_0x1df41d)_0x4b1e41=_0xe59b32[_0x1447('0x18')];else{if(_0xaf555e<_0x1df41d)break;}_0xe59b32=_0xe59b32[_0x1447('0x18')];}return _0x4b1e41;}function oe(_0x10035e){const _0x5de8ee=[];if(_0x10035e['is'](_0x1447('0x24'),'listItem')&&_0x10035e[_0x1447('0x34')](_0x1447('0x21'))>0x0){let _0x5dd8f7=_0x10035e[_0x1447('0x27')];for(;_0x5dd8f7&&_0x1447('0x17')==_0x5dd8f7[_0x1447('0x36')]&&_0x5dd8f7[_0x1447('0x34')]('listIndent')==_0x10035e[_0x1447('0x34')](_0x1447('0x21'));)_0x5de8ee[_0x1447('0x28')](_0x5dd8f7),_0x5dd8f7=_0x5dd8f7[_0x1447('0x27')];}return _0x5de8ee;}
|