@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231010.0 → 0.0.0-nightly-20231011.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.d.ts +21 -0
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -2
- 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 _0x3ba7=['*Set\x20font\x20family:*\x20%0','fontBackgroundColor','get','_descriptionFactory','editor','toLowerCase','fontSize.options','*Reset\x20font\x20background\x20color*','format','fontColor','FontSize','locale','FontColorEditing','*Reset\x20font\x20color*','getRanges','model','enableCommand','_enableCommand','find','commandName','afterInit','fontBackgroundColor.colors','normalizeSizeOptions','markInlineFormat','fontFamily','*Reset\x20font\x20size*','FontSizeEditing','TrackChangesEditing','config','*Reset\x20font\x20family*','trim','from','has','value','document','title','change','label','fontSize','plugins','commandParams','fontColor.colors','registerDescriptionCallback','*Set\x20font\x20size:*\x20%0'];(function(_0x21adb9,_0x3ba78d){const _0x1fcea7=function(_0x444a47){while(--_0x444a47){_0x21adb9['push'](_0x21adb9['shift']());}};_0x1fcea7(++_0x3ba78d);}(_0x3ba7,0xf1));const _0x1fce=function(_0x21adb9,_0x3ba78d){_0x21adb9=_0x21adb9-0x0;let _0x1fcea7=_0x3ba7[_0x21adb9];return _0x1fcea7;};import{Plugin as _0x2d4feb}from'ckeditor5/src/core';import{normalizeColorOptions as _0x557308}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x31b57e}from'./utils';import{getTranslation as _0x476b7d}from'../utils/common-translations';const eo=[{'pluginName':_0x1fce('0x5'),'commandName':_0x1fce('0x11')},{'pluginName':'FontFamilyEditing','commandName':_0x1fce('0x3')},{'pluginName':_0x1fce('0x23'),'commandName':_0x1fce('0x20')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x1fce('0x18')}];export default class W extends _0x2d4feb{[_0x1fce('0x2b')](){const _0x479d76=this[_0x1fce('0x1b')][_0x1fce('0x22')];for(const {pluginName:_0x2a292b,commandName:_0xb4e1a6}of eo)this[_0x1fce('0x1b')]['plugins'][_0x1fce('0xb')](_0x2a292b)&&this[_0x1fce('0x28')](_0xb4e1a6);this['editor'][_0x1fce('0x12')][_0x1fce('0x19')](_0x1fce('0x6'))[_0x1fce('0x1a')][_0x1fce('0x15')](_0x367681=>{const _0x5ef184=_0x479d76['t'],{data:_0x4840a7}=_0x367681;if(null!=_0x4840a7){if(_0x1fce('0x11')==_0x4840a7[_0x1fce('0x2a')]){const _0x9b3d5b=_0x4840a7[_0x1fce('0x13')][0x0][_0x1fce('0xc')];if(_0x9b3d5b){const _0x58d30a=_0x5ef184(this[_0x1fce('0x1b')]['plugins'][_0x1fce('0x19')](_0x1fce('0x21'))[_0x1fce('0x1')](this[_0x1fce('0x1b')][_0x1fce('0x7')][_0x1fce('0x19')](_0x1fce('0x1d')))[_0x1fce('0x29')](_0x226741=>_0x226741[_0x1fce('0x26')]==_0x9b3d5b)[_0x1fce('0xe')])['toLowerCase']();return{'type':'format','content':_0x476b7d(_0x479d76,_0x1fce('0x16'),_0x58d30a)};}return{'type':_0x1fce('0x1f'),'content':_0x476b7d(_0x479d76,_0x1fce('0x4'))};}if(_0x1fce('0x3')==_0x4840a7[_0x1fce('0x2a')]){const _0x907aca=_0x4840a7[_0x1fce('0x13')][0x0]['value'];return _0x907aca?{'type':_0x1fce('0x1f'),'content':_0x476b7d(_0x479d76,_0x1fce('0x17'),_0x907aca)}:{'type':_0x1fce('0x1f'),'content':_0x476b7d(_0x479d76,_0x1fce('0x8'))};}if(_0x1fce('0x20')==_0x4840a7[_0x1fce('0x2a')]){const _0x2eb60f=_0x4840a7[_0x1fce('0x13')][0x0][_0x1fce('0xc')];if(_0x2eb60f){const _0x113115=_0x557308(this[_0x1fce('0x1b')][_0x1fce('0x7')][_0x1fce('0x19')](_0x1fce('0x14')))[_0x1fce('0x29')](_0x330e48=>_0x330e48[_0x1fce('0x26')]==_0x2eb60f);let _0x1866d9=_0x2eb60f,_0x5ad35e='';return _0x113115&&(_0x1866d9=_0x113115[_0x1fce('0x10')],_0x5ad35e=_0x5ef184(_0x1866d9)[_0x1fce('0x1c')]()),{'type':_0x1fce('0x1f'),'content':_0x476b7d(_0x479d76,'*Set\x20font\x20color:*\x20%0',_0x5ad35e)[_0x1fce('0x9')](),'color':{'value':_0x2eb60f,'title':_0x5ad35e||_0x1866d9}};}return{'type':_0x1fce('0x1f'),'content':_0x476b7d(_0x479d76,_0x1fce('0x24'))};}if('fontBackgroundColor'==_0x4840a7[_0x1fce('0x2a')]){const _0x1a9dfa=_0x4840a7[_0x1fce('0x13')][0x0][_0x1fce('0xc')];if(_0x1a9dfa){const _0x284956=_0x557308(this[_0x1fce('0x1b')][_0x1fce('0x7')][_0x1fce('0x19')](_0x1fce('0x0')))['find'](_0x37071f=>_0x37071f[_0x1fce('0x26')]==_0x1a9dfa);let _0x25fdb7=_0x1a9dfa,_0x5c815e='';return _0x284956&&(_0x25fdb7=_0x284956[_0x1fce('0x10')],_0x5c815e=_0x5ef184(_0x25fdb7)[_0x1fce('0x1c')]()),{'type':_0x1fce('0x1f'),'content':_0x476b7d(_0x479d76,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c815e)[_0x1fce('0x9')](),'color':{'value':_0x1a9dfa,'title':_0x5c815e||_0x25fdb7}};}return{'type':_0x1fce('0x1f'),'content':_0x476b7d(_0x479d76,_0x1fce('0x1e'))};}}});}[_0x1fce('0x28')](_0x26af2e){const _0x1edb0d=this[_0x1fce('0x1b')];_0x1edb0d['plugins'][_0x1fce('0x19')](_0x1fce('0x6'))[_0x1fce('0x27')](_0x26af2e,(_0x228941,_0x4467e8={})=>{const _0x482195=_0x1edb0d[_0x1fce('0x26')][_0x1fce('0xd')]['selection'],_0x442279=_0x4467e8[_0x1fce('0xc')];_0x482195['isCollapsed']?_0x228941(_0x4467e8):_0x1edb0d['model'][_0x1fce('0xf')](()=>{const _0x485e98=Array[_0x1fce('0xa')](_0x482195[_0x1fce('0x25')]());for(const _0x573736 of _0x485e98){const _0x546440=_0x442279?[_0x573736]:_0x31b57e(_0x26af2e,_0x573736,_0x1edb0d[_0x1fce('0x26')]);for(const _0x69f9d7 of _0x546440)_0x1edb0d[_0x1fce('0x12')][_0x1fce('0x19')](_0x1fce('0x6'))[_0x1fce('0x2')](_0x69f9d7,{'commandName':_0x26af2e,'commandParams':[{'value':_0x442279}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a79=['commandParams','fontColor.colors','document','slice','*Set\x20format\x20to:*\x20%0','fontColor','model','toLowerCase','config','fontSize','modifySelection','createRange','_descriptionFactory','commandName','charAt','word','entries','toUpperCase','fontBackgroundColor','registerDescriptionCallback','join','getRanges','fontSize.options','commands','format','markInlineFormat','pasteFormat','getLastPosition','copyFormat','selection','length','push','locale','get','TrackChangesEditing','boolean','find','label','plugins','getAttributes','backward','getItems','forward','split','keys','schema','from','*Remove\x20all\x20formatting*','enableCommand','getSelectedBlocks'];(function(_0x20b06e,_0x5a798a){const _0x4bfeb6=function(_0x54118e){while(--_0x54118e){_0x20b06e['push'](_0x20b06e['shift']());}};_0x4bfeb6(++_0x5a798a);}(_0x5a79,0xed));const _0x4bfe=function(_0x20b06e,_0x5a798a){_0x20b06e=_0x20b06e-0x0;let _0x4bfeb6=_0x5a79[_0x20b06e];return _0x4bfeb6;};import{Plugin as _0x9a95e8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x3791ec}from'ckeditor5/src/ui';import{first as _0x3b1b29}from'ckeditor5/src/utils';import{getTranslation as _0x5cd52e}from'../utils/common-translations';export default class J extends _0x9a95e8{['afterInit'](){const _0x5b6a7c=this['editor'],_0x1b9702=_0x5b6a7c[_0x4bfe('0x13')],_0x51f596=_0x1b9702[_0x4bfe('0xf')][_0x4bfe('0x2a')],_0x380342=_0x5b6a7c[_0x4bfe('0x1')][_0x4bfe('0x2e')](_0x4bfe('0x2f')),_0x1eb6d0=_0x5b6a7c[_0x4bfe('0x2d')],_0x45c22f=_0x5b6a7c['commands'][_0x4bfe('0x2e')](_0x4bfe('0x29')),_0x121bdc=_0x5b6a7c[_0x4bfe('0x24')][_0x4bfe('0x2e')](_0x4bfe('0x27'));_0x45c22f&&_0x121bdc&&(_0x380342[_0x4bfe('0xb')]('pasteFormat',(_0x3db1ce,_0x561125={})=>{const _0x43c6db=_0x561125;_0x1b9702['change'](()=>{const _0x7798f7=Array[_0x4bfe('0x9')](_0x51f596['getRanges']()),_0x2b7a30=_0x51f596['isCollapsed']?[io(_0x1b9702,_0x51f596)]:_0x7798f7,_0x377eea=!!_0x3b1b29(function*(_0x40379d,_0x1bd4e9){const _0x42f62d=_0x1294a9=>!!_0x3b1b29(function*(_0x461b67,_0x458761){for(const [_0x355c6b]of _0x461b67[_0x4bfe('0x2')]()){const _0x34a034=_0x458761['getAttributeProperties'](_0x355c6b);_0x34a034&&_0x34a034['isFormatting']&&(yield _0x355c6b);}}(_0x1294a9,_0x1bd4e9));for(const _0x5b2e3a of _0x40379d[_0x4bfe('0x22')]())for(const _0xd255e2 of _0x5b2e3a[_0x4bfe('0x4')]())!_0x1bd4e9['isBlock'](_0xd255e2)&&_0x42f62d(_0xd255e2)&&(yield _0xd255e2);for(const _0x56f8b1 of _0x40379d[_0x4bfe('0xc')]())_0x42f62d(_0x56f8b1)&&(yield _0x56f8b1);_0x42f62d(_0x40379d)&&(yield _0x40379d);}(_0x51f596,_0x1b9702[_0x4bfe('0x8')]));if(_0x377eea||0x0!==Object[_0x4bfe('0x7')](_0x43c6db)[_0x4bfe('0x2b')])for(const _0x58d5a2 of _0x2b7a30)_0x380342[_0x4bfe('0x26')](_0x58d5a2,{'commandName':_0x4bfe('0x27'),'commandParams':[_0x43c6db]});});}),_0x380342[_0x4bfe('0x19')][_0x4bfe('0x20')](_0x381fad=>{const {data:_0x83808b}=_0x381fad;if(_0x83808b&&_0x4bfe('0x27')===_0x83808b[_0x4bfe('0x1a')]){const _0x165a3d=[],_0x1c253e=_0x83808b[_0x4bfe('0xd')][0x0];for(const [_0x225c21,_0x1ba7f4]of Object[_0x4bfe('0x1d')](_0x1c253e))_0x165a3d[_0x4bfe('0x2c')](so(_0x5b6a7c,_0x225c21,_0x1ba7f4));return _0x165a3d[_0x4bfe('0x2b')]?{'type':_0x4bfe('0x25'),'content':_0x5cd52e(_0x1eb6d0,_0x4bfe('0x11'),_0x165a3d[_0x4bfe('0x21')](',\x20'))}:{'type':_0x4bfe('0x25'),'content':_0x5cd52e(_0x1eb6d0,_0x4bfe('0xa'))};}}),_0x5b6a7c[_0x4bfe('0x1')][_0x4bfe('0x2e')](_0x4bfe('0x2f'))['enableCommand']('copyFormat'));}}function io(_0x4cc36a,_0x1d6748){const _0x360ed9=_0x4cc36a['createSelection'](_0x1d6748);_0x4cc36a['modifySelection'](_0x360ed9,{'unit':'word','direction':_0x4bfe('0x3')});const _0x321573=_0x360ed9['getFirstPosition']();_0x4cc36a[_0x4bfe('0x17')](_0x360ed9,{'unit':_0x4bfe('0x1c'),'direction':_0x4bfe('0x5')});const _0x299864=_0x360ed9[_0x4bfe('0x28')]();return _0x4cc36a[_0x4bfe('0x18')](_0x321573,_0x299864);}function so(_0x1a49fe,_0x845c1f,_0x296213){const _0x159551=_0x1a49fe['locale']['t'],_0x3d7cfa=_0x845c1f[_0x4bfe('0x6')](/(?=[A-Z])/)[_0x4bfe('0x21')]('\x20'),_0x64df45=_0x159551(_0x3d7cfa[_0x4bfe('0x1b')](0x0)[_0x4bfe('0x1e')]()+_0x3d7cfa[_0x4bfe('0x10')](0x1))[_0x4bfe('0x14')]();if(_0x4bfe('0x30')==typeof _0x296213)return _0x64df45;if(_0x4bfe('0x12')===_0x845c1f||_0x4bfe('0x1f')===_0x845c1f){const _0x77d9d0=_0x3791ec(_0x1a49fe[_0x4bfe('0x15')][_0x4bfe('0x2e')](_0x4bfe('0xe')))[_0x4bfe('0x31')](_0x209e2a=>_0x209e2a[_0x4bfe('0x13')]==_0x296213);return _0x64df45+'\x20('+(_0x77d9d0?_0x159551(_0x77d9d0[_0x4bfe('0x0')])[_0x4bfe('0x14')]():_0x296213)+')';}if(_0x4bfe('0x16')===_0x845c1f&&isNaN(parseFloat(_0x296213))){const _0x275da0=_0x1a49fe['plugins'][_0x4bfe('0x2e')]('FontSize')['normalizeSizeOptions'](_0x1a49fe[_0x4bfe('0x15')]['get'](_0x4bfe('0x23')))[_0x4bfe('0x31')](_0x4a0bf3=>_0x4a0bf3[_0x4bfe('0x13')]==_0x296213);return _0x64df45+'\x20('+(_0x275da0?_0x159551(_0x275da0['title'])[_0x4bfe('0x14')]():_0x296213)+')';}return _0x64df45+'\x20('+_0x296213+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa535=['filter','parent','*Change\x20to:*\x20%0','_descriptionFactory','registerElementLabel','value','HeadingEditing','registerDescriptionCallback','locale','get','TrackChangesEditing','enableCommand','match','config','getSelectedBlocks','ELEMENT_HEADING_CUSTOM','format','isObject','from','plugins','editor','change','document','checkChild','blockName','selection','name','model','formatBlock','find','title','heading','afterInit','schema'];(function(_0x40af74,_0xa5351f){const _0x2ef216=function(_0x554b95){while(--_0x554b95){_0x40af74['push'](_0x40af74['shift']());}};_0x2ef216(++_0xa5351f);}(_0xa535,0x173));const _0x2ef2=function(_0x40af74,_0xa5351f){_0x40af74=_0x40af74-0x0;let _0x2ef216=_0xa535[_0x40af74];return _0x2ef216;};import{Plugin as _0x20f879}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x10ca28}from'./utils';import{getTranslation as _0x16732b}from'../utils/common-translations';export default class K extends _0x20f879{[_0x2ef2('0x1')](){const _0x2db382=this['editor'],_0x2670f8=_0x2db382[_0x2ef2('0xb')],_0xbe7b8f=_0x2db382[_0x2ef2('0x10')][_0x2ef2('0xc')]('heading.options');if(!_0x2db382[_0x2ef2('0x16')]['has'](_0x2ef2('0x9')))return;const _0x5788df=_0x2db382[_0x2ef2('0x16')][_0x2ef2('0xc')](_0x2ef2('0xd'));_0x5788df[_0x2ef2('0xe')](_0x2ef2('0x0'),(_0x3aa6af,_0x554615)=>{const _0x447011=_0x554615['value'],_0x45a3c3=Array[_0x2ef2('0x15')](this[_0x2ef2('0x17')]['model'][_0x2ef2('0x19')][_0x2ef2('0x1c')][_0x2ef2('0x11')]())[_0x2ef2('0x3')](_0x185793=>function(_0x4fa693,_0x3c5964,_0xc9fce7){return _0xc9fce7[_0x2ef2('0x1a')](_0x4fa693[_0x2ef2('0x4')],_0x3c5964)&&!_0xc9fce7[_0x2ef2('0x14')](_0x4fa693)&&_0x4fa693[_0x2ef2('0x1d')]!=_0x3c5964;}(_0x185793,_0x447011,this['editor'][_0x2ef2('0x1e')][_0x2ef2('0x2')]));_0x2db382[_0x2ef2('0x1e')][_0x2ef2('0x18')](()=>{for(const _0x4ba673 of _0x45a3c3)_0x5788df['markBlockFormat'](_0x4ba673,{'commandName':_0x2ef2('0x0'),'commandParams':[_0x554615],'formatGroupId':_0x2ef2('0x1b')},_0x10ca28(_0x4ba673));});});for(const _0x13765c of _0xbe7b8f)'paragraph'!=_0x13765c[_0x2ef2('0x1e')]&&_0x5788df[_0x2ef2('0x6')][_0x2ef2('0x7')](_0x13765c[_0x2ef2('0x1e')],_0x300430=>{const _0xbd2496=nn(_0x13765c['model']);return null!==_0xbd2496?_0x46ff6e(_0x300430,_0xbd2496):_0x4faf02(_0x300430,_0x13765c[_0x2ef2('0x21')]);});function _0x46ff6e(_0x1da254,_0x2fba48){return _0x16732b(_0x2670f8,'ELEMENT_HEADING',[_0x1da254,_0x2fba48]);}function _0x4faf02(_0x274d70,_0x131bd7){return _0x16732b(_0x2670f8,_0x2ef2('0x12'),[_0x274d70,_0x131bd7]);}_0x5788df[_0x2ef2('0x6')][_0x2ef2('0xa')](_0x3ba50f=>{const {type:_0x43d042,data:_0x40f6fc}=_0x3ba50f;if(_0x2ef2('0x1f')==_0x43d042&&_0x40f6fc&&'heading'==_0x40f6fc['commandName']){const _0x29dc50=_0x40f6fc['commandParams'][0x0][_0x2ef2('0x8')],_0x3ad490=nn(_0x29dc50);if(null!==_0x3ad490)return{'type':_0x2ef2('0x13'),'content':_0x16732b(_0x2670f8,_0x2ef2('0x5'),_0x46ff6e(0x1,_0x3ad490))};const _0x26b22f=_0xbe7b8f[_0x2ef2('0x20')](_0x44a629=>_0x44a629[_0x2ef2('0x1e')]===_0x29dc50)[_0x2ef2('0x21')];return{'type':_0x2ef2('0x13'),'content':_0x16732b(_0x2670f8,_0x2ef2('0x5'),_0x4faf02(0x1,_0x26b22f))};}});}}function nn(_0x208f41){const _0x19dfa0=_0x208f41[_0x2ef2('0xf')](/^heading(\d+)$/);return _0x19dfa0?_0x19dfa0[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cd7=['backward','getFirstPosition','model','get','toLowerCase','highlight','markInlineFormat','getAttribute','*Remove\x20highlight*','find','color','plugins','editor','getRanges','_descriptionFactory','getLastMatchingPosition','registerDescriptionCallback','commandParams','afterInit','locale','value','*Set\x20highlight:*\x20%0','isCollapsed','commandName','TrackChangesEditing','document','format','enableCommand','push','HighlightEditing','highlight.options','title','formatInline','has','FORMAT_HIGHLIGHT','config','createRange','hasAttribute'];(function(_0x15cd09,_0x1cd7e2){const _0x18c54f=function(_0x2f1399){while(--_0x2f1399){_0x15cd09['push'](_0x15cd09['shift']());}};_0x18c54f(++_0x1cd7e2);}(_0x1cd7,0xbf));const _0x18c5=function(_0x15cd09,_0x1cd7e2){_0x15cd09=_0x15cd09-0x0;let _0x18c54f=_0x1cd7[_0x15cd09];return _0x18c54f;};import{Plugin as _0x559c4f}from'ckeditor5/src/core';import{getTranslation as _0x268fe9}from'../utils/common-translations';import{getRangesWithAttribute as _0x22ae20}from'./utils';export default class Q extends _0x559c4f{[_0x18c5('0x11')](){const _0x28cf91=this[_0x18c5('0xb')];if(!_0x28cf91[_0x18c5('0xa')][_0x18c5('0x20')](_0x18c5('0x1c')))return;const _0x23302d=_0x28cf91[_0x18c5('0xa')][_0x18c5('0x2')](_0x18c5('0x17'));_0x23302d[_0x18c5('0x1a')](_0x18c5('0x4'),(_0x659f2f,_0x3dd88f={})=>{const _0x4e8f0c=_0x28cf91['model'][_0x18c5('0x18')]['selection'],_0x299750=_0x4e8f0c[_0x18c5('0x6')]('highlight');let _0x2fbe9a=_0x3dd88f[_0x18c5('0x13')],_0x27fb63=[];if(_0x4e8f0c[_0x18c5('0x15')]){const _0x50c368=_0x4e8f0c[_0x18c5('0x0')]();if(!_0x4e8f0c[_0x18c5('0x24')](_0x18c5('0x4')))return void _0x659f2f(_0x3dd88f);{const _0x2a73ab=_0x104c48=>_0x104c48['item']['getAttribute'](_0x18c5('0x4'))===_0x299750,_0x507407=_0x50c368[_0x18c5('0xe')](_0x2a73ab,{'direction':_0x18c5('0x25')}),_0x2031fc=_0x50c368[_0x18c5('0xe')](_0x2a73ab);_0x27fb63=[_0x28cf91[_0x18c5('0x1')][_0x18c5('0x23')](_0x507407,_0x2031fc)],_0x2fbe9a==_0x299750&&(_0x2fbe9a=null);}}else for(const _0x5bf1fd of _0x4e8f0c[_0x18c5('0xc')]())_0x2fbe9a?_0x27fb63[_0x18c5('0x1b')](_0x5bf1fd):_0x27fb63[_0x18c5('0x1b')](..._0x22ae20(_0x18c5('0x4'),_0x5bf1fd,_0x28cf91['model']));_0x28cf91[_0x18c5('0x1')]['change'](()=>{for(const _0x12c9f2 of _0x27fb63)_0x23302d[_0x18c5('0x5')](_0x12c9f2,{'commandName':_0x18c5('0x4'),'commandParams':[{'value':_0x2fbe9a}]});});});const _0x428b24=_0x28cf91[_0x18c5('0x12')];_0x23302d[_0x18c5('0xd')][_0x18c5('0xf')](_0x2162bb=>{const {type:_0x5d0f00,data:_0x1c8501}=_0x2162bb;if(_0x18c5('0x1f')==_0x5d0f00&&_0x1c8501&&'highlight'==_0x1c8501[_0x18c5('0x16')]){const _0x2412f1=_0x428b24['t'],_0x212d99=_0x1c8501[_0x18c5('0x10')][0x0][_0x18c5('0x13')];if(_0x212d99){const _0x3e79ca=_0x28cf91[_0x18c5('0x22')][_0x18c5('0x2')](_0x18c5('0x1d'))[_0x18c5('0x8')](_0x9919ac=>_0x9919ac[_0x18c5('0x1')]==_0x212d99),_0x851b1d=_0x2412f1(_0x3e79ca['title'])[_0x18c5('0x3')]();return{'type':_0x18c5('0x19'),'content':_0x268fe9(_0x428b24,_0x18c5('0x14'),_0x851b1d),'color':{'value':_0x3e79ca[_0x18c5('0x9')],'title':_0x3e79ca[_0x18c5('0x1e')]}};}return{'type':_0x18c5('0x19'),'content':_0x268fe9(_0x428b24,_0x18c5('0x7'),_0x268fe9(_0x428b24,_0x18c5('0x21')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dc6=['enableCommand','afterInit','plugins','createEmptyElement','div','horizontalLine','createPositionAt','high','elementToStructure','get','locale','for','TrackChangesEditing','dataDowncast','showSuggestionHighlights','addClass','editor','insert','conversion','ck-horizontal-line','has'];(function(_0xb8a5a,_0x2dc62b){const _0x4f1573=function(_0x48d5d7){while(--_0x48d5d7){_0xb8a5a['push'](_0xb8a5a['shift']());}};_0x4f1573(++_0x2dc62b);}(_0x2dc6,0x66));const _0x4f15=function(_0xb8a5a,_0x2dc62b){_0xb8a5a=_0xb8a5a-0x0;let _0x4f1573=_0x2dc6[_0xb8a5a];return _0x4f1573;};import{Plugin as _0x9c8ad9}from'ckeditor5/src/core';import{getTranslation as _0x53843d}from'../utils/common-translations';export default class V extends _0x9c8ad9{[_0x4f15('0x4')](){const _0x4e2572=this[_0x4f15('0x13')];if(!_0x4e2572[_0x4f15('0x5')][_0x4f15('0x2')]('HorizontalLineEditing'))return;_0x4e2572[_0x4f15('0x5')][_0x4f15('0xc')](_0x4f15('0xf'))[_0x4f15('0x3')](_0x4f15('0x8'));const _0x2bbe64=_0x4e2572[_0x4f15('0x5')][_0x4f15('0xc')](_0x4f15('0xf')),_0x11e2d5=_0x4e2572[_0x4f15('0xd')];_0x2bbe64['_descriptionFactory']['registerElementLabel'](_0x4f15('0x8'),_0x54aba5=>_0x53843d(_0x11e2d5,'ELEMENT_HORIZONTAL_LINE',_0x54aba5)),_0x4e2572[_0x4f15('0x0')][_0x4f15('0xe')](_0x4f15('0x10'))[_0x4f15('0xb')]({'model':_0x4f15('0x8'),'view':(_0x9b3a07,{writer:_0x4f8128,options:_0x5560db})=>{if(!_0x5560db[_0x4f15('0x11')])return null;const _0x44129f=_0x4f8128['createContainerElement'](_0x4f15('0x7')),_0x33891b=_0x4f8128[_0x4f15('0x6')]('hr');return _0x4f8128[_0x4f15('0x12')](_0x4f15('0x1'),_0x44129f),_0x4f8128[_0x4f15('0x14')](_0x4f8128[_0x4f15('0x9')](_0x44129f,0x0),_0x33891b),_0x44129f;},'converterPriority':_0x4f15('0xa')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29c7=['locale','getAttribute','ELEMENT_HTML_EMBED','element','TrackChangesEditing','rawHtmlApi','HtmlEmbed','cancel','registerDescriptionCallback','*Change\x20%0\x20content*','plugins','value','view','_descriptionFactory','get','document','getCustomProperty','enableCommand','format','selection','rawHtml','model','getSelectedElement','commandName','htmlEmbed'];(function(_0x5ab81f,_0x29c790){const _0x2e0c3a=function(_0x4140cf){while(--_0x4140cf){_0x5ab81f['push'](_0x5ab81f['shift']());}};_0x2e0c3a(++_0x29c790);}(_0x29c7,0x1e1));const _0x2e0c=function(_0x5ab81f,_0x29c790){_0x5ab81f=_0x5ab81f-0x0;let _0x2e0c3a=_0x29c7[_0x5ab81f];return _0x2e0c3a;};import{Plugin as _0x2a381a}from'ckeditor5/src/core';import{getTranslation as _0x44d25d}from'../utils/common-translations';export default class X extends _0x2a381a{['afterInit'](){const _0x15a941=this['editor'];if(!_0x15a941[_0x2e0c('0x4')]['has'](_0x2e0c('0x0')))return;const _0x228516=_0x15a941[_0x2e0c('0x4')][_0x2e0c('0x8')]('TrackChangesEditing'),_0x3638c3=_0x15a941[_0x2e0c('0x13')],_0x293860=_0x15a941['editing'][_0x2e0c('0x6')][_0x2e0c('0x9')][_0x2e0c('0xd')];_0x228516[_0x2e0c('0x7')]['registerElementLabel'](_0x2e0c('0xe'),_0x563a39=>_0x44d25d(_0x3638c3,_0x2e0c('0x15'),_0x563a39)),_0x15a941[_0x2e0c('0x4')]['get'](_0x2e0c('0x17'))[_0x2e0c('0xb')](_0x2e0c('0x12'),(_0x47c599,_0x2211e9)=>{const _0x3d0f5f=_0x15a941[_0x2e0c('0xf')],_0x5010f5=_0x3d0f5f[_0x2e0c('0x9')][_0x2e0c('0xd')];_0x3d0f5f['change'](()=>{const _0x31ec55=function(_0x510cdb){const _0x3ec1de=_0x510cdb[_0x2e0c('0x10')]();if(_0x3ec1de&&_0x3ec1de['is'](_0x2e0c('0x16'),_0x2e0c('0xe')))return _0x510cdb['getSelectedElement']();return null;}(_0x5010f5);if(!_0x31ec55)return void _0x47c599(null);const _0x45f24e=_0x31ec55[_0x2e0c('0x14')](_0x2e0c('0x5'))||'';if(void 0x0===_0x2211e9)return;if(_0x2211e9===_0x45f24e)return;_0x228516['markBlockFormat'](_0x31ec55,{'commandName':'htmlEmbed','commandParams':[_0x2211e9]}),_0x293860['getSelectedElement']()[_0x2e0c('0xa')](_0x2e0c('0x18'))[_0x2e0c('0x1')]();});}),_0x228516[_0x2e0c('0x7')][_0x2e0c('0x2')](_0x52f340=>{const {data:_0x28ddfe}=_0x52f340;if(_0x28ddfe&&_0x2e0c('0x12')==_0x28ddfe[_0x2e0c('0x11')]){const _0x535a82=_0x44d25d(_0x3638c3,'ELEMENT_HTML_EMBED');return{'type':_0x2e0c('0xc'),'content':_0x44d25d(_0x3638c3,_0x2e0c('0x3'),_0x535a82)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4413=['insertion','ImageStyleEditing','_splitMarkerName','isOwn','removeObject','_findSuggestions','*Set\x20image\x20text\x20alternative:*\x20%0','setImageNaturalSizeAttributes','discardSuggestion','join','author','toggleImageCaption','registerElementLabel','markBlockFormat','ImageEditing','caption','shouldConvertImageType','createRange','convertBlockImageToInline','nodeAfter','imageStyle','convertInlineImageToBlock','getContainedElement','model','start','*Reset\x20image\x20width*','nodeBefore','Block\x20image\x20to\x20inline\x20image','getChangedMarkers','createRangeOn','value','name','addObject','chain','width','getNearestSelectionRange','isIntersecting','formatBlock','commands','ImageCaptionUtils','plugins','getAttribute','*Remove\x20image\x20text\x20alternative*','uploadImage','fromPosition','length','imageStylePostApply','selection','markInsertion','subType','imageBlock','toPrevious','imageStylePreApply','next','discard','ImageUtils','editor','enableCommand','hasSuggestion','ImageTextAlternativeEditing','findIndex','forEach','normalizedStyles','resizeImage','end','ImageResize','toLowerCase','ImageUploadEditing','afterInit','imageCaption','_suggestionFactory','getCaptionFromImageModelElement','commandReversedParams','locale','isBlockImage','markInlineFormat','registerCustomCallback','type','side','format','imageTextAlternative','getClosestSelectedImageElement','newValue','ELEMENT_CAPTION','insertImage','detach','formatInline','Inline\x20image\x20to\x20block\x20image','isInlineImage','TrackChangesEditing','isInContent','toNext','isCollapsed','registerDescriptionCallback','isEqual','imageTypeInline','_descriptionFactory','hasAttribute','change','accept','getFirstRange','newRange','commandParams','imageTypeBlock','ImageCaptionEditing','from','commandName','head','alt','registerPostFixer','backward','FORMAT_SIDE_IMAGE','ELEMENT_INLINE_IMAGE','getSuggestions','differ','document','get','refresh','isBefore','forceDefaultExecution','has','getSuggestionCallback','filter'];(function(_0x618009,_0x4413d1){const _0x1ce7e7=function(_0x334ca5){while(--_0x334ca5){_0x618009['push'](_0x618009['shift']());}};_0x1ce7e7(++_0x4413d1);}(_0x4413,0x7d));const _0x1ce7=function(_0x618009,_0x4413d1){_0x618009=_0x618009-0x0;let _0x1ce7e7=_0x4413[_0x618009];return _0x1ce7e7;};import{Plugin as _0x24b4ff}from'ckeditor5/src/core';import{LivePosition as _0x44ef07}from'ckeditor5/src/engine';import{uid as _0x8ece5c}from'ckeditor5/src/utils';import{getTranslation as _0x78083}from'../utils/common-translations';export default class Y extends _0x24b4ff{[_0x1ce7('0x42')](){const _0x190228=this[_0x1ce7('0x36')];if(!_0x190228['plugins'][_0x1ce7('0x76')](_0x1ce7('0xc')))return;const _0x39cd6=_0x190228[_0x1ce7('0x26')][_0x1ce7('0x72')](_0x1ce7('0x57')),_0x2d42be=_0x190228[_0x1ce7('0x26')][_0x1ce7('0x72')](_0x1ce7('0x35')),_0x4e6407={},_0xcd9ef4=_0x190228[_0x1ce7('0x47')];if(_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x52')),_0x39cd6[_0x1ce7('0x5e')]['registerElementLabel'](_0x1ce7('0x30'),_0x375b29=>_0x78083(_0xcd9ef4,'ELEMENT_IMAGE',_0x375b29)),_0x39cd6[_0x1ce7('0x5e')][_0x1ce7('0xa')]('imageInline',_0x1dc034=>_0x78083(_0xcd9ef4,_0x1ce7('0x6e'),_0x1dc034)),_0x39cd6[_0x1ce7('0x5e')][_0x1ce7('0xa')](_0x1ce7('0xd'),()=>_0x78083(_0xcd9ef4,_0x1ce7('0x51'))),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')](_0x1ce7('0x41'))&&_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x29')),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')]('ImageBlockEditing')&&_0x190228['plugins'][_0x1ce7('0x76')]('ImageInlineEditing')&&(_0x39cd6['enableCommand'](_0x1ce7('0x5d'),(_0x57b720,_0x3f3f5b)=>{const _0x4b1ecf=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]);_0x190228[_0x1ce7('0x15')][_0x1ce7('0x60')](()=>{_0x39cd6[_0x1ce7('0xb')](_0x4b1ecf,{'commandName':'imageTypeInline','commandParams':[_0x3f3f5b]},[],_0x1ce7('0x10'));});}),_0x39cd6['enableCommand'](_0x1ce7('0x65'),(_0x27e3e8,_0x2c8d89)=>{_0x190228[_0x1ce7('0x15')]['change'](_0x28d0dd=>{let _0xb601be=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]),_0x4e383e=_0x28d0dd[_0x1ce7('0x1b')](_0xb601be);const _0x24678c=_0x44ef07['fromPosition'](_0x4e383e[_0x1ce7('0x16')],_0x1ce7('0x31')),_0x165b8c=_0x44ef07[_0x1ce7('0x2a')](_0x4e383e['end'],_0x1ce7('0x59'));_0x39cd6[_0x1ce7('0x75')](()=>_0x27e3e8(_0x2c8d89)),_0xb601be=_0x2d42be['getClosestSelectedImageElement'](_0x190228['model'][_0x1ce7('0x71')][_0x1ce7('0x2d')]),_0x4e383e=_0x28d0dd[_0x1ce7('0x1b')](_0xb601be);const _0x3a8ff5=_0x28d0dd[_0x1ce7('0xf')](_0x24678c,_0x165b8c);_0x24678c[_0x1ce7('0x53')](),_0x165b8c[_0x1ce7('0x53')](),_0x39cd6[_0x1ce7('0xb')](_0xb601be,{'commandName':'imageTypeInline','commandParams':[_0x2c8d89]},[],_0x1ce7('0x13')),_0x3a8ff5[_0x1ce7('0x16')]['isBefore'](_0x4e383e['start'])&&_0x39cd6['markInsertion'](_0x28d0dd[_0x1ce7('0xf')](_0x3a8ff5[_0x1ce7('0x16')],_0x4e383e[_0x1ce7('0x16')]),'convertInlineImageToBlock'),_0x4e383e['end'][_0x1ce7('0x74')](_0x3a8ff5[_0x1ce7('0x3e')])&&_0x39cd6['markInsertion'](_0x28d0dd[_0x1ce7('0xf')](_0x4e383e[_0x1ce7('0x3e')],_0x3a8ff5[_0x1ce7('0x3e')]),_0x1ce7('0x13'));});}),_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x23'),_0x1ce7('0x13'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')](_0x1ce7('0x23'),_0x1ce7('0x13'),'accept',()=>!0x1),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')]('formatBlock',_0x1ce7('0x13'),'discard',_0x39cd6['_suggestionFactory']['getSuggestionCallback'](_0x1ce7('0x23'),'',_0x1ce7('0x61'))),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')]('insertion',_0x1ce7('0x13'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6['_suggestionFactory']['registerCustomCallback'](_0x1ce7('0x79'),'convertInlineImageToBlock',_0x1ce7('0x34'),([_0x317cc6])=>{const _0x7006de=_0x39cd6[_0x1ce7('0x44')]['getSuggestionCallback'](_0x1ce7('0x79'),'',_0x1ce7('0x34'));let _0x2843b6=_0x317cc6[_0x1ce7('0x16')],_0x1798e7=_0x317cc6[_0x1ce7('0x3e')];const _0xf560f4=_0x190228['model']['schema'][_0x1ce7('0x21')](_0x2843b6,_0x1ce7('0x6c')),_0x318c7f=_0x190228['model']['schema'][_0x1ce7('0x21')](_0x1798e7,'forward');_0xf560f4[_0x1ce7('0x5a')]&&(_0x2843b6=_0xf560f4['start']),_0x318c7f[_0x1ce7('0x5a')]&&(_0x1798e7=_0x318c7f[_0x1ce7('0x3e')]),_0x7006de([_0x190228['model']['createRange'](_0x2843b6,_0x1798e7)]);}),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')]('formatBlock',_0x1ce7('0x13'),'chain',_0x1c0d77),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')]('insertion','convertInlineImageToBlock',_0x1ce7('0x1f'),_0x1c0d77)),_0x190228['plugins'][_0x1ce7('0x76')](_0x1ce7('0x66'))&&(_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x9'),(_0x3173c5,_0x335bac)=>{const _0xda56aa=_0x190228[_0x1ce7('0x26')]['get'](_0x1ce7('0x25'));let _0x1a8c6b=_0x2d42be['getClosestSelectedImageElement'](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')]['selection']),_0x154327=_0xda56aa[_0x1ce7('0x45')](_0x1a8c6b);_0x190228['model'][_0x1ce7('0x60')](()=>{if(_0x154327)return void _0x39cd6['markDeletion'](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x1b')](_0x154327));const _0x3eecbf=_0x2d42be['isBlockImage'](_0x1a8c6b);_0x3173c5(_0x335bac),_0x1a8c6b=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]),_0x154327=_0xda56aa['getCaptionFromImageModelElement'](_0x1a8c6b),_0x39cd6[_0x1ce7('0x2e')](_0x190228['model'][_0x1ce7('0x1b')](_0x154327),_0x3eecbf?null:_0x1ce7('0x43'));});}),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')](_0x1ce7('0x79'),_0x1ce7('0x43'),_0x1ce7('0x1f'),_0x1c0d77)),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')](_0x1ce7('0x7a'))){_0x39cd6[_0x1ce7('0x37')]('imageStyle',(_0x28852a,_0x4c70fe)=>{const _0x2d4b44=_0x190228[_0x1ce7('0x26')]['get']('Users')['me'],_0x28e0ee=_0x190228['commands'][_0x1ce7('0x72')](_0x1ce7('0x12'));let _0x1c7f25=_0x2d42be['getClosestSelectedImageElement'](_0x190228[_0x1ce7('0x15')]['document']['selection']),_0x2f7a20=_0x190228['model'][_0x1ce7('0x1b')](_0x1c7f25),_0x40b754=_0x28e0ee[_0x1ce7('0x1c')];if(_0x40b754==_0x4c70fe[_0x1ce7('0x1c')])return;const _0x12ab2b={'commandName':'imageStyle','commandParams':[_0x4c70fe],'formatGroupId':_0x8ece5c()};_0x190228['model'][_0x1ce7('0x60')](()=>{if(_0x39cd6[_0x1ce7('0x6f')]()[_0x1ce7('0x78')](_0x406dae=>_0x406dae[_0x1ce7('0x58')]&&_0x2d4b44==_0x406dae[_0x1ce7('0x8')]&&(_0x1ce7('0x23')==_0x406dae[_0x1ce7('0x4b')]||'formatInline'==_0x406dae[_0x1ce7('0x4b')])&&(_0x1ce7('0x32')==_0x406dae[_0x1ce7('0x2f')]||_0x1ce7('0x2c')==_0x406dae['subType'])&&_0x406dae[_0x1ce7('0x62')]()[_0x1ce7('0x5c')](_0x2f7a20))[_0x1ce7('0x3b')](_0x53bf23=>_0x39cd6[_0x1ce7('0x6')](_0x53bf23[_0x1ce7('0x69')])),_0x1c7f25=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')]['selection']),_0x2f7a20=_0x190228[_0x1ce7('0x15')]['createRangeOn'](_0x1c7f25),_0x28e0ee[_0x1ce7('0x73')](),_0x190228['commands']['get']('imageTypeInline')['refresh'](),_0x190228[_0x1ce7('0x24')][_0x1ce7('0x72')]('imageTypeBlock')[_0x1ce7('0x73')](),_0x40b754=_0x28e0ee['value'],_0x40b754!=_0x4c70fe[_0x1ce7('0x1c')])return _0x2d42be[_0x1ce7('0x56')](_0x1c7f25)&&_0x28e0ee[_0x1ce7('0xe')](_0x4c70fe[_0x1ce7('0x1c')],_0x1c7f25)?(_0x28852a({..._0x4c70fe,'setImageSizes':!0x1}),_0x1c7f25=_0x2d42be[_0x1ce7('0x4f')](_0x190228['model'][_0x1ce7('0x71')][_0x1ce7('0x2d')]),void _0x39cd6[_0x1ce7('0xb')](_0x1c7f25,{..._0x12ab2b,'commandReversedParams':[{'value':_0x40b754||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2d42be['isBlockImage'](_0x1c7f25)?_0x39cd6['markBlockFormat'](_0x1c7f25,_0x12ab2b,[],_0x1ce7('0x2c')):_0x39cd6[_0x1ce7('0x49')](_0x2f7a20,_0x12ab2b,_0x1ce7('0x2c')));});});for(const _0xdba59a of _0x190228[_0x1ce7('0x26')]['get'](_0x1ce7('0x7a'))[_0x1ce7('0x3c')])_0x4e6407[_0xdba59a[_0x1ce7('0x1d')]]=_0xdba59a['title'][_0x1ce7('0x40')]();_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x23'),_0x1ce7('0x32'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x4a')]('formatBlock',_0x1ce7('0x2c'),_0x1ce7('0x7'),()=>!0x1),_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x54'),'imageStylePostApply','join',()=>!0x1),_0x39cd6[_0x1ce7('0x44')]['registerCustomCallback'](_0x1ce7('0x23'),_0x1ce7('0x32'),'accept',([_0x19d0e1])=>{_0x2d42be[_0x1ce7('0x5')](_0x19d0e1[_0x1ce7('0x14')]());}),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')](_0x1ce7('0x23'),'imageStylePreApply',_0x1ce7('0x34'),(_0x2c8dfe,_0x5e2159)=>{_0x39cd6[_0x1ce7('0x44')][_0x1ce7('0x77')](_0x1ce7('0x23'),'',_0x1ce7('0x61'))(_0x2c8dfe,{'commandName':_0x5e2159[_0x1ce7('0x68')],'commandParams':_0x5e2159[_0x1ce7('0x46')]});}),_0x39cd6['_suggestionFactory'][_0x1ce7('0x4a')](_0x1ce7('0x23'),_0x1ce7('0x32'),_0x1ce7('0x1f'),_0x1c0d77);}const _0x2e3f0b=[{'type':_0x1ce7('0x23'),'subType':'imageStylePreApply'},{'type':_0x1ce7('0x79'),'subType':_0x1ce7('0x43')},{'type':'formatBlock','subType':_0x1ce7('0x13')},{'type':'insertion','subType':_0x1ce7('0x13')}];function _0x1b79b9(_0x477ca6,_0x2c6306){const _0x222269=_0x2e3f0b[_0x1ce7('0x3a')](({type:_0x506e27,subType:_0x537111})=>_0x477ca6[_0x1ce7('0x4b')]==_0x506e27&&_0x477ca6[_0x1ce7('0x2f')]==_0x537111),_0x318fed=_0x2e3f0b[_0x1ce7('0x3a')](({type:_0x43c71d,subType:_0x424e5b})=>_0x2c6306[_0x1ce7('0x4b')]==_0x43c71d&&_0x2c6306[_0x1ce7('0x2f')]==_0x424e5b);if(_0x222269<0x0||_0x318fed<0x0)return!0x1;const _0x5a82f7=_0x477ca6[_0x1ce7('0x62')](),_0x4a0a16=_0x2c6306[_0x1ce7('0x62')]();if((0x0==_0x222269||0x1==_0x222269)&&0x2==_0x318fed&&_0x5a82f7[_0x1ce7('0x22')](_0x4a0a16))return!0x0;if(0x2==_0x222269&&0x3==_0x318fed){const _0x33411b=_0x39cd6[_0x1ce7('0x3')](_0x5a82f7,'insertion')[_0x1ce7('0x78')](({suggestion:_0x5ca11a,meta:_0x39b123})=>_0x39b123[_0x1ce7('0x1')]&&'convertInlineImageToBlock'==_0x5ca11a[_0x1ce7('0x2f')]);if(_0x33411b[_0x1ce7('0x2b')]>0x1&&_0x4a0a16['end'][_0x1ce7('0x5c')](_0x5a82f7[_0x1ce7('0x16')]))return!0x0;if(0x1==_0x33411b['length']&&(_0x5a82f7[_0x1ce7('0x16')][_0x1ce7('0x5c')](_0x4a0a16[_0x1ce7('0x3e')])||_0x5a82f7[_0x1ce7('0x3e')][_0x1ce7('0x5c')](_0x4a0a16['start'])))return!0x0;}if(0x3==_0x222269&&0x3==_0x318fed&&_0x5a82f7['start'][_0x1ce7('0x74')](_0x4a0a16['start'])){const _0x119a85=_0x5a82f7[_0x1ce7('0x3e')][_0x1ce7('0x11')],_0x12e19f=_0x4a0a16[_0x1ce7('0x16')][_0x1ce7('0x18')];return _0x2d42be[_0x1ce7('0x48')](_0x119a85)&&_0x119a85===_0x12e19f;}return!0x1;}function _0x1c0d77(_0x51d781,_0x545c9d){return _0x1b79b9(_0x51d781,_0x545c9d)?[_0x51d781,_0x545c9d]:_0x1b79b9(_0x545c9d,_0x51d781)?[_0x545c9d,_0x51d781]:null;}_0x190228[_0x1ce7('0x15')]['document'][_0x1ce7('0x6b')](()=>{let _0x41b3c2=!0x1;const _0x4f4668=Array[_0x1ce7('0x67')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x70')][_0x1ce7('0x1a')]());for(const {name:_0x222727,data:_0x2f0b0e}of _0x4f4668){const {group:_0x6608d,type:_0x365c95,subType:_0x2e894a,id:_0x4ab7b3}=_0x39cd6[_0x1ce7('0x0')](_0x222727);if('suggestion'==_0x6608d&&_0x39cd6[_0x1ce7('0x38')](_0x4ab7b3)){if(_0x1ce7('0x23')==_0x365c95&&(_0x1ce7('0x32')==_0x2e894a||_0x1ce7('0x2c')==_0x2e894a)){const _0x5ede8f=_0x39cd6['getSuggestion'](_0x4ab7b3);if(_0x2f0b0e[_0x1ce7('0x63')]){const _0x7b554f=_0x5ede8f[_0x1ce7('0x62')]()['getContainedElement']();if(_0x2d42be[_0x1ce7('0x48')](_0x7b554f))continue;_0x39cd6[_0x1ce7('0x6')](_0x5ede8f),_0x41b3c2=!0x0;}}if('insertion'==_0x365c95&&_0x1ce7('0x43')==_0x2e894a&&!_0x2f0b0e[_0x1ce7('0x63')]){const _0x2d24ea=_0x39cd6['getSuggestion'](_0x4ab7b3);_0x2d24ea[_0x1ce7('0x33')]&&_0x2d24ea['next'][_0x1ce7('0x58')]&&(_0x39cd6[_0x1ce7('0x6')](_0x2d24ea[_0x1ce7('0x33')]),_0x41b3c2=!0x0);}}}return _0x41b3c2;}),_0x190228[_0x1ce7('0x26')]['has'](_0x1ce7('0x3f'))&&_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x3d'),(_0x6aeb81,_0x3c644a)=>{const _0x202ffe=_0x2d42be[_0x1ce7('0x4f')](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]);_0x202ffe[_0x1ce7('0x27')]('resizedWidth')!=_0x3c644a[_0x1ce7('0x20')]&&_0x190228[_0x1ce7('0x15')][_0x1ce7('0x60')](()=>{_0x39cd6['markBlockFormat'](_0x202ffe,{'commandName':_0x1ce7('0x3d'),'commandParams':[_0x3c644a]});});}),_0x190228[_0x1ce7('0x26')][_0x1ce7('0x76')](_0x1ce7('0x39'))&&_0x39cd6[_0x1ce7('0x37')](_0x1ce7('0x4e'),(_0x22cc84,_0x10cece)=>{const _0x202e82=_0x2d42be['getClosestSelectedImageElement'](_0x190228[_0x1ce7('0x15')][_0x1ce7('0x71')][_0x1ce7('0x2d')]);(_0x202e82[_0x1ce7('0x5f')](_0x1ce7('0x6a'))?_0x202e82[_0x1ce7('0x27')](_0x1ce7('0x6a')):'')!=_0x10cece[_0x1ce7('0x50')]&&_0x190228['model'][_0x1ce7('0x60')](()=>{_0x39cd6[_0x1ce7('0xb')](_0x202e82,{'commandName':_0x1ce7('0x4e'),'commandParams':[_0x10cece]});});}),_0x39cd6['_descriptionFactory'][_0x1ce7('0x5b')](_0x31594b=>{if(!!_0x2e3f0b['find'](({type:_0x4723f2,subType:_0x57f461})=>_0x31594b[_0x1ce7('0x4b')]==_0x4723f2&&_0x31594b[_0x1ce7('0x2f')]==_0x57f461))return _0x31594b['previous']?{}:void 0x0;}),_0x39cd6['_descriptionFactory'][_0x1ce7('0x5b')](_0x1ad880=>{if(_0x1ce7('0x79')==_0x1ad880[_0x1ce7('0x4b')]||'deletion'==_0x1ad880[_0x1ce7('0x4b')]){const _0x24691=_0x1ad880[_0x1ce7('0x14')]();if(_0x24691&&_0x24691['is']('element','caption'))return{'type':_0x1ce7('0x79')==_0x1ad880[_0x1ce7('0x4b')]?_0x1ce7('0x1e'):_0x1ce7('0x2'),'element':_0x24691,'quantity':0x1};}}),_0x39cd6['_descriptionFactory'][_0x1ce7('0x5b')](_0x382447=>_0x1ce7('0x23')==_0x382447[_0x1ce7('0x4b')]&&_0x1ce7('0x13')==_0x382447['subType']?{'type':_0x1ce7('0x4d'),'content':_0x1ce7('0x55')}:'formatBlock'==_0x382447['type']&&_0x1ce7('0x10')==_0x382447['subType']?{'type':_0x1ce7('0x4d'),'content':_0x1ce7('0x19')}:void 0x0),_0x39cd6[_0x1ce7('0x5e')][_0x1ce7('0x5b')](_0x10e372=>{const {data:_0x4a2b19}=_0x10e372;if(_0x4a2b19){if('imageStyle'==_0x4a2b19[_0x1ce7('0x68')]){const _0x136170=_0x4a2b19[_0x1ce7('0x64')][0x0]['value'];return _0x1f2f55(_0x1ce7('0x4c')===_0x136170?_0x78083(_0xcd9ef4,_0x1ce7('0x6d')):_0x4e6407[_0x136170]||_0x136170);}if('imageTextAlternative'==_0x4a2b19[_0x1ce7('0x68')]){const _0x1f1b52=_0x4a2b19[_0x1ce7('0x64')][0x0][_0x1ce7('0x50')];return _0x1f1b52?{'type':'format','content':_0x78083(_0xcd9ef4,_0x1ce7('0x4'),'\x22'+_0x1f1b52+'\x22')}:{'type':'format','content':_0x78083(_0xcd9ef4,_0x1ce7('0x28'))};}if(_0x1ce7('0x3d')==_0x4a2b19['commandName']){const _0x4c15db=_0x4a2b19[_0x1ce7('0x64')][0x0][_0x1ce7('0x20')];return _0x4c15db?{'type':'format','content':_0x78083(_0xcd9ef4,'*Set\x20image\x20width:*\x20%0',_0x4c15db)}:{'type':_0x1ce7('0x4d'),'content':_0x78083(_0xcd9ef4,_0x1ce7('0x17'))};}}function _0x1f2f55(_0x2c160e){return{'type':_0x1ce7('0x4d'),'content':_0x78083(_0xcd9ef4,'*Format:*\x20%0',_0x2c160e)};}});}}
|
|
23
|
+
const _0xaa2e=['value','schema','imageTypeInline','format','imageInline','imageStyle','forward','ImageInlineEditing','change','hasSuggestion','get','previous','isCollapsed','from','uploadImage','getSuggestionCallback','width','_suggestionFactory','markBlockFormat','alt','join','selection','ImageCaptionEditing','locale','side','fromPosition','toLowerCase','subType','toPrevious','getAttribute','suggestion','getClosestSelectedImageElement','isEqual','isBefore','find','commands','detach','ImageStyleEditing','insertImage','findIndex','registerCustomCallback','resizedWidth','caption','getContainedElement','*Remove\x20image\x20text\x20alternative*','document','ImageUploadEditing','registerPostFixer','_descriptionFactory','newRange','markDeletion','accept','has','next','type','getCaptionFromImageModelElement','hasAttribute','nodeAfter','resizeImage','FORMAT_SIDE_IMAGE','author','formatBlock','imageStylePostApply','filter','getSuggestions','isInContent','getNearestSelectionRange','isIntersecting','name','addObject','*Set\x20image\x20text\x20alternative:*\x20%0','imageTextAlternative','createRangeOn','discardSuggestion','Users','imageBlock','length','forEach','convertInlineImageToBlock','enableCommand','discard','start','markInsertion','backward','imageStylePreApply','*Set\x20image\x20width:*\x20%0','isInlineImage','registerElementLabel','registerDescriptionCallback','*Reset\x20image\x20width*','ELEMENT_INLINE_IMAGE','ImageResize','removeObject','plugins','chain','imageCaption','formatInline','_findSuggestions','getSuggestion','isBlockImage','deletion','refresh','toggleImageCaption','model','afterInit','element','ImageTextAlternativeEditing','setImageNaturalSizeAttributes','isOwn','getFirstRange','createRange','ImageCaptionUtils','ImageUtils','commandParams','insertion','end','*Format:*\x20%0','forceDefaultExecution','commandName','newValue','convertBlockImageToInline'];(function(_0x145a25,_0xaa2e92){const _0x3f6a24=function(_0x30f48d){while(--_0x30f48d){_0x145a25['push'](_0x145a25['shift']());}};_0x3f6a24(++_0xaa2e92);}(_0xaa2e,0xb9));const _0x3f6a=function(_0x145a25,_0xaa2e92){_0x145a25=_0x145a25-0x0;let _0x3f6a24=_0xaa2e[_0x145a25];return _0x3f6a24;};import{Plugin as _0x4dd1f7}from'ckeditor5/src/core';import{LivePosition as _0x4f6c33}from'ckeditor5/src/engine';import{uid as _0x4c9148}from'ckeditor5/src/utils';import{getTranslation as _0x20d278}from'../utils/common-translations';export default class Y extends _0x4dd1f7{[_0x3f6a('0x28')](){const _0x158e5a=this['editor'];if(!_0x158e5a[_0x3f6a('0x1d')]['has']('ImageEditing'))return;const _0x4e8733=_0x158e5a[_0x3f6a('0x1d')][_0x3f6a('0x43')]('TrackChangesEditing'),_0x5f4504=_0x158e5a['plugins'][_0x3f6a('0x43')](_0x3f6a('0x30')),_0x26a24f={},_0x1be0cd=_0x158e5a[_0x3f6a('0x50')];if(_0x4e8733[_0x3f6a('0xf')](_0x3f6a('0x5f')),_0x4e8733[_0x3f6a('0x69')][_0x3f6a('0x17')](_0x3f6a('0xb'),_0x413065=>_0x20d278(_0x1be0cd,'ELEMENT_IMAGE',_0x413065)),_0x4e8733[_0x3f6a('0x69')][_0x3f6a('0x17')](_0x3f6a('0x3d'),_0x23b438=>_0x20d278(_0x1be0cd,_0x3f6a('0x1a'),_0x23b438)),_0x4e8733[_0x3f6a('0x69')][_0x3f6a('0x17')](_0x3f6a('0x63'),()=>_0x20d278(_0x1be0cd,'ELEMENT_CAPTION')),_0x158e5a[_0x3f6a('0x1d')][_0x3f6a('0x6d')](_0x3f6a('0x67'))&&_0x4e8733[_0x3f6a('0xf')](_0x3f6a('0x47')),_0x158e5a[_0x3f6a('0x1d')][_0x3f6a('0x6d')]('ImageBlockEditing')&&_0x158e5a[_0x3f6a('0x1d')]['has'](_0x3f6a('0x40'))&&(_0x4e8733['enableCommand'](_0x3f6a('0x3b'),(_0x189b78,_0x570da5)=>{const _0x24981d=_0x5f4504[_0x3f6a('0x58')](_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x66')][_0x3f6a('0x4e')]);_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x41')](()=>{_0x4e8733[_0x3f6a('0x4b')](_0x24981d,{'commandName':_0x3f6a('0x3b'),'commandParams':[_0x570da5]},[],_0x3f6a('0x38'));});}),_0x4e8733[_0x3f6a('0xf')]('imageTypeBlock',(_0x712c45,_0xe236ec)=>{_0x158e5a['model'][_0x3f6a('0x41')](_0x543dfd=>{let _0x4f81b4=_0x5f4504[_0x3f6a('0x58')](_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x66')]['selection']),_0x2752bd=_0x543dfd['createRangeOn'](_0x4f81b4);const _0x2604e4=_0x4f6c33[_0x3f6a('0x52')](_0x2752bd[_0x3f6a('0x11')],_0x3f6a('0x55')),_0x8e06c5=_0x4f6c33[_0x3f6a('0x52')](_0x2752bd[_0x3f6a('0x33')],'toNext');_0x4e8733[_0x3f6a('0x35')](()=>_0x712c45(_0xe236ec)),_0x4f81b4=_0x5f4504[_0x3f6a('0x58')](_0x158e5a['model'][_0x3f6a('0x66')][_0x3f6a('0x4e')]),_0x2752bd=_0x543dfd[_0x3f6a('0x8')](_0x4f81b4);const _0x3a4584=_0x543dfd[_0x3f6a('0x2e')](_0x2604e4,_0x8e06c5);_0x2604e4[_0x3f6a('0x5d')](),_0x8e06c5['detach'](),_0x4e8733[_0x3f6a('0x4b')](_0x4f81b4,{'commandName':'imageTypeInline','commandParams':[_0xe236ec]},[],_0x3f6a('0xe')),_0x3a4584['start'][_0x3f6a('0x5a')](_0x2752bd['start'])&&_0x4e8733[_0x3f6a('0x12')](_0x543dfd['createRange'](_0x3a4584['start'],_0x2752bd[_0x3f6a('0x11')]),'convertInlineImageToBlock'),_0x2752bd['end'][_0x3f6a('0x5a')](_0x3a4584[_0x3f6a('0x33')])&&_0x4e8733[_0x3f6a('0x12')](_0x543dfd[_0x3f6a('0x2e')](_0x2752bd[_0x3f6a('0x33')],_0x3a4584[_0x3f6a('0x33')]),_0x3f6a('0xe'));});}),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')](_0x3f6a('0x76'),_0x3f6a('0xe'),_0x3f6a('0x4d'),()=>!0x1),_0x4e8733['_suggestionFactory']['registerCustomCallback'](_0x3f6a('0x76'),'convertInlineImageToBlock',_0x3f6a('0x6c'),()=>!0x1),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')](_0x3f6a('0x76'),'convertInlineImageToBlock',_0x3f6a('0x10'),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x48')](_0x3f6a('0x76'),'','accept')),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')](_0x3f6a('0x32'),'convertInlineImageToBlock',_0x3f6a('0x4d'),()=>!0x1),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')](_0x3f6a('0x32'),_0x3f6a('0xe'),_0x3f6a('0x10'),([_0x1feb0c])=>{const _0x1f5f46=_0x4e8733[_0x3f6a('0x4a')]['getSuggestionCallback'](_0x3f6a('0x32'),'',_0x3f6a('0x10'));let _0x10f900=_0x1feb0c['start'],_0x2e68c1=_0x1feb0c[_0x3f6a('0x33')];const _0x3415ef=_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x3a')]['getNearestSelectionRange'](_0x10f900,_0x3f6a('0x13')),_0x275a7f=_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x3a')][_0x3f6a('0x2')](_0x2e68c1,_0x3f6a('0x3f'));_0x3415ef[_0x3f6a('0x45')]&&(_0x10f900=_0x3415ef[_0x3f6a('0x11')]),_0x275a7f[_0x3f6a('0x45')]&&(_0x2e68c1=_0x275a7f[_0x3f6a('0x33')]),_0x1f5f46([_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x2e')](_0x10f900,_0x2e68c1)]);}),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')](_0x3f6a('0x76'),'convertInlineImageToBlock','chain',_0x2929cb),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')]('insertion',_0x3f6a('0xe'),'chain',_0x2929cb)),_0x158e5a[_0x3f6a('0x1d')]['has'](_0x3f6a('0x4f'))&&(_0x4e8733[_0x3f6a('0xf')](_0x3f6a('0x26'),(_0x196d87,_0xda9aa0)=>{const _0x5be72b=_0x158e5a[_0x3f6a('0x1d')]['get'](_0x3f6a('0x2f'));let _0xed6d3d=_0x5f4504['getClosestSelectedImageElement'](_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x66')][_0x3f6a('0x4e')]),_0xdf4d1e=_0x5be72b[_0x3f6a('0x70')](_0xed6d3d);_0x158e5a['model'][_0x3f6a('0x41')](()=>{if(_0xdf4d1e)return void _0x4e8733[_0x3f6a('0x6b')](_0x158e5a['model'][_0x3f6a('0x8')](_0xdf4d1e));const _0x45e154=_0x5f4504[_0x3f6a('0x23')](_0xed6d3d);_0x196d87(_0xda9aa0),_0xed6d3d=_0x5f4504[_0x3f6a('0x58')](_0x158e5a['model'][_0x3f6a('0x66')][_0x3f6a('0x4e')]),_0xdf4d1e=_0x5be72b[_0x3f6a('0x70')](_0xed6d3d),_0x4e8733[_0x3f6a('0x12')](_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x8')](_0xdf4d1e),_0x45e154?null:_0x3f6a('0x1f'));});}),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')]('insertion',_0x3f6a('0x1f'),_0x3f6a('0x1e'),_0x2929cb)),_0x158e5a['plugins']['has'](_0x3f6a('0x5e'))){_0x4e8733[_0x3f6a('0xf')](_0x3f6a('0x3e'),(_0x2b5260,_0x5e2e95)=>{const _0xbd543e=_0x158e5a['plugins'][_0x3f6a('0x43')](_0x3f6a('0xa'))['me'],_0x2cece2=_0x158e5a[_0x3f6a('0x5c')][_0x3f6a('0x43')](_0x3f6a('0x3e'));let _0x2453ec=_0x5f4504['getClosestSelectedImageElement'](_0x158e5a[_0x3f6a('0x27')]['document'][_0x3f6a('0x4e')]),_0x1424b5=_0x158e5a[_0x3f6a('0x27')]['createRangeOn'](_0x2453ec),_0x11a108=_0x2cece2[_0x3f6a('0x39')];if(_0x11a108==_0x5e2e95['value'])return;const _0x529a21={'commandName':'imageStyle','commandParams':[_0x5e2e95],'formatGroupId':_0x4c9148()};_0x158e5a['model'][_0x3f6a('0x41')](()=>{if(_0x4e8733[_0x3f6a('0x0')]()[_0x3f6a('0x78')](_0x13f572=>_0x13f572[_0x3f6a('0x1')]&&_0xbd543e==_0x13f572[_0x3f6a('0x75')]&&(_0x3f6a('0x76')==_0x13f572[_0x3f6a('0x6f')]||_0x3f6a('0x20')==_0x13f572[_0x3f6a('0x6f')])&&(_0x3f6a('0x14')==_0x13f572[_0x3f6a('0x54')]||_0x3f6a('0x77')==_0x13f572[_0x3f6a('0x54')])&&_0x13f572['getFirstRange']()[_0x3f6a('0x59')](_0x1424b5))[_0x3f6a('0xd')](_0x3e5ec8=>_0x4e8733[_0x3f6a('0x9')](_0x3e5ec8['head'])),_0x2453ec=_0x5f4504[_0x3f6a('0x58')](_0x158e5a[_0x3f6a('0x27')]['document']['selection']),_0x1424b5=_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x8')](_0x2453ec),_0x2cece2[_0x3f6a('0x25')](),_0x158e5a[_0x3f6a('0x5c')][_0x3f6a('0x43')]('imageTypeInline')[_0x3f6a('0x25')](),_0x158e5a[_0x3f6a('0x5c')][_0x3f6a('0x43')]('imageTypeBlock')[_0x3f6a('0x25')](),_0x11a108=_0x2cece2['value'],_0x11a108!=_0x5e2e95[_0x3f6a('0x39')])return _0x5f4504[_0x3f6a('0x16')](_0x2453ec)&&_0x2cece2['shouldConvertImageType'](_0x5e2e95[_0x3f6a('0x39')],_0x2453ec)?(_0x2b5260({..._0x5e2e95,'setImageSizes':!0x1}),_0x2453ec=_0x5f4504[_0x3f6a('0x58')](_0x158e5a[_0x3f6a('0x27')]['document'][_0x3f6a('0x4e')]),void _0x4e8733[_0x3f6a('0x4b')](_0x2453ec,{..._0x529a21,'commandReversedParams':[{'value':_0x11a108||null,'setImageSizes':!0x1}]},[],_0x3f6a('0x14'))):void(_0x5f4504[_0x3f6a('0x23')](_0x2453ec)?_0x4e8733[_0x3f6a('0x4b')](_0x2453ec,_0x529a21,[],_0x3f6a('0x77')):_0x4e8733['markInlineFormat'](_0x1424b5,_0x529a21,'imageStylePostApply'));});});for(const _0x5b88d0 of _0x158e5a[_0x3f6a('0x1d')][_0x3f6a('0x43')]('ImageStyleEditing')['normalizedStyles'])_0x26a24f[_0x5b88d0[_0x3f6a('0x4')]]=_0x5b88d0['title'][_0x3f6a('0x53')]();_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')]('formatBlock',_0x3f6a('0x14'),_0x3f6a('0x4d'),()=>!0x1),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')]('formatBlock',_0x3f6a('0x77'),'join',()=>!0x1),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')](_0x3f6a('0x20'),_0x3f6a('0x77'),'join',()=>!0x1),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')](_0x3f6a('0x76'),'imageStylePreApply',_0x3f6a('0x6c'),([_0x10ec3e])=>{_0x5f4504[_0x3f6a('0x2b')](_0x10ec3e['getContainedElement']());}),_0x4e8733[_0x3f6a('0x4a')][_0x3f6a('0x61')]('formatBlock',_0x3f6a('0x14'),_0x3f6a('0x10'),(_0xf9e768,_0x5ff56a)=>{_0x4e8733['_suggestionFactory'][_0x3f6a('0x48')](_0x3f6a('0x76'),'','accept')(_0xf9e768,{'commandName':_0x5ff56a[_0x3f6a('0x36')],'commandParams':_0x5ff56a['commandReversedParams']});}),_0x4e8733['_suggestionFactory'][_0x3f6a('0x61')](_0x3f6a('0x76'),_0x3f6a('0x14'),_0x3f6a('0x1e'),_0x2929cb);}const _0x136a93=[{'type':'formatBlock','subType':_0x3f6a('0x14')},{'type':_0x3f6a('0x32'),'subType':_0x3f6a('0x1f')},{'type':_0x3f6a('0x76'),'subType':_0x3f6a('0xe')},{'type':_0x3f6a('0x32'),'subType':_0x3f6a('0xe')}];function _0x760b28(_0x3a36e0,_0x476470){const _0x5a08f3=_0x136a93[_0x3f6a('0x60')](({type:_0x2cde3c,subType:_0x3f9195})=>_0x3a36e0['type']==_0x2cde3c&&_0x3a36e0[_0x3f6a('0x54')]==_0x3f9195),_0x2c7b17=_0x136a93[_0x3f6a('0x60')](({type:_0xf33be7,subType:_0x5e9c65})=>_0x476470[_0x3f6a('0x6f')]==_0xf33be7&&_0x476470['subType']==_0x5e9c65);if(_0x5a08f3<0x0||_0x2c7b17<0x0)return!0x1;const _0x4738a5=_0x3a36e0[_0x3f6a('0x2d')](),_0x57eada=_0x476470[_0x3f6a('0x2d')]();if((0x0==_0x5a08f3||0x1==_0x5a08f3)&&0x2==_0x2c7b17&&_0x4738a5[_0x3f6a('0x3')](_0x57eada))return!0x0;if(0x2==_0x5a08f3&&0x3==_0x2c7b17){const _0x40385d=_0x4e8733[_0x3f6a('0x21')](_0x4738a5,'insertion')[_0x3f6a('0x78')](({suggestion:_0x247c3b,meta:_0x5c1f9})=>_0x5c1f9[_0x3f6a('0x2c')]&&_0x3f6a('0xe')==_0x247c3b[_0x3f6a('0x54')]);if(_0x40385d[_0x3f6a('0xc')]>0x1&&_0x57eada[_0x3f6a('0x33')]['isEqual'](_0x4738a5[_0x3f6a('0x11')]))return!0x0;if(0x1==_0x40385d['length']&&(_0x4738a5[_0x3f6a('0x11')][_0x3f6a('0x59')](_0x57eada[_0x3f6a('0x33')])||_0x4738a5['end'][_0x3f6a('0x59')](_0x57eada[_0x3f6a('0x11')])))return!0x0;}if(0x3==_0x5a08f3&&0x3==_0x2c7b17&&_0x4738a5['start'][_0x3f6a('0x5a')](_0x57eada['start'])){const _0x4ea504=_0x4738a5[_0x3f6a('0x33')][_0x3f6a('0x72')],_0x4e0ab8=_0x57eada[_0x3f6a('0x11')]['nodeBefore'];return _0x5f4504[_0x3f6a('0x23')](_0x4ea504)&&_0x4ea504===_0x4e0ab8;}return!0x1;}function _0x2929cb(_0x2e049c,_0x5b6a13){return _0x760b28(_0x2e049c,_0x5b6a13)?[_0x2e049c,_0x5b6a13]:_0x760b28(_0x5b6a13,_0x2e049c)?[_0x5b6a13,_0x2e049c]:null;}_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x66')][_0x3f6a('0x68')](()=>{let _0x2caa1e=!0x1;const _0x5d80e9=Array[_0x3f6a('0x46')](_0x158e5a['model'][_0x3f6a('0x66')]['differ']['getChangedMarkers']());for(const {name:_0x18bc19,data:_0xe9767}of _0x5d80e9){const {group:_0x24a78f,type:_0x34996b,subType:_0xcb1962,id:_0x25fe5d}=_0x4e8733['_splitMarkerName'](_0x18bc19);if(_0x3f6a('0x57')==_0x24a78f&&_0x4e8733[_0x3f6a('0x42')](_0x25fe5d)){if(_0x3f6a('0x76')==_0x34996b&&(_0x3f6a('0x14')==_0xcb1962||_0x3f6a('0x77')==_0xcb1962)){const _0x58af45=_0x4e8733[_0x3f6a('0x22')](_0x25fe5d);if(_0xe9767[_0x3f6a('0x6a')]){const _0x59a196=_0x58af45[_0x3f6a('0x2d')]()[_0x3f6a('0x64')]();if(_0x5f4504[_0x3f6a('0x23')](_0x59a196))continue;_0x4e8733[_0x3f6a('0x9')](_0x58af45),_0x2caa1e=!0x0;}}if(_0x3f6a('0x32')==_0x34996b&&_0x3f6a('0x1f')==_0xcb1962&&!_0xe9767[_0x3f6a('0x6a')]){const _0x512101=_0x4e8733[_0x3f6a('0x22')](_0x25fe5d);_0x512101[_0x3f6a('0x6e')]&&_0x512101['next']['isInContent']&&(_0x4e8733[_0x3f6a('0x9')](_0x512101[_0x3f6a('0x6e')]),_0x2caa1e=!0x0);}}}return _0x2caa1e;}),_0x158e5a[_0x3f6a('0x1d')]['has'](_0x3f6a('0x1b'))&&_0x4e8733[_0x3f6a('0xf')](_0x3f6a('0x73'),(_0x1ca2af,_0x152edc)=>{const _0x5b60e1=_0x5f4504['getClosestSelectedImageElement'](_0x158e5a['model'][_0x3f6a('0x66')][_0x3f6a('0x4e')]);_0x5b60e1['getAttribute'](_0x3f6a('0x62'))!=_0x152edc[_0x3f6a('0x49')]&&_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x41')](()=>{_0x4e8733[_0x3f6a('0x4b')](_0x5b60e1,{'commandName':_0x3f6a('0x73'),'commandParams':[_0x152edc]});});}),_0x158e5a[_0x3f6a('0x1d')]['has'](_0x3f6a('0x2a'))&&_0x4e8733['enableCommand'](_0x3f6a('0x7'),(_0x23fe7d,_0x4c5ed7)=>{const _0x55305e=_0x5f4504[_0x3f6a('0x58')](_0x158e5a[_0x3f6a('0x27')][_0x3f6a('0x66')][_0x3f6a('0x4e')]);(_0x55305e[_0x3f6a('0x71')](_0x3f6a('0x4c'))?_0x55305e[_0x3f6a('0x56')](_0x3f6a('0x4c')):'')!=_0x4c5ed7[_0x3f6a('0x37')]&&_0x158e5a['model'][_0x3f6a('0x41')](()=>{_0x4e8733[_0x3f6a('0x4b')](_0x55305e,{'commandName':'imageTextAlternative','commandParams':[_0x4c5ed7]});});}),_0x4e8733['_descriptionFactory']['registerDescriptionCallback'](_0x2f0b3b=>{if(!!_0x136a93[_0x3f6a('0x5b')](({type:_0x1dfc04,subType:_0x183851})=>_0x2f0b3b[_0x3f6a('0x6f')]==_0x1dfc04&&_0x2f0b3b[_0x3f6a('0x54')]==_0x183851))return _0x2f0b3b[_0x3f6a('0x44')]?{}:void 0x0;}),_0x4e8733[_0x3f6a('0x69')][_0x3f6a('0x18')](_0x497996=>{if(_0x3f6a('0x32')==_0x497996[_0x3f6a('0x6f')]||_0x3f6a('0x24')==_0x497996['type']){const _0x376ecc=_0x497996[_0x3f6a('0x64')]();if(_0x376ecc&&_0x376ecc['is'](_0x3f6a('0x29'),'caption'))return{'type':'insertion'==_0x497996[_0x3f6a('0x6f')]?_0x3f6a('0x5'):_0x3f6a('0x1c'),'element':_0x376ecc,'quantity':0x1};}}),_0x4e8733[_0x3f6a('0x69')][_0x3f6a('0x18')](_0xd25a52=>_0x3f6a('0x76')==_0xd25a52[_0x3f6a('0x6f')]&&_0x3f6a('0xe')==_0xd25a52['subType']?{'type':_0x3f6a('0x3c'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x3f6a('0x76')==_0xd25a52[_0x3f6a('0x6f')]&&_0x3f6a('0x38')==_0xd25a52[_0x3f6a('0x54')]?{'type':_0x3f6a('0x3c'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4e8733[_0x3f6a('0x69')][_0x3f6a('0x18')](_0x571507=>{const {data:_0x562d2d}=_0x571507;if(_0x562d2d){if(_0x3f6a('0x3e')==_0x562d2d[_0x3f6a('0x36')]){const _0xe65b7e=_0x562d2d[_0x3f6a('0x31')][0x0][_0x3f6a('0x39')];return _0x376f58(_0x3f6a('0x51')===_0xe65b7e?_0x20d278(_0x1be0cd,_0x3f6a('0x74')):_0x26a24f[_0xe65b7e]||_0xe65b7e);}if(_0x3f6a('0x7')==_0x562d2d['commandName']){const _0x4656de=_0x562d2d['commandParams'][0x0][_0x3f6a('0x37')];return _0x4656de?{'type':_0x3f6a('0x3c'),'content':_0x20d278(_0x1be0cd,_0x3f6a('0x6'),'\x22'+_0x4656de+'\x22')}:{'type':'format','content':_0x20d278(_0x1be0cd,_0x3f6a('0x65'))};}if('resizeImage'==_0x562d2d[_0x3f6a('0x36')]){const _0x5bacc5=_0x562d2d['commandParams'][0x0][_0x3f6a('0x49')];return _0x5bacc5?{'type':_0x3f6a('0x3c'),'content':_0x20d278(_0x1be0cd,_0x3f6a('0x15'),_0x5bacc5)}:{'type':_0x3f6a('0x3c'),'content':_0x20d278(_0x1be0cd,_0x3f6a('0x19'))};}}function _0x376f58(_0x50c404){return{'type':'format','content':_0x20d278(_0x1be0cd,_0x3f6a('0x34'),_0x50c404)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a68=['data','document','ImageEditing','model','src','subType','editor','_suggestionFactory','handleSuggestionDescription','format','replaceImageSource','locale','Users','discard','TrackChangesEditing','afterInit','formatBlock','accept','getAttribute','_descriptionFactory','author','get','enableCommand','registerDescriptionCallback','selection','registerCustomCallback','markBlockFormat','commandName','source','getSuggestionCallback','commandParams','handleReplaceImageCommand','getSelectedElement','plugins'];(function(_0x1a73b1,_0x2a6806){const _0x41b0b6=function(_0x5ba909){while(--_0x5ba909){_0x1a73b1['push'](_0x1a73b1['shift']());}};_0x41b0b6(++_0x2a6806);}(_0x2a68,0xd3));const _0x41b0=function(_0x1a73b1,_0x2a6806){_0x1a73b1=_0x1a73b1-0x0;let _0x41b0b6=_0x2a68[_0x1a73b1];return _0x41b0b6;};import{Plugin as _0x11d6a9}from'ckeditor5/src/core';import{getTranslation as _0x2c8b86}from'../utils/common-translations';export default class Z extends _0x11d6a9{[_0x41b0('0x8')](){if(!this[_0x41b0('0x21')]['plugins']['has'](_0x41b0('0x1d')))return;const _0x432e62=this['editor'][_0x41b0('0x1a')]['get'](_0x41b0('0x7'));_0x432e62[_0x41b0('0xf')](_0x41b0('0x3'),(_0x53fa60,_0xefd097)=>this[_0x41b0('0x18')](_0x53fa60,_0xefd097)),_0x432e62['_suggestionFactory']['registerCustomCallback'](_0x41b0('0x9'),_0x41b0('0x3'),'accept',_0x432e62['_suggestionFactory'][_0x41b0('0x16')](_0x41b0('0x9'),null,_0x41b0('0x6'))),_0x432e62['_suggestionFactory'][_0x41b0('0x12')](_0x41b0('0x9'),_0x41b0('0x3'),_0x41b0('0x6'),_0x432e62[_0x41b0('0x0')][_0x41b0('0x16')](_0x41b0('0x9'),null,_0x41b0('0xa'))),_0x432e62[_0x41b0('0xc')][_0x41b0('0x10')](_0x668364=>this['handleSuggestionDescription'](_0x668364));}[_0x41b0('0x18')](_0x343be2,_0xe96671){const _0x15beaa=this[_0x41b0('0x21')][_0x41b0('0x1a')][_0x41b0('0xe')](_0x41b0('0x7')),_0x34609b=this[_0x41b0('0x21')][_0x41b0('0x1e')][_0x41b0('0x1c')][_0x41b0('0x11')][_0x41b0('0x19')]();this[_0x41b0('0x21')][_0x41b0('0x1e')]['change'](()=>{let _0x32225c=_0x34609b[_0x41b0('0xb')](_0x41b0('0x1f'));const _0x1efe1b=this[_0x41b0('0x21')][_0x41b0('0x1a')][_0x41b0('0xe')](_0x41b0('0x5'))['me'];for(const _0x4e9810 of _0x15beaa['getSuggestions']({'skipNotAttached':!0x0})){const _0x1c4cbc=_0x4e9810['getContainedElement']();if(_0x41b0('0x3')===_0x4e9810[_0x41b0('0x20')]&&_0x1c4cbc===_0x34609b){_0x4e9810[_0x41b0('0xd')]!==_0x1efe1b&&_0x4e9810[_0x41b0('0x6')](),_0x32225c=_0x4e9810[_0x41b0('0x1b')][_0x41b0('0x17')][0x0][_0x41b0('0x15')];break;}}_0x343be2(_0xe96671),_0x15beaa[_0x41b0('0x13')](_0x34609b,{'commandName':_0x41b0('0x3'),'commandParams':[{'source':_0x32225c}]},[],_0x41b0('0x3'));});}[_0x41b0('0x1')](_0x404f20){const {data:_0x43b056}=_0x404f20;if(_0x43b056&&'replaceImageSource'===_0x43b056[_0x41b0('0x14')]){const _0x3cb6a1='*Format:*\x20replace\x20image\x20URL';return{'type':_0x41b0('0x2'),'content':_0x2c8b86(this['editor'][_0x41b0('0x4')],_0x3cb6a1)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124b=['execute','lowest','afterInit','forEach','trackChanges','value','enableCommand','_trackChangesValueDuringImport','_handleImportedData','listenTo','high','track_changes','dataInsert','bind','editor','importWord','Users','get','_trackChangesExecuted','plugins','commands'];(function(_0x492b81,_0x124be9){const _0x4cd85a=function(_0x52d559){while(--_0x52d559){_0x492b81['push'](_0x492b81['shift']());}};_0x4cd85a(++_0x124be9);}(_0x124b,0x197));const _0x4cd8=function(_0x492b81,_0x124be9){_0x492b81=_0x492b81-0x0;let _0x4cd85a=_0x124b[_0x492b81];return _0x4cd85a;};import{Plugin as _0x47bea8}from'ckeditor5/src/core';export default class tt extends _0x47bea8{constructor(_0x4d3975){super(_0x4d3975),this[_0x4cd8('0x14')]=!0x1,this[_0x4cd8('0xa')]=!0x1;}[_0x4cd8('0xf')](){const _0xfa7d38=this[_0x4cd8('0x6')],_0x5309e4=_0xfa7d38[_0x4cd8('0xc')][_0x4cd8('0x9')](_0x4cd8('0x7')),_0x15118b=_0xfa7d38[_0x4cd8('0xc')][_0x4cd8('0x9')](_0x4cd8('0x11'));_0x5309e4&&(_0x5309e4['on'](_0x4cd8('0xd'),(_0x517093,[,_0x4f2c4d])=>{this['_trackChangesValueDuringImport']=_0x15118b[_0x4cd8('0x12')],_0x4f2c4d['collaboration_features'][_0x4cd8('0x3')]=!this[_0x4cd8('0x14')];},{'priority':_0x4cd8('0x2')}),this[_0x4cd8('0x1')](_0x5309e4,_0x4cd8('0x4'),this[_0x4cd8('0x0')][_0x4cd8('0x5')](this)),this[_0x4cd8('0x1')](_0x5309e4,_0x4cd8('0x4'),()=>{this[_0x4cd8('0xa')]&&(_0x15118b[_0x4cd8('0xd')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x4cd8('0xe')}),_0xfa7d38[_0x4cd8('0xb')][_0x4cd8('0x9')]('TrackChangesEditing')[_0x4cd8('0x13')](_0x4cd8('0x7')));}['_handleImportedData'](_0x2eaa73,_0x3ae215){const {suggestions:_0x48898a}=_0x3ae215,_0x42f92a=this[_0x4cd8('0x6')][_0x4cd8('0xc')][_0x4cd8('0x9')](_0x4cd8('0x11')),_0xfc531f=_0x42f92a[_0x4cd8('0x12')];this[_0x4cd8('0x14')]!==_0xfc531f&&(_0x42f92a[_0x4cd8('0xd')](),this[_0x4cd8('0xa')]=!0x0),_0x48898a&&_0x48898a[_0x4cd8('0x10')](({id:_0x104946,type:_0x8af611,author:_0xba6681,created_at:_0x442ab5})=>{const _0x50a7a8={'id':_0x104946,'type':_0x8af611,'authorId':this[_0x4cd8('0x6')][_0x4cd8('0xb')]['get'](_0x4cd8('0x8'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xba6681,'createdAt':_0x442ab5?new Date(_0x442ab5):new Date(),'source':_0x4cd8('0x7')}}};this[_0x4cd8('0x6')]['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x50a7a8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f70=['IndentBlock','plugins','afterInit','outdentBlock','indent','checkAttribute','change','from','has','getItemLabel','format','*Outdent:*\x20%0','outdent','document','_descriptionFactory','locale','schema','enableCommand','getItems','getSelectedBlocks','filter','TrackChangesEditing','markBlockFormat','indentBlock','editor','model'];(function(_0x12d01b,_0x5f7098){const _0x262cde=function(_0x5a2547){while(--_0x5a2547){_0x12d01b['push'](_0x12d01b['shift']());}};_0x262cde(++_0x5f7098);}(_0x5f70,0xb3));const _0x262c=function(_0x12d01b,_0x5f7098){_0x12d01b=_0x12d01b-0x0;let _0x262cde=_0x5f70[_0x12d01b];return _0x262cde;};import{Plugin as _0x5bf1a2}from'ckeditor5/src/core';import{getTranslation as _0x35bee8}from'../utils/common-translations';export default class it extends _0x5bf1a2{[_0x262c('0x5')](){const _0x53b0dc=this[_0x262c('0x1')],_0x1df10f=_0x53b0dc['plugins']['get'](_0x262c('0x18'));_0x53b0dc['plugins']['has']('IndentEditing')&&(_0x1df10f[_0x262c('0x14')](_0x262c('0x7')),_0x1df10f[_0x262c('0x14')](_0x262c('0xf')));const _0x58fc07=_0x53b0dc[_0x262c('0x12')];if(_0x53b0dc[_0x262c('0x4')][_0x262c('0xb')](_0x262c('0x3'))){for(const _0x329b5b of['indentBlock',_0x262c('0x6')])_0x1df10f[_0x262c('0x14')](_0x329b5b,()=>{const _0x3262e9=Array[_0x262c('0xa')](this[_0x262c('0x1')][_0x262c('0x2')][_0x262c('0x10')]['selection'][_0x262c('0x16')]())[_0x262c('0x17')](_0x3bd3e4=>this[_0x262c('0x1')][_0x262c('0x2')][_0x262c('0x13')][_0x262c('0x8')](_0x3bd3e4,'blockIndent'));_0x53b0dc[_0x262c('0x2')][_0x262c('0x9')](()=>{for(const _0x559b79 of _0x3262e9)_0x1df10f[_0x262c('0x19')](_0x559b79,{'commandName':_0x329b5b,'commandParams':[{'value':''}],'formatGroupId':_0x262c('0x0')});});});_0x1df10f[_0x262c('0x11')]['registerDescriptionCallback'](_0x583165=>{const {data:_0x42d9f4}=_0x583165;if(!_0x42d9f4)return;if(_0x262c('0x0')!=_0x42d9f4['commandName']&&_0x262c('0x6')!=_0x42d9f4['commandName'])return;const _0x2893e3=_0x583165[_0x262c('0x15')]()[0x0],_0x20ac09=_0x1df10f[_0x262c('0x11')][_0x262c('0xc')](_0x2893e3);return'indentBlock'==_0x42d9f4['commandName']?{'type':_0x262c('0xd'),'content':_0x35bee8(_0x58fc07,'*Indent:*\x20%0',_0x20ac09)}:_0x262c('0x6')==_0x42d9f4['commandName']?{'type':_0x262c('0xd'),'content':_0x35bee8(_0x58fc07,_0x262c('0xe'),_0x20ac09)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x55cb=['requires','enableCommand','plugins','init','editor','TrackChangesEditing'];(function(_0x13f8e1,_0x55cb20){var _0x45acc7=function(_0x2533db){while(--_0x2533db){_0x13f8e1['push'](_0x13f8e1['shift']());}};_0x45acc7(++_0x55cb20);}(_0x55cb,0xb7));var _0x45ac=function(_0x13f8e1,_0x55cb20){_0x13f8e1=_0x13f8e1-0x0;var _0x45acc7=_0x55cb[_0x13f8e1];return _0x45acc7;};import{Plugin as _0x1b569c}from'ckeditor5/src/core';import{Input as _0x3e9f8f}from'ckeditor5/src/typing';export default class et extends _0x1b569c{static get[_0x45ac('0x3')](){return[_0x3e9f8f];}[_0x45ac('0x0')](){this[_0x45ac('0x1')][_0x45ac('0x5')]['get'](_0x45ac('0x2'))[_0x45ac('0x4')]('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e78=['getFirstRange','link','markInlineFormat','registerDescriptionCallback','*Set\x20link:*\x20%0','getRanges','TrackChangesEditing','getAttribute','getFirstPosition','linkHref','isCollapsed','plugins','model','_descriptionFactory','from','format','hasAttribute','afterInit','*Remove\x20link*','change','locale','unlink','commandName','enableCommand','document','editor','selection','commandParams'];(function(_0x328440,_0x3e780b){const _0x7ee942=function(_0x5ad574){while(--_0x5ad574){_0x328440['push'](_0x328440['shift']());}};_0x7ee942(++_0x3e780b);}(_0x3e78,0x138));const _0x7ee9=function(_0x328440,_0x3e780b){_0x328440=_0x328440-0x0;let _0x7ee942=_0x3e78[_0x328440];return _0x7ee942;};import{Plugin as _0x7569d7}from'ckeditor5/src/core';import{findAttributeRange as _0x573b8b}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x218f13}from'./utils';import{getTranslation as _0x312bf6}from'../utils/common-translations';export default class nt extends _0x7569d7{[_0x7ee9('0xd')](){const _0x4b28c2=this['editor'];if(!_0x4b28c2[_0x7ee9('0x7')]['has']('LinkEditing'))return;const _0x591a89=_0x4b28c2[_0x7ee9('0x7')]['get'](_0x7ee9('0x2'));_0x591a89[_0x7ee9('0x13')]('link',(_0x475920,_0x2ba5c1)=>{const _0x2e1651=_0x4b28c2[_0x7ee9('0x8')][_0x7ee9('0x14')][_0x7ee9('0x16')];let _0x1de907=[];if(_0x2e1651[_0x7ee9('0x6')]){if(!_0x2e1651[_0x7ee9('0xc')](_0x7ee9('0x5')))return void _0x475920(_0x2ba5c1);{const _0x2813fe=_0x573b8b(_0x2e1651['getFirstPosition'](),_0x7ee9('0x5'),_0x2e1651[_0x7ee9('0x3')](_0x7ee9('0x5')),_0x4b28c2[_0x7ee9('0x8')]);_0x1de907=[_0x2813fe];}}else _0x1de907=Array[_0x7ee9('0xa')](_0x2e1651[_0x7ee9('0x1')]());_0x4b28c2['model'][_0x7ee9('0xf')](()=>{for(const _0x5b4595 of _0x1de907)_0x591a89['markInlineFormat'](_0x5b4595,{'commandName':'link','commandParams':[_0x2ba5c1]});});}),_0x591a89[_0x7ee9('0x13')]('unlink',()=>{const _0x25a7ca=this[_0x7ee9('0x15')][_0x7ee9('0x8')],_0x34f677=_0x25a7ca[_0x7ee9('0x14')][_0x7ee9('0x16')];_0x25a7ca[_0x7ee9('0xf')](()=>{let _0x5bc244=[];if(_0x34f677[_0x7ee9('0x6')])_0x5bc244=[_0x573b8b(_0x34f677[_0x7ee9('0x4')](),_0x7ee9('0x5'),_0x34f677[_0x7ee9('0x3')]('linkHref'),_0x4b28c2[_0x7ee9('0x8')])];else _0x5bc244=_0x218f13(_0x7ee9('0x5'),_0x34f677[_0x7ee9('0x18')](),_0x4b28c2[_0x7ee9('0x8')]);for(const _0xb26f72 of _0x5bc244)_0x591a89[_0x7ee9('0x1a')](_0xb26f72,{'commandName':_0x7ee9('0x11'),'commandParams':[]});});}),_0x591a89[_0x7ee9('0x9')][_0x7ee9('0x1b')](_0x4f7cd2=>{const {data:_0x2bbb66}=_0x4f7cd2,_0x2b0c81=_0x4b28c2[_0x7ee9('0x10')];if(_0x2bbb66){if(_0x7ee9('0x19')==_0x2bbb66[_0x7ee9('0x12')]){const _0x3a5dc6=_0x2bbb66[_0x7ee9('0x17')][0x0];return{'type':_0x7ee9('0xb'),'content':_0x312bf6(_0x2b0c81,_0x7ee9('0x0'),'\x22'+_0x3a5dc6+'\x22')};}return'unlink'==_0x2bbb66[_0x7ee9('0x12')]?{'type':'format','content':_0x312bf6(_0x2b0c81,_0x7ee9('0xe'))}:void 0x0;}});}}
|
package/src/integrations/list.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40bf=['add','ELEMENT_NUMBERED_LIST','afterInit','previousSibling','locale','getAttribute','*Check\x20item*','TrackChangesEditing','format','todo','plugins','_descriptionFactory','ELEMENT_LIST_ITEM','registerDescriptionCallback','parent','paragraph','enableCommand','bulleted','commandParams','model','commands','from','todoListChecked','listType','List','nextSibling','*Indent:*\x20%0','findIndex','indentList','checkChild','change','slice','replace','bulletedList','checkTodoList','end','get','*Change\x20to:*\x20%0','forceValue','value','filter','commandName','listItem','_selectedElements','numberedList','createPositionAt','getSelectedBlocks','element','editor','registerElementLabel','numbered','ELEMENT_TODO_LIST','push','todoList','document','length','listIndent','execute','markBlockFormat','has','schema','*Uncheck\x20item*','TodoListEditing','name','before','outdentList'];(function(_0xe09f74,_0x40bfca){const _0x859fd7=function(_0x41cb51){while(--_0x41cb51){_0xe09f74['push'](_0xe09f74['shift']());}};_0x859fd7(++_0x40bfca);}(_0x40bf,0x9e));const _0x859f=function(_0xe09f74,_0x40bfca){_0xe09f74=_0xe09f74-0x0;let _0x859fd7=_0x40bf[_0xe09f74];return _0x859fd7;};import{Plugin as _0x45b2cd}from'ckeditor5/src/core';import{getTranslation as _0x1a5331}from'../utils/common-translations';export default class st extends _0x45b2cd{[_0x859f('0x2a')](){const _0x378984=this[_0x859f('0x16')],_0xc84d94=_0x378984[_0x859f('0x2c')];if(!_0x378984[_0x859f('0x32')][_0x859f('0x21')]('ListEditing'))return;const _0x5790a1=_0x378984[_0x859f('0x32')][_0x859f('0xa')](_0x859f('0x2f')),_0x55ee30=_0x378984[_0x859f('0x32')][_0x859f('0x21')](_0x859f('0x24'));function _0x56ab39(_0x48e4d9){return()=>{const _0xb3ba43=_0x378984[_0x859f('0x3b')]['document']['selection'],_0x48a920=_0x378984[_0x859f('0x3c')]['get'](_0x48e4d9);if(_0x48a920[_0x859f('0xd')])return void _0x378984[_0x859f('0x1f')](_0x859f('0x37'),{});const _0x56b164=_0x48e4d9[_0x859f('0x5')](0x0,-0x4),_0x1c5d42=function(_0x649369,_0x130f79,_0x33f6d8){let _0x18d829=Array[_0x859f('0x3d')](_0x649369)[_0x859f('0xe')](_0x59b592=>function(_0x5789c5,_0x283405){return _0x283405[_0x859f('0x3')](_0x5789c5[_0x859f('0x36')],_0x859f('0x10'))&&!_0x283405['isObject'](_0x5789c5);}(_0x59b592,_0x33f6d8));_0x18d829=_0x18d829['filter'](_0x227555=>!_0x227555['is'](_0x859f('0x15'),_0x859f('0x10'))||_0x227555['getAttribute'](_0x859f('0x3f'))!=_0x130f79);const _0x48aaed=new Set();for(const _0x1fd9a5 of _0x18d829)_0x1fd9a5['is'](_0x859f('0x15'),_0x859f('0x10'))?_0x48aaed[_0x859f('0x28')](ne(_0x1fd9a5)):_0x48aaed['add'](_0x1fd9a5);return Array['from'](_0x48aaed);}(_0xb3ba43[_0x859f('0x14')](),_0x56b164,_0x378984['model'][_0x859f('0x22')]);_0x378984['model'][_0x859f('0x4')](()=>{for(const _0x3419f3 of _0x1c5d42)_0x5790a1[_0x859f('0x20')](_0x3419f3,{'commandName':_0x48e4d9,'commandParams':[{'forceValue':!_0x48a920['value']}],'formatGroupId':'blockName'},oe(_0x3419f3));});};}function _0x2b4f73(_0x114002){return()=>{const _0xccc8b1=function(_0x571b7f){let _0x1dd164=Array[_0x859f('0x3d')](_0x571b7f);const _0x398140=_0x1dd164[_0x859f('0x1')](_0x37b80d=>_0x859f('0x10')!=_0x37b80d['name']);return _0x398140>-0x1&&(_0x1dd164=_0x1dd164['slice'](0x0,_0x398140)),_0x1dd164;}(_0x378984[_0x859f('0x3b')][_0x859f('0x1c')]['selection'][_0x859f('0x14')]()),_0x3ce8eb=_0x378984[_0x859f('0x3b')]['createRange'](_0x378984[_0x859f('0x3b')][_0x859f('0x13')](_0xccc8b1[0x0],_0x859f('0x26')),_0x378984['model'][_0x859f('0x13')](_0xccc8b1[_0xccc8b1[_0x859f('0x1d')]-0x1],_0x859f('0x9')));_0x378984[_0x859f('0x3b')][_0x859f('0x4')](()=>{_0x5790a1[_0x859f('0x20')](_0x3ce8eb,{'commandName':_0x114002,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ef9e5){const _0x256bc5=new Set();for(const _0x4c1ad2 of _0x1ef9e5){let _0x5bc18b=_0x4c1ad2['nextSibling'];for(;_0x5bc18b&&_0x5bc18b[_0x859f('0x2d')](_0x859f('0x1e'))>_0x4c1ad2[_0x859f('0x2d')](_0x859f('0x1e'));)_0x256bc5[_0x859f('0x28')](_0x5bc18b),_0x5bc18b=_0x5bc18b[_0x859f('0x41')];}return Array[_0x859f('0x3d')](_0x256bc5);}(_0xccc8b1));});};}_0x5790a1[_0x859f('0x38')](_0x859f('0x12'),_0x56ab39(_0x859f('0x12'))),_0x5790a1[_0x859f('0x38')](_0x859f('0x7'),_0x56ab39('bulletedList')),_0x55ee30&&_0x5790a1[_0x859f('0x38')](_0x859f('0x1b'),_0x56ab39(_0x859f('0x1b'))),_0x5790a1['enableCommand']('indentList',_0x2b4f73('indentList')),_0x5790a1[_0x859f('0x38')](_0x859f('0x27'),_0x2b4f73(_0x859f('0x27'))),_0x55ee30&&_0x5790a1[_0x859f('0x38')]('checkTodoList',()=>{const _0x58bb3f=_0x378984[_0x859f('0x3c')]['get'](_0x859f('0x8')),_0x595d24=Array[_0x859f('0x3d')](_0x58bb3f[_0x859f('0x11')]);_0x595d24[_0x859f('0xe')](_0x3c0e66=>_0x3c0e66['getAttribute'](_0x859f('0x3e'))!=_0x58bb3f[_0x859f('0xd')]),_0x378984[_0x859f('0x3b')]['change'](()=>{for(const _0x525a78 of _0x595d24)_0x5790a1['markBlockFormat'](_0x525a78,{'commandName':_0x859f('0x8'),'commandParams':[{'forceValue':!_0x58bb3f[_0x859f('0xd')]}]});});}),_0x5790a1[_0x859f('0x33')][_0x859f('0x17')](_0x859f('0x10'),_0x1b50f6=>_0x1a5331(_0xc84d94,_0x859f('0x34'),_0x1b50f6)),_0x5790a1[_0x859f('0x33')][_0x859f('0x35')](_0x46dbf7=>{const {data:_0x15058a}=_0x46dbf7;if(_0x15058a){if(_0x859f('0x12')==_0x15058a[_0x859f('0xf')]||_0x859f('0x7')==_0x15058a[_0x859f('0xf')]||'todoList'==_0x15058a[_0x859f('0xf')])switch(_0x15058a['commandName'][_0x859f('0x6')](_0x859f('0x40'),'')){case _0x859f('0x39'):return _0x5476fa(_0x1a5331(_0xc84d94,'ELEMENT_BULLETED_LIST'));case _0x859f('0x18'):return _0x5476fa(_0x1a5331(_0xc84d94,_0x859f('0x29')));case _0x859f('0x31'):return _0x5476fa(_0x1a5331(_0xc84d94,_0x859f('0x19')));}if(_0x859f('0x2')==_0x15058a[_0x859f('0xf')])return{'type':_0x859f('0x30'),'content':_0x1a5331(_0xc84d94,_0x859f('0x0'),_0x1a5331(_0xc84d94,_0x859f('0x34')))};if(_0x859f('0x27')==_0x15058a[_0x859f('0xf')])return{'type':_0x859f('0x30'),'content':_0x1a5331(_0xc84d94,'*Outdent:*\x20%0',_0x1a5331(_0xc84d94,'ELEMENT_LIST_ITEM'))};if(_0x859f('0x8')==_0x15058a[_0x859f('0xf')])return _0x15058a[_0x859f('0x3a')][0x0][_0x859f('0xc')]?{'type':_0x859f('0x30'),'content':_0x1a5331(_0xc84d94,_0x859f('0x2e'))}:{'type':'format','content':_0x1a5331(_0xc84d94,_0x859f('0x23'))};}function _0x5476fa(_0x36c995){return{'type':_0x859f('0x30'),'content':_0x1a5331(_0xc84d94,_0x859f('0xb'),_0x36c995)};}});}}function ne(_0xbb09a0){const _0x54858d=_0xbb09a0[_0x859f('0x2d')](_0x859f('0x1e'));if(0x0==_0x54858d)return _0xbb09a0;let _0x27e5ca=_0xbb09a0;for(;_0xbb09a0[_0x859f('0x2b')]&&_0xbb09a0[_0x859f('0x2b')]['is'](_0x859f('0x15'),_0x859f('0x10'));){const _0x12711f=_0xbb09a0[_0x859f('0x2b')][_0x859f('0x2d')](_0x859f('0x1e'));if(_0x12711f==_0x54858d)_0x27e5ca=_0xbb09a0[_0x859f('0x2b')];else{if(_0x12711f<_0x54858d)break;}_0xbb09a0=_0xbb09a0[_0x859f('0x2b')];}return _0x27e5ca;}function oe(_0x19c256){const _0xeb4ad7=[];if(_0x19c256['is'](_0x859f('0x15'),_0x859f('0x10'))&&_0x19c256[_0x859f('0x2d')](_0x859f('0x1e'))>0x0){let _0x57422f=_0x19c256['nextSibling'];for(;_0x57422f&&_0x859f('0x10')==_0x57422f[_0x859f('0x25')]&&_0x57422f[_0x859f('0x2d')](_0x859f('0x1e'))==_0x19c256[_0x859f('0x2d')](_0x859f('0x1e'));)_0xeb4ad7[_0x859f('0x1a')](_0x57422f),_0x57422f=_0x57422f[_0x859f('0x41')];}return _0xeb4ad7;}
|