@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231105.0 → 0.0.0-nightly-20231107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1387=['*Reset\x20font\x20color*','markInlineFormat','fontSize','FontFamilyEditing','*Set\x20font\x20color:*\x20%0','selection','title','_enableCommand','FontBackgroundColorEditing','format','label','change','model','isCollapsed','value','*Set\x20font\x20family:*\x20%0','locale','fontBackgroundColor.colors','TrackChangesEditing','getRanges','from','*Reset\x20font\x20size*','commandName','commandParams','toLowerCase','trim','afterInit','config','find','get','fontSize.options','fontBackgroundColor','*Set\x20font\x20background\x20color:*\x20%0','editor','normalizeSizeOptions','plugins','*Set\x20font\x20size:*\x20%0','fontFamily','fontColor','_descriptionFactory','enableCommand','has'];(function(_0x1b6f94,_0x13876a){const _0x30be9b=function(_0x510db3){while(--_0x510db3){_0x1b6f94['push'](_0x1b6f94['shift']());}};_0x30be9b(++_0x13876a);}(_0x1387,0xd7));const _0x30be=function(_0x1b6f94,_0x13876a){_0x1b6f94=_0x1b6f94-0x0;let _0x30be9b=_0x1387[_0x1b6f94];return _0x30be9b;};import{Plugin as _0x3ba17b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1ea48f}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x3a62f6}from'./utils';import{getTranslation as _0x76811b}from'../utils/common-translations';const eo=[{'pluginName':'FontSizeEditing','commandName':_0x30be('0x27')},{'pluginName':_0x30be('0x28'),'commandName':_0x30be('0x20')},{'pluginName':'FontColorEditing','commandName':_0x30be('0x21')},{'pluginName':_0x30be('0x3'),'commandName':_0x30be('0x1a')}];export default class W extends _0x3ba17b{[_0x30be('0x15')](){const _0x41baf4=this[_0x30be('0x1c')][_0x30be('0xb')];for(const {pluginName:_0x22fa54,commandName:_0x152b2f}of eo)this['editor']['plugins'][_0x30be('0x24')](_0x22fa54)&&this[_0x30be('0x2')](_0x152b2f);this[_0x30be('0x1c')][_0x30be('0x1e')][_0x30be('0x18')](_0x30be('0xd'))[_0x30be('0x22')]['registerDescriptionCallback'](_0x38cc0a=>{const _0x41b2de=_0x41baf4['t'],{data:_0x3d14b6}=_0x38cc0a;if(null!=_0x3d14b6){if(_0x30be('0x27')==_0x3d14b6[_0x30be('0x11')]){const _0x24a70a=_0x3d14b6['commandParams'][0x0][_0x30be('0x9')];if(_0x24a70a){const _0xd56d7f=_0x41b2de(this[_0x30be('0x1c')][_0x30be('0x1e')][_0x30be('0x18')]('FontSize')[_0x30be('0x1d')](this[_0x30be('0x1c')][_0x30be('0x16')]['get'](_0x30be('0x19')))[_0x30be('0x17')](_0x519e7a=>_0x519e7a['model']==_0x24a70a)[_0x30be('0x1')])[_0x30be('0x13')]();return{'type':_0x30be('0x4'),'content':_0x76811b(_0x41baf4,_0x30be('0x1f'),_0xd56d7f)};}return{'type':_0x30be('0x4'),'content':_0x76811b(_0x41baf4,_0x30be('0x10'))};}if(_0x30be('0x20')==_0x3d14b6['commandName']){const _0x505f48=_0x3d14b6[_0x30be('0x12')][0x0][_0x30be('0x9')];return _0x505f48?{'type':_0x30be('0x4'),'content':_0x76811b(_0x41baf4,_0x30be('0xa'),_0x505f48)}:{'type':_0x30be('0x4'),'content':_0x76811b(_0x41baf4,'*Reset\x20font\x20family*')};}if(_0x30be('0x21')==_0x3d14b6['commandName']){const _0x28cc2d=_0x3d14b6[_0x30be('0x12')][0x0][_0x30be('0x9')];if(_0x28cc2d){const _0x36fa3b=_0x1ea48f(this[_0x30be('0x1c')][_0x30be('0x16')][_0x30be('0x18')]('fontColor.colors'))[_0x30be('0x17')](_0x17cfc5=>_0x17cfc5[_0x30be('0x7')]==_0x28cc2d);let _0x346bbd=_0x28cc2d,_0x59ddb3='';return _0x36fa3b&&(_0x346bbd=_0x36fa3b[_0x30be('0x5')],_0x59ddb3=_0x41b2de(_0x346bbd)[_0x30be('0x13')]()),{'type':_0x30be('0x4'),'content':_0x76811b(_0x41baf4,_0x30be('0x29'),_0x59ddb3)[_0x30be('0x14')](),'color':{'value':_0x28cc2d,'title':_0x59ddb3||_0x346bbd}};}return{'type':_0x30be('0x4'),'content':_0x76811b(_0x41baf4,_0x30be('0x25'))};}if('fontBackgroundColor'==_0x3d14b6[_0x30be('0x11')]){const _0x448f51=_0x3d14b6[_0x30be('0x12')][0x0][_0x30be('0x9')];if(_0x448f51){const _0x46a5e4=_0x1ea48f(this['editor'][_0x30be('0x16')]['get'](_0x30be('0xc')))[_0x30be('0x17')](_0x2643f7=>_0x2643f7['model']==_0x448f51);let _0x2dc362=_0x448f51,_0x2941b3='';return _0x46a5e4&&(_0x2dc362=_0x46a5e4[_0x30be('0x5')],_0x2941b3=_0x41b2de(_0x2dc362)[_0x30be('0x13')]()),{'type':'format','content':_0x76811b(_0x41baf4,_0x30be('0x1b'),_0x2941b3)['trim'](),'color':{'value':_0x448f51,'title':_0x2941b3||_0x2dc362}};}return{'type':'format','content':_0x76811b(_0x41baf4,'*Reset\x20font\x20background\x20color*')};}}});}[_0x30be('0x2')](_0x670f5e){const _0xb6eb49=this[_0x30be('0x1c')];_0xb6eb49[_0x30be('0x1e')]['get'](_0x30be('0xd'))[_0x30be('0x23')](_0x670f5e,(_0x4f22bc,_0x2833e1={})=>{const _0x4fea41=_0xb6eb49[_0x30be('0x7')]['document'][_0x30be('0x0')],_0x13f466=_0x2833e1['value'];_0x4fea41[_0x30be('0x8')]?_0x4f22bc(_0x2833e1):_0xb6eb49[_0x30be('0x7')][_0x30be('0x6')](()=>{const _0x49c6f7=Array[_0x30be('0xf')](_0x4fea41[_0x30be('0xe')]());for(const _0x1789c1 of _0x49c6f7){const _0x2912f6=_0x13f466?[_0x1789c1]:_0x3a62f6(_0x670f5e,_0x1789c1,_0xb6eb49[_0x30be('0x7')]);for(const _0x1971da of _0x2912f6)_0xb6eb49['plugins'][_0x30be('0x18')](_0x30be('0xd'))[_0x30be('0x26')](_0x1971da,{'commandName':_0x670f5e,'commandParams':[{'value':_0x13f466}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3048=['forward','isFormatting','document','commands','label','schema','find','*Set\x20format\x20to:*\x20%0','getAttributeProperties','editor','*Remove\x20all\x20formatting*','fontSize.options','getRanges','enableCommand','fontColor','charAt','format','fontSize','word','get','title','backward','selection','copyFormat','getFirstPosition','FontSize','commandParams','boolean','getItems','keys','_descriptionFactory','createRange','afterInit','length','toLowerCase','slice','change','fontColor.colors','plugins','pasteFormat','model','config','TrackChangesEditing','join','push','isBlock','modifySelection','normalizeSizeOptions','markInlineFormat','fontBackgroundColor'];(function(_0x299017,_0x304808){const _0x581968=function(_0x21fb47){while(--_0x21fb47){_0x299017['push'](_0x299017['shift']());}};_0x581968(++_0x304808);}(_0x3048,0x6e));const _0x5819=function(_0x299017,_0x304808){_0x299017=_0x299017-0x0;let _0x581968=_0x3048[_0x299017];return _0x581968;};import{Plugin as _0x1841a0}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1cdd73}from'ckeditor5/src/ui';import{first as _0x611d93}from'ckeditor5/src/utils';import{getTranslation as _0x37853b}from'../utils/common-translations';export default class J extends _0x1841a0{[_0x5819('0x16')](){const _0x32b452=this[_0x5819('0x31')],_0x2a0d1e=_0x32b452[_0x5819('0x1e')],_0x104f2c=_0x2a0d1e[_0x5819('0x2a')][_0x5819('0xc')],_0x4c989d=_0x32b452[_0x5819('0x1c')]['get'](_0x5819('0x20')),_0x4707f1=_0x32b452['locale'],_0x48ad7f=_0x32b452[_0x5819('0x2b')][_0x5819('0x9')](_0x5819('0xd')),_0x4a77e8=_0x32b452[_0x5819('0x2b')][_0x5819('0x9')]('pasteFormat');_0x48ad7f&&_0x4a77e8&&(_0x4c989d[_0x5819('0x3')](_0x5819('0x1d'),(_0x9b5bca,_0x3e480c={})=>{const _0x4aa8c8=_0x3e480c;_0x2a0d1e[_0x5819('0x1a')](()=>{const _0x1b5ec6=Array['from'](_0x104f2c[_0x5819('0x2')]()),_0x3d3842=_0x104f2c['isCollapsed']?[io(_0x2a0d1e,_0x104f2c)]:_0x1b5ec6,_0x1dbd63=!!_0x611d93(function*(_0x40d2b0,_0x34050d){const _0x191e59=_0x4ba6f7=>!!_0x611d93(function*(_0x58cf20,_0x2642a2){for(const [_0x47c0de]of _0x58cf20['getAttributes']()){const _0x1d1726=_0x2642a2[_0x5819('0x30')](_0x47c0de);_0x1d1726&&_0x1d1726[_0x5819('0x29')]&&(yield _0x47c0de);}}(_0x4ba6f7,_0x34050d));for(const _0x3f1b39 of _0x40d2b0['getRanges']())for(const _0x465b25 of _0x3f1b39[_0x5819('0x12')]())!_0x34050d[_0x5819('0x23')](_0x465b25)&&_0x191e59(_0x465b25)&&(yield _0x465b25);for(const _0x549594 of _0x40d2b0['getSelectedBlocks']())_0x191e59(_0x549594)&&(yield _0x549594);_0x191e59(_0x40d2b0)&&(yield _0x40d2b0);}(_0x104f2c,_0x2a0d1e[_0x5819('0x2d')]));if(_0x1dbd63||0x0!==Object[_0x5819('0x13')](_0x4aa8c8)[_0x5819('0x17')])for(const _0x30cfc7 of _0x3d3842)_0x4c989d[_0x5819('0x26')](_0x30cfc7,{'commandName':_0x5819('0x1d'),'commandParams':[_0x4aa8c8]});});}),_0x4c989d[_0x5819('0x14')]['registerDescriptionCallback'](_0xfa86a1=>{const {data:_0x17b91b}=_0xfa86a1;if(_0x17b91b&&_0x5819('0x1d')===_0x17b91b['commandName']){const _0x1df59a=[],_0x26e824=_0x17b91b[_0x5819('0x10')][0x0];for(const [_0x20fb94,_0x284a20]of Object['entries'](_0x26e824))_0x1df59a[_0x5819('0x22')](so(_0x32b452,_0x20fb94,_0x284a20));return _0x1df59a[_0x5819('0x17')]?{'type':_0x5819('0x6'),'content':_0x37853b(_0x4707f1,_0x5819('0x2f'),_0x1df59a[_0x5819('0x21')](',\x20'))}:{'type':_0x5819('0x6'),'content':_0x37853b(_0x4707f1,_0x5819('0x0'))};}}),_0x32b452['plugins'][_0x5819('0x9')]('TrackChangesEditing')[_0x5819('0x3')](_0x5819('0xd')));}}function io(_0x28f7b5,_0x3f8a0c){const _0x29b349=_0x28f7b5['createSelection'](_0x3f8a0c);_0x28f7b5['modifySelection'](_0x29b349,{'unit':'word','direction':_0x5819('0xb')});const _0x3149d4=_0x29b349[_0x5819('0xe')]();_0x28f7b5[_0x5819('0x24')](_0x29b349,{'unit':_0x5819('0x8'),'direction':_0x5819('0x28')});const _0x6889d4=_0x29b349['getLastPosition']();return _0x28f7b5[_0x5819('0x15')](_0x3149d4,_0x6889d4);}function so(_0x2bfd4e,_0x1c4fa8,_0x2cf3d2){const _0x436b3e=_0x2bfd4e['locale']['t'],_0x230b2d=_0x1c4fa8['split'](/(?=[A-Z])/)[_0x5819('0x21')]('\x20'),_0x3c887a=_0x436b3e(_0x230b2d[_0x5819('0x5')](0x0)['toUpperCase']()+_0x230b2d[_0x5819('0x19')](0x1))[_0x5819('0x18')]();if(_0x5819('0x11')==typeof _0x2cf3d2)return _0x3c887a;if(_0x5819('0x4')===_0x1c4fa8||_0x5819('0x27')===_0x1c4fa8){const _0xc89217=_0x1cdd73(_0x2bfd4e[_0x5819('0x1f')][_0x5819('0x9')](_0x5819('0x1b')))['find'](_0xcbfe96=>_0xcbfe96[_0x5819('0x1e')]==_0x2cf3d2);return _0x3c887a+'\x20('+(_0xc89217?_0x436b3e(_0xc89217[_0x5819('0x2c')])['toLowerCase']():_0x2cf3d2)+')';}if(_0x5819('0x7')===_0x1c4fa8&&isNaN(parseFloat(_0x2cf3d2))){const _0xd25478=_0x2bfd4e[_0x5819('0x1c')]['get'](_0x5819('0xf'))[_0x5819('0x25')](_0x2bfd4e[_0x5819('0x1f')][_0x5819('0x9')](_0x5819('0x1')))[_0x5819('0x2e')](_0x111132=>_0x111132[_0x5819('0x1e')]==_0x2cf3d2);return _0x3c887a+'\x20('+(_0xd25478?_0x436b3e(_0xd25478[_0x5819('0xa')])[_0x5819('0x18')]():_0x2cf3d2)+')';}return _0x3c887a+'\x20('+_0x2cf3d2+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfc54=['name','format','find','schema','HeadingEditing','paragraph','parent','*Change\x20to:*\x20%0','registerElementLabel','commandParams','get','markBlockFormat','TrackChangesEditing','ELEMENT_HEADING_CUSTOM','editor','change','value','commandName','document','getSelectedBlocks','enableCommand','registerDescriptionCallback','locale','checkChild','_descriptionFactory','title','has','isObject','filter','model','ELEMENT_HEADING','heading','match','selection'];(function(_0x5807cd,_0xfc5467){const _0x39aac7=function(_0x5c9d5a){while(--_0x5c9d5a){_0x5807cd['push'](_0x5807cd['shift']());}};_0x39aac7(++_0xfc5467);}(_0xfc54,0x1d6));const _0x39aa=function(_0x5807cd,_0xfc5467){_0x5807cd=_0x5807cd-0x0;let _0x39aac7=_0xfc54[_0x5807cd];return _0x39aac7;};import{Plugin as _0xba6a05}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x28ecda}from'./utils';import{getTranslation as _0x444f02}from'../utils/common-translations';export default class K extends _0xba6a05{['afterInit'](){const _0x328568=this[_0x39aa('0x14')],_0x127398=_0x328568[_0x39aa('0x1c')],_0x35a77c=_0x328568['config'][_0x39aa('0x10')]('heading.options');if(!_0x328568['plugins'][_0x39aa('0x20')](_0x39aa('0xa')))return;const _0xbbe97b=_0x328568['plugins']['get'](_0x39aa('0x12'));_0xbbe97b[_0x39aa('0x1a')]('heading',(_0x2fcc05,_0x1ececf)=>{const _0x36bd56=_0x1ececf['value'],_0x5090b3=Array['from'](this['editor'][_0x39aa('0x1')][_0x39aa('0x18')][_0x39aa('0x5')][_0x39aa('0x19')]())[_0x39aa('0x0')](_0x524c24=>function(_0xfc4073,_0x5ec961,_0x1d1919){return _0x1d1919[_0x39aa('0x1d')](_0xfc4073[_0x39aa('0xc')],_0x5ec961)&&!_0x1d1919[_0x39aa('0x21')](_0xfc4073)&&_0xfc4073[_0x39aa('0x6')]!=_0x5ec961;}(_0x524c24,_0x36bd56,this[_0x39aa('0x14')][_0x39aa('0x1')][_0x39aa('0x9')]));_0x328568['model'][_0x39aa('0x15')](()=>{for(const _0x396d32 of _0x5090b3)_0xbbe97b[_0x39aa('0x11')](_0x396d32,{'commandName':_0x39aa('0x3'),'commandParams':[_0x1ececf],'formatGroupId':'blockName'},_0x28ecda(_0x396d32));});});for(const _0x12e322 of _0x35a77c)_0x39aa('0xb')!=_0x12e322[_0x39aa('0x1')]&&_0xbbe97b[_0x39aa('0x1e')][_0x39aa('0xe')](_0x12e322['model'],_0x2c1b16=>{const _0x16f86c=nn(_0x12e322['model']);return null!==_0x16f86c?_0x4d3df6(_0x2c1b16,_0x16f86c):_0x73541a(_0x2c1b16,_0x12e322[_0x39aa('0x1f')]);});function _0x4d3df6(_0x12f7a3,_0x1f0f2a){return _0x444f02(_0x127398,_0x39aa('0x2'),[_0x12f7a3,_0x1f0f2a]);}function _0x73541a(_0x252a9b,_0x440a8c){return _0x444f02(_0x127398,_0x39aa('0x13'),[_0x252a9b,_0x440a8c]);}_0xbbe97b[_0x39aa('0x1e')][_0x39aa('0x1b')](_0x364522=>{const {type:_0x29c282,data:_0x71dce5}=_0x364522;if('formatBlock'==_0x29c282&&_0x71dce5&&_0x39aa('0x3')==_0x71dce5[_0x39aa('0x17')]){const _0x148129=_0x71dce5[_0x39aa('0xf')][0x0][_0x39aa('0x16')],_0x2a3ed8=nn(_0x148129);if(null!==_0x2a3ed8)return{'type':_0x39aa('0x7'),'content':_0x444f02(_0x127398,'*Change\x20to:*\x20%0',_0x4d3df6(0x1,_0x2a3ed8))};const _0x5a6d36=_0x35a77c[_0x39aa('0x8')](_0xe954=>_0xe954[_0x39aa('0x1')]===_0x148129)[_0x39aa('0x1f')];return{'type':_0x39aa('0x7'),'content':_0x444f02(_0x127398,_0x39aa('0xd'),_0x73541a(0x1,_0x5a6d36))};}});}}function nn(_0x124b0e){const _0x13e5fd=_0x124b0e[_0x39aa('0x4')](/^heading(\d+)$/);return _0x13e5fd?_0x13e5fd[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ffe=['registerDescriptionCallback','toLowerCase','_descriptionFactory','get','formatInline','push','editor','isCollapsed','highlight','createRange','plugins','FORMAT_HIGHLIGHT','getLastMatchingPosition','getRanges','enableCommand','config','*Remove\x20highlight*','highlight.options','TrackChangesEditing','format','color','*Set\x20highlight:*\x20%0','model','hasAttribute','backward','title','getAttribute','commandParams','document','item','selection','HighlightEditing','change'];(function(_0x145cf4,_0x3ffe67){const _0x254a3f=function(_0x45cb67){while(--_0x45cb67){_0x145cf4['push'](_0x145cf4['shift']());}};_0x254a3f(++_0x3ffe67);}(_0x3ffe,0xb9));const _0x254a=function(_0x145cf4,_0x3ffe67){_0x145cf4=_0x145cf4-0x0;let _0x254a3f=_0x3ffe[_0x145cf4];return _0x254a3f;};import{Plugin as _0x1bd2b3}from'ckeditor5/src/core';import{getTranslation as _0xac0e2c}from'../utils/common-translations';import{getRangesWithAttribute as _0x361f8e}from'./utils';export default class Q extends _0x1bd2b3{['afterInit'](){const _0x3353cc=this[_0x254a('0x13')];if(!_0x3353cc[_0x254a('0x17')]['has'](_0x254a('0xb')))return;const _0x97b218=_0x3353cc[_0x254a('0x17')][_0x254a('0x10')](_0x254a('0x1f'));_0x97b218[_0x254a('0x1b')]('highlight',(_0x4ee9b5,_0x4b99e4={})=>{const _0x2634eb=_0x3353cc['model'][_0x254a('0x8')][_0x254a('0xa')],_0x39f207=_0x2634eb[_0x254a('0x6')](_0x254a('0x15'));let _0x5f5a08=_0x4b99e4['value'],_0x47e293=[];if(_0x2634eb[_0x254a('0x14')]){const _0x4f52f3=_0x2634eb['getFirstPosition']();if(!_0x2634eb[_0x254a('0x3')](_0x254a('0x15')))return void _0x4ee9b5(_0x4b99e4);{const _0x3d81a1=_0x5417ef=>_0x5417ef[_0x254a('0x9')][_0x254a('0x6')]('highlight')===_0x39f207,_0x29b5ba=_0x4f52f3[_0x254a('0x19')](_0x3d81a1,{'direction':_0x254a('0x4')}),_0x5d28f2=_0x4f52f3['getLastMatchingPosition'](_0x3d81a1);_0x47e293=[_0x3353cc[_0x254a('0x2')][_0x254a('0x16')](_0x29b5ba,_0x5d28f2)],_0x5f5a08==_0x39f207&&(_0x5f5a08=null);}}else for(const _0x50c3ef of _0x2634eb[_0x254a('0x1a')]())_0x5f5a08?_0x47e293[_0x254a('0x12')](_0x50c3ef):_0x47e293['push'](..._0x361f8e(_0x254a('0x15'),_0x50c3ef,_0x3353cc[_0x254a('0x2')]));_0x3353cc['model'][_0x254a('0xc')](()=>{for(const _0x216a78 of _0x47e293)_0x97b218['markInlineFormat'](_0x216a78,{'commandName':_0x254a('0x15'),'commandParams':[{'value':_0x5f5a08}]});});});const _0x1c6352=_0x3353cc['locale'];_0x97b218[_0x254a('0xf')][_0x254a('0xd')](_0x6f4e5=>{const {type:_0x12e84a,data:_0x39bfcf}=_0x6f4e5;if(_0x254a('0x11')==_0x12e84a&&_0x39bfcf&&'highlight'==_0x39bfcf['commandName']){const _0xd25241=_0x1c6352['t'],_0x4f4951=_0x39bfcf[_0x254a('0x7')][0x0]['value'];if(_0x4f4951){const _0x3bda59=_0x3353cc[_0x254a('0x1c')][_0x254a('0x10')](_0x254a('0x1e'))['find'](_0xbb6655=>_0xbb6655[_0x254a('0x2')]==_0x4f4951),_0x1c20b6=_0xd25241(_0x3bda59[_0x254a('0x5')])[_0x254a('0xe')]();return{'type':_0x254a('0x20'),'content':_0xac0e2c(_0x1c6352,_0x254a('0x1'),_0x1c20b6),'color':{'value':_0x3bda59[_0x254a('0x0')],'title':_0x3bda59['title']}};}return{'type':_0x254a('0x20'),'content':_0xac0e2c(_0x1c6352,_0x254a('0x1d'),_0xac0e2c(_0x1c6352,_0x254a('0x18')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xaf18=['locale','createContainerElement','horizontalLine','insert','elementToStructure','plugins','div','get','_descriptionFactory','ELEMENT_HORIZONTAL_LINE','TrackChangesEditing','createPositionAt','has','enableCommand','high','dataDowncast','HorizontalLineEditing','editor','conversion'];(function(_0x49049f,_0xaf18e7){const _0x2a4dba=function(_0x5d7d4c){while(--_0x5d7d4c){_0x49049f['push'](_0x49049f['shift']());}};_0x2a4dba(++_0xaf18e7);}(_0xaf18,0x197));const _0x2a4d=function(_0x49049f,_0xaf18e7){_0x49049f=_0x49049f-0x0;let _0x2a4dba=_0xaf18[_0x49049f];return _0x2a4dba;};import{Plugin as _0x110d38}from'ckeditor5/src/core';import{getTranslation as _0x215bfe}from'../utils/common-translations';export default class V extends _0x110d38{['afterInit'](){const _0xb683fb=this[_0x2a4d('0x9')];if(!_0xb683fb['plugins'][_0x2a4d('0x4')](_0x2a4d('0x8')))return;_0xb683fb[_0x2a4d('0x10')]['get'](_0x2a4d('0x2'))[_0x2a4d('0x5')](_0x2a4d('0xd'));const _0x19cc1f=_0xb683fb[_0x2a4d('0x10')][_0x2a4d('0x12')](_0x2a4d('0x2')),_0x5a96e2=_0xb683fb[_0x2a4d('0xb')];_0x19cc1f[_0x2a4d('0x0')]['registerElementLabel']('horizontalLine',_0x472a76=>_0x215bfe(_0x5a96e2,_0x2a4d('0x1'),_0x472a76)),_0xb683fb[_0x2a4d('0xa')]['for'](_0x2a4d('0x7'))[_0x2a4d('0xf')]({'model':'horizontalLine','view':(_0xda699c,{writer:_0x528018,options:_0x1ef363})=>{if(!_0x1ef363['showSuggestionHighlights'])return null;const _0x28963d=_0x528018[_0x2a4d('0xc')](_0x2a4d('0x11')),_0x1b2253=_0x528018['createEmptyElement']('hr');return _0x528018['addClass']('ck-horizontal-line',_0x28963d),_0x528018[_0x2a4d('0xe')](_0x528018[_0x2a4d('0x3')](_0x28963d,0x0),_0x1b2253),_0x28963d;},'converterPriority':_0x2a4d('0x6')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f37=['locale','model','editor','get','selection','getAttribute','format','getSelectedElement','registerElementLabel','rawHtmlApi','plugins','commandName','has','value','view','htmlEmbed','markBlockFormat','rawHtml','editing','HtmlEmbed','_descriptionFactory','cancel','TrackChangesEditing','enableCommand','element','getCustomProperty','change','document'];(function(_0x14af1e,_0x3f370f){const _0x2d2918=function(_0x8b5de4){while(--_0x8b5de4){_0x14af1e['push'](_0x14af1e['shift']());}};_0x2d2918(++_0x3f370f);}(_0x3f37,0xba));const _0x2d29=function(_0x14af1e,_0x3f370f){_0x14af1e=_0x14af1e-0x0;let _0x2d2918=_0x3f37[_0x14af1e];return _0x2d2918;};import{Plugin as _0x591d5c}from'ckeditor5/src/core';import{getTranslation as _0x39347f}from'../utils/common-translations';export default class X extends _0x591d5c{['afterInit'](){const _0x2ac6a7=this[_0x2d29('0xc')];if(!_0x2ac6a7['plugins'][_0x2d29('0x16')](_0x2d29('0x1')))return;const _0x25846c=_0x2ac6a7[_0x2d29('0x14')][_0x2d29('0xd')]('TrackChangesEditing'),_0x80d58c=_0x2ac6a7[_0x2d29('0xa')],_0x26cdcd=_0x2ac6a7[_0x2d29('0x0')][_0x2d29('0x18')]['document'][_0x2d29('0xe')];_0x25846c[_0x2d29('0x2')][_0x2d29('0x12')](_0x2d29('0x1b'),_0x1949d1=>_0x39347f(_0x80d58c,'ELEMENT_HTML_EMBED',_0x1949d1)),_0x2ac6a7[_0x2d29('0x14')][_0x2d29('0xd')](_0x2d29('0x4'))[_0x2d29('0x5')](_0x2d29('0x19'),(_0x2a9830,_0x413c58)=>{const _0x1ff0b7=_0x2ac6a7[_0x2d29('0xb')],_0x4c5446=_0x1ff0b7[_0x2d29('0x9')]['selection'];_0x1ff0b7[_0x2d29('0x8')](()=>{const _0x1ac11b=function(_0x228a85){const _0x3a73e6=_0x228a85[_0x2d29('0x11')]();if(_0x3a73e6&&_0x3a73e6['is'](_0x2d29('0x6'),_0x2d29('0x1b')))return _0x228a85[_0x2d29('0x11')]();return null;}(_0x4c5446);if(!_0x1ac11b)return void _0x2a9830(null);const _0x4f2103=_0x1ac11b[_0x2d29('0xf')](_0x2d29('0x17'))||'';if(void 0x0===_0x413c58)return;if(_0x413c58===_0x4f2103)return;_0x25846c[_0x2d29('0x1a')](_0x1ac11b,{'commandName':'htmlEmbed','commandParams':[_0x413c58]}),_0x26cdcd[_0x2d29('0x11')]()[_0x2d29('0x7')](_0x2d29('0x13'))[_0x2d29('0x3')]();});}),_0x25846c[_0x2d29('0x2')]['registerDescriptionCallback'](_0x52ea2c=>{const {data:_0xebbd42}=_0x52ea2c;if(_0xebbd42&&_0x2d29('0x19')==_0xebbd42[_0x2d29('0x15')]){const _0x3c838d=_0x39347f(_0x80d58c,'ELEMENT_HTML_EMBED');return{'type':_0x2d29('0x10'),'content':_0x39347f(_0x80d58c,'*Change\x20%0\x20content*',_0x3c838d)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4fc1=['*Set\x20image\x20width:*\x20%0','Users','isEqual','registerPostFixer','ImageCaptionUtils','newRange','length','start','enableCommand','isInlineImage','subType','TrackChangesEditing','discard','ImageUploadEditing','findIndex','has','alt','getSuggestionCallback','isInContent','chain','join','registerCustomCallback','ImageEditing','*Set\x20image\x20text\x20alternative:*\x20%0','name','toPrevious','forceDefaultExecution','getFirstRange','FORMAT_SIDE_IMAGE','ImageStyleEditing','insertImage','markInsertion','accept','imageStylePreApply','change','find','getCaptionFromImageModelElement','document','caption','getContainedElement','addObject','normalizedStyles','registerDescriptionCallback','backward','model','editor','ImageResize','isBlockImage','selection','uploadImage','end','author','toggleImageCaption','imageTextAlternative','createRange','imageStylePostApply','nodeAfter','title','differ','_suggestionFactory','isCollapsed','ImageBlockEditing','suggestion','convertBlockImageToInline','value','refresh','forward','previous','getClosestSelectedImageElement','ELEMENT_IMAGE','format','*Reset\x20image\x20width*','*Remove\x20image\x20text\x20alternative*','newValue','_descriptionFactory','from','hasSuggestion','_splitMarkerName','isBefore','deletion','registerElementLabel','setImageNaturalSizeAttributes','ImageUtils','ELEMENT_INLINE_IMAGE','commands','Block\x20image\x20to\x20inline\x20image','createRangeOn','next','markInlineFormat','type','*Format:*\x20%0','getSuggestion','shouldConvertImageType','ImageTextAlternativeEditing','side','markBlockFormat','resizeImage','element','ImageInlineEditing','commandName','commandParams','ImageCaptionEditing','nodeBefore','filter','commandReversedParams','imageInline','detach','Inline\x20image\x20to\x20block\x20image','isOwn','discardSuggestion','imageCaption','imageTypeInline','imageTypeBlock','width','resizedWidth','getAttribute','getSuggestions','getNearestSelectionRange','fromPosition','imageBlock','plugins','schema','formatInline','insertion','removeObject','get','convertInlineImageToBlock','imageStyle','formatBlock'];(function(_0x5a64ec,_0x4fc17d){const _0x3905bf=function(_0xa3838d){while(--_0xa3838d){_0x5a64ec['push'](_0x5a64ec['shift']());}};_0x3905bf(++_0x4fc17d);}(_0x4fc1,0x1e0));const _0x3905=function(_0x5a64ec,_0x4fc17d){_0x5a64ec=_0x5a64ec-0x0;let _0x3905bf=_0x4fc1[_0x5a64ec];return _0x3905bf;};import{Plugin as _0x1acaaa}from'ckeditor5/src/core';import{LivePosition as _0x3c67e8}from'ckeditor5/src/engine';import{uid as _0x49dffa}from'ckeditor5/src/utils';import{getTranslation as _0x5888c9}from'../utils/common-translations';export default class Y extends _0x1acaaa{['afterInit'](){const _0x59ac83=this[_0x3905('0x51')];if(!_0x59ac83['plugins'][_0x3905('0x33')](_0x3905('0x3a')))return;const _0xef3f6f=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x2f')),_0x268378=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x76')),_0x2a90ed={},_0x16e9e3=_0x59ac83['locale'];if(_0xef3f6f[_0x3905('0x2c')](_0x3905('0x42')),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x74')](_0x3905('0x1a'),_0x56939e=>_0x5888c9(_0x16e9e3,_0x3905('0x69'),_0x56939e)),_0xef3f6f[_0x3905('0x6e')]['registerElementLabel'](_0x3905('0xc'),_0x3ec750=>_0x5888c9(_0x16e9e3,_0x3905('0x77'),_0x3ec750)),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x74')]('caption',()=>_0x5888c9(_0x16e9e3,'ELEMENT_CAPTION')),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x31'))&&_0xef3f6f[_0x3905('0x2c')](_0x3905('0x55')),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x61'))&&_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x5'))&&(_0xef3f6f[_0x3905('0x2c')](_0x3905('0x12'),(_0x801400,_0x2b7283)=>{const _0x397e80=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]);_0x59ac83[_0x3905('0x50')]['change'](()=>{_0xef3f6f[_0x3905('0x2')](_0x397e80,{'commandName':'imageTypeInline','commandParams':[_0x2b7283]},[],_0x3905('0x63'));});}),_0xef3f6f[_0x3905('0x2c')]('imageTypeBlock',(_0x462bdd,_0x2b7e5c)=>{_0x59ac83['model'][_0x3905('0x46')](_0x35f39e=>{let _0x1a66cf=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x40a04f=_0x35f39e[_0x3905('0x7a')](_0x1a66cf);const _0x7f54e5=_0x3c67e8['fromPosition'](_0x40a04f[_0x3905('0x2b')],_0x3905('0x3d')),_0x224e4b=_0x3c67e8[_0x3905('0x19')](_0x40a04f[_0x3905('0x56')],'toNext');_0xef3f6f[_0x3905('0x3e')](()=>_0x462bdd(_0x2b7e5c)),_0x1a66cf=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x40a04f=_0x35f39e[_0x3905('0x7a')](_0x1a66cf);const _0xd84e3a=_0x35f39e[_0x3905('0x5a')](_0x7f54e5,_0x224e4b);_0x7f54e5[_0x3905('0xd')](),_0x224e4b[_0x3905('0xd')](),_0xef3f6f[_0x3905('0x2')](_0x1a66cf,{'commandName':_0x3905('0x12'),'commandParams':[_0x2b7e5c]},[],_0x3905('0x21')),_0xd84e3a[_0x3905('0x2b')]['isBefore'](_0x40a04f[_0x3905('0x2b')])&&_0xef3f6f[_0x3905('0x43')](_0x35f39e[_0x3905('0x5a')](_0xd84e3a[_0x3905('0x2b')],_0x40a04f[_0x3905('0x2b')]),_0x3905('0x21')),_0x40a04f[_0x3905('0x56')][_0x3905('0x72')](_0xd84e3a[_0x3905('0x56')])&&_0xef3f6f[_0x3905('0x43')](_0x35f39e[_0x3905('0x5a')](_0x40a04f[_0x3905('0x56')],_0xd84e3a[_0x3905('0x56')]),'convertInlineImageToBlock');});}),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x21'),_0x3905('0x38'),()=>!0x1),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback']('formatBlock',_0x3905('0x21'),_0x3905('0x44'),()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x23'),'convertInlineImageToBlock',_0x3905('0x30'),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x35')]('formatBlock','',_0x3905('0x44'))),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback'](_0x3905('0x1e'),_0x3905('0x21'),_0x3905('0x38'),()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x1e'),'convertInlineImageToBlock',_0x3905('0x30'),([_0x1d9f36])=>{const _0x196a0b=_0xef3f6f[_0x3905('0x5f')]['getSuggestionCallback'](_0x3905('0x1e'),'',_0x3905('0x30'));let _0xd45fd5=_0x1d9f36[_0x3905('0x2b')],_0x2c4458=_0x1d9f36[_0x3905('0x56')];const _0x4469c2=_0x59ac83[_0x3905('0x50')][_0x3905('0x1c')][_0x3905('0x18')](_0xd45fd5,_0x3905('0x4f')),_0x2ac12e=_0x59ac83[_0x3905('0x50')][_0x3905('0x1c')]['getNearestSelectionRange'](_0x2c4458,_0x3905('0x66'));_0x4469c2[_0x3905('0x60')]&&(_0xd45fd5=_0x4469c2[_0x3905('0x2b')]),_0x2ac12e[_0x3905('0x60')]&&(_0x2c4458=_0x2ac12e[_0x3905('0x56')]),_0x196a0b([_0x59ac83[_0x3905('0x50')]['createRange'](_0xd45fd5,_0x2c4458)]);}),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),'convertInlineImageToBlock',_0x3905('0x37'),_0x36c311),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')]('insertion','convertInlineImageToBlock',_0x3905('0x37'),_0x36c311)),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x8'))&&(_0xef3f6f['enableCommand'](_0x3905('0x58'),(_0x376cea,_0x52f836)=>{const _0x527533=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x28'));let _0x53175d=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x19f0fb=_0x527533[_0x3905('0x48')](_0x53175d);_0x59ac83['model'][_0x3905('0x46')](()=>{if(_0x19f0fb)return void _0xef3f6f['markDeletion'](_0x59ac83[_0x3905('0x50')]['createRangeOn'](_0x19f0fb));const _0x46288a=_0x268378[_0x3905('0x53')](_0x53175d);_0x376cea(_0x52f836),_0x53175d=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]),_0x19f0fb=_0x527533[_0x3905('0x48')](_0x53175d),_0xef3f6f[_0x3905('0x43')](_0x59ac83['model'][_0x3905('0x7a')](_0x19f0fb),_0x46288a?null:'imageCaption');});}),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback'](_0x3905('0x1e'),_0x3905('0x11'),_0x3905('0x37'),_0x36c311)),_0x59ac83['plugins'][_0x3905('0x33')](_0x3905('0x41'))){_0xef3f6f[_0x3905('0x2c')](_0x3905('0x22'),(_0x3c6893,_0x352894)=>{const _0x105424=_0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x25'))['me'],_0x49351d=_0x59ac83[_0x3905('0x78')][_0x3905('0x20')](_0x3905('0x22'));let _0x5c6600=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')]['selection']),_0x41e078=_0x59ac83['model'][_0x3905('0x7a')](_0x5c6600),_0x2cbce1=_0x49351d['value'];if(_0x2cbce1==_0x352894['value'])return;const _0x21ba81={'commandName':'imageStyle','commandParams':[_0x352894],'formatGroupId':_0x49dffa()};_0x59ac83[_0x3905('0x50')]['change'](()=>{if(_0xef3f6f[_0x3905('0x17')]()['filter'](_0x2a893a=>_0x2a893a[_0x3905('0x36')]&&_0x105424==_0x2a893a[_0x3905('0x57')]&&(_0x3905('0x23')==_0x2a893a[_0x3905('0x7d')]||_0x3905('0x1d')==_0x2a893a[_0x3905('0x7d')])&&(_0x3905('0x45')==_0x2a893a[_0x3905('0x2e')]||_0x3905('0x5b')==_0x2a893a[_0x3905('0x2e')])&&_0x2a893a[_0x3905('0x3f')]()[_0x3905('0x26')](_0x41e078))['forEach'](_0xde8888=>_0xef3f6f['discardSuggestion'](_0xde8888['head'])),_0x5c6600=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')]['selection']),_0x41e078=_0x59ac83[_0x3905('0x50')][_0x3905('0x7a')](_0x5c6600),_0x49351d[_0x3905('0x65')](),_0x59ac83[_0x3905('0x78')]['get'](_0x3905('0x12'))['refresh'](),_0x59ac83[_0x3905('0x78')][_0x3905('0x20')](_0x3905('0x13'))['refresh'](),_0x2cbce1=_0x49351d[_0x3905('0x64')],_0x2cbce1!=_0x352894[_0x3905('0x64')])return _0x268378[_0x3905('0x2d')](_0x5c6600)&&_0x49351d[_0x3905('0x80')](_0x352894[_0x3905('0x64')],_0x5c6600)?(_0x3c6893({..._0x352894,'setImageSizes':!0x1}),_0x5c6600=_0x268378[_0x3905('0x68')](_0x59ac83['model'][_0x3905('0x49')]['selection']),void _0xef3f6f[_0x3905('0x2')](_0x5c6600,{..._0x21ba81,'commandReversedParams':[{'value':_0x2cbce1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x268378[_0x3905('0x53')](_0x5c6600)?_0xef3f6f[_0x3905('0x2')](_0x5c6600,_0x21ba81,[],_0x3905('0x5b')):_0xef3f6f[_0x3905('0x7c')](_0x41e078,_0x21ba81,'imageStylePostApply'));});});for(const _0xf9222d of _0x59ac83[_0x3905('0x1b')][_0x3905('0x20')](_0x3905('0x41'))[_0x3905('0x4d')])_0x2a90ed[_0xf9222d[_0x3905('0x3c')]]=_0xf9222d[_0x3905('0x5d')]['toLowerCase']();_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x45'),_0x3905('0x38'),()=>!0x1),_0xef3f6f['_suggestionFactory']['registerCustomCallback'](_0x3905('0x23'),'imageStylePostApply','join',()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x1d'),_0x3905('0x5b'),_0x3905('0x38'),()=>!0x1),_0xef3f6f['_suggestionFactory'][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x45'),_0x3905('0x44'),([_0x1d4547])=>{_0x268378[_0x3905('0x75')](_0x1d4547[_0x3905('0x4b')]());}),_0xef3f6f[_0x3905('0x5f')]['registerCustomCallback'](_0x3905('0x23'),'imageStylePreApply',_0x3905('0x30'),(_0x839558,_0x59cdd2)=>{_0xef3f6f[_0x3905('0x5f')]['getSuggestionCallback'](_0x3905('0x23'),'',_0x3905('0x44'))(_0x839558,{'commandName':_0x59cdd2[_0x3905('0x6')],'commandParams':_0x59cdd2[_0x3905('0xb')]});}),_0xef3f6f[_0x3905('0x5f')][_0x3905('0x39')](_0x3905('0x23'),_0x3905('0x45'),_0x3905('0x37'),_0x36c311);}const _0x5d5573=[{'type':_0x3905('0x23'),'subType':_0x3905('0x45')},{'type':_0x3905('0x1e'),'subType':_0x3905('0x11')},{'type':_0x3905('0x23'),'subType':'convertInlineImageToBlock'},{'type':_0x3905('0x1e'),'subType':_0x3905('0x21')}];function _0x55e172(_0xb997e5,_0x14bbcd){const _0x3afe00=_0x5d5573[_0x3905('0x32')](({type:_0x3b8c0f,subType:_0xd75512})=>_0xb997e5[_0x3905('0x7d')]==_0x3b8c0f&&_0xb997e5[_0x3905('0x2e')]==_0xd75512),_0x216da0=_0x5d5573[_0x3905('0x32')](({type:_0x12d34a,subType:_0x2045bd})=>_0x14bbcd[_0x3905('0x7d')]==_0x12d34a&&_0x14bbcd[_0x3905('0x2e')]==_0x2045bd);if(_0x3afe00<0x0||_0x216da0<0x0)return!0x1;const _0x5b8d73=_0xb997e5[_0x3905('0x3f')](),_0x3c94e0=_0x14bbcd[_0x3905('0x3f')]();if((0x0==_0x3afe00||0x1==_0x3afe00)&&0x2==_0x216da0&&_0x5b8d73['isIntersecting'](_0x3c94e0))return!0x0;if(0x2==_0x3afe00&&0x3==_0x216da0){const _0x487b25=_0xef3f6f['_findSuggestions'](_0x5b8d73,'insertion')[_0x3905('0xa')](({suggestion:_0x210f3a,meta:_0x2a52ee})=>_0x2a52ee[_0x3905('0xf')]&&'convertInlineImageToBlock'==_0x210f3a[_0x3905('0x2e')]);if(_0x487b25[_0x3905('0x2a')]>0x1&&_0x3c94e0[_0x3905('0x56')][_0x3905('0x26')](_0x5b8d73[_0x3905('0x2b')]))return!0x0;if(0x1==_0x487b25['length']&&(_0x5b8d73[_0x3905('0x2b')][_0x3905('0x26')](_0x3c94e0[_0x3905('0x56')])||_0x5b8d73[_0x3905('0x56')]['isEqual'](_0x3c94e0[_0x3905('0x2b')])))return!0x0;}if(0x3==_0x3afe00&&0x3==_0x216da0&&_0x5b8d73['start'][_0x3905('0x72')](_0x3c94e0['start'])){const _0x3c7c07=_0x5b8d73[_0x3905('0x56')][_0x3905('0x5c')],_0x3226b1=_0x3c94e0[_0x3905('0x2b')][_0x3905('0x9')];return _0x268378['isBlockImage'](_0x3c7c07)&&_0x3c7c07===_0x3226b1;}return!0x1;}function _0x36c311(_0xcad816,_0x406f5b){return _0x55e172(_0xcad816,_0x406f5b)?[_0xcad816,_0x406f5b]:_0x55e172(_0x406f5b,_0xcad816)?[_0x406f5b,_0xcad816]:null;}_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x27')](()=>{let _0x4d3cf4=!0x1;const _0x12fd90=Array[_0x3905('0x6f')](_0x59ac83['model'][_0x3905('0x49')][_0x3905('0x5e')]['getChangedMarkers']());for(const {name:_0xcb21d8,data:_0x67542f}of _0x12fd90){const {group:_0x560a1d,type:_0x447563,subType:_0x335604,id:_0x3d7d0a}=_0xef3f6f[_0x3905('0x71')](_0xcb21d8);if(_0x3905('0x62')==_0x560a1d&&_0xef3f6f[_0x3905('0x70')](_0x3d7d0a)){if(_0x3905('0x23')==_0x447563&&(_0x3905('0x45')==_0x335604||_0x3905('0x5b')==_0x335604)){const _0x175607=_0xef3f6f[_0x3905('0x7f')](_0x3d7d0a);if(_0x67542f[_0x3905('0x29')]){const _0x57a6f9=_0x175607[_0x3905('0x3f')]()[_0x3905('0x4b')]();if(_0x268378[_0x3905('0x53')](_0x57a6f9))continue;_0xef3f6f[_0x3905('0x10')](_0x175607),_0x4d3cf4=!0x0;}}if(_0x3905('0x1e')==_0x447563&&_0x3905('0x11')==_0x335604&&!_0x67542f['newRange']){const _0x237640=_0xef3f6f[_0x3905('0x7f')](_0x3d7d0a);_0x237640['next']&&_0x237640[_0x3905('0x7b')][_0x3905('0x36')]&&(_0xef3f6f[_0x3905('0x10')](_0x237640[_0x3905('0x7b')]),_0x4d3cf4=!0x0);}}}return _0x4d3cf4;}),_0x59ac83[_0x3905('0x1b')][_0x3905('0x33')](_0x3905('0x52'))&&_0xef3f6f[_0x3905('0x2c')](_0x3905('0x3'),(_0x35a92b,_0x23cfba)=>{const _0x56d44a=_0x268378[_0x3905('0x68')](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]);_0x56d44a[_0x3905('0x16')](_0x3905('0x15'))!=_0x23cfba[_0x3905('0x14')]&&_0x59ac83[_0x3905('0x50')][_0x3905('0x46')](()=>{_0xef3f6f[_0x3905('0x2')](_0x56d44a,{'commandName':'resizeImage','commandParams':[_0x23cfba]});});}),_0x59ac83['plugins'][_0x3905('0x33')](_0x3905('0x0'))&&_0xef3f6f[_0x3905('0x2c')](_0x3905('0x59'),(_0x5832a3,_0x1cf2cb)=>{const _0x4549c1=_0x268378['getClosestSelectedImageElement'](_0x59ac83[_0x3905('0x50')][_0x3905('0x49')][_0x3905('0x54')]);(_0x4549c1['hasAttribute'](_0x3905('0x34'))?_0x4549c1['getAttribute'](_0x3905('0x34')):'')!=_0x1cf2cb[_0x3905('0x6d')]&&_0x59ac83[_0x3905('0x50')][_0x3905('0x46')](()=>{_0xef3f6f[_0x3905('0x2')](_0x4549c1,{'commandName':_0x3905('0x59'),'commandParams':[_0x1cf2cb]});});}),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x10d769=>{if(!!_0x5d5573[_0x3905('0x47')](({type:_0x5e4419,subType:_0x3ae3ce})=>_0x10d769[_0x3905('0x7d')]==_0x5e4419&&_0x10d769['subType']==_0x3ae3ce))return _0x10d769[_0x3905('0x67')]?{}:void 0x0;}),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x3d39d3=>{if(_0x3905('0x1e')==_0x3d39d3[_0x3905('0x7d')]||_0x3905('0x73')==_0x3d39d3[_0x3905('0x7d')]){const _0x43b0fe=_0x3d39d3[_0x3905('0x4b')]();if(_0x43b0fe&&_0x43b0fe['is'](_0x3905('0x4'),_0x3905('0x4a')))return{'type':_0x3905('0x1e')==_0x3d39d3[_0x3905('0x7d')]?_0x3905('0x4c'):_0x3905('0x1f'),'element':_0x43b0fe,'quantity':0x1};}}),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x48d7d7=>'formatBlock'==_0x48d7d7[_0x3905('0x7d')]&&'convertInlineImageToBlock'==_0x48d7d7[_0x3905('0x2e')]?{'type':_0x3905('0x6a'),'content':_0x3905('0xe')}:_0x3905('0x23')==_0x48d7d7['type']&&_0x3905('0x63')==_0x48d7d7['subType']?{'type':_0x3905('0x6a'),'content':_0x3905('0x79')}:void 0x0),_0xef3f6f[_0x3905('0x6e')][_0x3905('0x4e')](_0x4e42db=>{const {data:_0x1520ee}=_0x4e42db;if(_0x1520ee){if(_0x3905('0x22')==_0x1520ee[_0x3905('0x6')]){const _0x3cf6e9=_0x1520ee[_0x3905('0x7')][0x0][_0x3905('0x64')];return _0x49ba35(_0x3905('0x1')===_0x3cf6e9?_0x5888c9(_0x16e9e3,_0x3905('0x40')):_0x2a90ed[_0x3cf6e9]||_0x3cf6e9);}if(_0x3905('0x59')==_0x1520ee['commandName']){const _0xa98b51=_0x1520ee[_0x3905('0x7')][0x0][_0x3905('0x6d')];return _0xa98b51?{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x3b'),'\x22'+_0xa98b51+'\x22')}:{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x6c'))};}if(_0x3905('0x3')==_0x1520ee[_0x3905('0x6')]){const _0x166588=_0x1520ee['commandParams'][0x0][_0x3905('0x14')];return _0x166588?{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x24'),_0x166588)}:{'type':'format','content':_0x5888c9(_0x16e9e3,_0x3905('0x6b'))};}}function _0x49ba35(_0x4eafab){return{'type':_0x3905('0x6a'),'content':_0x5888c9(_0x16e9e3,_0x3905('0x7e'),_0x4eafab)};}});}}
|
|
23
|
+
const _0x10b0=['findIndex','ImageTextAlternativeEditing','registerCustomCallback','document','imageCaption','next','createRangeOn','schema','shouldConvertImageType','imageTextAlternative','model','toggleImageCaption','change','isBlockImage','*Set\x20image\x20text\x20alternative:*\x20%0','ImageStyleEditing','plugins','getSuggestions','nodeAfter','caption','imageStylePostApply','hasSuggestion','subType','ImageEditing','type','markDeletion','find','_descriptionFactory','toLowerCase','resizedWidth','imageStyle','has','fromPosition','refresh','getFirstRange','from','start','registerElementLabel','_splitMarkerName','value','ImageInlineEditing','getSuggestionCallback','locale','Block\x20image\x20to\x20inline\x20image','forEach','getClosestSelectedImageElement','uploadImage','newValue','ImageUtils','isIntersecting','addObject','registerDescriptionCallback','*Format:*\x20%0','join','suggestion','*Remove\x20image\x20text\x20alternative*','author','length','newRange','commandParams','get','formatInline','afterInit','imageBlock','accept','imageTypeBlock','formatBlock','markInsertion','element','markBlockFormat','convertInlineImageToBlock','title','name','hasAttribute','createRange','chain','resizeImage','deletion','ImageCaptionEditing','ELEMENT_CAPTION','isEqual','ImageUploadEditing','editor','format','isOwn','removeObject','isCollapsed','filter','alt','getSuggestion','setImageNaturalSizeAttributes','end','selection','convertBlockImageToInline','commandReversedParams','ELEMENT_IMAGE','imageStylePreApply','isBefore','differ','insertImage','forceDefaultExecution','FORMAT_SIDE_IMAGE','ImageCaptionUtils','commandName','getContainedElement','normalizedStyles','imageTypeInline','getAttribute','_suggestionFactory','toPrevious','enableCommand','getChangedMarkers','_findSuggestions','side','forward','insertion','getCaptionFromImageModelElement','ELEMENT_INLINE_IMAGE','isInContent','width','Inline\x20image\x20to\x20block\x20image','getNearestSelectionRange','imageInline','TrackChangesEditing','discardSuggestion','commands','discard'];(function(_0x2b7797,_0x10b09f){const _0x1c4ab9=function(_0x54ed66){while(--_0x54ed66){_0x2b7797['push'](_0x2b7797['shift']());}};_0x1c4ab9(++_0x10b09f);}(_0x10b0,0x11a));const _0x1c4a=function(_0x2b7797,_0x10b09f){_0x2b7797=_0x2b7797-0x0;let _0x1c4ab9=_0x10b0[_0x2b7797];return _0x1c4ab9;};import{Plugin as _0x4efc2a}from'ckeditor5/src/core';import{LivePosition as _0x5bbf47}from'ckeditor5/src/engine';import{uid as _0x6736fc}from'ckeditor5/src/utils';import{getTranslation as _0x23c252}from'../utils/common-translations';export default class Y extends _0x4efc2a{[_0x1c4a('0x22')](){const _0xe9f2d9=this[_0x1c4a('0x36')];if(!_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x3')](_0x1c4a('0x7a')))return;const _0x4f303=_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x20')](_0x1c4a('0x5f')),_0x23b827=_0xe9f2d9[_0x1c4a('0x73')]['get'](_0x1c4a('0x14')),_0x5236da={},_0x3183a6=_0xe9f2d9[_0x1c4a('0xe')];if(_0x4f303[_0x1c4a('0x52')](_0x1c4a('0x47')),_0x4f303[_0x1c4a('0x7e')]['registerElementLabel'](_0x1c4a('0x23'),_0xd37852=>_0x23c252(_0x3183a6,_0x1c4a('0x43'),_0xd37852)),_0x4f303[_0x1c4a('0x7e')]['registerElementLabel'](_0x1c4a('0x5e'),_0x33abd6=>_0x23c252(_0x3183a6,_0x1c4a('0x59'),_0x33abd6)),_0x4f303[_0x1c4a('0x7e')][_0x1c4a('0x9')](_0x1c4a('0x76'),()=>_0x23c252(_0x3183a6,_0x1c4a('0x33'))),_0xe9f2d9[_0x1c4a('0x73')]['has'](_0x1c4a('0x35'))&&_0x4f303['enableCommand'](_0x1c4a('0x12')),_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x3')]('ImageBlockEditing')&&_0xe9f2d9[_0x1c4a('0x73')]['has'](_0x1c4a('0xc'))&&(_0x4f303[_0x1c4a('0x52')](_0x1c4a('0x4e'),(_0x495c5e,_0x4dff05)=>{const _0x18ad5a=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9[_0x1c4a('0x6d')]['document'][_0x1c4a('0x40')]);_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x6f')](()=>{_0x4f303[_0x1c4a('0x29')](_0x18ad5a,{'commandName':_0x1c4a('0x4e'),'commandParams':[_0x4dff05]},[],_0x1c4a('0x41'));});}),_0x4f303['enableCommand'](_0x1c4a('0x25'),(_0x4cfe2a,_0x2075d1)=>{_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x6f')](_0x1aa363=>{let _0x1844ce=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x66')][_0x1c4a('0x40')]),_0x30d2d4=_0x1aa363['createRangeOn'](_0x1844ce);const _0x2a6b44=_0x5bbf47[_0x1c4a('0x4')](_0x30d2d4[_0x1c4a('0x8')],_0x1c4a('0x51')),_0x1972a3=_0x5bbf47[_0x1c4a('0x4')](_0x30d2d4[_0x1c4a('0x3f')],'toNext');_0x4f303[_0x1c4a('0x48')](()=>_0x4cfe2a(_0x2075d1)),_0x1844ce=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9['model'][_0x1c4a('0x66')]['selection']),_0x30d2d4=_0x1aa363[_0x1c4a('0x69')](_0x1844ce);const _0x2a8e6b=_0x1aa363['createRange'](_0x2a6b44,_0x1972a3);_0x2a6b44['detach'](),_0x1972a3['detach'](),_0x4f303[_0x1c4a('0x29')](_0x1844ce,{'commandName':'imageTypeInline','commandParams':[_0x2075d1]},[],_0x1c4a('0x2a')),_0x2a8e6b['start']['isBefore'](_0x30d2d4['start'])&&_0x4f303[_0x1c4a('0x27')](_0x1aa363['createRange'](_0x2a8e6b[_0x1c4a('0x8')],_0x30d2d4['start']),_0x1c4a('0x2a')),_0x30d2d4[_0x1c4a('0x3f')]['isBefore'](_0x2a8e6b[_0x1c4a('0x3f')])&&_0x4f303[_0x1c4a('0x27')](_0x1aa363[_0x1c4a('0x2e')](_0x30d2d4[_0x1c4a('0x3f')],_0x2a8e6b[_0x1c4a('0x3f')]),_0x1c4a('0x2a'));});}),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')](_0x1c4a('0x26'),_0x1c4a('0x2a'),'join',()=>!0x1),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')](_0x1c4a('0x26'),_0x1c4a('0x2a'),_0x1c4a('0x24'),()=>!0x1),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')](_0x1c4a('0x26'),_0x1c4a('0x2a'),_0x1c4a('0x62'),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0xd')]('formatBlock','',_0x1c4a('0x24'))),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')](_0x1c4a('0x57'),_0x1c4a('0x2a'),_0x1c4a('0x19'),()=>!0x1),_0x4f303[_0x1c4a('0x50')]['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x1c4a('0x62'),([_0x48b58a])=>{const _0x3e2935=_0x4f303[_0x1c4a('0x50')][_0x1c4a('0xd')]('insertion','','discard');let _0x397ba9=_0x48b58a[_0x1c4a('0x8')],_0x1d7903=_0x48b58a['end'];const _0x258225=_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x6a')][_0x1c4a('0x5d')](_0x397ba9,'backward'),_0x8877ca=_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x6a')][_0x1c4a('0x5d')](_0x1d7903,_0x1c4a('0x56'));_0x258225[_0x1c4a('0x3a')]&&(_0x397ba9=_0x258225[_0x1c4a('0x8')]),_0x8877ca['isCollapsed']&&(_0x1d7903=_0x8877ca[_0x1c4a('0x3f')]),_0x3e2935([_0xe9f2d9['model'][_0x1c4a('0x2e')](_0x397ba9,_0x1d7903)]);}),_0x4f303[_0x1c4a('0x50')]['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4669da),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')](_0x1c4a('0x57'),_0x1c4a('0x2a'),_0x1c4a('0x2f'),_0x4669da)),_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x3')](_0x1c4a('0x32'))&&(_0x4f303['enableCommand'](_0x1c4a('0x6e'),(_0x11e634,_0x48718e)=>{const _0x22a11d=_0xe9f2d9['plugins'][_0x1c4a('0x20')](_0x1c4a('0x4a'));let _0x6d48dd=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x66')][_0x1c4a('0x40')]),_0x5380d1=_0x22a11d[_0x1c4a('0x58')](_0x6d48dd);_0xe9f2d9['model'][_0x1c4a('0x6f')](()=>{if(_0x5380d1)return void _0x4f303[_0x1c4a('0x7c')](_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x69')](_0x5380d1));const _0x4cc2be=_0x23b827[_0x1c4a('0x70')](_0x6d48dd);_0x11e634(_0x48718e),_0x6d48dd=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x66')][_0x1c4a('0x40')]),_0x5380d1=_0x22a11d['getCaptionFromImageModelElement'](_0x6d48dd),_0x4f303[_0x1c4a('0x27')](_0xe9f2d9[_0x1c4a('0x6d')]['createRangeOn'](_0x5380d1),_0x4cc2be?null:'imageCaption');});}),_0x4f303['_suggestionFactory'][_0x1c4a('0x65')](_0x1c4a('0x57'),'imageCaption',_0x1c4a('0x2f'),_0x4669da)),_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x3')](_0x1c4a('0x72'))){_0x4f303['enableCommand'](_0x1c4a('0x2'),(_0x207d33,_0x3d8ca0)=>{const _0x4a8133=_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x20')]('Users')['me'],_0x1b142e=_0xe9f2d9['commands'][_0x1c4a('0x20')](_0x1c4a('0x2'));let _0x741d61=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9['model'][_0x1c4a('0x66')][_0x1c4a('0x40')]),_0x1acd57=_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x69')](_0x741d61),_0x59e778=_0x1b142e[_0x1c4a('0xb')];if(_0x59e778==_0x3d8ca0[_0x1c4a('0xb')])return;const _0x268480={'commandName':'imageStyle','commandParams':[_0x3d8ca0],'formatGroupId':_0x6736fc()};_0xe9f2d9[_0x1c4a('0x6d')]['change'](()=>{if(_0x4f303[_0x1c4a('0x74')]()[_0x1c4a('0x3b')](_0x562ae2=>_0x562ae2[_0x1c4a('0x5a')]&&_0x4a8133==_0x562ae2[_0x1c4a('0x1c')]&&(_0x1c4a('0x26')==_0x562ae2[_0x1c4a('0x7b')]||_0x1c4a('0x21')==_0x562ae2[_0x1c4a('0x7b')])&&(_0x1c4a('0x44')==_0x562ae2['subType']||'imageStylePostApply'==_0x562ae2[_0x1c4a('0x79')])&&_0x562ae2[_0x1c4a('0x6')]()[_0x1c4a('0x34')](_0x1acd57))[_0x1c4a('0x10')](_0x470afc=>_0x4f303[_0x1c4a('0x60')](_0x470afc['head'])),_0x741d61=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x66')]['selection']),_0x1acd57=_0xe9f2d9[_0x1c4a('0x6d')]['createRangeOn'](_0x741d61),_0x1b142e[_0x1c4a('0x5')](),_0xe9f2d9[_0x1c4a('0x61')][_0x1c4a('0x20')]('imageTypeInline')[_0x1c4a('0x5')](),_0xe9f2d9[_0x1c4a('0x61')][_0x1c4a('0x20')](_0x1c4a('0x25'))[_0x1c4a('0x5')](),_0x59e778=_0x1b142e['value'],_0x59e778!=_0x3d8ca0[_0x1c4a('0xb')])return _0x23b827['isInlineImage'](_0x741d61)&&_0x1b142e[_0x1c4a('0x6b')](_0x3d8ca0[_0x1c4a('0xb')],_0x741d61)?(_0x207d33({..._0x3d8ca0,'setImageSizes':!0x1}),_0x741d61=_0x23b827['getClosestSelectedImageElement'](_0xe9f2d9['model']['document'][_0x1c4a('0x40')]),void _0x4f303[_0x1c4a('0x29')](_0x741d61,{..._0x268480,'commandReversedParams':[{'value':_0x59e778||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x23b827['isBlockImage'](_0x741d61)?_0x4f303[_0x1c4a('0x29')](_0x741d61,_0x268480,[],'imageStylePostApply'):_0x4f303['markInlineFormat'](_0x1acd57,_0x268480,_0x1c4a('0x77')));});});for(const _0x421c8d of _0xe9f2d9[_0x1c4a('0x73')]['get'](_0x1c4a('0x72'))[_0x1c4a('0x4d')])_0x5236da[_0x421c8d[_0x1c4a('0x2c')]]=_0x421c8d[_0x1c4a('0x2b')][_0x1c4a('0x0')]();_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')](_0x1c4a('0x26'),_0x1c4a('0x44'),_0x1c4a('0x19'),()=>!0x1),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')]('formatBlock','imageStylePostApply',_0x1c4a('0x19'),()=>!0x1),_0x4f303['_suggestionFactory'][_0x1c4a('0x65')](_0x1c4a('0x21'),_0x1c4a('0x77'),_0x1c4a('0x19'),()=>!0x1),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')](_0x1c4a('0x26'),_0x1c4a('0x44'),_0x1c4a('0x24'),([_0x48e91d])=>{_0x23b827[_0x1c4a('0x3e')](_0x48e91d[_0x1c4a('0x4c')]());}),_0x4f303[_0x1c4a('0x50')][_0x1c4a('0x65')]('formatBlock',_0x1c4a('0x44'),'discard',(_0x5bd392,_0x12e135)=>{_0x4f303[_0x1c4a('0x50')][_0x1c4a('0xd')](_0x1c4a('0x26'),'',_0x1c4a('0x24'))(_0x5bd392,{'commandName':_0x12e135[_0x1c4a('0x4b')],'commandParams':_0x12e135[_0x1c4a('0x42')]});}),_0x4f303[_0x1c4a('0x50')]['registerCustomCallback'](_0x1c4a('0x26'),_0x1c4a('0x44'),'chain',_0x4669da);}const _0xf78b0b=[{'type':'formatBlock','subType':_0x1c4a('0x44')},{'type':_0x1c4a('0x57'),'subType':_0x1c4a('0x67')},{'type':_0x1c4a('0x26'),'subType':_0x1c4a('0x2a')},{'type':'insertion','subType':_0x1c4a('0x2a')}];function _0x21b045(_0x4f2460,_0x1adc75){const _0x454a92=_0xf78b0b[_0x1c4a('0x63')](({type:_0x25bf68,subType:_0x26a9d0})=>_0x4f2460[_0x1c4a('0x7b')]==_0x25bf68&&_0x4f2460[_0x1c4a('0x79')]==_0x26a9d0),_0x3823af=_0xf78b0b[_0x1c4a('0x63')](({type:_0x172225,subType:_0x8ed7d4})=>_0x1adc75[_0x1c4a('0x7b')]==_0x172225&&_0x1adc75['subType']==_0x8ed7d4);if(_0x454a92<0x0||_0x3823af<0x0)return!0x1;const _0x16cd8c=_0x4f2460[_0x1c4a('0x6')](),_0x3d7be5=_0x1adc75[_0x1c4a('0x6')]();if((0x0==_0x454a92||0x1==_0x454a92)&&0x2==_0x3823af&&_0x16cd8c[_0x1c4a('0x15')](_0x3d7be5))return!0x0;if(0x2==_0x454a92&&0x3==_0x3823af){const _0x25c429=_0x4f303[_0x1c4a('0x54')](_0x16cd8c,_0x1c4a('0x57'))[_0x1c4a('0x3b')](({suggestion:_0x3acc14,meta:_0x339dda})=>_0x339dda[_0x1c4a('0x38')]&&_0x1c4a('0x2a')==_0x3acc14[_0x1c4a('0x79')]);if(_0x25c429['length']>0x1&&_0x3d7be5[_0x1c4a('0x3f')][_0x1c4a('0x34')](_0x16cd8c[_0x1c4a('0x8')]))return!0x0;if(0x1==_0x25c429[_0x1c4a('0x1d')]&&(_0x16cd8c['start'][_0x1c4a('0x34')](_0x3d7be5['end'])||_0x16cd8c['end'][_0x1c4a('0x34')](_0x3d7be5[_0x1c4a('0x8')])))return!0x0;}if(0x3==_0x454a92&&0x3==_0x3823af&&_0x16cd8c[_0x1c4a('0x8')][_0x1c4a('0x45')](_0x3d7be5['start'])){const _0x3cdc15=_0x16cd8c[_0x1c4a('0x3f')][_0x1c4a('0x75')],_0x28314a=_0x3d7be5[_0x1c4a('0x8')]['nodeBefore'];return _0x23b827[_0x1c4a('0x70')](_0x3cdc15)&&_0x3cdc15===_0x28314a;}return!0x1;}function _0x4669da(_0x467384,_0x17978d){return _0x21b045(_0x467384,_0x17978d)?[_0x467384,_0x17978d]:_0x21b045(_0x17978d,_0x467384)?[_0x17978d,_0x467384]:null;}_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x66')]['registerPostFixer'](()=>{let _0x56e4ff=!0x1;const _0x1fe53d=Array[_0x1c4a('0x7')](_0xe9f2d9['model'][_0x1c4a('0x66')][_0x1c4a('0x46')][_0x1c4a('0x53')]());for(const {name:_0x4cba71,data:_0x38f93f}of _0x1fe53d){const {group:_0x198249,type:_0x21ecad,subType:_0x9cc1c7,id:_0x61b9d0}=_0x4f303[_0x1c4a('0xa')](_0x4cba71);if(_0x1c4a('0x1a')==_0x198249&&_0x4f303[_0x1c4a('0x78')](_0x61b9d0)){if('formatBlock'==_0x21ecad&&(_0x1c4a('0x44')==_0x9cc1c7||'imageStylePostApply'==_0x9cc1c7)){const _0x46a514=_0x4f303[_0x1c4a('0x3d')](_0x61b9d0);if(_0x38f93f[_0x1c4a('0x1e')]){const _0x1fc6d3=_0x46a514[_0x1c4a('0x6')]()[_0x1c4a('0x4c')]();if(_0x23b827[_0x1c4a('0x70')](_0x1fc6d3))continue;_0x4f303['discardSuggestion'](_0x46a514),_0x56e4ff=!0x0;}}if(_0x1c4a('0x57')==_0x21ecad&&_0x1c4a('0x67')==_0x9cc1c7&&!_0x38f93f['newRange']){const _0x35f9cf=_0x4f303[_0x1c4a('0x3d')](_0x61b9d0);_0x35f9cf['next']&&_0x35f9cf[_0x1c4a('0x68')][_0x1c4a('0x5a')]&&(_0x4f303['discardSuggestion'](_0x35f9cf[_0x1c4a('0x68')]),_0x56e4ff=!0x0);}}}return _0x56e4ff;}),_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x3')]('ImageResize')&&_0x4f303[_0x1c4a('0x52')]('resizeImage',(_0x3b92bb,_0x2625fc)=>{const _0x3987d5=_0x23b827['getClosestSelectedImageElement'](_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x66')][_0x1c4a('0x40')]);_0x3987d5[_0x1c4a('0x4f')](_0x1c4a('0x1'))!=_0x2625fc[_0x1c4a('0x5b')]&&_0xe9f2d9['model'][_0x1c4a('0x6f')](()=>{_0x4f303['markBlockFormat'](_0x3987d5,{'commandName':_0x1c4a('0x30'),'commandParams':[_0x2625fc]});});}),_0xe9f2d9[_0x1c4a('0x73')][_0x1c4a('0x3')](_0x1c4a('0x64'))&&_0x4f303['enableCommand'](_0x1c4a('0x6c'),(_0x1967cd,_0x1299c8)=>{const _0x19b01a=_0x23b827[_0x1c4a('0x11')](_0xe9f2d9['model'][_0x1c4a('0x66')]['selection']);(_0x19b01a[_0x1c4a('0x2d')](_0x1c4a('0x3c'))?_0x19b01a[_0x1c4a('0x4f')]('alt'):'')!=_0x1299c8[_0x1c4a('0x13')]&&_0xe9f2d9[_0x1c4a('0x6d')][_0x1c4a('0x6f')](()=>{_0x4f303[_0x1c4a('0x29')](_0x19b01a,{'commandName':'imageTextAlternative','commandParams':[_0x1299c8]});});}),_0x4f303[_0x1c4a('0x7e')][_0x1c4a('0x17')](_0x21f967=>{if(!!_0xf78b0b[_0x1c4a('0x7d')](({type:_0x3b2b2f,subType:_0x23bf05})=>_0x21f967[_0x1c4a('0x7b')]==_0x3b2b2f&&_0x21f967['subType']==_0x23bf05))return _0x21f967['previous']?{}:void 0x0;}),_0x4f303[_0x1c4a('0x7e')][_0x1c4a('0x17')](_0x12565d=>{if(_0x1c4a('0x57')==_0x12565d[_0x1c4a('0x7b')]||_0x1c4a('0x31')==_0x12565d[_0x1c4a('0x7b')]){const _0x305031=_0x12565d[_0x1c4a('0x4c')]();if(_0x305031&&_0x305031['is'](_0x1c4a('0x28'),_0x1c4a('0x76')))return{'type':_0x1c4a('0x57')==_0x12565d[_0x1c4a('0x7b')]?_0x1c4a('0x16'):_0x1c4a('0x39'),'element':_0x305031,'quantity':0x1};}}),_0x4f303['_descriptionFactory'][_0x1c4a('0x17')](_0x43885e=>_0x1c4a('0x26')==_0x43885e[_0x1c4a('0x7b')]&&_0x1c4a('0x2a')==_0x43885e['subType']?{'type':_0x1c4a('0x37'),'content':_0x1c4a('0x5c')}:_0x1c4a('0x26')==_0x43885e[_0x1c4a('0x7b')]&&_0x1c4a('0x41')==_0x43885e['subType']?{'type':'format','content':_0x1c4a('0xf')}:void 0x0),_0x4f303[_0x1c4a('0x7e')][_0x1c4a('0x17')](_0x246cc6=>{const {data:_0x1f83d3}=_0x246cc6;if(_0x1f83d3){if('imageStyle'==_0x1f83d3['commandName']){const _0x42865c=_0x1f83d3['commandParams'][0x0][_0x1c4a('0xb')];return _0x4e3d42(_0x1c4a('0x55')===_0x42865c?_0x23c252(_0x3183a6,_0x1c4a('0x49')):_0x5236da[_0x42865c]||_0x42865c);}if(_0x1c4a('0x6c')==_0x1f83d3['commandName']){const _0x712302=_0x1f83d3['commandParams'][0x0][_0x1c4a('0x13')];return _0x712302?{'type':_0x1c4a('0x37'),'content':_0x23c252(_0x3183a6,_0x1c4a('0x71'),'\x22'+_0x712302+'\x22')}:{'type':_0x1c4a('0x37'),'content':_0x23c252(_0x3183a6,_0x1c4a('0x1b'))};}if('resizeImage'==_0x1f83d3['commandName']){const _0x387eaa=_0x1f83d3[_0x1c4a('0x1f')][0x0][_0x1c4a('0x5b')];return _0x387eaa?{'type':_0x1c4a('0x37'),'content':_0x23c252(_0x3183a6,'*Set\x20image\x20width:*\x20%0',_0x387eaa)}:{'type':_0x1c4a('0x37'),'content':_0x23c252(_0x3183a6,'*Reset\x20image\x20width*')};}}function _0x4e3d42(_0x5c3cad){return{'type':_0x1c4a('0x37'),'content':_0x23c252(_0x3183a6,_0x1c4a('0x18'),_0x5c3cad)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x546f=['getContainedElement','markBlockFormat','handleReplaceImageCommand','replaceImageSource','editor','accept','formatBlock','format','handleSuggestionDescription','has','*Format:*\x20replace\x20image\x20URL','commandParams','getSuggestionCallback','ImageEditing','data','get','getSuggestions','getAttribute','author','document','locale','registerDescriptionCallback','_suggestionFactory','source','plugins','enableCommand','discard','registerCustomCallback','src','TrackChangesEditing','Users'];(function(_0x29710f,_0x546f31){const _0x3278d0=function(_0x20af1a){while(--_0x20af1a){_0x29710f['push'](_0x29710f['shift']());}};_0x3278d0(++_0x546f31);}(_0x546f,0x112));const _0x3278=function(_0x29710f,_0x546f31){_0x29710f=_0x29710f-0x0;let _0x3278d0=_0x546f[_0x29710f];return _0x3278d0;};import{Plugin as _0x42279b}from'ckeditor5/src/core';import{getTranslation as _0x509e1a}from'../utils/common-translations';export default class Z extends _0x42279b{['afterInit'](){if(!this[_0x3278('0x9')]['plugins'][_0x3278('0xe')](_0x3278('0x12')))return;const _0x4a7ecb=this[_0x3278('0x9')][_0x3278('0x1d')][_0x3278('0x14')](_0x3278('0x3'));_0x4a7ecb[_0x3278('0x1e')]('replaceImageSource',(_0x308eb7,_0x139b3a)=>this['handleReplaceImageCommand'](_0x308eb7,_0x139b3a)),_0x4a7ecb['_suggestionFactory'][_0x3278('0x1')]('formatBlock','replaceImageSource',_0x3278('0xa'),_0x4a7ecb[_0x3278('0x1b')][_0x3278('0x11')](_0x3278('0xb'),null,_0x3278('0x0'))),_0x4a7ecb['_suggestionFactory']['registerCustomCallback'](_0x3278('0xb'),_0x3278('0x8'),_0x3278('0x0'),_0x4a7ecb['_suggestionFactory'][_0x3278('0x11')](_0x3278('0xb'),null,_0x3278('0xa'))),_0x4a7ecb['_descriptionFactory'][_0x3278('0x1a')](_0x3f1fed=>this[_0x3278('0xd')](_0x3f1fed));}[_0x3278('0x7')](_0x1870e2,_0x1c39b4){const _0x44ff39=this['editor'][_0x3278('0x1d')][_0x3278('0x14')](_0x3278('0x3')),_0xb17eb4=this[_0x3278('0x9')]['model'][_0x3278('0x18')]['selection']['getSelectedElement']();this[_0x3278('0x9')]['model']['change'](()=>{let _0x8daaf9=_0xb17eb4[_0x3278('0x16')](_0x3278('0x2'));const _0xe4af91=this[_0x3278('0x9')]['plugins'][_0x3278('0x14')](_0x3278('0x4'))['me'];for(const _0x19a132 of _0x44ff39[_0x3278('0x15')]({'skipNotAttached':!0x0})){const _0x1958a3=_0x19a132[_0x3278('0x5')]();if('replaceImageSource'===_0x19a132['subType']&&_0x1958a3===_0xb17eb4){_0x19a132[_0x3278('0x17')]!==_0xe4af91&&_0x19a132[_0x3278('0x0')](),_0x8daaf9=_0x19a132[_0x3278('0x13')][_0x3278('0x10')][0x0][_0x3278('0x1c')];break;}}_0x1870e2(_0x1c39b4),_0x44ff39[_0x3278('0x6')](_0xb17eb4,{'commandName':_0x3278('0x8'),'commandParams':[{'source':_0x8daaf9}]},[],_0x3278('0x8'));});}[_0x3278('0xd')](_0x3ed0bc){const {data:_0x20af8d}=_0x3ed0bc;if(_0x20af8d&&_0x3278('0x8')===_0x20af8d['commandName']){const _0x490dc1=_0x3278('0xf');return{'type':_0x3278('0xc'),'content':_0x509e1a(this['editor'][_0x3278('0x19')],_0x490dc1)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ca8=['trackChanges','_trackChangesExecuted','bind','listenTo','TrackChangesEditing','Users','afterInit','_trackChangesValueDuringImport','importWord','_handleImportedData','editor','track_changes','lowest','plugins','get','dataInsert','enableCommand','execute','commands','collaboration_features','value'];(function(_0x2d7388,_0x1ca86e){const _0x28a8a8=function(_0x3502db){while(--_0x3502db){_0x2d7388['push'](_0x2d7388['shift']());}};_0x28a8a8(++_0x1ca86e);}(_0x1ca8,0x123));const _0x28a8=function(_0x2d7388,_0x1ca86e){_0x2d7388=_0x2d7388-0x0;let _0x28a8a8=_0x1ca8[_0x2d7388];return _0x28a8a8;};import{Plugin as _0x53a758}from'ckeditor5/src/core';export default class tt extends _0x53a758{constructor(_0x58e7a7){super(_0x58e7a7),this[_0x28a8('0xa')]=!0x1,this[_0x28a8('0x4')]=!0x1;}[_0x28a8('0x9')](){const _0x3825ba=this[_0x28a8('0xd')],_0x2399d1=_0x3825ba[_0x28a8('0x0')][_0x28a8('0x11')]('importWord'),_0x39800a=_0x3825ba[_0x28a8('0x0')][_0x28a8('0x11')]('trackChanges');_0x2399d1&&(_0x2399d1['on'](_0x28a8('0x14'),(_0x9d9c31,[,_0x113d07])=>{this[_0x28a8('0xa')]=_0x39800a['value'],_0x113d07[_0x28a8('0x1')][_0x28a8('0xe')]=!this[_0x28a8('0xa')];},{'priority':'high'}),this[_0x28a8('0x6')](_0x2399d1,_0x28a8('0x12'),this[_0x28a8('0xc')][_0x28a8('0x5')](this)),this[_0x28a8('0x6')](_0x2399d1,_0x28a8('0x12'),()=>{this[_0x28a8('0x4')]&&(_0x39800a[_0x28a8('0x14')](),this[_0x28a8('0x4')]=!0x1);},{'priority':_0x28a8('0xf')}),_0x3825ba[_0x28a8('0x10')][_0x28a8('0x11')]('TrackChangesEditing')[_0x28a8('0x13')]('importWord'));}[_0x28a8('0xc')](_0x7ba046,_0x319979){const {suggestions:_0x53f81e}=_0x319979,_0x1946d4=this[_0x28a8('0xd')]['commands'][_0x28a8('0x11')](_0x28a8('0x3')),_0x2a9988=_0x1946d4[_0x28a8('0x2')];this[_0x28a8('0xa')]!==_0x2a9988&&(_0x1946d4['execute'](),this[_0x28a8('0x4')]=!0x0),_0x53f81e&&_0x53f81e['forEach'](({id:_0x554384,type:_0x43d803,author:_0x466131,created_at:_0x3c589f})=>{const _0x2b2e88={'id':_0x554384,'type':_0x43d803,'authorId':this[_0x28a8('0xd')]['plugins'][_0x28a8('0x11')](_0x28a8('0x8'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x466131,'createdAt':_0x3c589f?new Date(_0x3c589f):new Date(),'source':_0x28a8('0xb')}}};this['editor'][_0x28a8('0x10')]['get'](_0x28a8('0x7'))['_setSuggestionData'](_0x2b2e88);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31b5=['document','commandName','_descriptionFactory','has','*Outdent:*\x20%0','outdent','format','enableCommand','from','markBlockFormat','checkAttribute','IndentEditing','indentBlock','getSelectedBlocks','getItems','selection','model','afterInit','plugins','outdentBlock','getItemLabel','indent','locale','IndentBlock','blockIndent','change','*Indent:*\x20%0','get','schema'];(function(_0xe7d6d4,_0x31b543){const _0x44834d=function(_0x19d980){while(--_0x19d980){_0xe7d6d4['push'](_0xe7d6d4['shift']());}};_0x44834d(++_0x31b543);}(_0x31b5,0xa0));const _0x4483=function(_0xe7d6d4,_0x31b543){_0xe7d6d4=_0xe7d6d4-0x0;let _0x44834d=_0x31b5[_0xe7d6d4];return _0x44834d;};import{Plugin as _0x27ba84}from'ckeditor5/src/core';import{getTranslation as _0x56d0bf}from'../utils/common-translations';export default class it extends _0x27ba84{[_0x4483('0x2')](){const _0x4c59d1=this['editor'],_0x462590=_0x4c59d1[_0x4483('0x3')][_0x4483('0xc')]('TrackChangesEditing');_0x4c59d1[_0x4483('0x3')][_0x4483('0x11')](_0x4483('0x19'))&&(_0x462590[_0x4483('0x15')](_0x4483('0x6')),_0x462590['enableCommand'](_0x4483('0x13')));const _0x5368fe=_0x4c59d1[_0x4483('0x7')];if(_0x4c59d1[_0x4483('0x3')][_0x4483('0x11')](_0x4483('0x8'))){for(const _0x5a4e25 of[_0x4483('0x1a'),_0x4483('0x4')])_0x462590[_0x4483('0x15')](_0x5a4e25,()=>{const _0x347a44=Array[_0x4483('0x16')](this['editor'][_0x4483('0x1')][_0x4483('0xe')][_0x4483('0x0')][_0x4483('0x1b')]())['filter'](_0xc5edb6=>this['editor'][_0x4483('0x1')][_0x4483('0xd')][_0x4483('0x18')](_0xc5edb6,_0x4483('0x9')));_0x4c59d1[_0x4483('0x1')][_0x4483('0xa')](()=>{for(const _0x5c48c0 of _0x347a44)_0x462590[_0x4483('0x17')](_0x5c48c0,{'commandName':_0x5a4e25,'commandParams':[{'value':''}],'formatGroupId':_0x4483('0x1a')});});});_0x462590[_0x4483('0x10')]['registerDescriptionCallback'](_0x45c727=>{const {data:_0xc62f40}=_0x45c727;if(!_0xc62f40)return;if('indentBlock'!=_0xc62f40[_0x4483('0xf')]&&_0x4483('0x4')!=_0xc62f40[_0x4483('0xf')])return;const _0x33b1ad=_0x45c727[_0x4483('0x1c')]()[0x0],_0x38d0be=_0x462590[_0x4483('0x10')][_0x4483('0x5')](_0x33b1ad);return _0x4483('0x1a')==_0xc62f40[_0x4483('0xf')]?{'type':_0x4483('0x14'),'content':_0x56d0bf(_0x5368fe,_0x4483('0xb'),_0x38d0be)}:_0x4483('0x4')==_0xc62f40[_0x4483('0xf')]?{'type':_0x4483('0x14'),'content':_0x56d0bf(_0x5368fe,_0x4483('0x12'),_0x38d0be)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3303=['editor','TrackChangesEditing','get','requires','input'];(function(_0x44ba25,_0x3303bd){var _0x4ae813=function(_0x50560a){while(--_0x50560a){_0x44ba25['push'](_0x44ba25['shift']());}};_0x4ae813(++_0x3303bd);}(_0x3303,0x184));var _0x4ae8=function(_0x44ba25,_0x3303bd){_0x44ba25=_0x44ba25-0x0;var _0x4ae813=_0x3303[_0x44ba25];return _0x4ae813;};import{Plugin as _0x33b47d}from'ckeditor5/src/core';import{Input as _0x22c921}from'ckeditor5/src/typing';export default class et extends _0x33b47d{static get[_0x4ae8('0x0')](){return[_0x22c921];}['init'](){this[_0x4ae8('0x2')]['plugins'][_0x4ae8('0x4')](_0x4ae8('0x3'))['enableCommand'](_0x4ae8('0x1'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17e3=['commandName','getFirstRange','hasAttribute','linkHref','selection','unlink','editor','*Remove\x20link*','TrackChangesEditing','from','get','format','LinkEditing','*Set\x20link:*\x20%0','getFirstPosition','isCollapsed','afterInit','plugins','change','link','model','document','getAttribute','locale','commandParams','enableCommand','_descriptionFactory'];(function(_0x3d2b71,_0x17e30d){const _0xeea97a=function(_0x3cb5db){while(--_0x3cb5db){_0x3d2b71['push'](_0x3d2b71['shift']());}};_0xeea97a(++_0x17e30d);}(_0x17e3,0x165));const _0xeea9=function(_0x3d2b71,_0x17e30d){_0x3d2b71=_0x3d2b71-0x0;let _0xeea97a=_0x17e3[_0x3d2b71];return _0xeea97a;};import{Plugin as _0x2519fd}from'ckeditor5/src/core';import{findAttributeRange as _0x56026a}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x1b4756}from'./utils';import{getTranslation as _0x536a35}from'../utils/common-translations';export default class nt extends _0x2519fd{[_0xeea9('0xa')](){const _0x42ee94=this['editor'];if(!_0x42ee94[_0xeea9('0xb')]['has'](_0xeea9('0x6')))return;const _0x46d7d1=_0x42ee94['plugins'][_0xeea9('0x4')](_0xeea9('0x2'));_0x46d7d1[_0xeea9('0x13')](_0xeea9('0xd'),(_0x27ae0b,_0x4bb834)=>{const _0x3cc261=_0x42ee94['model'][_0xeea9('0xf')]['selection'];let _0x1a10f6=[];if(_0x3cc261['isCollapsed']){if(!_0x3cc261[_0xeea9('0x17')]('linkHref'))return void _0x27ae0b(_0x4bb834);{const _0x194ece=_0x56026a(_0x3cc261[_0xeea9('0x8')](),'linkHref',_0x3cc261[_0xeea9('0x10')](_0xeea9('0x18')),_0x42ee94[_0xeea9('0xe')]);_0x1a10f6=[_0x194ece];}}else _0x1a10f6=Array[_0xeea9('0x3')](_0x3cc261['getRanges']());_0x42ee94[_0xeea9('0xe')][_0xeea9('0xc')](()=>{for(const _0x5e1e14 of _0x1a10f6)_0x46d7d1['markInlineFormat'](_0x5e1e14,{'commandName':_0xeea9('0xd'),'commandParams':[_0x4bb834]});});}),_0x46d7d1[_0xeea9('0x13')](_0xeea9('0x1a'),()=>{const _0x5cf7f3=this[_0xeea9('0x0')][_0xeea9('0xe')],_0x2aa56b=_0x5cf7f3[_0xeea9('0xf')][_0xeea9('0x19')];_0x5cf7f3[_0xeea9('0xc')](()=>{let _0x3fce91=[];if(_0x2aa56b[_0xeea9('0x9')])_0x3fce91=[_0x56026a(_0x2aa56b['getFirstPosition'](),_0xeea9('0x18'),_0x2aa56b[_0xeea9('0x10')](_0xeea9('0x18')),_0x42ee94[_0xeea9('0xe')])];else _0x3fce91=_0x1b4756(_0xeea9('0x18'),_0x2aa56b[_0xeea9('0x16')](),_0x42ee94[_0xeea9('0xe')]);for(const _0x1b1f88 of _0x3fce91)_0x46d7d1['markInlineFormat'](_0x1b1f88,{'commandName':_0xeea9('0x1a'),'commandParams':[]});});}),_0x46d7d1[_0xeea9('0x14')]['registerDescriptionCallback'](_0x981f93=>{const {data:_0x3b40ac}=_0x981f93,_0x37b36e=_0x42ee94[_0xeea9('0x11')];if(_0x3b40ac){if(_0xeea9('0xd')==_0x3b40ac[_0xeea9('0x15')]){const _0x2a18fd=_0x3b40ac[_0xeea9('0x12')][0x0];return{'type':_0xeea9('0x5'),'content':_0x536a35(_0x37b36e,_0xeea9('0x7'),'\x22'+_0x2a18fd+'\x22')};}return _0xeea9('0x1a')==_0x3b40ac[_0xeea9('0x15')]?{'type':_0xeea9('0x5'),'content':_0x536a35(_0x37b36e,_0xeea9('0x1'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52d2=['listIndent','commandParams','filter','bulleted','listItem','editor','*Change\x20to:*\x20%0','enableCommand','todo','ELEMENT_LIST_ITEM','value','*Check\x20item*','markBlockFormat','replace','indentList','execute','getAttribute','*Indent:*\x20%0','createRange','parent','getSelectedBlocks','*Uncheck\x20item*','model','nextSibling','has','numbered','add','registerDescriptionCallback','from','todoListChecked','format','isObject','bulletedList','checkTodoList','numberedList','change','get','listType','registerElementLabel','name','blockName','end','selection','checkChild','paragraph','previousSibling','locale','commands','commandName','todoList','slice','document','before','TrackChangesEditing','element','plugins','ELEMENT_NUMBERED_LIST','forceValue','schema','outdentList','createPositionAt','*Outdent:*\x20%0','push'];(function(_0xc1d422,_0x52d21f){const _0x563d0e=function(_0x487e96){while(--_0x487e96){_0xc1d422['push'](_0xc1d422['shift']());}};_0x563d0e(++_0x52d21f);}(_0x52d2,0x96));const _0x563d=function(_0xc1d422,_0x52d21f){_0xc1d422=_0xc1d422-0x0;let _0x563d0e=_0x52d2[_0xc1d422];return _0x563d0e;};import{Plugin as _0xa1626c}from'ckeditor5/src/core';import{getTranslation as _0x43ec2b}from'../utils/common-translations';export default class st extends _0xa1626c{['afterInit'](){const _0x8db04f=this[_0x563d('0x2c')],_0x326328=_0x8db04f[_0x563d('0x16')];if(!_0x8db04f[_0x563d('0x1f')][_0x563d('0x0')]('ListEditing'))return;const _0xe0f524=_0x8db04f['plugins'][_0x563d('0xc')](_0x563d('0x1d')),_0xfe88bc=_0x8db04f[_0x563d('0x1f')][_0x563d('0x0')]('TodoListEditing');function _0x253a11(_0x55a693){return()=>{const _0x4affde=_0x8db04f[_0x563d('0x3d')][_0x563d('0x1b')][_0x563d('0x12')],_0x134fc8=_0x8db04f['commands'][_0x563d('0xc')](_0x55a693);if(_0x134fc8[_0x563d('0x31')])return void _0x8db04f[_0x563d('0x36')](_0x563d('0x14'),{});const _0x23f885=_0x55a693[_0x563d('0x1a')](0x0,-0x4),_0x29ee36=function(_0x7591c8,_0x1e7df7,_0x801458){let _0x17e254=Array[_0x563d('0x4')](_0x7591c8)[_0x563d('0x29')](_0x5e833=>function(_0x45864c,_0x3ff135){return _0x3ff135[_0x563d('0x13')](_0x45864c[_0x563d('0x3a')],_0x563d('0x2b'))&&!_0x3ff135[_0x563d('0x7')](_0x45864c);}(_0x5e833,_0x801458));_0x17e254=_0x17e254[_0x563d('0x29')](_0x3a1211=>!_0x3a1211['is'](_0x563d('0x1e'),_0x563d('0x2b'))||_0x3a1211[_0x563d('0x37')](_0x563d('0xd'))!=_0x1e7df7);const _0x421915=new Set();for(const _0x5fe3c4 of _0x17e254)_0x5fe3c4['is']('element',_0x563d('0x2b'))?_0x421915['add'](ne(_0x5fe3c4)):_0x421915[_0x563d('0x2')](_0x5fe3c4);return Array[_0x563d('0x4')](_0x421915);}(_0x4affde['getSelectedBlocks'](),_0x23f885,_0x8db04f[_0x563d('0x3d')][_0x563d('0x22')]);_0x8db04f[_0x563d('0x3d')][_0x563d('0xb')](()=>{for(const _0x2b53bd of _0x29ee36)_0xe0f524[_0x563d('0x33')](_0x2b53bd,{'commandName':_0x55a693,'commandParams':[{'forceValue':!_0x134fc8[_0x563d('0x31')]}],'formatGroupId':_0x563d('0x10')},oe(_0x2b53bd));});};}function _0x546c60(_0x225367){return()=>{const _0x26c71e=function(_0x4df8eb){let _0x126b5c=Array[_0x563d('0x4')](_0x4df8eb);const _0x570ddf=_0x126b5c['findIndex'](_0x13ecc5=>_0x563d('0x2b')!=_0x13ecc5[_0x563d('0xf')]);return _0x570ddf>-0x1&&(_0x126b5c=_0x126b5c[_0x563d('0x1a')](0x0,_0x570ddf)),_0x126b5c;}(_0x8db04f[_0x563d('0x3d')][_0x563d('0x1b')][_0x563d('0x12')][_0x563d('0x3b')]()),_0x5ea8cb=_0x8db04f[_0x563d('0x3d')][_0x563d('0x39')](_0x8db04f[_0x563d('0x3d')][_0x563d('0x24')](_0x26c71e[0x0],_0x563d('0x1c')),_0x8db04f['model'][_0x563d('0x24')](_0x26c71e[_0x26c71e['length']-0x1],_0x563d('0x11')));_0x8db04f['model'][_0x563d('0xb')](()=>{_0xe0f524[_0x563d('0x33')](_0x5ea8cb,{'commandName':_0x225367,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4cc167){const _0xdd7951=new Set();for(const _0x477068 of _0x4cc167){let _0x2c888d=_0x477068[_0x563d('0x3e')];for(;_0x2c888d&&_0x2c888d[_0x563d('0x37')](_0x563d('0x27'))>_0x477068[_0x563d('0x37')](_0x563d('0x27'));)_0xdd7951['add'](_0x2c888d),_0x2c888d=_0x2c888d[_0x563d('0x3e')];}return Array['from'](_0xdd7951);}(_0x26c71e));});};}_0xe0f524[_0x563d('0x2e')]('numberedList',_0x253a11(_0x563d('0xa'))),_0xe0f524[_0x563d('0x2e')](_0x563d('0x8'),_0x253a11(_0x563d('0x8'))),_0xfe88bc&&_0xe0f524[_0x563d('0x2e')](_0x563d('0x19'),_0x253a11('todoList')),_0xe0f524[_0x563d('0x2e')](_0x563d('0x35'),_0x546c60(_0x563d('0x35'))),_0xe0f524[_0x563d('0x2e')](_0x563d('0x23'),_0x546c60(_0x563d('0x23'))),_0xfe88bc&&_0xe0f524[_0x563d('0x2e')](_0x563d('0x9'),()=>{const _0x3a0f2e=_0x8db04f[_0x563d('0x17')][_0x563d('0xc')]('checkTodoList'),_0xa2b3c9=Array[_0x563d('0x4')](_0x3a0f2e['_selectedElements']);_0xa2b3c9[_0x563d('0x29')](_0x5cec6b=>_0x5cec6b[_0x563d('0x37')](_0x563d('0x5'))!=_0x3a0f2e[_0x563d('0x31')]),_0x8db04f['model'][_0x563d('0xb')](()=>{for(const _0x1b986b of _0xa2b3c9)_0xe0f524[_0x563d('0x33')](_0x1b986b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3a0f2e[_0x563d('0x31')]}]});});}),_0xe0f524['_descriptionFactory'][_0x563d('0xe')](_0x563d('0x2b'),_0x3bd708=>_0x43ec2b(_0x326328,_0x563d('0x30'),_0x3bd708)),_0xe0f524['_descriptionFactory'][_0x563d('0x3')](_0x591840=>{const {data:_0x53ce07}=_0x591840;if(_0x53ce07){if(_0x563d('0xa')==_0x53ce07[_0x563d('0x18')]||'bulletedList'==_0x53ce07[_0x563d('0x18')]||_0x563d('0x19')==_0x53ce07[_0x563d('0x18')])switch(_0x53ce07['commandName'][_0x563d('0x34')]('List','')){case _0x563d('0x2a'):return _0x1ce403(_0x43ec2b(_0x326328,'ELEMENT_BULLETED_LIST'));case _0x563d('0x1'):return _0x1ce403(_0x43ec2b(_0x326328,_0x563d('0x20')));case _0x563d('0x2f'):return _0x1ce403(_0x43ec2b(_0x326328,'ELEMENT_TODO_LIST'));}if('indentList'==_0x53ce07[_0x563d('0x18')])return{'type':_0x563d('0x6'),'content':_0x43ec2b(_0x326328,_0x563d('0x38'),_0x43ec2b(_0x326328,_0x563d('0x30')))};if(_0x563d('0x23')==_0x53ce07[_0x563d('0x18')])return{'type':'format','content':_0x43ec2b(_0x326328,_0x563d('0x25'),_0x43ec2b(_0x326328,'ELEMENT_LIST_ITEM'))};if(_0x563d('0x9')==_0x53ce07[_0x563d('0x18')])return _0x53ce07[_0x563d('0x28')][0x0][_0x563d('0x21')]?{'type':_0x563d('0x6'),'content':_0x43ec2b(_0x326328,_0x563d('0x32'))}:{'type':_0x563d('0x6'),'content':_0x43ec2b(_0x326328,_0x563d('0x3c'))};}function _0x1ce403(_0x4d597d){return{'type':'format','content':_0x43ec2b(_0x326328,_0x563d('0x2d'),_0x4d597d)};}});}}function ne(_0x38381e){const _0xab5522=_0x38381e[_0x563d('0x37')](_0x563d('0x27'));if(0x0==_0xab5522)return _0x38381e;let _0x67dc08=_0x38381e;for(;_0x38381e['previousSibling']&&_0x38381e['previousSibling']['is'](_0x563d('0x1e'),_0x563d('0x2b'));){const _0x16bee8=_0x38381e['previousSibling'][_0x563d('0x37')](_0x563d('0x27'));if(_0x16bee8==_0xab5522)_0x67dc08=_0x38381e[_0x563d('0x15')];else{if(_0x16bee8<_0xab5522)break;}_0x38381e=_0x38381e[_0x563d('0x15')];}return _0x67dc08;}function oe(_0xda0eab){const _0x4a035f=[];if(_0xda0eab['is'](_0x563d('0x1e'),_0x563d('0x2b'))&&_0xda0eab['getAttribute'](_0x563d('0x27'))>0x0){let _0x40c48d=_0xda0eab[_0x563d('0x3e')];for(;_0x40c48d&&_0x563d('0x2b')==_0x40c48d[_0x563d('0xf')]&&_0x40c48d[_0x563d('0x37')](_0x563d('0x27'))==_0xda0eab[_0x563d('0x37')]('listIndent');)_0x4a035f[_0x563d('0x26')](_0x40c48d),_0x40c48d=_0x40c48d['nextSibling'];}return _0x4a035f;}
|