@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231203.0 → 0.0.0-nightly-20231205.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/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21ee=['model','FontSize','*Reset\x20font\x20size*','*Set\x20font\x20color:*\x20%0','plugins','FontFamilyEditing','find','FontSizeEditing','commandParams','registerAttributeLabel','normalizeSizeOptions','*Set\x20font\x20family:*\x20%0','label','value','fontBackgroundColor','*Set\x20font\x20background\x20color:*\x20%0','fontSize.options','*Reset\x20font\x20family*','FORMAT_FONT_BACKGROUND','_enableDefaultAttributesIntegration','*Set\x20font\x20size:*\x20%0','fontSize','locale','get','fontFamily','fontColor.colors','config','_registerLegacyDescription','FORMAT_FONT_COLOR','fontColor','format','TrackChangesEditing','_descriptionFactory','commandName','title','editor','FORMAT_FONT_SIZE','toLowerCase','trim'];(function(_0x5e0ab5,_0x21eed9){const _0x3a4bf0=function(_0x4811e4){while(--_0x4811e4){_0x5e0ab5['push'](_0x5e0ab5['shift']());}};_0x3a4bf0(++_0x21eed9);}(_0x21ee,0x1ef));const _0x3a4b=function(_0x5e0ab5,_0x21eed9){_0x5e0ab5=_0x5e0ab5-0x0;let _0x3a4bf0=_0x21ee[_0x5e0ab5];return _0x3a4bf0;};import{Plugin as _0x1c95dc}from'ckeditor5/src/core';import{normalizeColorOptions as _0x12e9dd}from'ckeditor5/src/ui';import{getTranslation as _0x390dff}from'../utils/common-translations';const ro=[{'pluginName':_0x3a4b('0x13'),'commandName':_0x3a4b('0x21')},{'pluginName':_0x3a4b('0x11'),'commandName':_0x3a4b('0x24')},{'pluginName':'FontColorEditing','commandName':_0x3a4b('0x2')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x3a4b('0x1a')}];export default class K extends _0x1c95dc{['afterInit'](){const _0x28022b=this['editor'][_0x3a4b('0x22')],_0x1bc961=this['editor'][_0x3a4b('0x10')][_0x3a4b('0x23')](_0x3a4b('0x4'));for(const {pluginName:_0x433166,commandName:_0x3a893a}of ro)this[_0x3a4b('0x8')][_0x3a4b('0x10')]['has'](_0x433166)&&_0x1bc961[_0x3a4b('0x1f')](_0x3a893a,[_0x3a893a]);_0x28022b['t'],(_0x1bc961[_0x3a4b('0x5')][_0x3a4b('0x15')]('fontSize',_0x390dff(_0x28022b,_0x3a4b('0x9'))),_0x1bc961[_0x3a4b('0x5')][_0x3a4b('0x15')](_0x3a4b('0x24'),_0x390dff(_0x28022b,'FORMAT_FONT_FAMILY')),_0x1bc961['_descriptionFactory']['registerAttributeLabel'](_0x3a4b('0x2'),_0x390dff(_0x28022b,_0x3a4b('0x1'))),_0x1bc961['_descriptionFactory'][_0x3a4b('0x15')](_0x3a4b('0x1a'),_0x390dff(_0x28022b,_0x3a4b('0x1e'))),this[_0x3a4b('0x0')]());}[_0x3a4b('0x0')](){const _0x2da691=this['editor'],_0x26f7c7=_0x2da691[_0x3a4b('0x22')];_0x2da691[_0x3a4b('0x10')][_0x3a4b('0x23')]('TrackChangesEditing')[_0x3a4b('0x5')]['registerDescriptionCallback'](_0x71db4e=>{const _0x57d0f9=_0x26f7c7['t'];if('formatInline'!=_0x71db4e['type'])return;const {data:_0x41923e}=_0x71db4e;if(null!=_0x41923e){if(_0x3a4b('0x21')==_0x41923e['commandName']){const _0x5c95ab=_0x41923e[_0x3a4b('0x14')][0x0][_0x3a4b('0x19')];if(_0x5c95ab){const _0x50bc51=_0x57d0f9(this[_0x3a4b('0x8')][_0x3a4b('0x10')][_0x3a4b('0x23')](_0x3a4b('0xd'))[_0x3a4b('0x16')](this[_0x3a4b('0x8')][_0x3a4b('0x26')][_0x3a4b('0x23')](_0x3a4b('0x1c')))[_0x3a4b('0x12')](_0x5c7d40=>_0x5c7d40[_0x3a4b('0xc')]==_0x5c95ab)[_0x3a4b('0x7')])['toLowerCase']();return{'type':'format','content':_0x390dff(_0x26f7c7,_0x3a4b('0x20'),_0x50bc51)};}return{'type':_0x3a4b('0x3'),'content':_0x390dff(_0x26f7c7,_0x3a4b('0xe'))};}if('fontFamily'==_0x41923e[_0x3a4b('0x6')]){const _0x4b327c=_0x41923e[_0x3a4b('0x14')][0x0][_0x3a4b('0x19')];return _0x4b327c?{'type':_0x3a4b('0x3'),'content':_0x390dff(_0x26f7c7,_0x3a4b('0x17'),_0x4b327c)}:{'type':_0x3a4b('0x3'),'content':_0x390dff(_0x26f7c7,_0x3a4b('0x1d'))};}if(_0x3a4b('0x2')==_0x41923e['commandName']){const _0x370749=_0x41923e[_0x3a4b('0x14')][0x0][_0x3a4b('0x19')];if(_0x370749){const _0x4187c7=_0x12e9dd(this[_0x3a4b('0x8')]['config'][_0x3a4b('0x23')](_0x3a4b('0x25')))[_0x3a4b('0x12')](_0x53716b=>_0x53716b[_0x3a4b('0xc')]==_0x370749);let _0x31320d=_0x370749,_0x16543a='';return _0x4187c7&&(_0x31320d=_0x4187c7[_0x3a4b('0x18')],_0x16543a=_0x57d0f9(_0x31320d)['toLowerCase']()),{'type':'format','content':_0x390dff(_0x26f7c7,_0x3a4b('0xf'),_0x16543a)[_0x3a4b('0xb')](),'color':{'value':_0x370749,'title':_0x16543a||_0x31320d}};}return{'type':_0x3a4b('0x3'),'content':_0x390dff(_0x26f7c7,'*Reset\x20font\x20color*')};}if(_0x3a4b('0x1a')==_0x41923e[_0x3a4b('0x6')]){const _0x27bb94=_0x41923e[_0x3a4b('0x14')][0x0][_0x3a4b('0x19')];if(_0x27bb94){const _0x2523be=_0x12e9dd(this[_0x3a4b('0x8')][_0x3a4b('0x26')][_0x3a4b('0x23')]('fontBackgroundColor.colors'))[_0x3a4b('0x12')](_0x313cd0=>_0x313cd0[_0x3a4b('0xc')]==_0x27bb94);let _0x4e7bda=_0x27bb94,_0x55d5e2='';return _0x2523be&&(_0x4e7bda=_0x2523be['label'],_0x55d5e2=_0x57d0f9(_0x4e7bda)[_0x3a4b('0xa')]()),{'type':'format','content':_0x390dff(_0x26f7c7,_0x3a4b('0x1b'),_0x55d5e2)['trim'](),'color':{'value':_0x27bb94,'title':_0x55d5e2||_0x4e7bda}};}return{'type':'format','content':_0x390dff(_0x26f7c7,'*Reset\x20font\x20background\x20color*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d35=['TrackChangesEditing','charAt','title','FontSize','join','model','_descriptionFactory','get','*Set\x20format\x20to:*\x20%0','format','config','_registerLegacyDescription','split','type','plugins','copyFormat','formatBlock','afterInit','locale','_enableDefaultAttributesIntegration','label','boolean','toUpperCase','find','fontBackgroundColor','commandParams','pasteFormat','normalizeSizeOptions','commandName','fontColor.colors','editor','enableCommand','fontSize.options','toLowerCase','commands'];(function(_0x24e585,_0x1d3527){const _0x558871=function(_0x756899){while(--_0x756899){_0x24e585['push'](_0x24e585['shift']());}};_0x558871(++_0x1d3527);}(_0x1d35,0xff));const _0x5588=function(_0x24e585,_0x1d3527){_0x24e585=_0x24e585-0x0;let _0x558871=_0x1d35[_0x24e585];return _0x558871;};import{Plugin as _0x7a269b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x2540a7}from'ckeditor5/src/ui';import{getTranslation as _0x41a8c6}from'../utils/common-translations';export default class Q extends _0x7a269b{[_0x5588('0x7')](){const _0x342a9b=this[_0x5588('0x14')],_0x20a725=_0x342a9b[_0x5588('0x4')]['get'](_0x5588('0x19')),_0x3b512d=_0x342a9b[_0x5588('0x18')]['get'](_0x5588('0x5')),_0x1a84ca=_0x342a9b[_0x5588('0x18')][_0x5588('0x20')](_0x5588('0x10'));_0x3b512d&&_0x1a84ca&&(_0x20a725[_0x5588('0x9')](_0x5588('0x10')),_0x20a725[_0x5588('0x15')](_0x5588('0x5')),this[_0x5588('0x1')]());}[_0x5588('0x1')](){const _0x11b6e9=this[_0x5588('0x14')],_0x43b907=_0x11b6e9[_0x5588('0x8')];_0x11b6e9['plugins']['get'](_0x5588('0x19'))[_0x5588('0x1f')]['registerDescriptionCallback'](_0x2d36a2=>{if(_0x5588('0x6')!=_0x2d36a2[_0x5588('0x3')]&&'formatInline'!=_0x2d36a2['type'])return;const {data:_0x421278}=_0x2d36a2;if(_0x421278&&_0x5588('0x10')===_0x421278[_0x5588('0x12')]){const _0x1409a1=[],_0x6032b=_0x421278[_0x5588('0xf')][0x0];for(const [_0x34fc86,_0x4b8235]of Object['entries'](_0x6032b))_0x1409a1['push'](ao(_0x11b6e9,_0x34fc86,_0x4b8235));return _0x1409a1['length']?{'type':_0x5588('0x22'),'content':_0x41a8c6(_0x43b907,_0x5588('0x21'),_0x1409a1['join'](',\x20'))}:{'type':_0x5588('0x22'),'content':_0x41a8c6(_0x43b907,'*Remove\x20all\x20formatting*')};}});}}function ao(_0x4f0b8b,_0x569cb6,_0x51e26e){const _0x58f3b4=_0x4f0b8b[_0x5588('0x8')]['t'],_0x5c2a10=_0x569cb6[_0x5588('0x2')](/(?=[A-Z])/)[_0x5588('0x1d')]('\x20'),_0x307aff=_0x58f3b4(_0x5c2a10[_0x5588('0x1a')](0x0)[_0x5588('0xc')]()+_0x5c2a10['slice'](0x1))[_0x5588('0x17')]();if(_0x5588('0xb')==typeof _0x51e26e)return _0x307aff;if('fontColor'===_0x569cb6||_0x5588('0xe')===_0x569cb6){const _0x2602f2=_0x2540a7(_0x4f0b8b[_0x5588('0x0')]['get'](_0x5588('0x13')))[_0x5588('0xd')](_0x491b86=>_0x491b86[_0x5588('0x1e')]==_0x51e26e);return _0x307aff+'\x20('+(_0x2602f2?_0x58f3b4(_0x2602f2[_0x5588('0xa')])[_0x5588('0x17')]():_0x51e26e)+')';}if('fontSize'===_0x569cb6&&isNaN(parseFloat(_0x51e26e))){const _0x58c06d=_0x4f0b8b[_0x5588('0x4')][_0x5588('0x20')](_0x5588('0x1c'))[_0x5588('0x11')](_0x4f0b8b[_0x5588('0x0')][_0x5588('0x20')](_0x5588('0x16')))[_0x5588('0xd')](_0x3524fd=>_0x3524fd['model']==_0x51e26e);return _0x307aff+'\x20('+(_0x58c06d?_0x58f3b4(_0x58c06d[_0x5588('0x1b')])[_0x5588('0x17')]():_0x51e26e)+')';}return _0x307aff+'\x20('+_0x51e26e+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc940=['model','match','get','heading.options','editor','_registerLegacyDescription','locale','registerElementLabel','_enableDefaultAttributesIntegration','_descriptionFactory','format','paragraph','view','_getHeadingLevel','title','ELEMENT_HEADING','TrackChangesEditing','ELEMENT_HEADING_CUSTOM','plugins','heading','value','_headingOptions','commandName','afterInit','name','find','commandParams','has','*Change\x20to:*\x20%0','formatBlock','registerDescriptionCallback','config'];(function(_0x4c2525,_0xc940c2){const _0x3966b7=function(_0x3a6609){while(--_0x3a6609){_0x4c2525['push'](_0x4c2525['shift']());}};_0x3966b7(++_0xc940c2);}(_0xc940,0x1a4));const _0x3966=function(_0x4c2525,_0xc940c2){_0x4c2525=_0x4c2525-0x0;let _0x3966b7=_0xc940[_0x4c2525];return _0x3966b7;};import{Plugin as _0xe09894}from'ckeditor5/src/core';import{getTranslation as _0x51a995}from'../utils/common-translations';export default class X extends _0xe09894{[_0x3966('0x13')](){const _0x2cc3ea=this['editor'];if(!_0x2cc3ea['plugins'][_0x3966('0x17')]('HeadingEditing'))return;this[_0x3966('0x11')]=_0x2cc3ea[_0x3966('0x1b')][_0x3966('0x1e')](_0x3966('0x1f'));const _0x583ff0=_0x2cc3ea[_0x3966('0x2')],_0x5d736a=_0x2cc3ea[_0x3966('0xe')][_0x3966('0x1e')](_0x3966('0xc'));_0x5d736a[_0x3966('0x4')](_0x3966('0xf'));for(const _0x3100e1 of this['_headingOptions'])_0x3966('0x7')!=_0x3100e1[_0x3966('0x1c')]&&_0x5d736a[_0x3966('0x5')][_0x3966('0x3')](_0x3100e1['model'],_0x3d763e=>{const _0x27e8bd=this[_0x3966('0x9')](_0x3100e1[_0x3966('0x1c')]);return null!==_0x27e8bd?_0x2c4ddd(_0x3d763e,_0x27e8bd):_0x343843(_0x3d763e,_0x3100e1[_0x3966('0xa')]);});function _0x2c4ddd(_0x553dfa,_0x2d5e58){return _0x51a995(_0x583ff0,_0x3966('0xb'),[_0x553dfa,_0x2d5e58]);}function _0x343843(_0x25815f,_0x1437f3){return _0x51a995(_0x583ff0,_0x3966('0xd'),[_0x25815f,_0x1437f3]);}this['_registerLegacyDescription']();}[_0x3966('0x1')](){const _0x546883=this[_0x3966('0x0')],_0x27f974=_0x546883[_0x3966('0x2')];function _0x38c5da(_0x37193b,_0x5c4776){return _0x51a995(_0x27f974,_0x3966('0xd'),[_0x37193b,_0x5c4776]);}_0x546883[_0x3966('0xe')][_0x3966('0x1e')](_0x3966('0xc'))[_0x3966('0x5')][_0x3966('0x1a')](_0x115975=>{if(_0x3966('0x19')!=_0x115975['type'])return;const {data:_0x45f004}=_0x115975;if(_0x45f004&&_0x3966('0xf')==_0x45f004[_0x3966('0x12')]){const _0x1f0eb8=_0x45f004[_0x3966('0x16')][0x0][_0x3966('0x10')],_0x1a3977=this[_0x3966('0x9')](_0x1f0eb8);if(null!==_0x1a3977)return{'type':_0x3966('0x6'),'content':_0x51a995(_0x27f974,_0x3966('0x18'),(_0x1192c1=0x1,_0x5793b2=_0x1a3977,_0x51a995(_0x27f974,_0x3966('0xb'),[_0x1192c1,_0x5793b2])))};const _0x17616a=this[_0x3966('0x11')][_0x3966('0x15')](_0x4151cc=>_0x4151cc[_0x3966('0x1c')]===_0x1f0eb8)[_0x3966('0xa')];return{'type':_0x3966('0x6'),'content':_0x51a995(_0x27f974,_0x3966('0x18'),_0x38c5da(0x1,_0x17616a))};}var _0x1192c1,_0x5793b2;});}[_0x3966('0x9')](_0x364566){var _0x2ca8ad,_0x3758ef;const _0x552b78=_0x364566[_0x3966('0x1d')](/^heading(\d+)/);if(_0x552b78)return _0x552b78[0x1];const _0x57c349=null===(_0x2ca8ad=this['_headingOptions'])||void 0x0===_0x2ca8ad?void 0x0:_0x2ca8ad[_0x3966('0x15')](_0x321f87=>_0x321f87[_0x3966('0x1c')]==_0x364566);if(_0x57c349&&_0x57c349[_0x3966('0x8')]){const _0x3fbc34=_0x57c349['view'],_0x362b2f=(null!==(_0x3758ef=_0x3fbc34[_0x3966('0x14')])&&void 0x0!==_0x3758ef?_0x3758ef:_0x3fbc34)[_0x3966('0x1d')](/^h(\d+)/);if(_0x362b2f)return _0x362b2f[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4316=['registerDescriptionCallback','_descriptionFactory','formatInline','*Remove\x20highlight*','highlight','plugins','*Set\x20highlight:*\x20%0','locale','HighlightEditing','registerAttributeLabel','find','highlight.options','model','color','_enableDefaultAttributesIntegration','_registerLegacyDescription','config','format','TrackChangesEditing','FORMAT_HIGHLIGHT','toLowerCase','type','value','has','title','commandParams','editor','get'];(function(_0x4f0bba,_0x4316cb){const _0x13d211=function(_0x55c986){while(--_0x55c986){_0x4f0bba['push'](_0x4f0bba['shift']());}};_0x13d211(++_0x4316cb);}(_0x4316,0x1b0));const _0x13d2=function(_0x4f0bba,_0x4316cb){_0x4f0bba=_0x4f0bba-0x0;let _0x13d211=_0x4316[_0x4f0bba];return _0x13d211;};import{Plugin as _0x5463d2}from'ckeditor5/src/core';import{getTranslation as _0x23d66a}from'../utils/common-translations';export default class Y extends _0x5463d2{['afterInit'](){const _0x464524=this[_0x13d2('0xe')];if(!_0x464524[_0x13d2('0x15')][_0x13d2('0xb')](_0x13d2('0x18')))return;const _0x57fe74=_0x464524[_0x13d2('0x15')][_0x13d2('0xf')](_0x13d2('0x6')),_0x139dc6=_0x464524[_0x13d2('0x17')];_0x57fe74[_0x13d2('0x2')]('highlight',[_0x13d2('0x14')]),_0x57fe74[_0x13d2('0x11')][_0x13d2('0x19')](_0x13d2('0x14'),_0x23d66a(_0x139dc6,_0x13d2('0x7'))),this[_0x13d2('0x3')]();}[_0x13d2('0x3')](){const _0x572587=this['editor'],_0x5309e2=_0x572587['locale'];_0x572587[_0x13d2('0x15')][_0x13d2('0xf')](_0x13d2('0x6'))['_descriptionFactory'][_0x13d2('0x10')](_0x350414=>{if(_0x13d2('0x12')!=_0x350414[_0x13d2('0x9')])return;const {data:_0x2df066}=_0x350414;if(_0x2df066&&_0x13d2('0x14')==_0x2df066['commandName']){const _0x2faf76=_0x5309e2['t'],_0x2d83e8=_0x2df066[_0x13d2('0xd')][0x0][_0x13d2('0xa')];if(_0x2d83e8){const _0x50b800=_0x572587[_0x13d2('0x4')][_0x13d2('0xf')](_0x13d2('0x1b'))[_0x13d2('0x1a')](_0x5dc6bc=>_0x5dc6bc[_0x13d2('0x0')]==_0x2d83e8),_0x58227a=_0x2faf76(_0x50b800[_0x13d2('0xc')])[_0x13d2('0x8')]();return{'type':_0x13d2('0x5'),'content':_0x23d66a(_0x5309e2,_0x13d2('0x16'),_0x58227a),'color':{'value':_0x50b800[_0x13d2('0x1')],'title':_0x50b800[_0x13d2('0xc')]}};}return{'type':_0x13d2('0x5'),'content':_0x23d66a(_0x5309e2,_0x13d2('0x13'),_0x23d66a(_0x5309e2,_0x13d2('0x7')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fe8=['insert','ck-horizontal-line','createPositionAt','horizontalLine','afterInit','_descriptionFactory','locale','showSuggestionHighlights','addClass','createContainerElement','TrackChangesEditing','HorizontalLineEditing','plugins','editor','get','high','ELEMENT_HORIZONTAL_LINE','createEmptyElement','div','elementToStructure','enableCommand','conversion'];(function(_0xac0a22,_0x2fe87e){const _0x2db4e2=function(_0x16de3e){while(--_0x16de3e){_0xac0a22['push'](_0xac0a22['shift']());}};_0x2db4e2(++_0x2fe87e);}(_0x2fe8,0x91));const _0x2db4=function(_0xac0a22,_0x2fe87e){_0xac0a22=_0xac0a22-0x0;let _0x2db4e2=_0x2fe8[_0xac0a22];return _0x2db4e2;};import{Plugin as _0x593278}from'ckeditor5/src/core';import{getTranslation as _0x21cfce}from'../utils/common-translations';export default class Z extends _0x593278{[_0x2db4('0xd')](){const _0x430c3=this[_0x2db4('0x0')];if(!_0x430c3[_0x2db4('0x15')]['has'](_0x2db4('0x14')))return;_0x430c3[_0x2db4('0x15')][_0x2db4('0x1')](_0x2db4('0x13'))[_0x2db4('0x7')](_0x2db4('0xc'));const _0x38bd59=_0x430c3[_0x2db4('0x15')]['get'](_0x2db4('0x13')),_0x1cbc99=_0x430c3[_0x2db4('0xf')];_0x38bd59[_0x2db4('0xe')]['registerElementLabel'](_0x2db4('0xc'),_0xb267b7=>_0x21cfce(_0x1cbc99,_0x2db4('0x3'),_0xb267b7)),_0x430c3[_0x2db4('0x8')]['for']('dataDowncast')[_0x2db4('0x6')]({'model':_0x2db4('0xc'),'view':(_0x27b686,{writer:_0x21b4da,options:_0xb2acf9})=>{if(!_0xb2acf9[_0x2db4('0x10')])return null;const _0x551f0a=_0x21b4da[_0x2db4('0x12')](_0x2db4('0x5')),_0x39428e=_0x21b4da[_0x2db4('0x4')]('hr');return _0x21b4da[_0x2db4('0x11')](_0x2db4('0xa'),_0x551f0a),_0x21b4da[_0x2db4('0x9')](_0x21b4da[_0x2db4('0xb')](_0x551f0a,0x0),_0x39428e),_0x551f0a;},'converterPriority':_0x2db4('0x2')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4652=['type','locale','htmlEmbed','afterInit','ELEMENT_HTML_EMBED','rawHtml','registerDescriptionCallback','format','formatBlock','_enableDefaultAttributesIntegration','commandName','_descriptionFactory','nodeAfter','value','editor','HtmlEmbed','start','*Change\x20%0\x20content*','plugins','_registerLegacyDescription'];(function(_0x427398,_0x46524e){const _0x828668=function(_0x54d03){while(--_0x54d03){_0x427398['push'](_0x427398['shift']());}};_0x828668(++_0x46524e);}(_0x4652,0x17b));const _0x8286=function(_0x427398,_0x46524e){_0x427398=_0x427398-0x0;let _0x828668=_0x4652[_0x427398];return _0x828668;};import{Plugin as _0x39879d}from'ckeditor5/src/core';import{getTranslation as _0x3b5427}from'../utils/common-translations';export default class tt extends _0x39879d{[_0x8286('0x4')](){const _0x2f8ff7=this[_0x8286('0xf')];if(!_0x2f8ff7[_0x8286('0x13')]['has'](_0x8286('0x10')))return;const _0x17f3b7=_0x2f8ff7[_0x8286('0x13')]['get']('TrackChangesEditing'),_0x2a13cc=_0x2f8ff7[_0x8286('0x2')];_0x17f3b7[_0x8286('0xc')]['registerElementLabel'](_0x8286('0x6'),_0x46e9c9=>_0x3b5427(_0x2a13cc,'ELEMENT_HTML_EMBED',_0x46e9c9)),_0x17f3b7[_0x8286('0xa')](_0x8286('0x3'),[],[_0x8286('0xe')]),_0x17f3b7[_0x8286('0xc')][_0x8286('0x7')](_0x3c0ef9=>{if('attribute'!=_0x3c0ef9[_0x8286('0x1')])return;const {data:_0x571325}=_0x3c0ef9;if(_0x571325&&_0x8286('0xe')==_0x571325['key']&&_0x3c0ef9['getFirstRange']()[_0x8286('0x11')][_0x8286('0xd')]['is']('element',_0x8286('0x6'))){const _0x59b517=_0x3b5427(_0x2a13cc,_0x8286('0x5'));return{'type':_0x8286('0x8'),'content':_0x3b5427(_0x2a13cc,_0x8286('0x12'),_0x59b517)};}}),this[_0x8286('0x0')]();}[_0x8286('0x0')](){const _0x536ed7=this['editor'],_0x93dd69=_0x536ed7[_0x8286('0x2')];_0x536ed7[_0x8286('0x13')]['get']('TrackChangesEditing')[_0x8286('0xc')][_0x8286('0x7')](_0x342669=>{if(_0x8286('0x9')!=_0x342669['type'])return;const {data:_0x74abf0}=_0x342669;if(_0x74abf0&&'htmlEmbed'==_0x74abf0[_0x8286('0xb')]){const _0xce733e=_0x3b5427(_0x93dd69,_0x8286('0x5'));return{'type':_0x8286('0x8'),'content':_0x3b5427(_0x93dd69,_0x8286('0x12'),_0xce733e)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x39ee=['createRange','registerDescriptionCallback','isBlockImage','previous','isIntersecting','*Remove\x20image\x20text\x20alternative*','deletion','alt','*Set\x20image\x20width:*\x20%0','model','_registerLegacyDescription','ImageEditing','type','toPrevious','getCaptionFromImageModelElement','isOwn','key','isEqual','subType','get','convertBlockImageToInline','findIndex','uploadImage','Block\x20image\x20to\x20inline\x20image','newValue','markDeletion','ImageUploadEditing','ELEMENT_INLINE_IMAGE','find','_findSuggestions','FORMAT_IMAGE_SIZE','join','chain','removeObject','Inline\x20image\x20to\x20block\x20image','getClosestSelectedImageElement','format','isBefore','document','formatInline','registerAttributeLabel','markInsertion','nodeAfter','getContainedElement','imageTypeInline','getFirstRange','ELEMENT_CAPTION','commandParams','selection','forward','schema','toggleImageCaption','isCollapsed','resizedWidth','ELEMENT_IMAGE','addObject','_descriptionFactory','imageTypeBlock','width','registerCustomCallback','imageCaption','imageTextAlternative','registerElementLabel','ImageResize','createRangeOn','enableCommand','_suggestionFactory','insertImage','caption','fromPosition','ImageCaptionUtils','end','plugins','insertion','change','_enableDefaultAttributesIntegration','convertInlineImageToBlock','detach','getNearestSelectionRange','markBlockFormat','ImageUtils','length','ImageInlineEditing','commandName','imageStylePreApply','locale','formatBlock','has','getSuggestionCallback','discard','accept','TrackChangesEditing','start','ImageTextAlternativeEditing'];(function(_0x373b9e,_0x39ee8d){const _0x51dbc7=function(_0x582243){while(--_0x582243){_0x373b9e['push'](_0x373b9e['shift']());}};_0x51dbc7(++_0x39ee8d);}(_0x39ee,0x14c));const _0x51db=function(_0x373b9e,_0x39ee8d){_0x373b9e=_0x373b9e-0x0;let _0x51dbc7=_0x39ee[_0x373b9e];return _0x51dbc7;};import{Plugin as _0x45a6f6}from'ckeditor5/src/core';import{LivePosition as _0x7ebbf1}from'ckeditor5/src/engine';import{getTranslation as _0x2ad2c4}from'../utils/common-translations';export default class it extends _0x45a6f6{['afterInit'](){const _0x29035a=this['editor'];if(!_0x29035a[_0x51db('0x16')]['has'](_0x51db('0x37')))return;const _0x1cd7ca=_0x29035a['plugins'][_0x51db('0x3f')](_0x51db('0x29')),_0x226cf5=_0x29035a[_0x51db('0x16')][_0x51db('0x3f')](_0x51db('0x1e')),_0x401199=_0x29035a[_0x51db('0x23')];_0x1cd7ca['enableCommand'](_0x51db('0x11')),_0x1cd7ca[_0x51db('0x6')][_0x51db('0xc')]('imageBlock',_0x219721=>_0x2ad2c4(_0x401199,_0x51db('0x4'),_0x219721)),_0x1cd7ca['_descriptionFactory']['registerElementLabel']('imageInline',_0x5645cc=>_0x2ad2c4(_0x401199,_0x51db('0x47'),_0x5645cc)),_0x1cd7ca['_descriptionFactory'][_0x51db('0xc')](_0x51db('0x12'),()=>_0x2ad2c4(_0x401199,_0x51db('0x5a'))),_0x29035a[_0x51db('0x16')][_0x51db('0x25')](_0x51db('0x46'))&&_0x1cd7ca[_0x51db('0xf')](_0x51db('0x42')),_0x29035a[_0x51db('0x16')][_0x51db('0x25')]('ImageBlockEditing')&&_0x29035a['plugins']['has'](_0x51db('0x20'))&&(_0x1cd7ca[_0x51db('0xf')](_0x51db('0x58'),(_0x38151a,_0x38384f)=>{const _0x534c2f=_0x226cf5[_0x51db('0x4f')](_0x29035a[_0x51db('0x35')][_0x51db('0x52')]['selection']);_0x29035a['model'][_0x51db('0x18')](()=>{_0x1cd7ca[_0x51db('0x1d')](_0x534c2f,{'commandName':_0x51db('0x58'),'commandParams':[_0x38384f]},[],_0x51db('0x40'));});}),_0x1cd7ca[_0x51db('0xf')](_0x51db('0x7'),(_0xa52912,_0x1c9f2b)=>{_0x29035a[_0x51db('0x35')][_0x51db('0x18')](_0x5f7be2=>{let _0x5d7e30=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')]['document'][_0x51db('0x5c')]),_0x36b9bd=_0x5f7be2[_0x51db('0xe')](_0x5d7e30);const _0x5cb986=_0x7ebbf1[_0x51db('0x13')](_0x36b9bd[_0x51db('0x2a')],_0x51db('0x39')),_0x2844a9=_0x7ebbf1[_0x51db('0x13')](_0x36b9bd[_0x51db('0x15')],'toNext');_0x1cd7ca['forceDefaultExecution'](()=>_0xa52912(_0x1c9f2b)),_0x5d7e30=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')][_0x51db('0x52')][_0x51db('0x5c')]),_0x36b9bd=_0x5f7be2['createRangeOn'](_0x5d7e30);const _0x417224=_0x5f7be2[_0x51db('0x2c')](_0x5cb986,_0x2844a9);_0x5cb986[_0x51db('0x1b')](),_0x2844a9[_0x51db('0x1b')](),_0x1cd7ca[_0x51db('0x1d')](_0x5d7e30,{'commandName':_0x51db('0x58'),'commandParams':[_0x1c9f2b]},[],_0x51db('0x1a')),_0x417224['start']['isBefore'](_0x36b9bd['start'])&&_0x1cd7ca[_0x51db('0x55')](_0x5f7be2[_0x51db('0x2c')](_0x417224[_0x51db('0x2a')],_0x36b9bd['start']),_0x51db('0x1a')),_0x36b9bd[_0x51db('0x15')]['isBefore'](_0x417224[_0x51db('0x15')])&&_0x1cd7ca[_0x51db('0x55')](_0x5f7be2[_0x51db('0x2c')](_0x36b9bd[_0x51db('0x15')],_0x417224[_0x51db('0x15')]),_0x51db('0x1a'));});}),_0x1cd7ca[_0x51db('0x10')]['registerCustomCallback'](_0x51db('0x24'),_0x51db('0x1a'),'join',()=>!0x1),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x24'),_0x51db('0x1a'),_0x51db('0x28'),()=>!0x1),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')]('formatBlock',_0x51db('0x1a'),_0x51db('0x27'),_0x1cd7ca['_suggestionFactory'][_0x51db('0x26')](_0x51db('0x24'),'',_0x51db('0x28'))),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x17'),_0x51db('0x1a'),_0x51db('0x4b'),()=>!0x1),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x17'),_0x51db('0x1a'),_0x51db('0x27'),([_0x293a70])=>{const _0x1b4bea=_0x1cd7ca['_suggestionFactory']['getSuggestionCallback'](_0x51db('0x17'),'',_0x51db('0x27'));let _0x422133=_0x293a70[_0x51db('0x2a')],_0x222e0a=_0x293a70[_0x51db('0x15')];const _0x552de9=_0x29035a[_0x51db('0x35')][_0x51db('0x0')][_0x51db('0x1c')](_0x422133,'backward'),_0x4062a9=_0x29035a[_0x51db('0x35')]['schema']['getNearestSelectionRange'](_0x222e0a,_0x51db('0x5d'));_0x552de9[_0x51db('0x2')]&&(_0x422133=_0x552de9['start']),_0x4062a9[_0x51db('0x2')]&&(_0x222e0a=_0x4062a9[_0x51db('0x15')]),_0x1b4bea([_0x29035a['model'][_0x51db('0x2c')](_0x422133,_0x222e0a)]);}),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x24'),_0x51db('0x1a'),_0x51db('0x4c'),_0x3765d0),_0x1cd7ca['_suggestionFactory'][_0x51db('0x9')]('insertion',_0x51db('0x1a'),_0x51db('0x4c'),_0x3765d0)),_0x29035a['plugins'][_0x51db('0x25')]('ImageCaptionEditing')&&(_0x1cd7ca[_0x51db('0xf')](_0x51db('0x1'),(_0x4527bb,_0x529e0e)=>{const _0x2196da=_0x29035a['plugins'][_0x51db('0x3f')](_0x51db('0x14'));let _0x4c94a0=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')]['document']['selection']),_0x2ddb24=_0x2196da['getCaptionFromImageModelElement'](_0x4c94a0);_0x29035a[_0x51db('0x35')][_0x51db('0x18')](()=>{if(_0x2ddb24)return void _0x1cd7ca[_0x51db('0x45')](_0x29035a[_0x51db('0x35')][_0x51db('0xe')](_0x2ddb24));const _0x47d856=_0x226cf5[_0x51db('0x2e')](_0x4c94a0);_0x4527bb(_0x529e0e),_0x4c94a0=_0x226cf5['getClosestSelectedImageElement'](_0x29035a[_0x51db('0x35')][_0x51db('0x52')]['selection']),_0x2ddb24=_0x2196da[_0x51db('0x3a')](_0x4c94a0),_0x1cd7ca[_0x51db('0x55')](_0x29035a['model']['createRangeOn'](_0x2ddb24),_0x47d856?null:_0x51db('0xa'));});}),_0x1cd7ca[_0x51db('0x10')][_0x51db('0x9')](_0x51db('0x17'),'imageCaption',_0x51db('0x4c'),_0x3765d0));const _0x3c9a19=[{'type':_0x51db('0x24'),'subType':_0x51db('0x22')},{'type':_0x51db('0x17'),'subType':_0x51db('0xa')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x51db('0x17'),'subType':_0x51db('0x1a')}];function _0x44a73b(_0x122eef,_0x4f18ea){const _0x4ec76c=_0x3c9a19[_0x51db('0x41')](({type:_0x4d3979,subType:_0x5bb8a2})=>_0x122eef[_0x51db('0x38')]==_0x4d3979&&_0x122eef[_0x51db('0x3e')]==_0x5bb8a2),_0x320998=_0x3c9a19[_0x51db('0x41')](({type:_0x2fe27c,subType:_0x4ff4e7})=>_0x4f18ea[_0x51db('0x38')]==_0x2fe27c&&_0x4f18ea['subType']==_0x4ff4e7);if(_0x4ec76c<0x0||_0x320998<0x0)return!0x1;const _0x269791=_0x122eef[_0x51db('0x59')](),_0x322eb6=_0x4f18ea[_0x51db('0x59')]();if((0x0==_0x4ec76c||0x1==_0x4ec76c)&&0x2==_0x320998&&_0x269791[_0x51db('0x30')](_0x322eb6))return!0x0;if(0x2==_0x4ec76c&&0x3==_0x320998){const _0x5d30b8=_0x1cd7ca[_0x51db('0x49')](_0x269791,_0x51db('0x17'))['filter'](({suggestion:_0x2d7a6c,meta:_0x130265})=>_0x130265[_0x51db('0x3b')]&&_0x51db('0x1a')==_0x2d7a6c['subType']);if(_0x5d30b8[_0x51db('0x1f')]>0x1&&_0x322eb6[_0x51db('0x15')][_0x51db('0x3d')](_0x269791['start']))return!0x0;if(0x1==_0x5d30b8[_0x51db('0x1f')]&&(_0x269791[_0x51db('0x2a')][_0x51db('0x3d')](_0x322eb6[_0x51db('0x15')])||_0x269791['end'][_0x51db('0x3d')](_0x322eb6[_0x51db('0x2a')])))return!0x0;}if(0x3==_0x4ec76c&&0x3==_0x320998&&_0x269791[_0x51db('0x2a')][_0x51db('0x51')](_0x322eb6['start'])){const _0x585661=_0x269791[_0x51db('0x15')][_0x51db('0x56')],_0x42dd70=_0x322eb6[_0x51db('0x2a')]['nodeBefore'];return _0x226cf5[_0x51db('0x2e')](_0x585661)&&_0x585661===_0x42dd70;}return!0x1;}function _0x3765d0(_0x28a510,_0x29684e){return _0x44a73b(_0x28a510,_0x29684e)?[_0x28a510,_0x29684e]:_0x44a73b(_0x29684e,_0x28a510)?[_0x29684e,_0x28a510]:null;}_0x29035a[_0x51db('0x16')][_0x51db('0x25')](_0x51db('0xd'))&&(_0x1cd7ca['_enableDefaultAttributesIntegration']('resizeImage',[],[_0x51db('0x3')]),_0x1cd7ca['_descriptionFactory'][_0x51db('0x54')](_0x51db('0x3'),_0x2ad2c4(_0x401199,_0x51db('0x4a')))),_0x29035a[_0x51db('0x16')][_0x51db('0x25')](_0x51db('0x2b'))&&_0x1cd7ca[_0x51db('0x19')]('imageTextAlternative',[],['alt']),_0x1cd7ca[_0x51db('0x6')][_0x51db('0x2d')](_0x585265=>{if(!!_0x3c9a19[_0x51db('0x48')](({type:_0x4c5b62,subType:_0x280b71})=>_0x585265[_0x51db('0x38')]==_0x4c5b62&&_0x585265[_0x51db('0x3e')]==_0x280b71))return _0x585265[_0x51db('0x2f')]?{}:void 0x0;}),_0x1cd7ca['_descriptionFactory']['registerDescriptionCallback'](_0x4c98ba=>{if(_0x51db('0x17')==_0x4c98ba[_0x51db('0x38')]||_0x51db('0x32')==_0x4c98ba[_0x51db('0x38')]){const _0x58db67=_0x4c98ba[_0x51db('0x57')]();if(_0x58db67&&_0x58db67['is']('element','caption'))return{'type':_0x51db('0x17')==_0x4c98ba['type']?_0x51db('0x5'):_0x51db('0x4d'),'element':_0x58db67,'quantity':0x1};}}),_0x1cd7ca[_0x51db('0x6')][_0x51db('0x2d')](_0x237dd2=>_0x51db('0x24')==_0x237dd2[_0x51db('0x38')]&&_0x51db('0x1a')==_0x237dd2['subType']?{'type':_0x51db('0x50'),'content':_0x51db('0x4e')}:_0x51db('0x24')==_0x237dd2[_0x51db('0x38')]&&_0x51db('0x40')==_0x237dd2[_0x51db('0x3e')]?{'type':'format','content':_0x51db('0x43')}:void 0x0),_0x1cd7ca[_0x51db('0x6')][_0x51db('0x2d')](_0x2b7b77=>{if('attribute'!=_0x2b7b77[_0x51db('0x38')])return;const {data:_0x487ddf}=_0x2b7b77;if(!_0x487ddf||_0x51db('0x33')!=_0x487ddf[_0x51db('0x3c')])return;const _0x43485f=_0x487ddf[_0x51db('0x44')];return _0x43485f?{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x401199,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43485f+'\x22')}:{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x401199,'*Remove\x20image\x20text\x20alternative*')};}),this[_0x51db('0x36')]();}[_0x51db('0x36')](){const _0x3b75b9=this['editor'],_0x4baa4e=_0x3b75b9[_0x51db('0x23')];_0x3b75b9[_0x51db('0x16')]['get'](_0x51db('0x29'))['_descriptionFactory'][_0x51db('0x2d')](_0x1667c5=>{if(_0x51db('0x24')!=_0x1667c5[_0x51db('0x38')]&&_0x51db('0x53')!=_0x1667c5[_0x51db('0x38')])return;const {data:_0x3cfcdd}=_0x1667c5;if(_0x3cfcdd){if(_0x51db('0xb')==_0x3cfcdd[_0x51db('0x21')]){const _0x8453a5=_0x3cfcdd['commandParams'][0x0]['newValue'];return _0x8453a5?{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8453a5+'\x22')}:{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,_0x51db('0x31'))};}if('resizeImage'==_0x3cfcdd[_0x51db('0x21')]){const _0xcc34c3=_0x3cfcdd[_0x51db('0x5b')][0x0][_0x51db('0x8')];return _0xcc34c3?{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,_0x51db('0x34'),_0xcc34c3)}:{'type':_0x51db('0x50'),'content':_0x2ad2c4(_0x4baa4e,'*Reset\x20image\x20width*')};}}});}}
|
|
23
|
+
const _0x14ca=['findIndex','accept','forward','editor','createRangeOn','schema','removeObject','*Set\x20image\x20text\x20alternative:*\x20%0','format','_suggestionFactory','ELEMENT_IMAGE','ImageResize','imageTextAlternative','getCaptionFromImageModelElement','uploadImage','discard','registerDescriptionCallback','nodeBefore','start','ImageUploadEditing','get','attribute','ImageInlineEditing','key','ELEMENT_CAPTION','deletion','getNearestSelectionRange','imageStylePreApply','afterInit','imageInline','isOwn','registerCustomCallback','change','toPrevious','createRange','previous','FORMAT_IMAGE_SIZE','registerAttributeLabel','toNext','markBlockFormat','Block\x20image\x20to\x20inline\x20image','forceDefaultExecution','commandName','imageTypeBlock','caption','plugins','type','subType','join','isEqual','find','model','isBefore','ImageBlockEditing','length','commandParams','resizedWidth','isIntersecting','_registerLegacyDescription','convertBlockImageToInline','detach','isCollapsed','isBlockImage','_enableDefaultAttributesIntegration','imageTypeInline','alt','*Remove\x20image\x20text\x20alternative*','width','imageBlock','getFirstRange','resizeImage','_descriptionFactory','nodeAfter','end','registerElementLabel','formatBlock','filter','ImageCaptionUtils','has','backward','getClosestSelectedImageElement','selection','addObject','formatInline','document','enableCommand','element','chain','toggleImageCaption','ImageEditing','*Set\x20image\x20width:*\x20%0','getSuggestionCallback','markInsertion','ELEMENT_INLINE_IMAGE','fromPosition','convertInlineImageToBlock','insertion','imageCaption'];(function(_0x485cd1,_0x14ca29){const _0x494ea8=function(_0x2a7544){while(--_0x2a7544){_0x485cd1['push'](_0x485cd1['shift']());}};_0x494ea8(++_0x14ca29);}(_0x14ca,0x194));const _0x494e=function(_0x485cd1,_0x14ca29){_0x485cd1=_0x485cd1-0x0;let _0x494ea8=_0x14ca[_0x485cd1];return _0x494ea8;};import{Plugin as _0x534225}from'ckeditor5/src/core';import{LivePosition as _0x499a84}from'ckeditor5/src/engine';import{getTranslation as _0x8b8ba8}from'../utils/common-translations';export default class it extends _0x534225{[_0x494e('0x10')](){const _0x432ef6=this['editor'];if(!_0x432ef6[_0x494e('0x21')]['has'](_0x494e('0x4d')))return;const _0x13c73c=_0x432ef6['plugins'][_0x494e('0x8')]('TrackChangesEditing'),_0xbcbde8=_0x432ef6[_0x494e('0x21')]['get']('ImageUtils'),_0x475453=_0x432ef6['locale'];_0x13c73c['enableCommand']('insertImage'),_0x13c73c[_0x494e('0x3b')][_0x494e('0x3e')](_0x494e('0x38'),_0x3c1ce4=>_0x8b8ba8(_0x475453,_0x494e('0x60'),_0x3c1ce4)),_0x13c73c[_0x494e('0x3b')][_0x494e('0x3e')](_0x494e('0x11'),_0x4ff92e=>_0x8b8ba8(_0x475453,_0x494e('0x51'),_0x4ff92e)),_0x13c73c[_0x494e('0x3b')][_0x494e('0x3e')](_0x494e('0x20'),()=>_0x8b8ba8(_0x475453,_0x494e('0xc'))),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')](_0x494e('0x7'))&&_0x13c73c[_0x494e('0x49')](_0x494e('0x2')),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')](_0x494e('0x29'))&&_0x432ef6[_0x494e('0x21')][_0x494e('0x42')](_0x494e('0xa'))&&(_0x13c73c['enableCommand'](_0x494e('0x34'),(_0x1361c3,_0x4503cf)=>{const _0x58a4cb=_0xbcbde8['getClosestSelectedImageElement'](_0x432ef6[_0x494e('0x27')][_0x494e('0x48')]['selection']);_0x432ef6['model'][_0x494e('0x14')](()=>{_0x13c73c['markBlockFormat'](_0x58a4cb,{'commandName':_0x494e('0x34'),'commandParams':[_0x4503cf]},[],_0x494e('0x2f'));});}),_0x13c73c[_0x494e('0x49')](_0x494e('0x1f'),(_0x3e28ea,_0x4b4d2e)=>{_0x432ef6[_0x494e('0x27')][_0x494e('0x14')](_0x152087=>{let _0x53461b=_0xbcbde8[_0x494e('0x44')](_0x432ef6[_0x494e('0x27')][_0x494e('0x48')]['selection']),_0x4bc571=_0x152087['createRangeOn'](_0x53461b);const _0x3592ad=_0x499a84[_0x494e('0x52')](_0x4bc571[_0x494e('0x6')],_0x494e('0x15')),_0x40604e=_0x499a84[_0x494e('0x52')](_0x4bc571[_0x494e('0x3d')],_0x494e('0x1a'));_0x13c73c[_0x494e('0x1d')](()=>_0x3e28ea(_0x4b4d2e)),_0x53461b=_0xbcbde8[_0x494e('0x44')](_0x432ef6[_0x494e('0x27')]['document'][_0x494e('0x45')]),_0x4bc571=_0x152087[_0x494e('0x5a')](_0x53461b);const _0xb36929=_0x152087[_0x494e('0x16')](_0x3592ad,_0x40604e);_0x3592ad[_0x494e('0x30')](),_0x40604e[_0x494e('0x30')](),_0x13c73c[_0x494e('0x1b')](_0x53461b,{'commandName':_0x494e('0x34'),'commandParams':[_0x4b4d2e]},[],_0x494e('0x53')),_0xb36929[_0x494e('0x6')][_0x494e('0x28')](_0x4bc571[_0x494e('0x6')])&&_0x13c73c['markInsertion'](_0x152087[_0x494e('0x16')](_0xb36929[_0x494e('0x6')],_0x4bc571[_0x494e('0x6')]),'convertInlineImageToBlock'),_0x4bc571['end'][_0x494e('0x28')](_0xb36929['end'])&&_0x13c73c[_0x494e('0x50')](_0x152087[_0x494e('0x16')](_0x4bc571['end'],_0xb36929[_0x494e('0x3d')]),_0x494e('0x53'));});}),_0x13c73c[_0x494e('0x5f')]['registerCustomCallback'](_0x494e('0x3f'),_0x494e('0x53'),_0x494e('0x24'),()=>!0x1),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')]('formatBlock',_0x494e('0x53'),_0x494e('0x57'),()=>!0x1),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')]('formatBlock',_0x494e('0x53'),_0x494e('0x3'),_0x13c73c[_0x494e('0x5f')][_0x494e('0x4f')](_0x494e('0x3f'),'','accept')),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')](_0x494e('0x54'),_0x494e('0x53'),_0x494e('0x24'),()=>!0x1),_0x13c73c[_0x494e('0x5f')]['registerCustomCallback'](_0x494e('0x54'),'convertInlineImageToBlock',_0x494e('0x3'),([_0x4090e8])=>{const _0x34518b=_0x13c73c[_0x494e('0x5f')][_0x494e('0x4f')](_0x494e('0x54'),'','discard');let _0x45d6f7=_0x4090e8['start'],_0x322cd5=_0x4090e8['end'];const _0x301101=_0x432ef6[_0x494e('0x27')][_0x494e('0x5b')][_0x494e('0xe')](_0x45d6f7,_0x494e('0x43')),_0x4e5965=_0x432ef6[_0x494e('0x27')]['schema'][_0x494e('0xe')](_0x322cd5,_0x494e('0x58'));_0x301101[_0x494e('0x31')]&&(_0x45d6f7=_0x301101[_0x494e('0x6')]),_0x4e5965[_0x494e('0x31')]&&(_0x322cd5=_0x4e5965[_0x494e('0x3d')]),_0x34518b([_0x432ef6[_0x494e('0x27')][_0x494e('0x16')](_0x45d6f7,_0x322cd5)]);}),_0x13c73c['_suggestionFactory'][_0x494e('0x13')](_0x494e('0x3f'),_0x494e('0x53'),_0x494e('0x4b'),_0x41a6cf),_0x13c73c[_0x494e('0x5f')]['registerCustomCallback'](_0x494e('0x54'),_0x494e('0x53'),_0x494e('0x4b'),_0x41a6cf)),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')]('ImageCaptionEditing')&&(_0x13c73c['enableCommand'](_0x494e('0x4c'),(_0x4e11d4,_0xe6b01f)=>{const _0x5528d7=_0x432ef6['plugins']['get'](_0x494e('0x41'));let _0x551db5=_0xbcbde8['getClosestSelectedImageElement'](_0x432ef6['model'][_0x494e('0x48')][_0x494e('0x45')]),_0x1abc4b=_0x5528d7[_0x494e('0x1')](_0x551db5);_0x432ef6[_0x494e('0x27')]['change'](()=>{if(_0x1abc4b)return void _0x13c73c['markDeletion'](_0x432ef6['model'][_0x494e('0x5a')](_0x1abc4b));const _0x585d1c=_0xbcbde8[_0x494e('0x32')](_0x551db5);_0x4e11d4(_0xe6b01f),_0x551db5=_0xbcbde8[_0x494e('0x44')](_0x432ef6[_0x494e('0x27')][_0x494e('0x48')][_0x494e('0x45')]),_0x1abc4b=_0x5528d7[_0x494e('0x1')](_0x551db5),_0x13c73c[_0x494e('0x50')](_0x432ef6[_0x494e('0x27')][_0x494e('0x5a')](_0x1abc4b),_0x585d1c?null:_0x494e('0x55'));});}),_0x13c73c[_0x494e('0x5f')][_0x494e('0x13')](_0x494e('0x54'),_0x494e('0x55'),_0x494e('0x4b'),_0x41a6cf));const _0x1dc242=[{'type':_0x494e('0x3f'),'subType':_0x494e('0xf')},{'type':_0x494e('0x54'),'subType':_0x494e('0x55')},{'type':_0x494e('0x3f'),'subType':_0x494e('0x53')},{'type':_0x494e('0x54'),'subType':'convertInlineImageToBlock'}];function _0x2c9b9a(_0x3b1a33,_0x5c1caf){const _0x22be57=_0x1dc242[_0x494e('0x56')](({type:_0xa216c3,subType:_0x1b0d25})=>_0x3b1a33[_0x494e('0x22')]==_0xa216c3&&_0x3b1a33[_0x494e('0x23')]==_0x1b0d25),_0x20f06d=_0x1dc242[_0x494e('0x56')](({type:_0x442b68,subType:_0x1af483})=>_0x5c1caf[_0x494e('0x22')]==_0x442b68&&_0x5c1caf[_0x494e('0x23')]==_0x1af483);if(_0x22be57<0x0||_0x20f06d<0x0)return!0x1;const _0x2e1d19=_0x3b1a33[_0x494e('0x39')](),_0x1a9073=_0x5c1caf[_0x494e('0x39')]();if((0x0==_0x22be57||0x1==_0x22be57)&&0x2==_0x20f06d&&_0x2e1d19[_0x494e('0x2d')](_0x1a9073))return!0x0;if(0x2==_0x22be57&&0x3==_0x20f06d){const _0x28ba11=_0x13c73c['_findSuggestions'](_0x2e1d19,_0x494e('0x54'))[_0x494e('0x40')](({suggestion:_0x325f30,meta:_0xa0f25a})=>_0xa0f25a[_0x494e('0x12')]&&'convertInlineImageToBlock'==_0x325f30[_0x494e('0x23')]);if(_0x28ba11[_0x494e('0x2a')]>0x1&&_0x1a9073[_0x494e('0x3d')]['isEqual'](_0x2e1d19[_0x494e('0x6')]))return!0x0;if(0x1==_0x28ba11['length']&&(_0x2e1d19[_0x494e('0x6')][_0x494e('0x25')](_0x1a9073[_0x494e('0x3d')])||_0x2e1d19[_0x494e('0x3d')][_0x494e('0x25')](_0x1a9073[_0x494e('0x6')])))return!0x0;}if(0x3==_0x22be57&&0x3==_0x20f06d&&_0x2e1d19[_0x494e('0x6')][_0x494e('0x28')](_0x1a9073[_0x494e('0x6')])){const _0x2647c7=_0x2e1d19[_0x494e('0x3d')][_0x494e('0x3c')],_0x3cfc67=_0x1a9073[_0x494e('0x6')][_0x494e('0x5')];return _0xbcbde8[_0x494e('0x32')](_0x2647c7)&&_0x2647c7===_0x3cfc67;}return!0x1;}function _0x41a6cf(_0x38086a,_0x477075){return _0x2c9b9a(_0x38086a,_0x477075)?[_0x38086a,_0x477075]:_0x2c9b9a(_0x477075,_0x38086a)?[_0x477075,_0x38086a]:null;}_0x432ef6['plugins']['has'](_0x494e('0x61'))&&(_0x13c73c[_0x494e('0x33')](_0x494e('0x3a'),[],[_0x494e('0x2c')]),_0x13c73c[_0x494e('0x3b')][_0x494e('0x19')](_0x494e('0x2c'),_0x8b8ba8(_0x475453,_0x494e('0x18')))),_0x432ef6[_0x494e('0x21')][_0x494e('0x42')]('ImageTextAlternativeEditing')&&_0x13c73c['_enableDefaultAttributesIntegration'](_0x494e('0x0'),[],[_0x494e('0x35')]),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0xab1ad4=>{if(!!_0x1dc242[_0x494e('0x26')](({type:_0x4c1ee4,subType:_0x3a7b65})=>_0xab1ad4[_0x494e('0x22')]==_0x4c1ee4&&_0xab1ad4['subType']==_0x3a7b65))return _0xab1ad4[_0x494e('0x17')]?{}:void 0x0;}),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0x108bde=>{if(_0x494e('0x54')==_0x108bde['type']||_0x494e('0xd')==_0x108bde[_0x494e('0x22')]){const _0x280d81=_0x108bde['getContainedElement']();if(_0x280d81&&_0x280d81['is'](_0x494e('0x4a'),_0x494e('0x20')))return{'type':_0x494e('0x54')==_0x108bde[_0x494e('0x22')]?_0x494e('0x46'):_0x494e('0x5c'),'element':_0x280d81,'quantity':0x1};}}),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0x25bb40=>'formatBlock'==_0x25bb40[_0x494e('0x22')]&&_0x494e('0x53')==_0x25bb40[_0x494e('0x23')]?{'type':_0x494e('0x5e'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x494e('0x3f')==_0x25bb40['type']&&'convertBlockImageToInline'==_0x25bb40['subType']?{'type':'format','content':_0x494e('0x1c')}:void 0x0),_0x13c73c[_0x494e('0x3b')][_0x494e('0x4')](_0x3fa685=>{if(_0x494e('0x9')!=_0x3fa685[_0x494e('0x22')])return;const {data:_0x14aa0f}=_0x3fa685;if(!_0x14aa0f||_0x494e('0x35')!=_0x14aa0f[_0x494e('0xb')])return;const _0x2e2220=_0x14aa0f['newValue'];return _0x2e2220?{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x475453,_0x494e('0x5d'),'\x22'+_0x2e2220+'\x22')}:{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x475453,_0x494e('0x36'))};}),this[_0x494e('0x2e')]();}[_0x494e('0x2e')](){const _0x467caa=this[_0x494e('0x59')],_0x459336=_0x467caa['locale'];_0x467caa['plugins'][_0x494e('0x8')]('TrackChangesEditing')[_0x494e('0x3b')]['registerDescriptionCallback'](_0x2ef196=>{if(_0x494e('0x3f')!=_0x2ef196['type']&&_0x494e('0x47')!=_0x2ef196['type'])return;const {data:_0x1ddd86}=_0x2ef196;if(_0x1ddd86){if(_0x494e('0x0')==_0x1ddd86[_0x494e('0x1e')]){const _0x16f568=_0x1ddd86['commandParams'][0x0]['newValue'];return _0x16f568?{'type':'format','content':_0x8b8ba8(_0x459336,_0x494e('0x5d'),'\x22'+_0x16f568+'\x22')}:{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x459336,_0x494e('0x36'))};}if(_0x494e('0x3a')==_0x1ddd86[_0x494e('0x1e')]){const _0x163570=_0x1ddd86[_0x494e('0x2b')][0x0][_0x494e('0x37')];return _0x163570?{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x459336,_0x494e('0x4e'),_0x163570)}:{'type':_0x494e('0x5e'),'content':_0x8b8ba8(_0x459336,'*Reset\x20image\x20width*')};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d4f=['oldValue','plugins','_suggestionFactory','_descriptionFactory','afterInit','editor','key','_handleLegacySuggestions','locale','src','_registerLegacyDescription','*Format:*\x20replace\x20image\x20URL','registerDescriptionCallback','newValue','format','formatInline','ImageEditing','attribute','getSuggestionCallback','replaceImageSource','*Replace\x20image\x20URL*','type','formatBlock','discard','registerCustomCallback','get','TrackChangesEditing'];(function(_0x26bce5,_0x3d4f09){const _0x5371f8=function(_0x39570f){while(--_0x39570f){_0x26bce5['push'](_0x26bce5['shift']());}};_0x5371f8(++_0x3d4f09);}(_0x3d4f,0x106));const _0x5371=function(_0x26bce5,_0x3d4f09){_0x26bce5=_0x26bce5-0x0;let _0x5371f8=_0x3d4f[_0x26bce5];return _0x5371f8;};import{Plugin as _0x1f67a7}from'ckeditor5/src/core';import{getTranslation as _0x44dd46}from'../utils/common-translations';export default class et extends _0x1f67a7{[_0x5371('0xc')](){if(!this[_0x5371('0xd')]['plugins']['has'](_0x5371('0x18')))return;const _0x427d0d=this['editor'][_0x5371('0x10')],_0x4ea09c=this['editor'][_0x5371('0x9')][_0x5371('0x6')]('TrackChangesEditing');_0x4ea09c['_enableDefaultAttributesIntegration'](_0x5371('0x0'),[],[_0x5371('0x11')]),_0x4ea09c[_0x5371('0xb')][_0x5371('0x14')](_0xc26d63=>{if(_0x5371('0x19')!=_0xc26d63[_0x5371('0x2')])return;const {data:_0x693742}=_0xc26d63;return _0x693742&&_0x5371('0x11')==_0x693742[_0x5371('0xe')]?_0x693742[_0x5371('0x15')]&&_0x693742[_0x5371('0x8')]?{'type':_0x5371('0x16'),'content':_0x44dd46(_0x427d0d,_0x5371('0x1'))}:{'type':_0x5371('0x16'),'content':''}:void 0x0;}),this['_handleLegacySuggestions']();}[_0x5371('0xf')](){const _0xe620eb=this[_0x5371('0xd')]['plugins'][_0x5371('0x6')]('TrackChangesEditing');_0xe620eb[_0x5371('0xa')][_0x5371('0x5')](_0x5371('0x3'),_0x5371('0x0'),'accept',_0xe620eb[_0x5371('0xa')][_0x5371('0x1a')](_0x5371('0x3'),null,_0x5371('0x4'))),_0xe620eb[_0x5371('0xa')][_0x5371('0x5')]('formatBlock',_0x5371('0x0'),_0x5371('0x4'),_0xe620eb[_0x5371('0xa')][_0x5371('0x1a')]('formatBlock',null,'accept')),this['_registerLegacyDescription']();}[_0x5371('0x12')](){const _0x199f8e=this[_0x5371('0xd')],_0x2b58e3=_0x199f8e[_0x5371('0x10')];_0x199f8e[_0x5371('0x9')]['get'](_0x5371('0x7'))['_descriptionFactory'][_0x5371('0x14')](_0x2505ee=>{if('formatBlock'!=_0x2505ee[_0x5371('0x2')]&&_0x5371('0x17')!=_0x2505ee[_0x5371('0x2')])return;const {data:_0x228489}=_0x2505ee;if(!_0x228489||'replaceImageSource'!=_0x228489['commandName'])return;return{'type':'format','content':_0x44dd46(_0x2b58e3,_0x5371('0x13'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14de=['next','registerDescriptionCallback','createRangeOn','imageStyle','nodeAfter','getChangedMarkers','newRange','formatInline','differ','plugins','imageCaption','afterInit','hasSuggestion','registerPostFixer','imageTypeInline','insertion','getSuggestion','editor','discard','type','normalizedStyles','commandParams','length','formatBlock','getClosestSelectedImageElement','_registerLegacyDescription','author','imageStylePostApply','getSuggestionCallback','discardSuggestion','_suggestionFactory','from','isBlockImage','forEach','document','nodeBefore','filter','isEqual','join','name','isInContent','commandName','_splitMarkerName','model','TrackChangesEditing','*Format:*\x20%0','setImageNaturalSizeAttributes','refresh','_findSuggestions','getContainedElement','getFirstRange','enableCommand','markInlineFormat','ImageStyleEditing','imageTypeBlock','get','chain','shouldConvertImageType','FORMAT_SIDE_IMAGE','start','commands','selection','imageStylePreApply','registerCustomCallback','title','isOwn','accept','end','findIndex','_descriptionFactory','getSuggestions','convertInlineImageToBlock','subType','isBefore','value'];(function(_0x9643ca,_0x14de54){const _0x4cb661=function(_0x4b73b2){while(--_0x4b73b2){_0x9643ca['push'](_0x9643ca['shift']());}};_0x4cb661(++_0x14de54);}(_0x14de,0x8b));const _0x4cb6=function(_0x9643ca,_0x14de54){_0x9643ca=_0x9643ca-0x0;let _0x4cb661=_0x14de[_0x9643ca];return _0x4cb661;};import{Plugin as _0x4c0235}from'ckeditor5/src/core';import{uid as _0x4afbd3}from'ckeditor5/src/utils';import{getTranslation as _0x160d56}from'../utils/common-translations';export default class nt extends _0x4c0235{[_0x4cb6('0x16')](){const _0x2e52e4=this[_0x4cb6('0x1c')];if(!_0x2e52e4[_0x4cb6('0x14')]['has'](_0x4cb6('0x40')))return;const _0x4c59d9=_0x2e52e4[_0x4cb6('0x14')][_0x4cb6('0x42')](_0x4cb6('0x37')),_0x158abf=_0x2e52e4[_0x4cb6('0x14')]['get']('ImageUtils'),_0x51bf40={};_0x4c59d9[_0x4cb6('0x3e')](_0x4cb6('0xe'),(_0x3bd1e8,_0x41a190)=>{const _0x486b02=_0x2e52e4[_0x4cb6('0x14')][_0x4cb6('0x42')]('Users')['me'],_0x24d375=_0x2e52e4['commands'][_0x4cb6('0x42')]('imageStyle');let _0x1191da=_0x158abf[_0x4cb6('0x23')](_0x2e52e4[_0x4cb6('0x36')][_0x4cb6('0x2d')][_0x4cb6('0x48')]),_0x5365af=_0x2e52e4[_0x4cb6('0x36')][_0x4cb6('0xd')](_0x1191da),_0x5db05f=_0x24d375[_0x4cb6('0xa')];if(_0x5db05f==_0x41a190['value'])return;const _0xe61628={'commandName':_0x4cb6('0xe'),'commandParams':[_0x41a190],'formatGroupId':_0x4afbd3()};_0x2e52e4[_0x4cb6('0x36')]['change'](()=>{if(_0x4c59d9[_0x4cb6('0x6')]()[_0x4cb6('0x2f')](_0x463efe=>_0x463efe[_0x4cb6('0x33')]&&_0x486b02==_0x463efe[_0x4cb6('0x25')]&&(_0x4cb6('0x22')==_0x463efe[_0x4cb6('0x1e')]||'formatInline'==_0x463efe[_0x4cb6('0x1e')])&&(_0x4cb6('0x49')==_0x463efe[_0x4cb6('0x8')]||_0x4cb6('0x26')==_0x463efe[_0x4cb6('0x8')])&&_0x463efe[_0x4cb6('0x3d')]()[_0x4cb6('0x30')](_0x5365af))[_0x4cb6('0x2c')](_0x4df09b=>_0x4c59d9[_0x4cb6('0x28')](_0x4df09b['head'])),_0x1191da=_0x158abf['getClosestSelectedImageElement'](_0x2e52e4[_0x4cb6('0x36')][_0x4cb6('0x2d')][_0x4cb6('0x48')]),_0x5365af=_0x2e52e4[_0x4cb6('0x36')]['createRangeOn'](_0x1191da),_0x24d375[_0x4cb6('0x3a')](),_0x2e52e4['commands']['get'](_0x4cb6('0x19'))[_0x4cb6('0x3a')](),_0x2e52e4[_0x4cb6('0x47')][_0x4cb6('0x42')](_0x4cb6('0x41'))[_0x4cb6('0x3a')](),_0x5db05f=_0x24d375['value'],_0x5db05f!=_0x41a190[_0x4cb6('0xa')])return _0x158abf['isInlineImage'](_0x1191da)&&_0x24d375[_0x4cb6('0x44')](_0x41a190[_0x4cb6('0xa')],_0x1191da)?(_0x3bd1e8({..._0x41a190,'setImageSizes':!0x1}),_0x1191da=_0x158abf[_0x4cb6('0x23')](_0x2e52e4[_0x4cb6('0x36')][_0x4cb6('0x2d')][_0x4cb6('0x48')]),void _0x4c59d9['markBlockFormat'](_0x1191da,{..._0xe61628,'commandReversedParams':[{'value':_0x5db05f||null,'setImageSizes':!0x1}]},[],_0x4cb6('0x49'))):void(_0x158abf[_0x4cb6('0x2b')](_0x1191da)?_0x4c59d9['markBlockFormat'](_0x1191da,_0xe61628,[],_0x4cb6('0x26')):_0x4c59d9[_0x4cb6('0x3f')](_0x5365af,_0xe61628,'imageStylePostApply'));});});for(const _0x53de10 of _0x2e52e4[_0x4cb6('0x14')][_0x4cb6('0x42')]('ImageStyleEditing')[_0x4cb6('0x1f')])_0x51bf40[_0x53de10[_0x4cb6('0x32')]]=_0x53de10[_0x4cb6('0x0')]['toLowerCase']();_0x4c59d9[_0x4cb6('0x29')]['registerCustomCallback'](_0x4cb6('0x22'),_0x4cb6('0x49'),'join',()=>!0x1),_0x4c59d9[_0x4cb6('0x29')]['registerCustomCallback'](_0x4cb6('0x22'),_0x4cb6('0x26'),'join',()=>!0x1),_0x4c59d9[_0x4cb6('0x29')][_0x4cb6('0x4a')](_0x4cb6('0x12'),_0x4cb6('0x26'),_0x4cb6('0x31'),()=>!0x1),_0x4c59d9[_0x4cb6('0x29')][_0x4cb6('0x4a')]('formatBlock','imageStylePreApply',_0x4cb6('0x2'),([_0x254d8f])=>{_0x158abf[_0x4cb6('0x39')](_0x254d8f[_0x4cb6('0x3c')]());}),_0x4c59d9[_0x4cb6('0x29')][_0x4cb6('0x4a')](_0x4cb6('0x22'),_0x4cb6('0x49'),_0x4cb6('0x1d'),(_0x3b5a59,_0x4a372c)=>{_0x4c59d9[_0x4cb6('0x29')][_0x4cb6('0x27')](_0x4cb6('0x22'),'',_0x4cb6('0x2'))(_0x3b5a59,{'commandName':_0x4a372c['commandName'],'commandParams':_0x4a372c['commandReversedParams']});}),_0x4c59d9['_suggestionFactory'][_0x4cb6('0x4a')](_0x4cb6('0x22'),_0x4cb6('0x49'),_0x4cb6('0x43'),function(_0x59c914,_0x3b0319){if(_0x15498c(_0x59c914,_0x3b0319))return[_0x59c914,_0x3b0319];if(_0x15498c(_0x3b0319,_0x59c914))return[_0x3b0319,_0x59c914];return null;});const _0x4c34eb=[{'type':_0x4cb6('0x22'),'subType':'imageStylePreApply'},{'type':_0x4cb6('0x1a'),'subType':_0x4cb6('0x15')},{'type':_0x4cb6('0x22'),'subType':'convertInlineImageToBlock'},{'type':_0x4cb6('0x1a'),'subType':'convertInlineImageToBlock'}];function _0x15498c(_0x171dbb,_0x3f9027){const _0x234c23=_0x4c34eb[_0x4cb6('0x4')](({type:_0x951e,subType:_0x24f949})=>_0x171dbb['type']==_0x951e&&_0x171dbb[_0x4cb6('0x8')]==_0x24f949),_0x10b998=_0x4c34eb[_0x4cb6('0x4')](({type:_0x526872,subType:_0x35d34f})=>_0x3f9027[_0x4cb6('0x1e')]==_0x526872&&_0x3f9027[_0x4cb6('0x8')]==_0x35d34f);if(_0x234c23<0x0||_0x10b998<0x0)return!0x1;const _0x28f0c7=_0x171dbb['getFirstRange'](),_0x38d095=_0x3f9027['getFirstRange']();if((0x0==_0x234c23||0x1==_0x234c23)&&0x2==_0x10b998&&_0x28f0c7['isIntersecting'](_0x38d095))return!0x0;if(0x2==_0x234c23&&0x3==_0x10b998){const _0x3a575e=_0x4c59d9[_0x4cb6('0x3b')](_0x28f0c7,_0x4cb6('0x1a'))['filter'](({suggestion:_0x464726,meta:_0x58a351})=>_0x58a351[_0x4cb6('0x1')]&&_0x4cb6('0x7')==_0x464726['subType']);if(_0x3a575e[_0x4cb6('0x21')]>0x1&&_0x38d095[_0x4cb6('0x3')][_0x4cb6('0x30')](_0x28f0c7[_0x4cb6('0x46')]))return!0x0;if(0x1==_0x3a575e[_0x4cb6('0x21')]&&(_0x28f0c7['start']['isEqual'](_0x38d095[_0x4cb6('0x3')])||_0x28f0c7[_0x4cb6('0x3')][_0x4cb6('0x30')](_0x38d095[_0x4cb6('0x46')])))return!0x0;}if(0x3==_0x234c23&&0x3==_0x10b998&&_0x28f0c7['start'][_0x4cb6('0x9')](_0x38d095['start'])){const _0x169580=_0x28f0c7[_0x4cb6('0x3')][_0x4cb6('0xf')],_0x4ec15b=_0x38d095[_0x4cb6('0x46')][_0x4cb6('0x2e')];return _0x158abf[_0x4cb6('0x2b')](_0x169580)&&_0x169580===_0x4ec15b;}return!0x1;}_0x2e52e4[_0x4cb6('0x36')][_0x4cb6('0x2d')][_0x4cb6('0x18')](()=>{let _0x32424e=!0x1;const _0x468160=Array[_0x4cb6('0x2a')](_0x2e52e4[_0x4cb6('0x36')][_0x4cb6('0x2d')][_0x4cb6('0x13')][_0x4cb6('0x10')]());for(const {name:_0x4ec899,data:_0x1a8e00}of _0x468160){const {group:_0x5c9177,type:_0x335526,subType:_0x4a33db,id:_0x3eeb45}=_0x4c59d9[_0x4cb6('0x35')](_0x4ec899);if('suggestion'==_0x5c9177&&_0x4c59d9[_0x4cb6('0x17')](_0x3eeb45)){if(_0x4cb6('0x22')==_0x335526&&('imageStylePreApply'==_0x4a33db||_0x4cb6('0x26')==_0x4a33db)){const _0x520588=_0x4c59d9[_0x4cb6('0x1b')](_0x3eeb45);if(_0x1a8e00['newRange']){const _0x50672d=_0x520588[_0x4cb6('0x3d')]()[_0x4cb6('0x3c')]();if(_0x158abf[_0x4cb6('0x2b')](_0x50672d))continue;_0x4c59d9[_0x4cb6('0x28')](_0x520588),_0x32424e=!0x0;}}if(_0x4cb6('0x1a')==_0x335526&&_0x4cb6('0x15')==_0x4a33db&&!_0x1a8e00[_0x4cb6('0x11')]){const _0x348236=_0x4c59d9['getSuggestion'](_0x3eeb45);_0x348236[_0x4cb6('0xb')]&&_0x348236[_0x4cb6('0xb')][_0x4cb6('0x33')]&&(_0x4c59d9[_0x4cb6('0x28')](_0x348236[_0x4cb6('0xb')]),_0x32424e=!0x0);}}}return _0x32424e;}),this['_registerLegacyDescription'](_0x51bf40);}[_0x4cb6('0x24')](_0x179d90){const _0x24cacf=this[_0x4cb6('0x1c')],_0xaf57ce=_0x24cacf['locale'];_0x24cacf[_0x4cb6('0x14')][_0x4cb6('0x42')](_0x4cb6('0x37'))[_0x4cb6('0x5')][_0x4cb6('0xc')](_0x1c28ff=>{if(_0x4cb6('0x22')!=_0x1c28ff[_0x4cb6('0x1e')]&&_0x4cb6('0x12')!=_0x1c28ff[_0x4cb6('0x1e')])return;const {data:_0x4683f0}=_0x1c28ff;if(!_0x4683f0||_0x4cb6('0xe')!=_0x4683f0[_0x4cb6('0x34')])return;const _0x644313=_0x4683f0[_0x4cb6('0x20')][0x0][_0x4cb6('0xa')];return _0x5d68b7('side'===_0x644313?_0x160d56(_0xaf57ce,_0x4cb6('0x45')):_0x179d90[_0x644313]||_0x644313);function _0x5d68b7(_0x46be04){return{'type':'format','content':_0x160d56(_0xaf57ce,_0x4cb6('0x38'),_0x46be04)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56be=['_trackChangesExecuted','value','_trackChangesValueDuringImport','dataInsert','enableCommand','high','execute','Users','editor','get','trackChanges','_handleImportedData','importWord','TrackChangesEditing','listenTo','plugins','collaboration_features','lowest','forEach'];(function(_0x2c63e7,_0x56be9b){const _0x39267a=function(_0x221f07){while(--_0x221f07){_0x2c63e7['push'](_0x2c63e7['shift']());}};_0x39267a(++_0x56be9b);}(_0x56be,0x11e));const _0x3926=function(_0x2c63e7,_0x56be9b){_0x2c63e7=_0x2c63e7-0x0;let _0x39267a=_0x56be[_0x2c63e7];return _0x39267a;};import{Plugin as _0x15a7a3}from'ckeditor5/src/core';export default class st extends _0x15a7a3{constructor(_0x5334fb){super(_0x5334fb),this[_0x3926('0x1')]=!0x1,this[_0x3926('0x12')]=!0x1;}['afterInit'](){const _0x4cccb5=this[_0x3926('0x7')],_0x5130ef=_0x4cccb5['commands'][_0x3926('0x8')]('importWord'),_0x169c50=_0x4cccb5['commands'][_0x3926('0x8')](_0x3926('0x9'));_0x5130ef&&(_0x5130ef['on'](_0x3926('0x5'),(_0x18cf93,[,_0x3ff517])=>{this[_0x3926('0x1')]=_0x169c50[_0x3926('0x0')],_0x3ff517[_0x3926('0xf')]['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':_0x3926('0x4')}),this['listenTo'](_0x5130ef,_0x3926('0x2'),this[_0x3926('0xa')]['bind'](this)),this[_0x3926('0xd')](_0x5130ef,'dataInsert',()=>{this[_0x3926('0x12')]&&(_0x169c50[_0x3926('0x5')](),this['_trackChangesExecuted']=!0x1);},{'priority':_0x3926('0x10')}),_0x4cccb5['plugins'][_0x3926('0x8')](_0x3926('0xc'))[_0x3926('0x3')](_0x3926('0xb')));}[_0x3926('0xa')](_0x1374ee,_0x26a7c3){const {suggestions:_0x5d23fe}=_0x26a7c3,_0x243e61=this['editor']['commands'][_0x3926('0x8')]('trackChanges'),_0x5750eb=_0x243e61['value'];this[_0x3926('0x1')]!==_0x5750eb&&(_0x243e61[_0x3926('0x5')](),this[_0x3926('0x12')]=!0x0),_0x5d23fe&&_0x5d23fe[_0x3926('0x11')](({id:_0x1a9c0d,type:_0x113e7d,author:_0x5e47ad,created_at:_0x51687a})=>{const _0xa3edba={'id':_0x1a9c0d,'type':_0x113e7d,'authorId':this[_0x3926('0x7')][_0x3926('0xe')][_0x3926('0x8')](_0x3926('0x6'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e47ad,'createdAt':_0x51687a?new Date(_0x51687a):new Date(),'source':_0x3926('0xb')}}};this[_0x3926('0x7')][_0x3926('0xe')]['get']('TrackChangesEditing')['_setSuggestionData'](_0xa3edba);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e26=['has','blockIndent','editor','commandName','format','TrackChangesEditing','_descriptionFactory','registerDescriptionCallback','indentBlock','outdent','registerAttributeLabel','*Outdent:*\x20%0','afterInit','outdentBlock','type','formatBlock','plugins','get','_registerLegacyDescription','locale','_registerBlockAttribute','getItemLabel','IndentEditing','FORMAT_INDENT','enableCommand','*Indent:*\x20%0','_enableDefaultAttributesIntegration','indent'];(function(_0x152ead,_0x2e269b){const _0x5dfaa5=function(_0x108f75){while(--_0x108f75){_0x152ead['push'](_0x152ead['shift']());}};_0x5dfaa5(++_0x2e269b);}(_0x2e26,0xbd));const _0x5dfa=function(_0x152ead,_0x2e269b){_0x152ead=_0x152ead-0x0;let _0x5dfaa5=_0x2e26[_0x152ead];return _0x5dfaa5;};import{Plugin as _0x5b494e}from'ckeditor5/src/core';import{getTranslation as _0x420009}from'../utils/common-translations';export default class ot extends _0x5b494e{[_0x5dfa('0x13')](){const _0x277bc0=this[_0x5dfa('0x9')],_0x3b2756=_0x277bc0[_0x5dfa('0x17')][_0x5dfa('0x18')](_0x5dfa('0xc'));if(_0x277bc0['plugins'][_0x5dfa('0x7')](_0x5dfa('0x1'))&&(_0x3b2756[_0x5dfa('0x3')](_0x5dfa('0x6')),_0x3b2756[_0x5dfa('0x3')](_0x5dfa('0x10'))),_0x277bc0[_0x5dfa('0x17')][_0x5dfa('0x7')]('IndentBlock'))for(const _0x3a08ae of[_0x5dfa('0xf'),_0x5dfa('0x14')])_0x3b2756[_0x5dfa('0x5')](_0x3a08ae);const _0x29a393=_0x277bc0['locale'];_0x3b2756[_0x5dfa('0x1b')](_0x5dfa('0x8')),_0x3b2756[_0x5dfa('0xd')][_0x5dfa('0x11')](_0x5dfa('0x8'),_0x420009(_0x29a393,_0x5dfa('0x2'))),this[_0x5dfa('0x19')]();}['_registerLegacyDescription'](){const _0x4422f0=this[_0x5dfa('0x9')],_0x23a910=_0x4422f0[_0x5dfa('0x1a')],_0x4f1a81=_0x4422f0['plugins'][_0x5dfa('0x18')](_0x5dfa('0xc'));_0x4f1a81[_0x5dfa('0xd')][_0x5dfa('0xe')](_0x578ff8=>{if(_0x5dfa('0x16')!=_0x578ff8[_0x5dfa('0x15')])return;const {data:_0x54158f}=_0x578ff8;if(!_0x54158f)return;if('indentBlock'!=_0x54158f[_0x5dfa('0xa')]&&'outdentBlock'!=_0x54158f[_0x5dfa('0xa')])return;const _0xdbccf6=_0x578ff8['getItems']()[0x0],_0x13eae0=_0x4f1a81[_0x5dfa('0xd')][_0x5dfa('0x0')](_0xdbccf6);return'indentBlock'==_0x54158f[_0x5dfa('0xa')]?{'type':_0x5dfa('0xb'),'content':_0x420009(_0x23a910,_0x5dfa('0x4'),_0x13eae0)}:'outdentBlock'==_0x54158f['commandName']?{'type':_0x5dfa('0xb'),'content':_0x420009(_0x23a910,_0x5dfa('0x12'),_0x13eae0)}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2557=['init','plugins','input','enableCommand','TrackChangesEditing','requires','get'];(function(_0x3d1c46,_0x25574a){var _0x341d56=function(_0x4dc607){while(--_0x4dc607){_0x3d1c46['push'](_0x3d1c46['shift']());}};_0x341d56(++_0x25574a);}(_0x2557,0x164));var _0x341d=function(_0x3d1c46,_0x25574a){_0x3d1c46=_0x3d1c46-0x0;var _0x341d56=_0x2557[_0x3d1c46];return _0x341d56;};import{Plugin as _0x1356e8}from'ckeditor5/src/core';import{Input as _0x1e53c5}from'ckeditor5/src/typing';export default class rt extends _0x1356e8{static get[_0x341d('0x6')](){return[_0x1e53c5];}[_0x341d('0x1')](){this['editor'][_0x341d('0x2')][_0x341d('0x0')](_0x341d('0x5'))[_0x341d('0x4')](_0x341d('0x3'));}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a57=['afterInit','plugins','*Remove\x20link*','type','locale','_enableDefaultAttributesIntegration','map','_registerLegacyDescription','unlink','toLowerCase','_descriptionFactory','get','manualDecorators','commands','newValue','key','commandParams','commandName','LinkEditing','has','format','link','registerAttributeLabel','editor','*Set\x20link:*\x20%0','label','formatInline','linkHref'];(function(_0xca0ba7,_0x5a571f){const _0x427f6f=function(_0x4f4ffa){while(--_0x4f4ffa){_0xca0ba7['push'](_0xca0ba7['shift']());}};_0x427f6f(++_0x5a571f);}(_0x5a57,0x99));const _0x427f=function(_0xca0ba7,_0x5a571f){_0xca0ba7=_0xca0ba7-0x0;let _0x427f6f=_0x5a57[_0xca0ba7];return _0x427f6f;};import{Plugin as _0x1fd8b6}from'ckeditor5/src/core';import{getTranslation as _0x4b43ba}from'../utils/common-translations';export default class at extends _0x1fd8b6{[_0x427f('0xf')](){const _0x417685=this[_0x427f('0xa')];if(!_0x417685[_0x427f('0x10')][_0x427f('0x6')](_0x427f('0x5')))return;const _0x90f0fe=_0x417685[_0x427f('0x10')][_0x427f('0x1a')]('TrackChangesEditing'),_0x3e0557=_0x417685[_0x427f('0x0')][_0x427f('0x1a')](_0x427f('0x8'));_0x90f0fe[_0x427f('0x14')](_0x427f('0x8'),[_0x427f('0xe'),..._0x3e0557[_0x427f('0x1b')][_0x427f('0x15')](_0x514ba7=>_0x514ba7['id'])]),_0x90f0fe['_enableDefaultAttributesIntegration'](_0x427f('0x17'));for(const _0x5df073 of _0x3e0557[_0x427f('0x1b')])_0x90f0fe[_0x427f('0x19')][_0x427f('0x9')](_0x5df073['id'],'link\x20('+_0x5df073[_0x427f('0xc')][_0x427f('0x18')]()+')');_0x90f0fe[_0x427f('0x19')]['registerDescriptionCallback'](_0x5eb614=>{if('attribute'!=_0x5eb614[_0x427f('0x12')])return;const {data:_0xbc9df3}=_0x5eb614;if(!_0xbc9df3||'linkHref'!=_0xbc9df3[_0x427f('0x2')])return;const _0xc875e7=_0xbc9df3[_0x427f('0x1')],_0x25e5a6=_0x417685[_0x427f('0x13')];return{'type':'format','content':null==_0xc875e7?_0x4b43ba(_0x25e5a6,_0x427f('0x11')):_0x4b43ba(_0x25e5a6,_0x427f('0xb'),'\x22'+_0xc875e7+'\x22')};}),this[_0x427f('0x16')]();}[_0x427f('0x16')](){const _0xd1d404=this[_0x427f('0xa')],_0x181ab7=_0xd1d404['locale'];_0xd1d404['plugins'][_0x427f('0x1a')]('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x440864=>{if(_0x427f('0xd')!=_0x440864['type'])return;const {data:_0x41ffae}=_0x440864;if(_0x41ffae){if(_0x427f('0x8')==_0x41ffae[_0x427f('0x4')]){const _0x1129ed=_0x41ffae[_0x427f('0x3')][0x0];return{'type':_0x427f('0x7'),'content':_0x4b43ba(_0x181ab7,_0x427f('0xb'),'\x22'+_0x1129ed+'\x22')};}return _0x427f('0x17')==_0x41ffae[_0x427f('0x4')]?{'type':_0x427f('0x7'),'content':_0x4b43ba(_0x181ab7,_0x427f('0x11'))}:void 0x0;}});}}
|