@ckeditor/ckeditor5-track-changes 35.2.1 → 35.3.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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +4 -1
- package/lang/translations/ar.po +12 -0
- package/lang/translations/az.po +12 -0
- package/lang/translations/bg.po +12 -0
- package/lang/translations/bn.po +12 -0
- package/lang/translations/ca.po +12 -0
- package/lang/translations/cs.po +12 -0
- package/lang/translations/da.po +12 -0
- package/lang/translations/de.po +12 -0
- package/lang/translations/el.po +12 -0
- package/lang/translations/en-au.po +12 -0
- package/lang/translations/en.po +12 -0
- package/lang/translations/es.po +12 -0
- package/lang/translations/et.po +12 -0
- package/lang/translations/fi.po +12 -0
- package/lang/translations/fr.po +12 -0
- package/lang/translations/gl.po +12 -0
- package/lang/translations/he.po +12 -0
- package/lang/translations/hi.po +12 -0
- package/lang/translations/hr.po +12 -0
- package/lang/translations/hu.po +12 -0
- package/lang/translations/id.po +12 -0
- package/lang/translations/it.po +12 -0
- package/lang/translations/ja.po +12 -0
- package/lang/translations/ko.po +12 -0
- package/lang/translations/lt.po +12 -0
- package/lang/translations/lv.po +12 -0
- package/lang/translations/ms.po +12 -0
- package/lang/translations/nl.po +12 -0
- package/lang/translations/no.po +12 -0
- package/lang/translations/pl.po +12 -0
- package/lang/translations/pt-br.po +12 -0
- package/lang/translations/pt.po +12 -0
- package/lang/translations/ro.po +12 -0
- package/lang/translations/ru.po +12 -0
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sr-latn.po +12 -0
- package/lang/translations/sr.po +12 -0
- package/lang/translations/sv.po +12 -0
- package/lang/translations/th.po +12 -0
- package/lang/translations/tk.po +12 -0
- package/lang/translations/tr.po +12 -0
- package/lang/translations/tt.po +12 -0
- package/lang/translations/uk.po +12 -0
- package/lang/translations/ur.po +12 -0
- package/lang/translations/vi.po +12 -0
- package/lang/translations/zh-cn.po +12 -0
- package/lang/translations/zh.po +12 -0
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/{utils/sortsuggestions.js → commands/executeonallsuggestionscommand.js} +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +23 -0
- 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 +23 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.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/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/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/{utils/normalizedescription.js → integrations/tablecaption.js} +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.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 +23 -0
- package/src/commands/acceptallsuggestionscommand.js +0 -23
- package/src/commands/acceptselectedsuggestionscommand.js +0 -23
- package/src/commands/discardallsuggestionscommand.js +0 -23
- package/src/commands/discardselectedsuggestionscommand.js +0 -23
- package/src/utils/getrangesofblockgroups.js +0 -23
- package/src/utils/getselectedsuggestions.js +0 -23
- package/src/utils/hashobject.js +0 -23
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5853=['fontBackgroundColor','locale','normalizeSizeOptions','commandParams','title','TrackChangesEditing','label','format','fontSize.options','FontFamilyEditing','get','getRanges','*Set\x20font\x20size:*\x20%0','document','isCollapsed','find','commandName','fontSize','*Set\x20font\x20color:*\x20%0','toLowerCase','editor','from','change','trim','*Reset\x20font\x20size*','plugins','has','_enableCommand','markInlineFormat','fontColor','model','fontFamily','*Reset\x20font\x20color*','value','config','FontSizeEditing','FontBackgroundColorEditing','FontSize','afterInit'];(function(_0x310228,_0x585311){const _0xdd122e=function(_0x2bb7db){while(--_0x2bb7db){_0x310228['push'](_0x310228['shift']());}};_0xdd122e(++_0x585311);}(_0x5853,0x132));const _0xdd12=function(_0x310228,_0x585311){_0x310228=_0x310228-0x0;let _0xdd122e=_0x5853[_0x310228];return _0xdd122e;};import{Plugin as _0x54f879}from'ckeditor5/src/core';import{normalizeColorOptions as _0x1c1157}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x4d264f}from'./utils';import{getTranslation as _0xeb842}from'../utils/common-translations';const Jt=[{'pluginName':_0xdd12('0x2'),'commandName':_0xdd12('0x17')},{'pluginName':_0xdd12('0xf'),'commandName':_0xdd12('0x25')},{'pluginName':'FontColorEditing','commandName':_0xdd12('0x23')},{'pluginName':_0xdd12('0x3'),'commandName':_0xdd12('0x6')}];export default class W extends _0x54f879{[_0xdd12('0x5')](){const _0x3a9199=this[_0xdd12('0x1a')][_0xdd12('0x7')];for(const {pluginName:_0x1a1d51,commandName:_0x576828}of Jt)this[_0xdd12('0x1a')][_0xdd12('0x1f')][_0xdd12('0x20')](_0x1a1d51)&&this[_0xdd12('0x21')](_0x576828);this[_0xdd12('0x1a')]['plugins'][_0xdd12('0x10')](_0xdd12('0xb'))['_descriptionFactory']['registerDescriptionCallback'](_0x55587a=>{const {data:_0x418c90}=_0x55587a;if(null!=_0x418c90){if(_0xdd12('0x17')==_0x418c90[_0xdd12('0x16')]){const _0x2f7e89=_0x418c90['commandParams'][0x0][_0xdd12('0x0')];if(_0x2f7e89){const _0x27d958=this[_0xdd12('0x1a')][_0xdd12('0x1f')]['get'](_0xdd12('0x4'))[_0xdd12('0x8')](this[_0xdd12('0x1a')][_0xdd12('0x1')][_0xdd12('0x10')](_0xdd12('0xe')))['find'](_0x141a34=>_0x141a34[_0xdd12('0x24')]==_0x2f7e89)[_0xdd12('0xa')],_0x4b66f0=this['editor']['locale']['_t'](_0x27d958)[_0xdd12('0x19')]();return{'type':_0xdd12('0xd'),'content':_0xeb842(_0x3a9199,_0xdd12('0x12'),_0x4b66f0)};}return{'type':'format','content':_0xeb842(_0x3a9199,_0xdd12('0x1e'))};}if('fontFamily'==_0x418c90[_0xdd12('0x16')]){const _0x2a55b5=_0x418c90['commandParams'][0x0][_0xdd12('0x0')];return _0x2a55b5?{'type':_0xdd12('0xd'),'content':_0xeb842(_0x3a9199,'*Set\x20font\x20family:*\x20%0',_0x2a55b5)}:{'type':'format','content':_0xeb842(_0x3a9199,'*Reset\x20font\x20family*')};}if('fontColor'==_0x418c90[_0xdd12('0x16')]){const _0x596615=_0x418c90[_0xdd12('0x9')][0x0]['value'];if(_0x596615){const _0x136084=_0x1c1157(this['editor'][_0xdd12('0x1')][_0xdd12('0x10')]('fontColor.colors'))[_0xdd12('0x15')](_0x1b6b66=>_0x1b6b66[_0xdd12('0x24')]==_0x596615);let _0xb5fb=_0x596615,_0x437897='';return _0x136084&&(_0xb5fb=_0x136084[_0xdd12('0xc')],_0x437897=_0x3a9199['_t'](_0xb5fb)[_0xdd12('0x19')]()),{'type':'format','content':_0xeb842(_0x3a9199,_0xdd12('0x18'),_0x437897)[_0xdd12('0x1d')](),'color':{'value':_0x596615,'title':_0x437897||_0xb5fb}};}return{'type':_0xdd12('0xd'),'content':_0xeb842(_0x3a9199,_0xdd12('0x26'))};}if(_0xdd12('0x6')==_0x418c90['commandName']){const _0x25182f=_0x418c90[_0xdd12('0x9')][0x0]['value'];if(_0x25182f){const _0x28deb3=_0x1c1157(this[_0xdd12('0x1a')]['config']['get']('fontBackgroundColor.colors'))['find'](_0x931d49=>_0x931d49[_0xdd12('0x24')]==_0x25182f);let _0x5b1ef0=_0x25182f,_0x24fe33='';return _0x28deb3&&(_0x5b1ef0=_0x28deb3[_0xdd12('0xc')],_0x24fe33=_0x3a9199['_t'](_0x5b1ef0)[_0xdd12('0x19')]()),{'type':'format','content':_0xeb842(_0x3a9199,'*Set\x20font\x20background\x20color:*\x20%0',_0x24fe33)['trim'](),'color':{'value':_0x25182f,'title':_0x24fe33||_0x5b1ef0}};}return{'type':_0xdd12('0xd'),'content':_0xeb842(_0x3a9199,'*Reset\x20font\x20background\x20color*')};}}});}[_0xdd12('0x21')](_0x39a216){const _0x6f5698=this['editor'];_0x6f5698[_0xdd12('0x1f')][_0xdd12('0x10')](_0xdd12('0xb'))['enableCommand'](_0x39a216,(_0x1b2b7e,_0xf2ab20={})=>{const _0x337c2b=_0x6f5698[_0xdd12('0x24')][_0xdd12('0x13')]['selection'],_0x1ed9cd=_0xf2ab20[_0xdd12('0x0')];_0x337c2b[_0xdd12('0x14')]?_0x1b2b7e(_0xf2ab20):_0x6f5698[_0xdd12('0x24')][_0xdd12('0x1c')](()=>{const _0x2a435e=Array[_0xdd12('0x1b')](_0x337c2b[_0xdd12('0x11')]());for(const _0x3b0a30 of _0x2a435e){const _0x1d9d2a=_0x1ed9cd?[_0x3b0a30]:_0x4d264f(_0x39a216,_0x3b0a30,_0x6f5698[_0xdd12('0x24')]);for(const _0x43b703 of _0x1d9d2a)_0x6f5698['plugins'][_0xdd12('0x10')](_0xdd12('0xb'))[_0xdd12('0x22')](_0x43b703,{'commandName':_0x39a216,'commandParams':[{'value':_0x1ed9cd}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b91=['from','enableCommand','heading.options','find','markBlockFormat','isObject','ELEMENT_HEADING','document','get','selection','match','has','title','checkChild','getSelectedBlocks','paragraph','name','formatBlock','registerDescriptionCallback','locale','commandParams','commandName','_descriptionFactory','heading','editor','schema','value','filter','change','config','plugins','model','blockName','*Change\x20to:*\x20%0'];(function(_0x8ce50e,_0x1b913b){const _0x50d2f9=function(_0x1abeac){while(--_0x1abeac){_0x8ce50e['push'](_0x8ce50e['shift']());}};_0x50d2f9(++_0x1b913b);}(_0x1b91,0x88));const _0x50d2=function(_0x8ce50e,_0x1b913b){_0x8ce50e=_0x8ce50e-0x0;let _0x50d2f9=_0x1b91[_0x8ce50e];return _0x50d2f9;};import{Plugin as _0x4744b9}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x157bb3}from'./utils';import{getTranslation as _0x3369eb}from'../utils/common-translations';export default class z extends _0x4744b9{['afterInit'](){const _0x5a51fc=this['editor'],_0x356bb5=_0x5a51fc[_0x50d2('0x13')],_0x43bad0=_0x5a51fc[_0x50d2('0x1d')][_0x50d2('0x8')](_0x50d2('0x2'));if(!_0x5a51fc[_0x50d2('0x1e')][_0x50d2('0xb')]('HeadingEditing'))return;const _0x1f2c53=_0x5a51fc['plugins'][_0x50d2('0x8')]('TrackChangesEditing');_0x1f2c53[_0x50d2('0x1')](_0x50d2('0x17'),(_0x249d5a,_0x234e7b)=>{const _0x5b5a69=_0x234e7b['value'],_0x2f4315=Array[_0x50d2('0x0')](this[_0x50d2('0x18')][_0x50d2('0x1f')][_0x50d2('0x7')][_0x50d2('0x9')][_0x50d2('0xe')]())[_0x50d2('0x1b')](_0x1ca798=>function(_0x1ac385,_0x170861,_0x11390d){return _0x11390d[_0x50d2('0xd')](_0x1ac385['parent'],_0x170861)&&!_0x11390d[_0x50d2('0x5')](_0x1ac385)&&_0x1ac385[_0x50d2('0x10')]!=_0x170861;}(_0x1ca798,_0x5b5a69,this[_0x50d2('0x18')][_0x50d2('0x1f')][_0x50d2('0x19')]));_0x5a51fc[_0x50d2('0x1f')][_0x50d2('0x1c')](()=>{for(const _0x566860 of _0x2f4315)_0x1f2c53[_0x50d2('0x4')](_0x566860,{'commandName':_0x50d2('0x17'),'commandParams':[_0x234e7b],'formatGroupId':_0x50d2('0x20')},_0x157bb3(_0x566860));});});for(const _0x3e08bb of _0x43bad0)_0x50d2('0xf')!=_0x3e08bb['model']&&_0x1f2c53[_0x50d2('0x16')]['registerElementLabel'](_0x3e08bb[_0x50d2('0x1f')],_0xab0ae4=>{const _0x17a0d7=Kt(_0x3e08bb['model']);return null!==_0x17a0d7?_0x26b305(_0xab0ae4,_0x17a0d7):_0xb1e504(_0xab0ae4,_0x3e08bb[_0x50d2('0xc')]);});function _0x26b305(_0x6a02e9,_0x47c13f){return _0x3369eb(_0x356bb5,_0x50d2('0x6'),[_0x6a02e9,_0x47c13f]);}function _0xb1e504(_0x55d158,_0x4f1a3b){return _0x3369eb(_0x356bb5,'ELEMENT_HEADING_CUSTOM',[_0x55d158,_0x4f1a3b]);}_0x1f2c53[_0x50d2('0x16')][_0x50d2('0x12')](_0x505466=>{const {type:_0x15d2c9,data:_0xf3caf6}=_0x505466;if(_0x50d2('0x11')==_0x15d2c9&&_0xf3caf6&&'heading'==_0xf3caf6[_0x50d2('0x15')]){const _0x23989d=_0xf3caf6[_0x50d2('0x14')][0x0][_0x50d2('0x1a')],_0x1b3bc3=Kt(_0x23989d);if(null!==_0x1b3bc3)return{'type':'format','content':_0x3369eb(_0x356bb5,_0x50d2('0x21'),_0x26b305(0x1,_0x1b3bc3))};const _0x4aa8c4=_0x43bad0[_0x50d2('0x3')](_0x48af61=>_0x48af61[_0x50d2('0x1f')]===_0x23989d)[_0x50d2('0xc')];return{'type':'format','content':_0x3369eb(_0x356bb5,_0x50d2('0x21'),_0xb1e504(0x1,_0x4aa8c4))};}});}}function Kt(_0x4e8443){const _0x5a6796=_0x4e8443[_0x50d2('0xa')](/^heading(\d+)$/);return _0x5a6796?_0x5a6796[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7006=['toLowerCase','find','change','enableCommand','getAttribute','commandParams','editor','getLastMatchingPosition','plugins','hasAttribute','title','color','isCollapsed','HighlightEditing','_descriptionFactory','registerDescriptionCallback','format','FORMAT_HIGHLIGHT','value','commandName','afterInit','TrackChangesEditing','*Set\x20highlight:*\x20%0','push','formatInline','*Remove\x20highlight*','config','locale','highlight','model','has','getRanges','highlight.options','document','backward','get','getFirstPosition','markInlineFormat','selection'];(function(_0xedcfe0,_0x70064c){const _0x12643e=function(_0x46d8a1){while(--_0x46d8a1){_0xedcfe0['push'](_0xedcfe0['shift']());}};_0x12643e(++_0x70064c);}(_0x7006,0xa2));const _0x1264=function(_0xedcfe0,_0x70064c){_0xedcfe0=_0xedcfe0-0x0;let _0x12643e=_0x7006[_0xedcfe0];return _0x12643e;};import{Plugin as _0x5ecf18}from'ckeditor5/src/core';import{getTranslation as _0x5d45ca}from'../utils/common-translations';import{getRangesWithAttribute as _0x1109fd}from'./utils';export default class J extends _0x5ecf18{[_0x1264('0xe')](){const _0x51c0c6=this[_0x1264('0x0')];if(!_0x51c0c6[_0x1264('0x2')][_0x1264('0x18')](_0x1264('0x7')))return;const _0x28f551=_0x51c0c6[_0x1264('0x2')][_0x1264('0x1d')](_0x1264('0xf'));_0x28f551[_0x1264('0x24')](_0x1264('0x16'),(_0x4e24d9,_0x378768={})=>{const _0x3aa542=_0x51c0c6['model'][_0x1264('0x1b')][_0x1264('0x20')],_0x20deb4=_0x3aa542[_0x1264('0x25')]('highlight');let _0x23f254=_0x378768[_0x1264('0xc')],_0x3f1135=[];if(_0x3aa542[_0x1264('0x6')]){const _0x53a28b=_0x3aa542[_0x1264('0x1e')]();if(!_0x3aa542[_0x1264('0x3')](_0x1264('0x16')))return void _0x4e24d9(_0x378768);{const _0x562814=_0x3601c2=>_0x3601c2['item'][_0x1264('0x25')](_0x1264('0x16'))===_0x20deb4,_0x5512fb=_0x53a28b[_0x1264('0x1')](_0x562814,{'direction':_0x1264('0x1c')}),_0x1cd4b1=_0x53a28b[_0x1264('0x1')](_0x562814);_0x3f1135=[_0x51c0c6[_0x1264('0x17')]['createRange'](_0x5512fb,_0x1cd4b1)],_0x23f254==_0x20deb4&&(_0x23f254=null);}}else for(const _0x4b695b of _0x3aa542[_0x1264('0x19')]())_0x23f254?_0x3f1135[_0x1264('0x11')](_0x4b695b):_0x3f1135[_0x1264('0x11')](..._0x1109fd(_0x1264('0x16'),_0x4b695b,_0x51c0c6['model']));_0x51c0c6[_0x1264('0x17')][_0x1264('0x23')](()=>{for(const _0xb01fe0 of _0x3f1135)_0x28f551[_0x1264('0x1f')](_0xb01fe0,{'commandName':_0x1264('0x16'),'commandParams':[{'value':_0x23f254}]});});});const _0x582371=_0x51c0c6[_0x1264('0x15')];_0x28f551[_0x1264('0x8')][_0x1264('0x9')](_0x1fe4ea=>{const {type:_0x221f56,data:_0xd1c69e}=_0x1fe4ea;if(_0x1264('0x12')==_0x221f56&&_0xd1c69e&&'highlight'==_0xd1c69e[_0x1264('0xd')]){const _0x586652=_0xd1c69e[_0x1264('0x26')][0x0][_0x1264('0xc')];if(_0x586652){const _0x41986d=_0x51c0c6[_0x1264('0x14')][_0x1264('0x1d')](_0x1264('0x1a'))[_0x1264('0x22')](_0xa3cb0f=>_0xa3cb0f['model']==_0x586652),_0x2b966b=_0x582371['_t'](_0x41986d['title'])[_0x1264('0x21')]();return{'type':_0x1264('0xa'),'content':_0x5d45ca(_0x582371,_0x1264('0x10'),_0x2b966b),'color':{'value':_0x41986d[_0x1264('0x5')],'title':_0x41986d[_0x1264('0x4')]}};}return{'type':'format','content':_0x5d45ca(_0x582371,_0x1264('0x13'),_0x5d45ca(_0x582371,_0x1264('0xb')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcf74=['enableCommand','createPositionAt','_descriptionFactory','HorizontalLineEditing','high','addClass','horizontalLine','insert','div','for','createContainerElement','TrackChangesEditing','registerElementLabel','showSuggestionHighlights','ck-horizontal-line','createEmptyElement','editor','plugins','get','ELEMENT_HORIZONTAL_LINE'];(function(_0x2d21e9,_0xcf7416){const _0x78a56b=function(_0x15c67b){while(--_0x15c67b){_0x2d21e9['push'](_0x2d21e9['shift']());}};_0x78a56b(++_0xcf7416);}(_0xcf74,0x121));const _0x78a5=function(_0x2d21e9,_0xcf7416){_0x2d21e9=_0x2d21e9-0x0;let _0x78a56b=_0xcf74[_0x2d21e9];return _0x78a56b;};import{Plugin as _0x2133d6}from'ckeditor5/src/core';import{getTranslation as _0x1107e3}from'../utils/common-translations';export default class K extends _0x2133d6{['afterInit'](){const _0x2be8ed=this[_0x78a5('0x7')];if(!_0x2be8ed['plugins']['has'](_0x78a5('0xe')))return;_0x2be8ed[_0x78a5('0x8')][_0x78a5('0x9')](_0x78a5('0x2'))[_0x78a5('0xb')](_0x78a5('0x11'));const _0x41e81e=_0x2be8ed[_0x78a5('0x8')][_0x78a5('0x9')](_0x78a5('0x2')),_0x3368fd=_0x2be8ed['locale'];_0x41e81e[_0x78a5('0xd')][_0x78a5('0x3')](_0x78a5('0x11'),_0x5ba4b9=>_0x1107e3(_0x3368fd,_0x78a5('0xa'),_0x5ba4b9)),_0x2be8ed['conversion'][_0x78a5('0x0')]('dataDowncast')['elementToStructure']({'model':_0x78a5('0x11'),'view':(_0x48c68c,{writer:_0x20b545,options:_0x1b2263})=>{if(!_0x1b2263[_0x78a5('0x4')])return;const _0x5d5db4=_0x20b545[_0x78a5('0x1')](_0x78a5('0x13')),_0x3f0f6b=_0x20b545[_0x78a5('0x6')]('hr');return _0x20b545[_0x78a5('0x10')](_0x78a5('0x5'),_0x5d5db4),_0x20b545[_0x78a5('0x12')](_0x20b545[_0x78a5('0xc')](_0x5d5db4,0x0),_0x3f0f6b),_0x5d5db4;},'converterPriority':_0x78a5('0xf')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a15=['getAttribute','afterInit','locale','getCustomProperty','rawHtmlApi','TrackChangesEditing','value','editing','enableCommand','htmlEmbed','selection','get','*Change\x20%0\x20content*','_descriptionFactory','rawHtml','editor','document','markBlockFormat','getSelectedElement','HtmlEmbed','view','model','ELEMENT_HTML_EMBED','plugins'];(function(_0x3c6ab8,_0x5a157e){const _0xa0e69e=function(_0x1fc7fa){while(--_0x1fc7fa){_0x3c6ab8['push'](_0x3c6ab8['shift']());}};_0xa0e69e(++_0x5a157e);}(_0x5a15,0x162));const _0xa0e6=function(_0x3c6ab8,_0x5a157e){_0x3c6ab8=_0x3c6ab8-0x0;let _0xa0e69e=_0x5a15[_0x3c6ab8];return _0xa0e69e;};import{Plugin as _0x53e4ef}from'ckeditor5/src/core';import{getTranslation as _0xa2bf83}from'../utils/common-translations';export default class Q extends _0x53e4ef{[_0xa0e6('0x7')](){const _0x162ce8=this[_0xa0e6('0x15')];if(!_0x162ce8[_0xa0e6('0x5')]['has'](_0xa0e6('0x1')))return;const _0x368183=_0x162ce8[_0xa0e6('0x5')]['get'](_0xa0e6('0xb')),_0x23f7af=_0x162ce8[_0xa0e6('0x8')],_0x40292c=_0x162ce8[_0xa0e6('0xd')][_0xa0e6('0x2')]['document']['selection'];_0x368183['_descriptionFactory']['registerElementLabel'](_0xa0e6('0x14'),_0x1770fa=>_0xa2bf83(_0x23f7af,_0xa0e6('0x4'),_0x1770fa)),_0x162ce8[_0xa0e6('0x5')][_0xa0e6('0x11')](_0xa0e6('0xb'))[_0xa0e6('0xe')](_0xa0e6('0xf'),(_0x42ed23,_0x59f565)=>{const _0x1fed7d=_0x162ce8[_0xa0e6('0x3')],_0x38b7e7=_0x1fed7d[_0xa0e6('0x16')][_0xa0e6('0x10')];_0x1fed7d['change'](()=>{const _0x352354=function(_0x1f6159){const _0x31f658=_0x1f6159[_0xa0e6('0x0')]();if(_0x31f658&&_0x31f658['is']('element','rawHtml'))return _0x1f6159[_0xa0e6('0x0')]();return null;}(_0x38b7e7);if(!_0x352354)return void _0x42ed23(null);const _0x7ef17e=_0x352354[_0xa0e6('0x6')](_0xa0e6('0xc'))||'';if(void 0x0===_0x59f565)return;if(_0x59f565===_0x7ef17e)return;_0x368183[_0xa0e6('0x17')](_0x352354,{'commandName':_0xa0e6('0xf'),'commandParams':[_0x59f565]}),_0x40292c[_0xa0e6('0x0')]()[_0xa0e6('0x9')](_0xa0e6('0xa'))['cancel']();});}),_0x368183[_0xa0e6('0x13')]['registerDescriptionCallback'](_0x55f8fb=>{const {data:_0x5bb49e}=_0x55f8fb;if(_0x5bb49e&&_0xa0e6('0xf')==_0x5bb49e['commandName']){const _0x460e64=_0xa2bf83(_0x23f7af,_0xa0e6('0x4'));return{'type':'format','content':_0xa2bf83(_0x23f7af,_0xa0e6('0x12'),_0x460e64)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x32fb=['caption','getChangedMarkers','isCollapsed','element','format','locale','insertImage','shouldConvertImageType','convertBlockImageToInline','accept','find','isOwn','isEqual','imageTextAlternative','type','afterInit','toLowerCase','insertion','alt','ImageInlineEditing','registerElementLabel','toNext','model','getSuggestion','toggleImageCaption','_suggestionFactory','hasSuggestion','ELEMENT_CAPTION','ImageEditing','forceDefaultExecution','getSuggestions','nodeBefore','newValue','toPrevious','convertInlineImageToBlock','subType','next','plugins','getContainedElement','getClosestSelectedImageElement','differ','imageTypeInline','chain','ImageTextAlternativeEditing','TrackChangesEditing','normalizedStyles','imageStyle','hasAttribute','ImageCaptionUtils','discard','value','schema','change','formatInline','ImageResize','get','author','*Set\x20image\x20text\x20alternative:*\x20%0','removeObject','imageStylePreApply','filter','detach','FORMAT_SIDE_IMAGE','ImageCaptionEditing','registerDescriptionCallback','forward','resizeImage','formatBlock','selection','width','commandName','from','name','end','backward','markDeletion','enableCommand','start','isBlockImage','commandReversedParams','discardSuggestion','registerCustomCallback','isInlineImage','ELEMENT_INLINE_IMAGE','commands','title','ImageUploadEditing','getFirstRange','head','newRange','getCaptionFromImageModelElement','imageTypeBlock','*Set\x20image\x20width:*\x20%0','findIndex','isIntersecting','isBefore','_descriptionFactory','getNearestSelectionRange','refresh','Block\x20image\x20to\x20inline\x20image','forEach','has','_splitMarkerName','deletion','ImageBlockEditing','markBlockFormat','markInsertion','length','*Remove\x20image\x20text\x20alternative*','getAttribute','commandParams','document','createRange','getSuggestionCallback','uploadImage','fromPosition','imageCaption','imageStylePostApply','createRangeOn','*Format:*\x20%0','join','editor','Users'];(function(_0x45859e,_0x32fb56){const _0x4f7e66=function(_0x4463af){while(--_0x4463af){_0x45859e['push'](_0x45859e['shift']());}};_0x4f7e66(++_0x32fb56);}(_0x32fb,0x188));const _0x4f7e=function(_0x45859e,_0x32fb56){_0x45859e=_0x45859e-0x0;let _0x4f7e66=_0x32fb[_0x45859e];return _0x4f7e66;};import{Plugin as _0x366461}from'ckeditor5/src/core';import{LivePosition as _0x39a704}from'ckeditor5/src/engine';import{uid as _0x10b714}from'ckeditor5/src/utils';import{getTranslation as _0x287344}from'../utils/common-translations';export default class V extends _0x366461{[_0x4f7e('0x73')](){const _0x336125=this[_0x4f7e('0x62')];if(!_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x5')))return;const _0x19635b=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x15')),_0x3cdd56=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')]('ImageUtils'),_0x14d6b5={},_0x58c14a=_0x336125[_0x4f7e('0x69')];if(_0x19635b['enableCommand'](_0x4f7e('0x6a')),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')]('imageBlock',_0x4f7fbc=>_0x287344(_0x58c14a,'ELEMENT_IMAGE',_0x4f7fbc)),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')]('imageInline',_0x2ae673=>_0x287344(_0x58c14a,_0x4f7e('0x3c'),_0x2ae673)),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')](_0x4f7e('0x64'),_0x287344(_0x58c14a,_0x4f7e('0x4'))),_0x336125[_0x4f7e('0xe')]['has'](_0x4f7e('0x3f'))&&_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x5b')),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x51'))&&_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x77'))&&(_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x12'),(_0x29d8b1,_0x379907)=>{const _0x202126=_0x3cdd56['getClosestSelectedImageElement'](_0x336125['model']['document'][_0x4f7e('0x2d')]);_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b[_0x4f7e('0x52')](_0x202126,{'commandName':_0x4f7e('0x12'),'commandParams':[_0x379907]},[],_0x4f7e('0x6c'));});}),_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x44'),(_0x1c45f7,_0x2712f6)=>{_0x336125['model']['change'](_0x26aea2=>{let _0xeafe58=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')]['selection']),_0xf251d=_0x26aea2['createRangeOn'](_0xeafe58);const _0x1b9107=_0x39a704[_0x4f7e('0x5c')](_0xf251d[_0x4f7e('0x36')],_0x4f7e('0xa')),_0xe031c0=_0x39a704['fromPosition'](_0xf251d[_0x4f7e('0x32')],_0x4f7e('0x79'));_0x19635b[_0x4f7e('0x6')](()=>_0x1c45f7(_0x2712f6)),_0xeafe58=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0xf251d=_0x26aea2['createRangeOn'](_0xeafe58);const _0x58f377=_0x26aea2['createRange'](_0x1b9107,_0xe031c0);_0x1b9107[_0x4f7e('0x26')](),_0xe031c0['detach'](),_0x19635b[_0x4f7e('0x52')](_0xeafe58,{'commandName':_0x4f7e('0x12')},[],_0x4f7e('0xb')),_0x58f377[_0x4f7e('0x36')][_0x4f7e('0x48')](_0xf251d['start'])&&_0x19635b[_0x4f7e('0x53')](_0x26aea2['createRange'](_0x58f377[_0x4f7e('0x36')],_0xf251d[_0x4f7e('0x36')]),_0x4f7e('0xb')),_0xf251d[_0x4f7e('0x32')][_0x4f7e('0x48')](_0x58f377[_0x4f7e('0x32')])&&_0x19635b[_0x4f7e('0x53')](_0x26aea2['createRange'](_0xf251d[_0x4f7e('0x32')],_0x58f377[_0x4f7e('0x32')]),_0x4f7e('0xb'));});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'convertInlineImageToBlock',_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0xb'),_0x4f7e('0x6d'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'convertInlineImageToBlock',_0x4f7e('0x1a'),_0x19635b['_suggestionFactory'][_0x4f7e('0x5a')](_0x4f7e('0x2c'),'','accept')),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0xb'),'join',()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')]('insertion',_0x4f7e('0xb'),'discard',([_0x324da6])=>{const _0x21e25d=_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x5a')](_0x4f7e('0x75'),'','discard');let _0xc6efdf=_0x324da6['start'],_0x311fb3=_0x324da6[_0x4f7e('0x32')];const _0x20d476=_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1c')]['getNearestSelectionRange'](_0xc6efdf,_0x4f7e('0x33')),_0x14cb28=_0x336125['model'][_0x4f7e('0x1c')][_0x4f7e('0x4a')](_0x311fb3,_0x4f7e('0x2a'));_0x20d476[_0x4f7e('0x66')]&&(_0xc6efdf=_0x20d476['start']),_0x14cb28[_0x4f7e('0x66')]&&(_0x311fb3=_0x14cb28[_0x4f7e('0x32')]),_0x21e25d([_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x59')](_0xc6efdf,_0x311fb3)]);}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0xb'),'chain',_0x16e386),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0xb'),_0x4f7e('0x13'),_0x16e386)),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x28'))&&(_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x1'),(_0x386394,_0x1b9548)=>{const _0x1e7c86=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x19'));let _0x1d5524=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x1f6f52=_0x1e7c86[_0x4f7e('0x43')](_0x1d5524);_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{if(_0x1f6f52)return void _0x19635b[_0x4f7e('0x34')](_0x336125['model']['createRangeOn'](_0x1f6f52));const _0x219cc5=_0x3cdd56[_0x4f7e('0x37')](_0x1d5524);_0x386394(_0x1b9548),_0x1d5524=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')]['document'][_0x4f7e('0x2d')]),_0x1f6f52=_0x1e7c86[_0x4f7e('0x43')](_0x1d5524),_0x19635b[_0x4f7e('0x53')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x5f')](_0x1f6f52),_0x219cc5?null:_0x4f7e('0x5d'));});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0x5d'),_0x4f7e('0x13'),_0x16e386)),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')]('ImageStyleEditing')){_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x17'),(_0x10857e,_0x4017e7)=>{const _0x1726cb=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x63'))['me'],_0x3de232=_0x336125['commands'][_0x4f7e('0x20')](_0x4f7e('0x17'));let _0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x32828b=_0x336125[_0x4f7e('0x7a')]['createRangeOn'](_0x5ea5dd),_0x3747d9=_0x3de232[_0x4f7e('0x1b')];if(_0x3747d9==_0x4017e7[_0x4f7e('0x1b')])return;const _0x346cab={'commandName':_0x4f7e('0x17'),'commandParams':[_0x4017e7],'formatGroupId':_0x10b714()};_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{if(_0x19635b[_0x4f7e('0x7')]()['filter'](_0x53c3a3=>_0x53c3a3['isInContent']&&_0x1726cb==_0x53c3a3[_0x4f7e('0x21')]&&('formatBlock'==_0x53c3a3[_0x4f7e('0x72')]||_0x4f7e('0x1e')==_0x53c3a3[_0x4f7e('0x72')])&&(_0x4f7e('0x24')==_0x53c3a3[_0x4f7e('0xc')]||_0x4f7e('0x5e')==_0x53c3a3[_0x4f7e('0xc')])&&_0x53c3a3[_0x4f7e('0x40')]()[_0x4f7e('0x70')](_0x32828b))[_0x4f7e('0x4d')](_0xde448=>_0x19635b[_0x4f7e('0x39')](_0xde448[_0x4f7e('0x41')])),_0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x32828b=_0x336125['model'][_0x4f7e('0x5f')](_0x5ea5dd),_0x3de232['refresh'](),_0x336125[_0x4f7e('0x3d')][_0x4f7e('0x20')](_0x4f7e('0x12'))[_0x4f7e('0x4b')](),_0x336125[_0x4f7e('0x3d')][_0x4f7e('0x20')](_0x4f7e('0x44'))[_0x4f7e('0x4b')](),_0x3747d9=_0x3de232[_0x4f7e('0x1b')],_0x3747d9!=_0x4017e7['value'])return _0x3cdd56[_0x4f7e('0x3b')](_0x5ea5dd)&&_0x3de232[_0x4f7e('0x6b')](_0x4017e7['value'],_0x5ea5dd)?(_0x10857e(_0x4017e7),_0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')]['document']['selection']),void _0x19635b[_0x4f7e('0x52')](_0x5ea5dd,{..._0x346cab,'commandReversedParams':[{'value':_0x3747d9||null}]},[],_0x4f7e('0x24'))):void(_0x3cdd56[_0x4f7e('0x37')](_0x5ea5dd)?_0x19635b[_0x4f7e('0x52')](_0x5ea5dd,_0x346cab,[],_0x4f7e('0x5e')):_0x19635b['markInlineFormat'](_0x32828b,_0x346cab,'imageStylePostApply'));});});for(const _0xa2e26d of _0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')]('ImageStyleEditing')[_0x4f7e('0x16')])_0x14d6b5[_0xa2e26d[_0x4f7e('0x31')]]=_0xa2e26d[_0x4f7e('0x3e')][_0x4f7e('0x74')]();_0x19635b['_suggestionFactory'][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'imageStylePreApply',_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')]['registerCustomCallback']('formatBlock',_0x4f7e('0x5e'),_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x1e'),_0x4f7e('0x5e'),_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0x24'),'accept',()=>{}),_0x19635b['_suggestionFactory'][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0x24'),_0x4f7e('0x1a'),(_0x47b3a8,_0x1965f6)=>{_0x19635b['_suggestionFactory'][_0x4f7e('0x5a')](_0x4f7e('0x2c'),'',_0x4f7e('0x6d'))(_0x47b3a8,{'commandName':_0x1965f6['commandName'],'commandParams':_0x1965f6[_0x4f7e('0x38')]});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')]('formatBlock','imageStylePreApply',_0x4f7e('0x13'),_0x16e386);}const _0x4bdeff=[{'type':_0x4f7e('0x2c'),'subType':_0x4f7e('0x24')},{'type':_0x4f7e('0x75'),'subType':_0x4f7e('0x5d')},{'type':'formatBlock','subType':_0x4f7e('0xb')},{'type':_0x4f7e('0x75'),'subType':_0x4f7e('0xb')}];function _0x105f27(_0x1fe7ca,_0x1c4873){const _0x34ac64=_0x4bdeff[_0x4f7e('0x46')](({type:_0x35250c,subType:_0x3e4c33})=>_0x1fe7ca[_0x4f7e('0x72')]==_0x35250c&&_0x1fe7ca[_0x4f7e('0xc')]==_0x3e4c33),_0xb67a10=_0x4bdeff[_0x4f7e('0x46')](({type:_0x3d0b10,subType:_0x1806d3})=>_0x1c4873[_0x4f7e('0x72')]==_0x3d0b10&&_0x1c4873[_0x4f7e('0xc')]==_0x1806d3);if(_0x34ac64<0x0||_0xb67a10<0x0)return!0x1;const _0xa8e9f4=_0x1fe7ca[_0x4f7e('0x40')](),_0x2b466b=_0x1c4873[_0x4f7e('0x40')]();if((0x0==_0x34ac64||0x1==_0x34ac64)&&0x2==_0xb67a10&&_0xa8e9f4[_0x4f7e('0x47')](_0x2b466b))return!0x0;if(0x2==_0x34ac64&&0x3==_0xb67a10){const _0x40ec63=_0x19635b['_findSuggestions'](_0xa8e9f4,'insertion')[_0x4f7e('0x25')](({suggestion:_0x2f4d4b,meta:_0x61dd9c})=>_0x61dd9c[_0x4f7e('0x6f')]&&'convertInlineImageToBlock'==_0x2f4d4b[_0x4f7e('0xc')]);if(_0x40ec63[_0x4f7e('0x54')]>0x1&&_0x2b466b[_0x4f7e('0x32')][_0x4f7e('0x70')](_0xa8e9f4[_0x4f7e('0x36')]))return!0x0;if(0x1==_0x40ec63[_0x4f7e('0x54')]&&(_0xa8e9f4[_0x4f7e('0x36')][_0x4f7e('0x70')](_0x2b466b[_0x4f7e('0x32')])||_0xa8e9f4[_0x4f7e('0x32')][_0x4f7e('0x70')](_0x2b466b[_0x4f7e('0x36')])))return!0x0;}if(0x3==_0x34ac64&&0x3==_0xb67a10&&_0xa8e9f4[_0x4f7e('0x36')][_0x4f7e('0x48')](_0x2b466b[_0x4f7e('0x36')])){const _0x5f19c7=_0xa8e9f4[_0x4f7e('0x32')]['nodeAfter'],_0x557b11=_0x2b466b[_0x4f7e('0x36')][_0x4f7e('0x8')];return _0x3cdd56[_0x4f7e('0x37')](_0x5f19c7)&&_0x5f19c7===_0x557b11;}return!0x1;}function _0x16e386(_0x1f659b,_0x3dd4ad){return _0x105f27(_0x1f659b,_0x3dd4ad)?[_0x1f659b,_0x3dd4ad]:_0x105f27(_0x3dd4ad,_0x1f659b)?[_0x3dd4ad,_0x1f659b]:null;}_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')]['registerPostFixer'](()=>{let _0x1ff5e3=!0x1;const _0x168fa1=Array[_0x4f7e('0x30')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x11')][_0x4f7e('0x65')]());for(const {name:_0xf55de,data:_0x589b6d}of _0x168fa1){const {group:_0x14fdea,type:_0x16abd4,subType:_0x343c1f,id:_0xfbc40e}=_0x19635b[_0x4f7e('0x4f')](_0xf55de);if('suggestion'==_0x14fdea&&_0x19635b[_0x4f7e('0x3')](_0xfbc40e)){if(_0x4f7e('0x2c')==_0x16abd4&&('imageStylePreApply'==_0x343c1f||_0x4f7e('0x5e')==_0x343c1f)){const _0x2f5803=_0x19635b[_0x4f7e('0x0')](_0xfbc40e);if(_0x589b6d['newRange']){const _0x3ba72f=_0x2f5803[_0x4f7e('0x40')]()[_0x4f7e('0xf')]();if(_0x3cdd56[_0x4f7e('0x37')](_0x3ba72f))continue;_0x19635b['discardSuggestion'](_0x2f5803),_0x1ff5e3=!0x0;}}if(_0x4f7e('0x75')==_0x16abd4&&_0x4f7e('0x5d')==_0x343c1f&&!_0x589b6d[_0x4f7e('0x42')]){const _0x568384=_0x19635b[_0x4f7e('0x0')](_0xfbc40e);_0x568384[_0x4f7e('0xd')]&&_0x568384[_0x4f7e('0xd')]['isInContent']&&(_0x19635b[_0x4f7e('0x39')](_0x568384[_0x4f7e('0xd')]),_0x1ff5e3=!0x0);}}}return _0x1ff5e3;}),_0x336125[_0x4f7e('0xe')]['has'](_0x4f7e('0x1f'))&&_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x2b'),(_0x122352,_0x3222c1)=>{const _0x1ec58e=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]);_0x1ec58e[_0x4f7e('0x56')](_0x4f7e('0x2e'))!=_0x3222c1[_0x4f7e('0x2e')]&&_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b[_0x4f7e('0x52')](_0x1ec58e,{'commandName':_0x4f7e('0x2b'),'commandParams':[_0x3222c1]});});}),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x14'))&&_0x19635b['enableCommand'](_0x4f7e('0x71'),(_0x1f28cf,_0x13877e)=>{const _0xe90501=_0x3cdd56['getClosestSelectedImageElement'](_0x336125[_0x4f7e('0x7a')]['document'][_0x4f7e('0x2d')]);(_0xe90501[_0x4f7e('0x18')](_0x4f7e('0x76'))?_0xe90501[_0x4f7e('0x56')](_0x4f7e('0x76')):'')!=_0x13877e[_0x4f7e('0x9')]&&_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b['markBlockFormat'](_0xe90501,{'commandName':_0x4f7e('0x71'),'commandParams':[_0x13877e]});});}),_0x19635b['_descriptionFactory'][_0x4f7e('0x29')](_0x3928e8=>{if(!!_0x4bdeff[_0x4f7e('0x6e')](({type:_0x434350,subType:_0x345660})=>_0x3928e8[_0x4f7e('0x72')]==_0x434350&&_0x3928e8[_0x4f7e('0xc')]==_0x345660))return _0x3928e8['previous']?{}:void 0x0;}),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x29')](_0x1da52b=>{if('insertion'==_0x1da52b['type']||_0x4f7e('0x50')==_0x1da52b['type']){const _0x1efe38=_0x1da52b[_0x4f7e('0xf')]();if(_0x1efe38&&_0x1efe38['is'](_0x4f7e('0x67'),'caption'))return{'type':_0x4f7e('0x75')==_0x1da52b[_0x4f7e('0x72')]?'addObject':_0x4f7e('0x23'),'name':_0x1efe38['name'],'quantity':0x1};}}),_0x19635b['_descriptionFactory'][_0x4f7e('0x29')](_0x5e29eb=>'formatBlock'==_0x5e29eb[_0x4f7e('0x72')]&&_0x4f7e('0xb')==_0x5e29eb[_0x4f7e('0xc')]?{'type':_0x4f7e('0x68'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e29eb[_0x4f7e('0x72')]&&_0x4f7e('0x6c')==_0x5e29eb[_0x4f7e('0xc')]?{'type':_0x4f7e('0x68'),'content':_0x4f7e('0x4c')}:void 0x0),_0x19635b['_descriptionFactory']['registerDescriptionCallback'](_0x4bc9c9=>{const {data:_0x17bc1c}=_0x4bc9c9;if(_0x17bc1c){if(_0x4f7e('0x17')==_0x17bc1c[_0x4f7e('0x2f')]){const _0x170f9c=_0x17bc1c[_0x4f7e('0x57')][0x0][_0x4f7e('0x1b')];return _0x26a6b1('side'===_0x170f9c?_0x287344(_0x58c14a,_0x4f7e('0x27')):_0x14d6b5[_0x170f9c]||_0x170f9c);}if(_0x4f7e('0x71')==_0x17bc1c[_0x4f7e('0x2f')]){const _0x5644e9=_0x17bc1c['commandParams'][0x0]['newValue'];return _0x5644e9?{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x22'),'\x22'+_0x5644e9+'\x22')}:{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x55'))};}if('resizeImage'==_0x17bc1c[_0x4f7e('0x2f')]){const _0x3afe17=_0x17bc1c[_0x4f7e('0x57')][0x0][_0x4f7e('0x2e')];return _0x3afe17?{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x45'),_0x3afe17)}:{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,'*Reset\x20image\x20width*')};}}function _0x26a6b1(_0x362371){return{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x60'),_0x362371)};}});}}
|
|
23
|
+
const _0x439a=['format','registerElementLabel','_descriptionFactory','ImageEditing','getNearestSelectionRange','getSuggestion','commandParams','shouldConvertImageType','accept','ImageCaptionUtils','isOwn','type','value','length','ImageBlockEditing','registerCustomCallback','ImageUploadEditing','_findSuggestions','isInlineImage','getSuggestionCallback','ImageCaptionEditing','ImageUtils','head','*Set\x20image\x20text\x20alternative:*\x20%0','markDeletion','suggestion','newRange','insertion','width','*Remove\x20image\x20text\x20alternative*','normalizedStyles','imageCaption','from','deletion','*Format:*\x20%0','imageStylePreApply','plugins','Users','alt','isCollapsed','isBlockImage','imageStyle','formatBlock','schema','has','next','imageTextAlternative','formatInline','markBlockFormat','enableCommand','FORMAT_SIDE_IMAGE','fromPosition','forceDefaultExecution','isInContent','caption','previous','commands','markInsertion','ImageResize','title','ELEMENT_IMAGE','model','discard','getAttribute','convertBlockImageToInline','toggleImageCaption','registerDescriptionCallback','discardSuggestion','getCaptionFromImageModelElement','isBefore','newValue','imageStylePostApply','imageBlock','start','change','TrackChangesEditing','getClosestSelectedImageElement','isIntersecting','addObject','removeObject','convertInlineImageToBlock','imageInline','getFirstRange','_suggestionFactory','toNext','end','filter','getSuggestions','toPrevious','forward','createRangeOn','getChangedMarkers','join','differ','subType','editor','selection','nodeAfter','find','author','ImageTextAlternativeEditing','commandReversedParams','imageTypeInline','insertImage','document','*Set\x20image\x20width:*\x20%0','hasAttribute','element','resizeImage','get','commandName','ImageStyleEditing','isEqual','imageTypeBlock','createRange','chain','hasSuggestion','ELEMENT_INLINE_IMAGE','ELEMENT_CAPTION','findIndex','refresh','detach'];(function(_0x2eee25,_0x439abc){const _0x25dfc4=function(_0x1c23f3){while(--_0x1c23f3){_0x2eee25['push'](_0x2eee25['shift']());}};_0x25dfc4(++_0x439abc);}(_0x439a,0x129));const _0x25df=function(_0x2eee25,_0x439abc){_0x2eee25=_0x2eee25-0x0;let _0x25dfc4=_0x439a[_0x2eee25];return _0x25dfc4;};import{Plugin as _0x55eabf}from'ckeditor5/src/core';import{LivePosition as _0x1efb0b}from'ckeditor5/src/engine';import{uid as _0x251978}from'ckeditor5/src/utils';import{getTranslation as _0x32720a}from'../utils/common-translations';export default class V extends _0x55eabf{['afterInit'](){const _0x536c4b=this[_0x25df('0x2a')];if(!_0x536c4b[_0x25df('0x69')][_0x25df('0x71')](_0x25df('0x48')))return;const _0x30f95c=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x16')),_0x5ca996=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x5a')),_0x5852b1={},_0x49e9d2=_0x536c4b['locale'];if(_0x30f95c[_0x25df('0x76')](_0x25df('0x32')),_0x30f95c[_0x25df('0x47')]['registerElementLabel'](_0x25df('0x13'),_0x2352b8=>_0x32720a(_0x49e9d2,_0x25df('0x7'),_0x2352b8)),_0x30f95c[_0x25df('0x47')][_0x25df('0x46')](_0x25df('0x1c'),_0x39f257=>_0x32720a(_0x49e9d2,_0x25df('0x40'),_0x39f257)),_0x30f95c[_0x25df('0x47')][_0x25df('0x46')](_0x25df('0x1'),()=>_0x32720a(_0x49e9d2,_0x25df('0x41'))),_0x536c4b[_0x25df('0x69')][_0x25df('0x71')](_0x25df('0x55'))&&_0x30f95c[_0x25df('0x76')]('uploadImage'),_0x536c4b[_0x25df('0x69')]['has'](_0x25df('0x53'))&&_0x536c4b['plugins']['has']('ImageInlineEditing')&&(_0x30f95c[_0x25df('0x76')](_0x25df('0x31'),(_0x3ddde1,_0xfdb0cf)=>{const _0x357778=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')]['document'][_0x25df('0x2b')]);_0x536c4b[_0x25df('0x8')][_0x25df('0x15')](()=>{_0x30f95c[_0x25df('0x75')](_0x357778,{'commandName':'imageTypeInline','commandParams':[_0xfdb0cf]},[],_0x25df('0xb'));});}),_0x30f95c['enableCommand'](_0x25df('0x3c'),(_0x52615d,_0x186034)=>{_0x536c4b['model']['change'](_0x4352c9=>{let _0x39e632=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')][_0x25df('0x2b')]),_0x17ad68=_0x4352c9[_0x25df('0x25')](_0x39e632);const _0x3e0755=_0x1efb0b[_0x25df('0x78')](_0x17ad68[_0x25df('0x14')],_0x25df('0x23')),_0x151287=_0x1efb0b['fromPosition'](_0x17ad68[_0x25df('0x20')],_0x25df('0x1f'));_0x30f95c[_0x25df('0x79')](()=>_0x52615d(_0x186034)),_0x39e632=_0x5ca996['getClosestSelectedImageElement'](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')]['selection']),_0x17ad68=_0x4352c9['createRangeOn'](_0x39e632);const _0x18954e=_0x4352c9['createRange'](_0x3e0755,_0x151287);_0x3e0755[_0x25df('0x44')](),_0x151287[_0x25df('0x44')](),_0x30f95c[_0x25df('0x75')](_0x39e632,{'commandName':_0x25df('0x31')},[],'convertInlineImageToBlock'),_0x18954e['start'][_0x25df('0x10')](_0x17ad68[_0x25df('0x14')])&&_0x30f95c[_0x25df('0x4')](_0x4352c9['createRange'](_0x18954e['start'],_0x17ad68[_0x25df('0x14')]),'convertInlineImageToBlock'),_0x17ad68[_0x25df('0x20')]['isBefore'](_0x18954e[_0x25df('0x20')])&&_0x30f95c[_0x25df('0x4')](_0x4352c9[_0x25df('0x3d')](_0x17ad68[_0x25df('0x20')],_0x18954e[_0x25df('0x20')]),_0x25df('0x1b'));});}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x6f'),_0x25df('0x1b'),_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback']('formatBlock',_0x25df('0x1b'),_0x25df('0x4d'),()=>{}),_0x30f95c['_suggestionFactory'][_0x25df('0x54')](_0x25df('0x6f'),_0x25df('0x1b'),'discard',_0x30f95c['_suggestionFactory']['getSuggestionCallback']('formatBlock','',_0x25df('0x4d'))),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x60'),_0x25df('0x1b'),_0x25df('0x27'),()=>{}),_0x30f95c['_suggestionFactory'][_0x25df('0x54')](_0x25df('0x60'),_0x25df('0x1b'),_0x25df('0x9'),([_0x1495dd])=>{const _0x2b60df=_0x30f95c[_0x25df('0x1e')][_0x25df('0x58')](_0x25df('0x60'),'',_0x25df('0x9'));let _0x41fbe6=_0x1495dd[_0x25df('0x14')],_0x55648e=_0x1495dd[_0x25df('0x20')];const _0x28294d=_0x536c4b[_0x25df('0x8')][_0x25df('0x70')][_0x25df('0x49')](_0x41fbe6,'backward'),_0xb5f396=_0x536c4b[_0x25df('0x8')][_0x25df('0x70')][_0x25df('0x49')](_0x55648e,_0x25df('0x24'));_0x28294d[_0x25df('0x6c')]&&(_0x41fbe6=_0x28294d[_0x25df('0x14')]),_0xb5f396[_0x25df('0x6c')]&&(_0x55648e=_0xb5f396[_0x25df('0x20')]),_0x2b60df([_0x536c4b[_0x25df('0x8')]['createRange'](_0x41fbe6,_0x55648e)]);}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')]('formatBlock',_0x25df('0x1b'),_0x25df('0x3e'),_0x4da4b6),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')]('insertion','convertInlineImageToBlock',_0x25df('0x3e'),_0x4da4b6)),_0x536c4b[_0x25df('0x69')][_0x25df('0x71')](_0x25df('0x59'))&&(_0x30f95c[_0x25df('0x76')](_0x25df('0xc'),(_0x10dcc5,_0xdc5a6e)=>{const _0x5111eb=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x4e'));let _0x144d94=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')]['document'][_0x25df('0x2b')]),_0x53714b=_0x5111eb[_0x25df('0xf')](_0x144d94);_0x536c4b[_0x25df('0x8')]['change'](()=>{if(_0x53714b)return void _0x30f95c[_0x25df('0x5d')](_0x536c4b['model'][_0x25df('0x25')](_0x53714b));const _0x5306fc=_0x5ca996[_0x25df('0x6d')](_0x144d94);_0x10dcc5(_0xdc5a6e),_0x144d94=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')]['document'][_0x25df('0x2b')]),_0x53714b=_0x5111eb['getCaptionFromImageModelElement'](_0x144d94),_0x30f95c[_0x25df('0x4')](_0x536c4b[_0x25df('0x8')]['createRangeOn'](_0x53714b),_0x5306fc?null:_0x25df('0x64'));});}),_0x30f95c['_suggestionFactory'][_0x25df('0x54')](_0x25df('0x60'),_0x25df('0x64'),'chain',_0x4da4b6)),_0x536c4b[_0x25df('0x69')]['has']('ImageStyleEditing')){_0x30f95c[_0x25df('0x76')](_0x25df('0x6e'),(_0x2fb7ef,_0x2b395d)=>{const _0x2317b4=_0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x6a'))['me'],_0x205ea9=_0x536c4b[_0x25df('0x3')][_0x25df('0x38')](_0x25df('0x6e'));let _0x3bcf04=_0x5ca996['getClosestSelectedImageElement'](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')]['selection']),_0x21cadd=_0x536c4b['model'][_0x25df('0x25')](_0x3bcf04),_0x29b7cb=_0x205ea9[_0x25df('0x51')];if(_0x29b7cb==_0x2b395d[_0x25df('0x51')])return;const _0x55c18c={'commandName':'imageStyle','commandParams':[_0x2b395d],'formatGroupId':_0x251978()};_0x536c4b[_0x25df('0x8')][_0x25df('0x15')](()=>{if(_0x30f95c[_0x25df('0x22')]()[_0x25df('0x21')](_0x2be69d=>_0x2be69d[_0x25df('0x0')]&&_0x2317b4==_0x2be69d[_0x25df('0x2e')]&&('formatBlock'==_0x2be69d[_0x25df('0x50')]||_0x25df('0x74')==_0x2be69d['type'])&&(_0x25df('0x68')==_0x2be69d[_0x25df('0x29')]||_0x25df('0x12')==_0x2be69d[_0x25df('0x29')])&&_0x2be69d['getFirstRange']()[_0x25df('0x3b')](_0x21cadd))['forEach'](_0xb823d4=>_0x30f95c[_0x25df('0xe')](_0xb823d4[_0x25df('0x5b')])),_0x3bcf04=_0x5ca996[_0x25df('0x17')](_0x536c4b['model'][_0x25df('0x33')]['selection']),_0x21cadd=_0x536c4b[_0x25df('0x8')][_0x25df('0x25')](_0x3bcf04),_0x205ea9[_0x25df('0x43')](),_0x536c4b['commands'][_0x25df('0x38')]('imageTypeInline')[_0x25df('0x43')](),_0x536c4b[_0x25df('0x3')][_0x25df('0x38')](_0x25df('0x3c'))[_0x25df('0x43')](),_0x29b7cb=_0x205ea9[_0x25df('0x51')],_0x29b7cb!=_0x2b395d[_0x25df('0x51')])return _0x5ca996[_0x25df('0x57')](_0x3bcf04)&&_0x205ea9[_0x25df('0x4c')](_0x2b395d[_0x25df('0x51')],_0x3bcf04)?(_0x2fb7ef(_0x2b395d),_0x3bcf04=_0x5ca996[_0x25df('0x17')](_0x536c4b['model']['document'][_0x25df('0x2b')]),void _0x30f95c[_0x25df('0x75')](_0x3bcf04,{..._0x55c18c,'commandReversedParams':[{'value':_0x29b7cb||null}]},[],_0x25df('0x68'))):void(_0x5ca996['isBlockImage'](_0x3bcf04)?_0x30f95c[_0x25df('0x75')](_0x3bcf04,_0x55c18c,[],_0x25df('0x12')):_0x30f95c['markInlineFormat'](_0x21cadd,_0x55c18c,_0x25df('0x12')));});});for(const _0x27d3f7 of _0x536c4b[_0x25df('0x69')][_0x25df('0x38')](_0x25df('0x3a'))[_0x25df('0x63')])_0x5852b1[_0x27d3f7['name']]=_0x27d3f7[_0x25df('0x6')]['toLowerCase']();_0x30f95c[_0x25df('0x1e')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback'](_0x25df('0x6f'),'imageStylePostApply',_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x74'),_0x25df('0x12'),_0x25df('0x27'),()=>{}),_0x30f95c[_0x25df('0x1e')][_0x25df('0x54')](_0x25df('0x6f'),_0x25df('0x68'),_0x25df('0x4d'),()=>{}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback'](_0x25df('0x6f'),_0x25df('0x68'),_0x25df('0x9'),(_0x319739,_0x570674)=>{_0x30f95c[_0x25df('0x1e')][_0x25df('0x58')]('formatBlock','',_0x25df('0x4d'))(_0x319739,{'commandName':_0x570674[_0x25df('0x39')],'commandParams':_0x570674[_0x25df('0x30')]});}),_0x30f95c[_0x25df('0x1e')]['registerCustomCallback']('formatBlock',_0x25df('0x68'),_0x25df('0x3e'),_0x4da4b6);}const _0x45cc89=[{'type':'formatBlock','subType':_0x25df('0x68')},{'type':_0x25df('0x60'),'subType':_0x25df('0x64')},{'type':_0x25df('0x6f'),'subType':_0x25df('0x1b')},{'type':'insertion','subType':_0x25df('0x1b')}];function _0x554115(_0x3b729e,_0x559682){const _0xd0e154=_0x45cc89[_0x25df('0x42')](({type:_0x3e054e,subType:_0x5a35ec})=>_0x3b729e[_0x25df('0x50')]==_0x3e054e&&_0x3b729e[_0x25df('0x29')]==_0x5a35ec),_0x159d5b=_0x45cc89[_0x25df('0x42')](({type:_0x3164c5,subType:_0x221016})=>_0x559682[_0x25df('0x50')]==_0x3164c5&&_0x559682[_0x25df('0x29')]==_0x221016);if(_0xd0e154<0x0||_0x159d5b<0x0)return!0x1;const _0x1fc839=_0x3b729e[_0x25df('0x1d')](),_0x31d71b=_0x559682[_0x25df('0x1d')]();if((0x0==_0xd0e154||0x1==_0xd0e154)&&0x2==_0x159d5b&&_0x1fc839[_0x25df('0x18')](_0x31d71b))return!0x0;if(0x2==_0xd0e154&&0x3==_0x159d5b){const _0x17aac3=_0x30f95c[_0x25df('0x56')](_0x1fc839,_0x25df('0x60'))[_0x25df('0x21')](({suggestion:_0x5a25ce,meta:_0x34c4f0})=>_0x34c4f0[_0x25df('0x4f')]&&'convertInlineImageToBlock'==_0x5a25ce['subType']);if(_0x17aac3[_0x25df('0x52')]>0x1&&_0x31d71b[_0x25df('0x20')][_0x25df('0x3b')](_0x1fc839[_0x25df('0x14')]))return!0x0;if(0x1==_0x17aac3['length']&&(_0x1fc839[_0x25df('0x14')]['isEqual'](_0x31d71b[_0x25df('0x20')])||_0x1fc839[_0x25df('0x20')][_0x25df('0x3b')](_0x31d71b[_0x25df('0x14')])))return!0x0;}if(0x3==_0xd0e154&&0x3==_0x159d5b&&_0x1fc839['start'][_0x25df('0x10')](_0x31d71b[_0x25df('0x14')])){const _0x1dfd50=_0x1fc839['end'][_0x25df('0x2c')],_0xaf6660=_0x31d71b[_0x25df('0x14')]['nodeBefore'];return _0x5ca996[_0x25df('0x6d')](_0x1dfd50)&&_0x1dfd50===_0xaf6660;}return!0x1;}function _0x4da4b6(_0x10ad34,_0x53af2e){return _0x554115(_0x10ad34,_0x53af2e)?[_0x10ad34,_0x53af2e]:_0x554115(_0x53af2e,_0x10ad34)?[_0x53af2e,_0x10ad34]:null;}_0x536c4b['model'][_0x25df('0x33')]['registerPostFixer'](()=>{let _0x57c2a3=!0x1;const _0x2b5140=Array[_0x25df('0x65')](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')][_0x25df('0x28')][_0x25df('0x26')]());for(const {name:_0x35e50d,data:_0x300dda}of _0x2b5140){const {group:_0xb41f07,type:_0x10fe12,subType:_0x1dac43,id:_0x1683c1}=_0x30f95c['_splitMarkerName'](_0x35e50d);if(_0x25df('0x5e')==_0xb41f07&&_0x30f95c[_0x25df('0x3f')](_0x1683c1)){if('formatBlock'==_0x10fe12&&(_0x25df('0x68')==_0x1dac43||'imageStylePostApply'==_0x1dac43)){const _0x29782e=_0x30f95c[_0x25df('0x4a')](_0x1683c1);if(_0x300dda[_0x25df('0x5f')]){const _0x3b3186=_0x29782e[_0x25df('0x1d')]()['getContainedElement']();if(_0x5ca996[_0x25df('0x6d')](_0x3b3186))continue;_0x30f95c[_0x25df('0xe')](_0x29782e),_0x57c2a3=!0x0;}}if(_0x25df('0x60')==_0x10fe12&&_0x25df('0x64')==_0x1dac43&&!_0x300dda[_0x25df('0x5f')]){const _0x561484=_0x30f95c[_0x25df('0x4a')](_0x1683c1);_0x561484[_0x25df('0x72')]&&_0x561484[_0x25df('0x72')][_0x25df('0x0')]&&(_0x30f95c[_0x25df('0xe')](_0x561484['next']),_0x57c2a3=!0x0);}}}return _0x57c2a3;}),_0x536c4b['plugins'][_0x25df('0x71')](_0x25df('0x5'))&&_0x30f95c[_0x25df('0x76')](_0x25df('0x37'),(_0x3c1ef4,_0x285c46)=>{const _0x47596a=_0x5ca996[_0x25df('0x17')](_0x536c4b['model']['document'][_0x25df('0x2b')]);_0x47596a['getAttribute'](_0x25df('0x61'))!=_0x285c46['width']&&_0x536c4b['model'][_0x25df('0x15')](()=>{_0x30f95c[_0x25df('0x75')](_0x47596a,{'commandName':_0x25df('0x37'),'commandParams':[_0x285c46]});});}),_0x536c4b[_0x25df('0x69')]['has'](_0x25df('0x2f'))&&_0x30f95c['enableCommand'](_0x25df('0x73'),(_0x1d1177,_0x5a64b7)=>{const _0x28add7=_0x5ca996[_0x25df('0x17')](_0x536c4b[_0x25df('0x8')][_0x25df('0x33')]['selection']);(_0x28add7[_0x25df('0x35')](_0x25df('0x6b'))?_0x28add7[_0x25df('0xa')](_0x25df('0x6b')):'')!=_0x5a64b7[_0x25df('0x11')]&&_0x536c4b[_0x25df('0x8')][_0x25df('0x15')](()=>{_0x30f95c['markBlockFormat'](_0x28add7,{'commandName':_0x25df('0x73'),'commandParams':[_0x5a64b7]});});}),_0x30f95c[_0x25df('0x47')][_0x25df('0xd')](_0x3a07a4=>{if(!!_0x45cc89[_0x25df('0x2d')](({type:_0x17f26a,subType:_0x5b3506})=>_0x3a07a4[_0x25df('0x50')]==_0x17f26a&&_0x3a07a4[_0x25df('0x29')]==_0x5b3506))return _0x3a07a4[_0x25df('0x2')]?{}:void 0x0;}),_0x30f95c[_0x25df('0x47')][_0x25df('0xd')](_0x2f7be6=>{if(_0x25df('0x60')==_0x2f7be6[_0x25df('0x50')]||_0x25df('0x66')==_0x2f7be6[_0x25df('0x50')]){const _0x5c7353=_0x2f7be6['getContainedElement']();if(_0x5c7353&&_0x5c7353['is'](_0x25df('0x36'),_0x25df('0x1')))return{'type':_0x25df('0x60')==_0x2f7be6[_0x25df('0x50')]?_0x25df('0x19'):_0x25df('0x1a'),'element':_0x5c7353,'quantity':0x1};}}),_0x30f95c[_0x25df('0x47')][_0x25df('0xd')](_0x34fb3e=>_0x25df('0x6f')==_0x34fb3e[_0x25df('0x50')]&&_0x25df('0x1b')==_0x34fb3e[_0x25df('0x29')]?{'type':_0x25df('0x45'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34fb3e[_0x25df('0x50')]&&'convertBlockImageToInline'==_0x34fb3e[_0x25df('0x29')]?{'type':_0x25df('0x45'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x30f95c[_0x25df('0x47')]['registerDescriptionCallback'](_0x43c041=>{const {data:_0x4ae535}=_0x43c041;if(_0x4ae535){if(_0x25df('0x6e')==_0x4ae535[_0x25df('0x39')]){const _0x4fd535=_0x4ae535[_0x25df('0x4b')][0x0][_0x25df('0x51')];return _0x4bcadb('side'===_0x4fd535?_0x32720a(_0x49e9d2,_0x25df('0x77')):_0x5852b1[_0x4fd535]||_0x4fd535);}if(_0x25df('0x73')==_0x4ae535['commandName']){const _0x3213ec=_0x4ae535[_0x25df('0x4b')][0x0][_0x25df('0x11')];return _0x3213ec?{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x5c'),'\x22'+_0x3213ec+'\x22')}:{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x62'))};}if(_0x25df('0x37')==_0x4ae535[_0x25df('0x39')]){const _0x3111df=_0x4ae535[_0x25df('0x4b')][0x0]['width'];return _0x3111df?{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x34'),_0x3111df)}:{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,'*Reset\x20image\x20width*')};}}function _0x4bcadb(_0x4f7922){return{'type':_0x25df('0x45'),'content':_0x32720a(_0x49e9d2,_0x25df('0x67'),_0x4f7922)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5000=['execute','enableCommand','collaboration_features','value','forEach','plugins','_trackChangesExecuted','get','afterInit','editor','_setSuggestionData','importWord','trackChanges','_handleImportedData','bind','commands','track_changes','_trackChangesValueDuringImport','listenTo','dataInsert'];(function(_0x57adea,_0x5000b6){const _0x57bf2b=function(_0x48bacb){while(--_0x48bacb){_0x57adea['push'](_0x57adea['shift']());}};_0x57bf2b(++_0x5000b6);}(_0x5000,0x1d4));const _0x57bf=function(_0x57adea,_0x5000b6){_0x57adea=_0x57adea-0x0;let _0x57bf2b=_0x5000[_0x57adea];return _0x57bf2b;};import{Plugin as _0x981ef7}from'ckeditor5/src/core';import _0x258de6 from'../trackchangesediting';export default class X extends _0x981ef7{constructor(_0x5e6fc4){super(_0x5e6fc4),this[_0x57bf('0x9')]=!0x1,this[_0x57bf('0x12')]=!0x1;}[_0x57bf('0x0')](){const _0x370e3d=this[_0x57bf('0x1')],_0x221fe7=_0x370e3d[_0x57bf('0x7')]['get']('importWord'),_0x51d488=_0x370e3d[_0x57bf('0x7')][_0x57bf('0x13')](_0x57bf('0x4'));_0x221fe7&&(_0x221fe7['on'](_0x57bf('0xc'),(_0x305c8b,[,_0x18c304])=>{this[_0x57bf('0x9')]=_0x51d488[_0x57bf('0xf')],_0x18c304[_0x57bf('0xe')][_0x57bf('0x8')]=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this[_0x57bf('0xa')](_0x221fe7,_0x57bf('0xb'),this[_0x57bf('0x5')][_0x57bf('0x6')](this)),this[_0x57bf('0xa')](_0x221fe7,'dataInsert',()=>{this[_0x57bf('0x12')]&&(_0x51d488[_0x57bf('0xc')](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x370e3d[_0x57bf('0x11')][_0x57bf('0x13')]('TrackChangesEditing')[_0x57bf('0xd')](_0x57bf('0x3')));}[_0x57bf('0x5')](_0x177c6a,_0x3e6fae){const {suggestions:_0x2cc2f2}=_0x3e6fae,_0x3e5433=this[_0x57bf('0x1')][_0x57bf('0x7')][_0x57bf('0x13')](_0x57bf('0x4')),_0x1d0944=_0x3e5433[_0x57bf('0xf')];this[_0x57bf('0x9')]!==_0x1d0944&&(_0x3e5433[_0x57bf('0xc')](),this[_0x57bf('0x12')]=!0x0),_0x2cc2f2&&_0x2cc2f2[_0x57bf('0x10')](({id:_0x99e601,type:_0x2be075,author:_0x469642,created_at:_0x38a878})=>{const _0x4a3dc8={'id':_0x99e601,'type':_0x2be075,'authorId':this['editor'][_0x57bf('0x11')][_0x57bf('0x13')]('Users')['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x469642,'createdAt':_0x38a878?new Date(_0x38a878):new Date(),'source':_0x57bf('0x3')}}};this[_0x57bf('0x1')][_0x57bf('0x11')][_0x57bf('0x13')](_0x258de6)[_0x57bf('0x2')](_0x4a3dc8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d3c=['getItemLabel','outdentBlock','afterInit','enableCommand','*Outdent:*\x20%0','IndentBlock','document','IndentEditing','editor','commandName','getSelectedBlocks','*Indent:*\x20%0','has','outdent','registerDescriptionCallback','filter','change','indentBlock','_descriptionFactory','indent','model','TrackChangesEditing','blockIndent','checkAttribute','selection','plugins','markBlockFormat'];(function(_0x42591a,_0x4d3ca9){const _0x2ccfd0=function(_0x536560){while(--_0x536560){_0x42591a['push'](_0x42591a['shift']());}};_0x2ccfd0(++_0x4d3ca9);}(_0x4d3c,0x17a));const _0x2ccf=function(_0x42591a,_0x4d3ca9){_0x42591a=_0x42591a-0x0;let _0x2ccfd0=_0x4d3c[_0x42591a];return _0x2ccfd0;};import{Plugin as _0x309bd5}from'ckeditor5/src/core';import{getTranslation as _0x100207}from'../utils/common-translations';export default class Y extends _0x309bd5{[_0x2ccf('0x2')](){const _0x3430b0=this[_0x2ccf('0x8')],_0x70b8fb=_0x3430b0[_0x2ccf('0x19')]['get'](_0x2ccf('0x15'));_0x3430b0['plugins'][_0x2ccf('0xc')](_0x2ccf('0x7'))&&(_0x70b8fb['enableCommand'](_0x2ccf('0x13')),_0x70b8fb[_0x2ccf('0x3')](_0x2ccf('0xd')));const _0x5f1586=_0x3430b0['locale'];if(_0x3430b0[_0x2ccf('0x19')][_0x2ccf('0xc')](_0x2ccf('0x5'))){for(const _0x3e41f7 of[_0x2ccf('0x11'),'outdentBlock'])_0x70b8fb[_0x2ccf('0x3')](_0x3e41f7,()=>{const _0xb849c9=Array['from'](this[_0x2ccf('0x8')][_0x2ccf('0x14')][_0x2ccf('0x6')][_0x2ccf('0x18')][_0x2ccf('0xa')]())[_0x2ccf('0xf')](_0x5d472a=>this[_0x2ccf('0x8')][_0x2ccf('0x14')]['schema'][_0x2ccf('0x17')](_0x5d472a,_0x2ccf('0x16')));_0x3430b0[_0x2ccf('0x14')][_0x2ccf('0x10')](()=>{for(const _0x628c18 of _0xb849c9)_0x70b8fb[_0x2ccf('0x1a')](_0x628c18,{'commandName':_0x3e41f7,'commandParams':[{'value':''}],'formatGroupId':'indentBlock'});});});_0x70b8fb[_0x2ccf('0x12')][_0x2ccf('0xe')](_0x225023=>{const {data:_0xeb6727}=_0x225023;if(!_0xeb6727)return;if(_0x2ccf('0x11')!=_0xeb6727[_0x2ccf('0x9')]&&_0x2ccf('0x1')!=_0xeb6727['commandName'])return;const _0x6a95e4=_0x225023['getItems']()[0x0],_0x37e36c=_0x70b8fb[_0x2ccf('0x12')][_0x2ccf('0x0')](_0x6a95e4);return _0x2ccf('0x11')==_0xeb6727['commandName']?{'type':'format','content':_0x100207(_0x5f1586,_0x2ccf('0xb'),_0x37e36c)}:_0x2ccf('0x1')==_0xeb6727[_0x2ccf('0x9')]?{'type':'format','content':_0x100207(_0x5f1586,_0x2ccf('0x4'),_0x37e36c)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe8ca=['enableCommand','editor','get','plugins','requires','input','init','TrackChangesEditing'];(function(_0x546c04,_0xe8ca1a){var _0x4fc63a=function(_0x4d0f42){while(--_0x4d0f42){_0x546c04['push'](_0x546c04['shift']());}};_0x4fc63a(++_0xe8ca1a);}(_0xe8ca,0x1c6));var _0x4fc6=function(_0x546c04,_0xe8ca1a){_0x546c04=_0x546c04-0x0;var _0x4fc63a=_0xe8ca[_0x546c04];return _0x4fc63a;};import{Plugin as _0x56353e}from'ckeditor5/src/core';import{Input as _0x4016c1}from'ckeditor5/src/typing';export default class Z extends _0x56353e{static get[_0x4fc6('0x6')](){return[_0x4016c1];}[_0x4fc6('0x0')](){this[_0x4fc6('0x3')][_0x4fc6('0x5')][_0x4fc6('0x4')](_0x4fc6('0x1'))[_0x4fc6('0x2')](_0x4fc6('0x7'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a13=['*Set\x20link:*\x20%0','commandName','format','getAttribute','getFirstPosition','afterInit','has','plugins','_descriptionFactory','locale','LinkEditing','editor','markInlineFormat','document','model','get','enableCommand','TrackChangesEditing','link','hasAttribute','unlink','selection','getFirstRange','isCollapsed','from','linkHref','registerDescriptionCallback'];(function(_0x50a587,_0x3a132a){const _0x4c8549=function(_0x581bd6){while(--_0x581bd6){_0x50a587['push'](_0x50a587['shift']());}};_0x4c8549(++_0x3a132a);}(_0x3a13,0x1b7));const _0x4c85=function(_0x50a587,_0x3a132a){_0x50a587=_0x50a587-0x0;let _0x4c8549=_0x3a13[_0x50a587];return _0x4c8549;};import{Plugin as _0x4c4b95}from'ckeditor5/src/core';import{findAttributeRange as _0x41cfef}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x30fb20}from'./utils';import{getTranslation as _0x1e25c3}from'../utils/common-translations';export default class tt extends _0x4c4b95{[_0x4c85('0x19')](){const _0x2480ec=this[_0x4c85('0x4')];if(!_0x2480ec[_0x4c85('0x0')][_0x4c85('0x1a')](_0x4c85('0x3')))return;const _0x3201c3=_0x2480ec[_0x4c85('0x0')][_0x4c85('0x8')](_0x4c85('0xa'));_0x3201c3['enableCommand'](_0x4c85('0xb'),(_0x2e8876,_0x4cd395)=>{const _0x2bfb5f=_0x2480ec[_0x4c85('0x7')][_0x4c85('0x6')][_0x4c85('0xe')];let _0x4aec53=[];if(_0x2bfb5f[_0x4c85('0x10')]){if(!_0x2bfb5f[_0x4c85('0xc')](_0x4c85('0x12')))return void _0x2e8876(_0x4cd395);{const _0x21fe84=_0x41cfef(_0x2bfb5f[_0x4c85('0x18')](),_0x4c85('0x12'),_0x2bfb5f[_0x4c85('0x17')](_0x4c85('0x12')),_0x2480ec[_0x4c85('0x7')]);_0x4aec53=[_0x21fe84];}}else _0x4aec53=Array[_0x4c85('0x11')](_0x2bfb5f['getRanges']());_0x2480ec[_0x4c85('0x7')]['change'](()=>{for(const _0x119857 of _0x4aec53)_0x3201c3[_0x4c85('0x5')](_0x119857,{'commandName':_0x4c85('0xb'),'commandParams':[_0x4cd395]});});}),_0x3201c3[_0x4c85('0x9')]('unlink',()=>{const _0x1dfec1=this[_0x4c85('0x4')]['model'],_0x20e293=_0x1dfec1['document'][_0x4c85('0xe')];_0x1dfec1['change'](()=>{let _0x38698c=[];if(_0x20e293[_0x4c85('0x10')])_0x38698c=[_0x41cfef(_0x20e293[_0x4c85('0x18')](),_0x4c85('0x12'),_0x20e293[_0x4c85('0x17')](_0x4c85('0x12')),_0x2480ec['model'])];else _0x38698c=_0x30fb20(_0x4c85('0x12'),_0x20e293[_0x4c85('0xf')](),_0x2480ec[_0x4c85('0x7')]);for(const _0x4fd63e of _0x38698c)_0x3201c3[_0x4c85('0x5')](_0x4fd63e,{'commandName':_0x4c85('0xd'),'commandParams':[]});});}),_0x3201c3[_0x4c85('0x1')][_0x4c85('0x13')](_0x1b70b8=>{const {data:_0x4b74a8}=_0x1b70b8,_0x2e1af4=_0x2480ec[_0x4c85('0x2')];if(_0x4b74a8){if(_0x4c85('0xb')==_0x4b74a8[_0x4c85('0x15')]){const _0x4be77d=_0x4b74a8['commandParams'][0x0];return{'type':_0x4c85('0x16'),'content':_0x1e25c3(_0x2e1af4,_0x4c85('0x14'),'\x22'+_0x4be77d+'\x22')};}return _0x4c85('0xd')==_0x4b74a8[_0x4c85('0x15')]?{'type':_0x4c85('0x16'),'content':_0x1e25c3(_0x2e1af4,'*Remove\x20link*')}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x187e=['listType','ELEMENT_BULLETED_LIST','*Change\x20to:*\x20%0','locale','format','length','bulletedList','filter','afterInit','commandName','getAttribute','blockName','todoList','listItem','push','execute','checkChild','ELEMENT_LIST_ITEM','_selectedElements','markBlockFormat','value','slice','numbered','from','registerElementLabel','*Check\x20item*','numberedList','add','*Outdent:*\x20%0','indentList','TodoListEditing','selection','before','model','commands','name','getSelectedBlocks','plugins','todo','List','outdentList','has','createPositionAt','checkTodoList','*Uncheck\x20item*','ELEMENT_TODO_LIST','listIndent','ListEditing','get','ELEMENT_NUMBERED_LIST','paragraph','end','findIndex','enableCommand','nextSibling','document','editor','registerDescriptionCallback','replace','createRange','change','bulleted','previousSibling','element'];(function(_0x3e4bb8,_0x187e67){const _0x18ead8=function(_0x1ba9f4){while(--_0x1ba9f4){_0x3e4bb8['push'](_0x3e4bb8['shift']());}};_0x18ead8(++_0x187e67);}(_0x187e,0x169));const _0x18ea=function(_0x3e4bb8,_0x187e67){_0x3e4bb8=_0x3e4bb8-0x0;let _0x18ead8=_0x187e[_0x3e4bb8];return _0x18ead8;};import{Plugin as _0x281802}from'ckeditor5/src/core';import{getTranslation as _0x19ae03}from'../utils/common-translations';export default class it extends _0x281802{[_0x18ea('0x1f')](){const _0x36a5fb=this[_0x18ea('0xf')],_0x3ec3d1=_0x36a5fb[_0x18ea('0x1a')];if(!_0x36a5fb['plugins'][_0x18ea('0x0')](_0x18ea('0x6')))return;const _0x22060b=_0x36a5fb[_0x18ea('0x3c')][_0x18ea('0x7')]('TrackChangesEditing'),_0x504784=_0x36a5fb[_0x18ea('0x3c')][_0x18ea('0x0')](_0x18ea('0x35'));function _0x286584(_0x3c3b9b){return()=>{const _0x270713=_0x36a5fb['model'][_0x18ea('0xe')][_0x18ea('0x36')],_0x3554ee=_0x36a5fb[_0x18ea('0x39')]['get'](_0x3c3b9b);if(_0x3554ee[_0x18ea('0x2b')])return void _0x36a5fb[_0x18ea('0x26')](_0x18ea('0x9'),{});const _0x5209d6=_0x3c3b9b[_0x18ea('0x2c')](0x0,-0x4),_0x3144b8=function(_0xdc3ba5,_0xfaca2e,_0x21db70){let _0x349be5=Array[_0x18ea('0x2e')](_0xdc3ba5)[_0x18ea('0x1e')](_0x47c04d=>function(_0x307387,_0x5dab8f){return _0x5dab8f[_0x18ea('0x27')](_0x307387['parent'],_0x18ea('0x24'))&&!_0x5dab8f['isObject'](_0x307387);}(_0x47c04d,_0x21db70));_0x349be5=_0x349be5[_0x18ea('0x1e')](_0x44a992=>!_0x44a992['is']('element',_0x18ea('0x24'))||_0x44a992[_0x18ea('0x21')](_0x18ea('0x17'))!=_0xfaca2e);const _0x36f2e0=new Set();for(const _0x4662eb of _0x349be5)_0x4662eb['is']('element',_0x18ea('0x24'))?_0x36f2e0[_0x18ea('0x32')](Pt(_0x4662eb)):_0x36f2e0[_0x18ea('0x32')](_0x4662eb);return Array[_0x18ea('0x2e')](_0x36f2e0);}(_0x270713['getSelectedBlocks'](),_0x5209d6,_0x36a5fb[_0x18ea('0x38')]['schema']);_0x36a5fb[_0x18ea('0x38')][_0x18ea('0x13')](()=>{for(const _0x5ef0bc of _0x3144b8)_0x22060b['markBlockFormat'](_0x5ef0bc,{'commandName':_0x3c3b9b,'commandParams':[{'forceValue':!_0x3554ee[_0x18ea('0x2b')]}],'formatGroupId':_0x18ea('0x22')},Gt(_0x5ef0bc));});};}function _0x56f6ad(_0x2aabf7){return()=>{const _0x2ce752=function(_0x597ea3){const _0x57db2a=(_0x597ea3=Array[_0x18ea('0x2e')](_0x597ea3))[_0x18ea('0xb')](_0x5e3163=>_0x18ea('0x24')!=_0x5e3163['name']);return _0x57db2a>-0x1&&(_0x597ea3=_0x597ea3['slice'](0x0,_0x57db2a)),_0x597ea3;}(_0x36a5fb['model'][_0x18ea('0xe')]['selection'][_0x18ea('0x3b')]()),_0x31d950=_0x36a5fb['model'][_0x18ea('0x12')](_0x36a5fb[_0x18ea('0x38')][_0x18ea('0x1')](_0x2ce752[0x0],_0x18ea('0x37')),_0x36a5fb[_0x18ea('0x38')][_0x18ea('0x1')](_0x2ce752[_0x2ce752[_0x18ea('0x1c')]-0x1],_0x18ea('0xa')));_0x36a5fb['model'][_0x18ea('0x13')](()=>{_0x22060b[_0x18ea('0x2a')](_0x31d950,{'commandName':_0x2aabf7,'commandParams':[],'formatGroupId':_0x18ea('0x5')},function(_0x29b14d){const _0x113a75=new Set();for(const _0x116596 of _0x29b14d){let _0x2853de=_0x116596[_0x18ea('0xd')];for(;_0x2853de&&_0x2853de[_0x18ea('0x21')]('listIndent')>_0x116596[_0x18ea('0x21')](_0x18ea('0x5'));)_0x113a75[_0x18ea('0x32')](_0x2853de),_0x2853de=_0x2853de[_0x18ea('0xd')];}return Array[_0x18ea('0x2e')](_0x113a75);}(_0x2ce752));});};}_0x22060b['enableCommand'](_0x18ea('0x31'),_0x286584(_0x18ea('0x31'))),_0x22060b['enableCommand'](_0x18ea('0x1d'),_0x286584(_0x18ea('0x1d'))),_0x504784&&_0x22060b[_0x18ea('0xc')](_0x18ea('0x23'),_0x286584(_0x18ea('0x23'))),_0x22060b[_0x18ea('0xc')]('indentList',_0x56f6ad(_0x18ea('0x34'))),_0x22060b[_0x18ea('0xc')](_0x18ea('0x3f'),_0x56f6ad(_0x18ea('0x3f'))),_0x504784&&_0x22060b['enableCommand'](_0x18ea('0x2'),()=>{const _0x71930e=_0x36a5fb[_0x18ea('0x39')]['get'](_0x18ea('0x2')),_0x51eb1d=Array['from'](_0x71930e[_0x18ea('0x29')]);_0x51eb1d[_0x18ea('0x1e')](_0x145db7=>_0x145db7['getAttribute']('todoListChecked')!=_0x71930e[_0x18ea('0x2b')]),_0x36a5fb[_0x18ea('0x38')]['change'](()=>{for(const _0x1706d9 of _0x51eb1d)_0x22060b[_0x18ea('0x2a')](_0x1706d9,{'commandName':_0x18ea('0x2'),'commandParams':[{'forceValue':!_0x71930e['value']}]});});}),_0x22060b['_descriptionFactory'][_0x18ea('0x2f')]('listItem',_0x274796=>_0x19ae03(_0x3ec3d1,_0x18ea('0x28'),_0x274796)),_0x22060b['_descriptionFactory'][_0x18ea('0x10')](_0x55e60f=>{const {data:_0x36c2fc}=_0x55e60f;if(_0x36c2fc){if(_0x18ea('0x31')==_0x36c2fc[_0x18ea('0x20')]||_0x18ea('0x1d')==_0x36c2fc['commandName']||'todoList'==_0x36c2fc['commandName'])switch(_0x36c2fc['commandName'][_0x18ea('0x11')](_0x18ea('0x3e'),'')){case _0x18ea('0x14'):return _0xeb9918(_0x19ae03(_0x3ec3d1,_0x18ea('0x18')));case _0x18ea('0x2d'):return _0xeb9918(_0x19ae03(_0x3ec3d1,_0x18ea('0x8')));case _0x18ea('0x3d'):return _0xeb9918(_0x19ae03(_0x3ec3d1,_0x18ea('0x4')));}if(_0x18ea('0x34')==_0x36c2fc[_0x18ea('0x20')])return{'type':'format','content':_0x19ae03(_0x3ec3d1,'*Indent:*\x20%0',_0x19ae03(_0x3ec3d1,_0x18ea('0x28')))};if(_0x18ea('0x3f')==_0x36c2fc[_0x18ea('0x20')])return{'type':'format','content':_0x19ae03(_0x3ec3d1,_0x18ea('0x33'),_0x19ae03(_0x3ec3d1,_0x18ea('0x28')))};if('checkTodoList'==_0x36c2fc[_0x18ea('0x20')])return _0x36c2fc['commandParams'][0x0]['forceValue']?{'type':_0x18ea('0x1b'),'content':_0x19ae03(_0x3ec3d1,_0x18ea('0x30'))}:{'type':'format','content':_0x19ae03(_0x3ec3d1,_0x18ea('0x3'))};}function _0xeb9918(_0x568a19){return{'type':_0x18ea('0x1b'),'content':_0x19ae03(_0x3ec3d1,_0x18ea('0x19'),_0x568a19)};}});}}function Pt(_0x5356df){const _0x37e174=_0x5356df['getAttribute'](_0x18ea('0x5'));if(0x0==_0x37e174)return _0x5356df;let _0x32b3f5=_0x5356df;for(;_0x5356df[_0x18ea('0x15')]&&_0x5356df['previousSibling']['is'](_0x18ea('0x16'),'listItem');){const _0x214f72=_0x5356df[_0x18ea('0x15')][_0x18ea('0x21')](_0x18ea('0x5'));if(_0x214f72==_0x37e174)_0x32b3f5=_0x5356df[_0x18ea('0x15')];else{if(_0x214f72<_0x37e174)break;}_0x5356df=_0x5356df[_0x18ea('0x15')];}return _0x32b3f5;}function Gt(_0x2771d3){const _0x514cff=[];if(_0x2771d3['is'](_0x18ea('0x16'),_0x18ea('0x24'))&&_0x2771d3[_0x18ea('0x21')](_0x18ea('0x5'))>0x0){let _0xb0414f=_0x2771d3['nextSibling'];for(;_0xb0414f&&'listItem'==_0xb0414f[_0x18ea('0x3a')]&&_0xb0414f[_0x18ea('0x21')](_0x18ea('0x5'))==_0x2771d3['getAttribute'](_0x18ea('0x5'));)_0x514cff[_0x18ea('0x25')](_0xb0414f),_0xb0414f=_0xb0414f[_0x18ea('0xd')];}return _0x514cff;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbd21=['get','attribute:url:media','conversion','ELEMENT_MEDIA','dataDowncast','stop','locale','editor','_descriptionFactory','afterInit','has','createEmptyElement','data','showSuggestionHighlights','mediaEmbed','MediaEmbedEditing','TrackChangesEditing','high','enableCommand','media','for','registerElementLabel','plugins','downcastDispatcher'];(function(_0x5e8d34,_0xbd21ec){const _0x2fa1c7=function(_0x4c932a){while(--_0x4c932a){_0x5e8d34['push'](_0x5e8d34['shift']());}};_0x2fa1c7(++_0xbd21ec);}(_0xbd21,0x1f1));const _0x2fa1=function(_0x5e8d34,_0xbd21ec){_0x5e8d34=_0x5e8d34-0x0;let _0x2fa1c7=_0xbd21[_0x5e8d34];return _0x2fa1c7;};import{Plugin as _0x11df80}from'ckeditor5/src/core';import{getTranslation as _0x59c681}from'../utils/common-translations';export default class st extends _0x11df80{[_0x2fa1('0x10')](){const _0x59ba12=this[_0x2fa1('0xe')];if(!_0x59ba12[_0x2fa1('0x5')][_0x2fa1('0x11')](_0x2fa1('0x16')))return;const _0x282149=_0x59ba12[_0x2fa1('0x5')][_0x2fa1('0x7')](_0x2fa1('0x17')),_0x12195a=_0x59ba12[_0x2fa1('0xd')];_0x282149[_0x2fa1('0x1')](_0x2fa1('0x15')),_0x282149[_0x2fa1('0xf')][_0x2fa1('0x4')](_0x2fa1('0x2'),_0x232107=>_0x59c681(_0x12195a,_0x2fa1('0xa'),_0x232107)),_0x59ba12[_0x2fa1('0x9')][_0x2fa1('0x3')](_0x2fa1('0xb'))['elementToElement']({'model':'media','view':(_0x45db19,{writer:_0x2314f3,options:_0x43ebe2})=>{if(_0x43ebe2[_0x2fa1('0x14')])return _0x2314f3[_0x2fa1('0x12')]('div');},'converterPriority':_0x2fa1('0x0')}),_0x59ba12[_0x2fa1('0x13')][_0x2fa1('0x6')]['on'](_0x2fa1('0x8'),(_0x3b8ba4,_0x53ec32,_0x46b5c5)=>{_0x46b5c5['options']['showSuggestionHighlights']&&_0x3b8ba4[_0x2fa1('0xc')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3100=['TrackChangesEditing','get','MentionEditing','plugins','afterInit','has','enableCommand','mention'];(function(_0x2f0dd4,_0x31007c){const _0x4d5bb2=function(_0x55398d){while(--_0x55398d){_0x2f0dd4['push'](_0x2f0dd4['shift']());}};_0x4d5bb2(++_0x31007c);}(_0x3100,0x129));const _0x4d5b=function(_0x2f0dd4,_0x31007c){_0x2f0dd4=_0x2f0dd4-0x0;let _0x4d5bb2=_0x3100[_0x2f0dd4];return _0x4d5bb2;};import{Plugin as _0x571e4e}from'ckeditor5/src/core';export default class et extends _0x571e4e{[_0x4d5b('0x3')](){const _0x5d163e=this['editor'];_0x5d163e[_0x4d5b('0x2')][_0x4d5b('0x4')](_0x4d5b('0x1'))&&_0x5d163e[_0x4d5b('0x2')][_0x4d5b('0x0')](_0x4d5b('0x7'))[_0x4d5b('0x5')](_0x4d5b('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31dd=['locale','plugins','enableCommand','editor','afterInit','registerElementLabel','PageBreakEditing','_descriptionFactory','TrackChangesEditing','pageBreak','get'];(function(_0x1d91f4,_0x31ddb9){const _0x212de7=function(_0x10e9a4){while(--_0x10e9a4){_0x1d91f4['push'](_0x1d91f4['shift']());}};_0x212de7(++_0x31ddb9);}(_0x31dd,0xe0));const _0x212d=function(_0x1d91f4,_0x31ddb9){_0x1d91f4=_0x1d91f4-0x0;let _0x212de7=_0x31dd[_0x1d91f4];return _0x212de7;};import{Plugin as _0x3ff052}from'ckeditor5/src/core';import{getTranslation as _0x1c0301}from'../utils/common-translations';export default class nt extends _0x3ff052{[_0x212d('0x0')](){const _0x329080=this[_0x212d('0xa')];if(!_0x329080[_0x212d('0x8')]['has'](_0x212d('0x2')))return;_0x329080[_0x212d('0x8')][_0x212d('0x6')](_0x212d('0x4'))[_0x212d('0x9')](_0x212d('0x5'));const _0x5b04ae=_0x329080['plugins']['get']('TrackChangesEditing'),_0x108a19=_0x329080[_0x212d('0x7')];_0x5b04ae[_0x212d('0x3')][_0x212d('0x1')]('pageBreak',_0x11dfd3=>_0x1c0301(_0x108a19,'ELEMENT_PAGE_BREAK',_0x11dfd3));}}
|