@ckeditor/ckeditor5-track-changes 39.0.1 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -0
- package/src/integrations/aiassistant.js +23 -0
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +23 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +18 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -439
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/font
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for font features.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesFont extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/font
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for font features.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesFont extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bae=['config','enableCommand','trim','fontBackgroundColor','document','has','TrackChangesEditing','toLowerCase','FontFamilyEditing','commandParams','plugins','change','*Reset\x20font\x20background\x20color*','afterInit','label','isCollapsed','fontColor.colors','value','get','normalizeSizeOptions','FontColorEditing','commandName','format','fontSize.options','getRanges','fontFamily','*Set\x20font\x20family:*\x20%0','locale','FontSizeEditing','fontColor','title','find','*Reset\x20font\x20color*','from','*Reset\x20font\x20size*','model','editor','markInlineFormat','*Set\x20font\x20background\x20color:*\x20%0','*Set\x20font\x20size:*\x20%0','_enableCommand','fontSize','registerDescriptionCallback'];(function(_0x5d02bf,_0x3baed1){const _0x3cbc56=function(_0x46298b){while(--_0x46298b){_0x5d02bf['push'](_0x5d02bf['shift']());}};_0x3cbc56(++_0x3baed1);}(_0x3bae,0x1eb));const _0x3cbc=function(_0x5d02bf,_0x3baed1){_0x5d02bf=_0x5d02bf-0x0;let _0x3cbc56=_0x3bae[_0x5d02bf];return _0x3cbc56;};import{Plugin as _0x286b2b}from'ckeditor5/src/core';import{normalizeColorOptions as _0xf0e98a}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x4fc8ae}from'./utils';import{getTranslation as _0x4574e4}from'../utils/common-translations';const eo=[{'pluginName':_0x3cbc('0xa'),'commandName':_0x3cbc('0x17')},{'pluginName':_0x3cbc('0x21'),'commandName':_0x3cbc('0x7')},{'pluginName':_0x3cbc('0x2'),'commandName':_0x3cbc('0xb')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x3cbc('0x1c')}];export default class W extends _0x286b2b{[_0x3cbc('0x26')](){const _0x563d9f=this[_0x3cbc('0x12')][_0x3cbc('0x9')];for(const {pluginName:_0x450b5e,commandName:_0x2417ab}of eo)this[_0x3cbc('0x12')][_0x3cbc('0x23')][_0x3cbc('0x1e')](_0x450b5e)&&this['_enableCommand'](_0x2417ab);this[_0x3cbc('0x12')][_0x3cbc('0x23')][_0x3cbc('0x0')](_0x3cbc('0x1f'))['_descriptionFactory'][_0x3cbc('0x18')](_0x4137f0=>{const _0x5d83bd=_0x563d9f['t'],{data:_0x240d69}=_0x4137f0;if(null!=_0x240d69){if('fontSize'==_0x240d69['commandName']){const _0x40d048=_0x240d69[_0x3cbc('0x22')][0x0]['value'];if(_0x40d048){const _0x14a5ae=_0x5d83bd(this[_0x3cbc('0x12')][_0x3cbc('0x23')]['get']('FontSize')[_0x3cbc('0x1')](this[_0x3cbc('0x12')][_0x3cbc('0x19')][_0x3cbc('0x0')](_0x3cbc('0x5')))['find'](_0x580039=>_0x580039[_0x3cbc('0x11')]==_0x40d048)[_0x3cbc('0xc')])[_0x3cbc('0x20')]();return{'type':_0x3cbc('0x4'),'content':_0x4574e4(_0x563d9f,_0x3cbc('0x15'),_0x14a5ae)};}return{'type':'format','content':_0x4574e4(_0x563d9f,_0x3cbc('0x10'))};}if('fontFamily'==_0x240d69[_0x3cbc('0x3')]){const _0x1574b8=_0x240d69[_0x3cbc('0x22')][0x0][_0x3cbc('0x2a')];return _0x1574b8?{'type':_0x3cbc('0x4'),'content':_0x4574e4(_0x563d9f,_0x3cbc('0x8'),_0x1574b8)}:{'type':'format','content':_0x4574e4(_0x563d9f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x240d69[_0x3cbc('0x3')]){const _0x3bb9ff=_0x240d69[_0x3cbc('0x22')][0x0][_0x3cbc('0x2a')];if(_0x3bb9ff){const _0x33f99e=_0xf0e98a(this[_0x3cbc('0x12')]['config'][_0x3cbc('0x0')](_0x3cbc('0x29')))[_0x3cbc('0xd')](_0x2211ae=>_0x2211ae['model']==_0x3bb9ff);let _0x322ea1=_0x3bb9ff,_0xc74985='';return _0x33f99e&&(_0x322ea1=_0x33f99e[_0x3cbc('0x27')],_0xc74985=_0x5d83bd(_0x322ea1)[_0x3cbc('0x20')]()),{'type':_0x3cbc('0x4'),'content':_0x4574e4(_0x563d9f,'*Set\x20font\x20color:*\x20%0',_0xc74985)['trim'](),'color':{'value':_0x3bb9ff,'title':_0xc74985||_0x322ea1}};}return{'type':'format','content':_0x4574e4(_0x563d9f,_0x3cbc('0xe'))};}if('fontBackgroundColor'==_0x240d69[_0x3cbc('0x3')]){const _0x5ebada=_0x240d69[_0x3cbc('0x22')][0x0]['value'];if(_0x5ebada){const _0x504841=_0xf0e98a(this['editor'][_0x3cbc('0x19')][_0x3cbc('0x0')]('fontBackgroundColor.colors'))[_0x3cbc('0xd')](_0x25ac6c=>_0x25ac6c[_0x3cbc('0x11')]==_0x5ebada);let _0x3cd3d6=_0x5ebada,_0x1f2899='';return _0x504841&&(_0x3cd3d6=_0x504841[_0x3cbc('0x27')],_0x1f2899=_0x5d83bd(_0x3cd3d6)[_0x3cbc('0x20')]()),{'type':'format','content':_0x4574e4(_0x563d9f,_0x3cbc('0x14'),_0x1f2899)[_0x3cbc('0x1b')](),'color':{'value':_0x5ebada,'title':_0x1f2899||_0x3cd3d6}};}return{'type':_0x3cbc('0x4'),'content':_0x4574e4(_0x563d9f,_0x3cbc('0x25'))};}}});}[_0x3cbc('0x16')](_0x292f5e){const _0x4b82c7=this[_0x3cbc('0x12')];_0x4b82c7[_0x3cbc('0x23')][_0x3cbc('0x0')](_0x3cbc('0x1f'))[_0x3cbc('0x1a')](_0x292f5e,(_0x2d8488,_0xfbad5e={})=>{const _0x5a5789=_0x4b82c7[_0x3cbc('0x11')][_0x3cbc('0x1d')]['selection'],_0x1e86d3=_0xfbad5e[_0x3cbc('0x2a')];_0x5a5789[_0x3cbc('0x28')]?_0x2d8488(_0xfbad5e):_0x4b82c7['model'][_0x3cbc('0x24')](()=>{const _0x2159bb=Array[_0x3cbc('0xf')](_0x5a5789[_0x3cbc('0x6')]());for(const _0x2d5a49 of _0x2159bb){const _0x3e3ef2=_0x1e86d3?[_0x2d5a49]:_0x4fc8ae(_0x292f5e,_0x2d5a49,_0x4b82c7[_0x3cbc('0x11')]);for(const _0x31cd79 of _0x3e3ef2)_0x4b82c7[_0x3cbc('0x23')][_0x3cbc('0x0')]('TrackChangesEditing')[_0x3cbc('0x13')](_0x31cd79,{'commandName':_0x292f5e,'commandParams':[{'value':_0x1e86d3}]});}});});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/formatpainter
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the Format Painter feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesFormatPainter extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/formatpainter
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the Format Painter feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesFormatPainter extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x63d3=['normalizeSizeOptions','isCollapsed','markInlineFormat','pasteFormat','*Set\x20format\x20to:*\x20%0','length','change','fontColor','config','word','title','modifySelection','getFirstPosition','getRanges','toLowerCase','commandName','format','createSelection','isBlock','getAttributes','afterInit','slice','getSelectedBlocks','plugins','boolean','commands','selection','_descriptionFactory','locale','push','isFormatting','fontSize','charAt','get','entries','fontSize.options','registerDescriptionCallback','find','model','createRange','join','getLastPosition','*Remove\x20all\x20formatting*','keys','copyFormat','toUpperCase','from','TrackChangesEditing','label','split','fontColor.colors','enableCommand'];(function(_0x5b23ad,_0x63d3b3){const _0x386be8=function(_0x194c8b){while(--_0x194c8b){_0x5b23ad['push'](_0x5b23ad['shift']());}};_0x386be8(++_0x63d3b3);}(_0x63d3,0x1e3));const _0x386b=function(_0x5b23ad,_0x63d3b3){_0x5b23ad=_0x5b23ad-0x0;let _0x386be8=_0x63d3[_0x5b23ad];return _0x386be8;};import{Plugin as _0x422c3c}from'ckeditor5/src/core';import{normalizeColorOptions as _0x448008}from'ckeditor5/src/ui';import{first as _0x4ce873}from'ckeditor5/src/utils';import{getTranslation as _0x42c77a}from'../utils/common-translations';export default class J extends _0x422c3c{[_0x386b('0x5')](){const _0x4d9289=this['editor'],_0x428246=_0x4d9289[_0x386b('0x17')],_0x4826eb=_0x428246['document'][_0x386b('0xb')],_0x422423=_0x4d9289[_0x386b('0x8')][_0x386b('0x12')](_0x386b('0x20')),_0x3e7a6d=_0x4d9289[_0x386b('0xd')],_0x119061=_0x4d9289[_0x386b('0xa')]['get'](_0x386b('0x1d')),_0x4bd2b9=_0x4d9289[_0x386b('0xa')][_0x386b('0x12')](_0x386b('0x28'));_0x119061&&_0x4bd2b9&&(_0x422423[_0x386b('0x24')](_0x386b('0x28'),(_0x29781d,_0xbc3032={})=>{const _0xce85de=_0xbc3032;_0x428246[_0x386b('0x2b')](()=>{const _0x2a2280=Array[_0x386b('0x1f')](_0x4826eb[_0x386b('0x32')]()),_0x480f72=_0x4826eb[_0x386b('0x26')]?[io(_0x428246,_0x4826eb)]:_0x2a2280,_0x2ff460=!!_0x4ce873(function*(_0x5ca914,_0xb0c07){const _0x512c0d=_0x1fb2e5=>!!_0x4ce873(function*(_0x1652ea,_0x9cb244){for(const [_0x2ac32f]of _0x1652ea[_0x386b('0x4')]()){const _0x2f391e=_0x9cb244['getAttributeProperties'](_0x2ac32f);_0x2f391e&&_0x2f391e[_0x386b('0xf')]&&(yield _0x2ac32f);}}(_0x1fb2e5,_0xb0c07));for(const _0x147830 of _0x5ca914[_0x386b('0x32')]())for(const _0x55ea19 of _0x147830['getItems']())!_0xb0c07[_0x386b('0x3')](_0x55ea19)&&_0x512c0d(_0x55ea19)&&(yield _0x55ea19);for(const _0x5b085a of _0x5ca914[_0x386b('0x7')]())_0x512c0d(_0x5b085a)&&(yield _0x5b085a);_0x512c0d(_0x5ca914)&&(yield _0x5ca914);}(_0x4826eb,_0x428246['schema']));if(_0x2ff460||0x0!==Object[_0x386b('0x1c')](_0xce85de)[_0x386b('0x2a')])for(const _0x247d65 of _0x480f72)_0x422423[_0x386b('0x27')](_0x247d65,{'commandName':'pasteFormat','commandParams':[_0xce85de]});});}),_0x422423[_0x386b('0xc')][_0x386b('0x15')](_0x2bd2f5=>{const {data:_0x2601b2}=_0x2bd2f5;if(_0x2601b2&&_0x386b('0x28')===_0x2601b2[_0x386b('0x0')]){const _0x5575c2=[],_0x1f47dc=_0x2601b2['commandParams'][0x0];for(const [_0x332e21,_0x37d4e0]of Object[_0x386b('0x13')](_0x1f47dc))_0x5575c2[_0x386b('0xe')](so(_0x4d9289,_0x332e21,_0x37d4e0));return _0x5575c2['length']?{'type':_0x386b('0x1'),'content':_0x42c77a(_0x3e7a6d,_0x386b('0x29'),_0x5575c2[_0x386b('0x19')](',\x20'))}:{'type':_0x386b('0x1'),'content':_0x42c77a(_0x3e7a6d,_0x386b('0x1b'))};}}),_0x4d9289[_0x386b('0x8')]['get'](_0x386b('0x20'))['enableCommand'](_0x386b('0x1d')));}}function io(_0x2418bb,_0xe0a68e){const _0x5d75b2=_0x2418bb[_0x386b('0x2')](_0xe0a68e);_0x2418bb[_0x386b('0x30')](_0x5d75b2,{'unit':_0x386b('0x2e'),'direction':'backward'});const _0x48fac2=_0x5d75b2[_0x386b('0x31')]();_0x2418bb[_0x386b('0x30')](_0x5d75b2,{'unit':_0x386b('0x2e'),'direction':'forward'});const _0x3d0569=_0x5d75b2[_0x386b('0x1a')]();return _0x2418bb[_0x386b('0x18')](_0x48fac2,_0x3d0569);}function so(_0x47ee9a,_0x2b8c01,_0x18d05d){const _0x2635e4=_0x47ee9a[_0x386b('0xd')]['t'],_0x2552e7=_0x2b8c01[_0x386b('0x22')](/(?=[A-Z])/)[_0x386b('0x19')]('\x20'),_0x15cf10=_0x2635e4(_0x2552e7[_0x386b('0x11')](0x0)[_0x386b('0x1e')]()+_0x2552e7[_0x386b('0x6')](0x1))[_0x386b('0x33')]();if(_0x386b('0x9')==typeof _0x18d05d)return _0x15cf10;if(_0x386b('0x2c')===_0x2b8c01||'fontBackgroundColor'===_0x2b8c01){const _0x232d7d=_0x448008(_0x47ee9a[_0x386b('0x2d')]['get'](_0x386b('0x23')))['find'](_0x938063=>_0x938063[_0x386b('0x17')]==_0x18d05d);return _0x15cf10+'\x20('+(_0x232d7d?_0x2635e4(_0x232d7d[_0x386b('0x21')])[_0x386b('0x33')]():_0x18d05d)+')';}if(_0x386b('0x10')===_0x2b8c01&&isNaN(parseFloat(_0x18d05d))){const _0x23bda0=_0x47ee9a[_0x386b('0x8')]['get']('FontSize')[_0x386b('0x25')](_0x47ee9a['config'][_0x386b('0x12')](_0x386b('0x14')))[_0x386b('0x16')](_0xda897b=>_0xda897b[_0x386b('0x17')]==_0x18d05d);return _0x15cf10+'\x20('+(_0x23bda0?_0x2635e4(_0x23bda0[_0x386b('0x2f')])[_0x386b('0x33')]():_0x18d05d)+')';}return _0x15cf10+'\x20('+_0x18d05d+')';}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/heading
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for heading feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHeading extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/heading
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for heading feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHeading extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4402=['getSelectedBlocks','parent','heading.options','model','registerElementLabel','ELEMENT_HEADING','commandName','blockName','enableCommand','filter','markBlockFormat','get','name','locale','change','editor','has','TrackChangesEditing','*Change\x20to:*\x20%0','heading','HeadingEditing','value','commandParams','schema','format','selection','plugins','from','config','_descriptionFactory','isObject','registerDescriptionCallback','formatBlock','ELEMENT_HEADING_CUSTOM'];(function(_0x56d364,_0x440270){const _0x4f87d4=function(_0x4807e1){while(--_0x4807e1){_0x56d364['push'](_0x56d364['shift']());}};_0x4f87d4(++_0x440270);}(_0x4402,0x1d1));const _0x4f87=function(_0x56d364,_0x440270){_0x56d364=_0x56d364-0x0;let _0x4f87d4=_0x4402[_0x56d364];return _0x4f87d4;};import{Plugin as _0x4c4336}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x470f84}from'./utils';import{getTranslation as _0x3f68ae}from'../utils/common-translations';export default class K extends _0x4c4336{['afterInit'](){const _0x48e9d2=this[_0x4f87('0x1a')],_0x1e0c8d=_0x48e9d2[_0x4f87('0x18')],_0x34327d=_0x48e9d2[_0x4f87('0x5')]['get'](_0x4f87('0xd'));if(!_0x48e9d2[_0x4f87('0x3')][_0x4f87('0x1b')](_0x4f87('0x1f')))return;const _0x48ec19=_0x48e9d2[_0x4f87('0x3')][_0x4f87('0x16')](_0x4f87('0x1c'));_0x48ec19[_0x4f87('0x13')](_0x4f87('0x1e'),(_0x3676be,_0x11ff64)=>{const _0xe9d71=_0x11ff64[_0x4f87('0x20')],_0x443c64=Array[_0x4f87('0x4')](this[_0x4f87('0x1a')][_0x4f87('0xe')]['document'][_0x4f87('0x2')][_0x4f87('0xb')]())[_0x4f87('0x14')](_0x225189=>function(_0x45f283,_0x4b9db3,_0x2c1c1e){return _0x2c1c1e['checkChild'](_0x45f283[_0x4f87('0xc')],_0x4b9db3)&&!_0x2c1c1e[_0x4f87('0x7')](_0x45f283)&&_0x45f283[_0x4f87('0x17')]!=_0x4b9db3;}(_0x225189,_0xe9d71,this['editor'][_0x4f87('0xe')][_0x4f87('0x0')]));_0x48e9d2[_0x4f87('0xe')][_0x4f87('0x19')](()=>{for(const _0x496dd0 of _0x443c64)_0x48ec19[_0x4f87('0x15')](_0x496dd0,{'commandName':_0x4f87('0x1e'),'commandParams':[_0x11ff64],'formatGroupId':_0x4f87('0x12')},_0x470f84(_0x496dd0));});});for(const _0x2680d8 of _0x34327d)'paragraph'!=_0x2680d8[_0x4f87('0xe')]&&_0x48ec19[_0x4f87('0x6')][_0x4f87('0xf')](_0x2680d8['model'],_0x4bfd70=>{const _0x229093=nn(_0x2680d8[_0x4f87('0xe')]);return null!==_0x229093?_0x41eaf4(_0x4bfd70,_0x229093):_0x1a3e4c(_0x4bfd70,_0x2680d8['title']);});function _0x41eaf4(_0x28989a,_0x3a434a){return _0x3f68ae(_0x1e0c8d,_0x4f87('0x10'),[_0x28989a,_0x3a434a]);}function _0x1a3e4c(_0x46eb4d,_0x122655){return _0x3f68ae(_0x1e0c8d,_0x4f87('0xa'),[_0x46eb4d,_0x122655]);}_0x48ec19[_0x4f87('0x6')][_0x4f87('0x8')](_0x1304b3=>{const {type:_0x23fd39,data:_0x26851b}=_0x1304b3;if(_0x4f87('0x9')==_0x23fd39&&_0x26851b&&_0x4f87('0x1e')==_0x26851b[_0x4f87('0x11')]){const _0x3a65d5=_0x26851b[_0x4f87('0x21')][0x0][_0x4f87('0x20')],_0xdd95a2=nn(_0x3a65d5);if(null!==_0xdd95a2)return{'type':_0x4f87('0x1'),'content':_0x3f68ae(_0x1e0c8d,_0x4f87('0x1d'),_0x41eaf4(0x1,_0xdd95a2))};const _0x4fdd4e=_0x34327d['find'](_0x50224c=>_0x50224c[_0x4f87('0xe')]===_0x3a65d5)['title'];return{'type':'format','content':_0x3f68ae(_0x1e0c8d,'*Change\x20to:*\x20%0',_0x1a3e4c(0x1,_0x4fdd4e))};}});}}function nn(_0x23c7b7){const _0xf52981=_0x23c7b7['match'](/^heading(\d+)$/);return _0xf52981?_0xf52981[0x1]:null;}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/highlight
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for highlight feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHighlight extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/highlight
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for highlight feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHighlight extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124e=['title','*Set\x20highlight:*\x20%0','getRanges','registerDescriptionCallback','change','FORMAT_HIGHLIGHT','format','afterInit','plugins','highlight.options','TrackChangesEditing','formatInline','get','getAttribute','commandName','value','backward','has','createRange','highlight','document','editor','push','find','getLastMatchingPosition','HighlightEditing','locale','toLowerCase','model','isCollapsed','selection','enableCommand','config'];(function(_0x145388,_0x124e66){const _0x186db4=function(_0x369aca){while(--_0x369aca){_0x145388['push'](_0x145388['shift']());}};_0x186db4(++_0x124e66);}(_0x124e,0xb9));const _0x186d=function(_0x145388,_0x124e66){_0x145388=_0x145388-0x0;let _0x186db4=_0x124e[_0x145388];return _0x186db4;};import{Plugin as _0x1eb08d}from'ckeditor5/src/core';import{getTranslation as _0x32b5b8}from'../utils/common-translations';import{getRangesWithAttribute as _0x4f31cd}from'./utils';export default class Q extends _0x1eb08d{[_0x186d('0x14')](){const _0x2a5887=this[_0x186d('0x1')];if(!_0x2a5887['plugins'][_0x186d('0x1e')](_0x186d('0x5')))return;const _0x40871e=_0x2a5887[_0x186d('0x15')][_0x186d('0x19')](_0x186d('0x17'));_0x40871e[_0x186d('0xb')](_0x186d('0x20'),(_0x43fb9b,_0x19ff1e={})=>{const _0x2890e1=_0x2a5887[_0x186d('0x8')][_0x186d('0x0')][_0x186d('0xa')],_0x2c4bb2=_0x2890e1['getAttribute'](_0x186d('0x20'));let _0x558675=_0x19ff1e[_0x186d('0x1c')],_0x24cd06=[];if(_0x2890e1[_0x186d('0x9')]){const _0x168ca0=_0x2890e1['getFirstPosition']();if(!_0x2890e1['hasAttribute'](_0x186d('0x20')))return void _0x43fb9b(_0x19ff1e);{const _0x302777=_0x10d022=>_0x10d022['item'][_0x186d('0x1a')](_0x186d('0x20'))===_0x2c4bb2,_0x23f01d=_0x168ca0[_0x186d('0x4')](_0x302777,{'direction':_0x186d('0x1d')}),_0x5aec5a=_0x168ca0[_0x186d('0x4')](_0x302777);_0x24cd06=[_0x2a5887[_0x186d('0x8')][_0x186d('0x1f')](_0x23f01d,_0x5aec5a)],_0x558675==_0x2c4bb2&&(_0x558675=null);}}else for(const _0x1291df of _0x2890e1[_0x186d('0xf')]())_0x558675?_0x24cd06[_0x186d('0x2')](_0x1291df):_0x24cd06[_0x186d('0x2')](..._0x4f31cd(_0x186d('0x20'),_0x1291df,_0x2a5887[_0x186d('0x8')]));_0x2a5887[_0x186d('0x8')][_0x186d('0x11')](()=>{for(const _0x33509c of _0x24cd06)_0x40871e['markInlineFormat'](_0x33509c,{'commandName':_0x186d('0x20'),'commandParams':[{'value':_0x558675}]});});});const _0x391ec3=_0x2a5887[_0x186d('0x6')];_0x40871e['_descriptionFactory'][_0x186d('0x10')](_0x1a80ea=>{const {type:_0x293752,data:_0x3913f8}=_0x1a80ea;if(_0x186d('0x18')==_0x293752&&_0x3913f8&&_0x186d('0x20')==_0x3913f8[_0x186d('0x1b')]){const _0x2bb55c=_0x391ec3['t'],_0x10d7d1=_0x3913f8['commandParams'][0x0][_0x186d('0x1c')];if(_0x10d7d1){const _0x456c92=_0x2a5887[_0x186d('0xc')][_0x186d('0x19')](_0x186d('0x16'))[_0x186d('0x3')](_0x2f60be=>_0x2f60be[_0x186d('0x8')]==_0x10d7d1),_0x37c301=_0x2bb55c(_0x456c92[_0x186d('0xd')])[_0x186d('0x7')]();return{'type':_0x186d('0x13'),'content':_0x32b5b8(_0x391ec3,_0x186d('0xe'),_0x37c301),'color':{'value':_0x456c92['color'],'title':_0x456c92[_0x186d('0xd')]}};}return{'type':_0x186d('0x13'),'content':_0x32b5b8(_0x391ec3,'*Remove\x20highlight*',_0x32b5b8(_0x391ec3,_0x186d('0x12')))};}});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/horizontalline
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHorizontalLine extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/horizontalline
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHorizontalLine extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3894=['get','elementToStructure','horizontalLine','_descriptionFactory','div','showSuggestionHighlights','high','plugins','ck-horizontal-line','createPositionAt','conversion','editor','afterInit','for','registerElementLabel','HorizontalLineEditing','TrackChangesEditing','ELEMENT_HORIZONTAL_LINE','has','addClass','locale','dataDowncast'];(function(_0x30a92b,_0x3894a8){const _0x5ae906=function(_0x15630a){while(--_0x15630a){_0x30a92b['push'](_0x30a92b['shift']());}};_0x5ae906(++_0x3894a8);}(_0x3894,0x130));const _0x5ae9=function(_0x30a92b,_0x3894a8){_0x30a92b=_0x30a92b-0x0;let _0x5ae906=_0x3894[_0x30a92b];return _0x5ae906;};import{Plugin as _0x58f8d9}from'ckeditor5/src/core';import{getTranslation as _0x2fdbc3}from'../utils/common-translations';export default class V extends _0x58f8d9{[_0x5ae9('0x10')](){const _0xec027=this[_0x5ae9('0xf')];if(!_0xec027[_0x5ae9('0xb')][_0x5ae9('0x0')](_0x5ae9('0x13')))return;_0xec027['plugins'][_0x5ae9('0x4')](_0x5ae9('0x14'))['enableCommand'](_0x5ae9('0x6'));const _0x73d43d=_0xec027[_0x5ae9('0xb')][_0x5ae9('0x4')](_0x5ae9('0x14')),_0x4b7483=_0xec027[_0x5ae9('0x2')];_0x73d43d[_0x5ae9('0x7')][_0x5ae9('0x12')](_0x5ae9('0x6'),_0x3d8eca=>_0x2fdbc3(_0x4b7483,_0x5ae9('0x15'),_0x3d8eca)),_0xec027[_0x5ae9('0xe')][_0x5ae9('0x11')](_0x5ae9('0x3'))[_0x5ae9('0x5')]({'model':_0x5ae9('0x6'),'view':(_0x14bca1,{writer:_0x2899e3,options:_0x532fd9})=>{if(!_0x532fd9[_0x5ae9('0x9')])return null;const _0x41ddeb=_0x2899e3['createContainerElement'](_0x5ae9('0x8')),_0x2e0035=_0x2899e3['createEmptyElement']('hr');return _0x2899e3[_0x5ae9('0x1')](_0x5ae9('0xc'),_0x41ddeb),_0x2899e3['insert'](_0x2899e3[_0x5ae9('0xd')](_0x41ddeb,0x0),_0x2e0035),_0x41ddeb;},'converterPriority':_0x5ae9('0xa')});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/htmlembed
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHtmlEmbed extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/htmlembed
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHtmlEmbed extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e53=['commandName','afterInit','registerDescriptionCallback','rawHtmlApi','htmlEmbed','document','registerElementLabel','get','getCustomProperty','editing','change','value','TrackChangesEditing','HtmlEmbed','*Change\x20%0\x20content*','rawHtml','markBlockFormat','model','plugins','enableCommand','selection','getSelectedElement','ELEMENT_HTML_EMBED','element','_descriptionFactory'];(function(_0x350108,_0x4e5301){const _0x4417fd=function(_0x5dfc25){while(--_0x5dfc25){_0x350108['push'](_0x350108['shift']());}};_0x4417fd(++_0x4e5301);}(_0x4e53,0x142));const _0x4417=function(_0x350108,_0x4e5301){_0x350108=_0x350108-0x0;let _0x4417fd=_0x4e53[_0x350108];return _0x4417fd;};import{Plugin as _0xf586d4}from'ckeditor5/src/core';import{getTranslation as _0x7c6fef}from'../utils/common-translations';export default class X extends _0xf586d4{[_0x4417('0x4')](){const _0x544a3f=this['editor'];if(!_0x544a3f[_0x4417('0x15')]['has'](_0x4417('0x10')))return;const _0x49a7ac=_0x544a3f[_0x4417('0x15')]['get'](_0x4417('0xf')),_0x3c3867=_0x544a3f['locale'],_0x3fff83=_0x544a3f[_0x4417('0xc')]['view'][_0x4417('0x8')][_0x4417('0x17')];_0x49a7ac[_0x4417('0x2')][_0x4417('0x9')](_0x4417('0x12'),_0x15a534=>_0x7c6fef(_0x3c3867,'ELEMENT_HTML_EMBED',_0x15a534)),_0x544a3f[_0x4417('0x15')][_0x4417('0xa')](_0x4417('0xf'))[_0x4417('0x16')]('htmlEmbed',(_0x22a7ef,_0x7fc62)=>{const _0xd9723d=_0x544a3f[_0x4417('0x14')],_0x58e01c=_0xd9723d[_0x4417('0x8')][_0x4417('0x17')];_0xd9723d[_0x4417('0xd')](()=>{const _0x2a8b3d=function(_0x121566){const _0xb9242c=_0x121566[_0x4417('0x18')]();if(_0xb9242c&&_0xb9242c['is'](_0x4417('0x1'),'rawHtml'))return _0x121566[_0x4417('0x18')]();return null;}(_0x58e01c);if(!_0x2a8b3d)return void _0x22a7ef(null);const _0x248fe9=_0x2a8b3d['getAttribute'](_0x4417('0xe'))||'';if(void 0x0===_0x7fc62)return;if(_0x7fc62===_0x248fe9)return;_0x49a7ac[_0x4417('0x13')](_0x2a8b3d,{'commandName':_0x4417('0x7'),'commandParams':[_0x7fc62]}),_0x3fff83[_0x4417('0x18')]()[_0x4417('0xb')](_0x4417('0x6'))['cancel']();});}),_0x49a7ac[_0x4417('0x2')][_0x4417('0x5')](_0x4bb865=>{const {data:_0x15f631}=_0x4bb865;if(_0x15f631&&_0x4417('0x7')==_0x15f631[_0x4417('0x3')]){const _0xd2b495=_0x7c6fef(_0x3c3867,_0x4417('0x0'));return{'type':'format','content':_0x7c6fef(_0x3c3867,_0x4417('0x11'),_0xd2b495)};}});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/image
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesImage extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/image
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImage extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x41a5=['discard','caption','*Remove\x20image\x20text\x20alternative*','model','getAttribute','markDeletion','deletion','imageStyle','toNext','insertion','createRangeOn','getSuggestion','ImageEditing','end','width','convertInlineImageToBlock','accept','afterInit','getContainedElement','registerPostFixer','ImageUploadEditing','imageStylePostApply','isCollapsed','toPrevious','isBefore','isIntersecting','*Set\x20image\x20text\x20alternative:*\x20%0','type','discardSuggestion','resizeImage','_splitMarkerName','*Set\x20image\x20width:*\x20%0','fromPosition','document','getSuggestionCallback','commandParams','refresh','from','plugins','nodeAfter','findIndex','normalizedStyles','get','head','length','selection','subType','insertImage','title','enableCommand','_suggestionFactory','imageTextAlternative','locale','value','getClosestSelectedImageElement','format','getCaptionFromImageModelElement','imageBlock','ImageStyleEditing','newValue','ImageUtils','commandName','markBlockFormat','removeObject','_findSuggestions','element','imageCaption','getSuggestions','previous','next','join','ImageCaptionEditing','toggleImageCaption','FORMAT_SIDE_IMAGE','convertBlockImageToInline','suggestion','differ','commands','isInlineImage','ELEMENT_INLINE_IMAGE','name','forward','registerElementLabel','chain','ImageResize','getNearestSelectionRange','ELEMENT_IMAGE','hasSuggestion','schema','has','isBlockImage','forceDefaultExecution','alt','detach','registerCustomCallback','shouldConvertImageType','formatBlock','forEach','toLowerCase','newRange','ImageBlockEditing','side','author','createRange','filter','imageStylePreApply','_descriptionFactory','getFirstRange','ImageTextAlternativeEditing','registerDescriptionCallback','ImageInlineEditing','start','TrackChangesEditing','change','addObject','formatInline','ELEMENT_CAPTION','backward','isEqual','imageTypeInline','imageTypeBlock','find','isInContent','markInsertion'];(function(_0x3b890e,_0x41a5bd){const _0x1989ac=function(_0x41a236){while(--_0x41a236){_0x3b890e['push'](_0x3b890e['shift']());}};_0x1989ac(++_0x41a5bd);}(_0x41a5,0x15e));const _0x1989=function(_0x3b890e,_0x41a5bd){_0x3b890e=_0x3b890e-0x0;let _0x1989ac=_0x41a5[_0x3b890e];return _0x1989ac;};import{Plugin as _0x1b149d}from'ckeditor5/src/core';import{LivePosition as _0x55ab23}from'ckeditor5/src/engine';import{uid as _0x5170e0}from'ckeditor5/src/utils';import{getTranslation as _0x45eb9e}from'../utils/common-translations';export default class X extends _0x1b149d{[_0x1989('0x27')](){const _0x519371=this['editor'];if(!_0x519371[_0x1989('0x3c')]['has'](_0x1989('0x22')))return;const _0x140b7f=_0x519371[_0x1989('0x3c')]['get'](_0x1989('0xa')),_0xe9a30f=_0x519371['plugins'][_0x1989('0x40')](_0x1989('0x52')),_0x1a4ce2={},_0x515592=_0x519371[_0x1989('0x4a')];if(_0x140b7f[_0x1989('0x47')](_0x1989('0x45')),_0x140b7f[_0x1989('0x4')]['registerElementLabel'](_0x1989('0x4f'),_0x19b3b3=>_0x45eb9e(_0x515592,_0x1989('0x6c'),_0x19b3b3)),_0x140b7f[_0x1989('0x4')]['registerElementLabel']('imageInline',_0x14f08a=>_0x45eb9e(_0x515592,_0x1989('0x65'),_0x14f08a)),_0x140b7f['_descriptionFactory'][_0x1989('0x68')]('caption',()=>_0x45eb9e(_0x515592,_0x1989('0xe'))),_0x519371[_0x1989('0x3c')][_0x1989('0x6f')](_0x1989('0x2a'))&&_0x140b7f[_0x1989('0x47')]('uploadImage'),_0x519371[_0x1989('0x3c')]['has'](_0x1989('0x7a'))&&_0x519371['plugins'][_0x1989('0x6f')](_0x1989('0x8'))&&(_0x140b7f[_0x1989('0x47')](_0x1989('0x11'),(_0x120aa2,_0x2a68b9)=>{const _0x3c193f=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]);_0x519371['model'][_0x1989('0xb')](()=>{_0x140b7f[_0x1989('0x54')](_0x3c193f,{'commandName':_0x1989('0x11'),'commandParams':[_0x2a68b9]},[],'convertBlockImageToInline');});}),_0x140b7f[_0x1989('0x47')](_0x1989('0x12'),(_0x58e8c7,_0x3ff749)=>{_0x519371[_0x1989('0x19')][_0x1989('0xb')](_0x5e19c2=>{let _0xc24ce0=_0xe9a30f[_0x1989('0x4c')](_0x519371['model'][_0x1989('0x37')][_0x1989('0x43')]),_0x1cb5ac=_0x5e19c2[_0x1989('0x20')](_0xc24ce0);const _0x4314be=_0x55ab23['fromPosition'](_0x1cb5ac[_0x1989('0x9')],_0x1989('0x2d')),_0x3f5a8b=_0x55ab23[_0x1989('0x36')](_0x1cb5ac[_0x1989('0x23')],_0x1989('0x1e'));_0x140b7f[_0x1989('0x71')](()=>_0x58e8c7(_0x3ff749)),_0xc24ce0=_0xe9a30f[_0x1989('0x4c')](_0x519371['model'][_0x1989('0x37')][_0x1989('0x43')]),_0x1cb5ac=_0x5e19c2[_0x1989('0x20')](_0xc24ce0);const _0x133fd8=_0x5e19c2[_0x1989('0x1')](_0x4314be,_0x3f5a8b);_0x4314be[_0x1989('0x73')](),_0x3f5a8b[_0x1989('0x73')](),_0x140b7f[_0x1989('0x54')](_0xc24ce0,{'commandName':'imageTypeInline','commandParams':[]},[],_0x1989('0x25')),_0x133fd8[_0x1989('0x9')][_0x1989('0x2e')](_0x1cb5ac['start'])&&_0x140b7f[_0x1989('0x15')](_0x5e19c2[_0x1989('0x1')](_0x133fd8['start'],_0x1cb5ac[_0x1989('0x9')]),_0x1989('0x25')),_0x1cb5ac[_0x1989('0x23')]['isBefore'](_0x133fd8['end'])&&_0x140b7f['markInsertion'](_0x5e19c2[_0x1989('0x1')](_0x1cb5ac[_0x1989('0x23')],_0x133fd8['end']),_0x1989('0x25'));});}),_0x140b7f[_0x1989('0x48')]['registerCustomCallback'](_0x1989('0x76'),_0x1989('0x25'),_0x1989('0x5c'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),'convertInlineImageToBlock',_0x1989('0x26'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),'convertInlineImageToBlock','discard',_0x140b7f[_0x1989('0x48')]['getSuggestionCallback'](_0x1989('0x76'),'',_0x1989('0x26'))),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')]('insertion','convertInlineImageToBlock','join',()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x1f'),_0x1989('0x25'),'discard',([_0x3666ac])=>{const _0x889e7a=_0x140b7f['_suggestionFactory']['getSuggestionCallback'](_0x1989('0x1f'),'',_0x1989('0x16'));let _0xb8dad1=_0x3666ac[_0x1989('0x9')],_0x52ebcc=_0x3666ac[_0x1989('0x23')];const _0x2eb2cf=_0x519371[_0x1989('0x19')][_0x1989('0x6e')][_0x1989('0x6b')](_0xb8dad1,_0x1989('0xf')),_0x387d37=_0x519371[_0x1989('0x19')]['schema'][_0x1989('0x6b')](_0x52ebcc,_0x1989('0x67'));_0x2eb2cf['isCollapsed']&&(_0xb8dad1=_0x2eb2cf['start']),_0x387d37[_0x1989('0x2c')]&&(_0x52ebcc=_0x387d37['end']),_0x889e7a([_0x519371['model'][_0x1989('0x1')](_0xb8dad1,_0x52ebcc)]);}),_0x140b7f[_0x1989('0x48')]['registerCustomCallback'](_0x1989('0x76'),_0x1989('0x25'),'chain',_0x1bdb5d),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x1f'),'convertInlineImageToBlock',_0x1989('0x69'),_0x1bdb5d)),_0x519371[_0x1989('0x3c')][_0x1989('0x6f')](_0x1989('0x5d'))&&(_0x140b7f['enableCommand'](_0x1989('0x5e'),(_0x5b794d,_0x413a6f)=>{const _0x3baa06=_0x519371[_0x1989('0x3c')]['get']('ImageCaptionUtils');let _0x460295=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),_0x5e3bab=_0x3baa06[_0x1989('0x4e')](_0x460295);_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{if(_0x5e3bab)return void _0x140b7f[_0x1989('0x1b')](_0x519371[_0x1989('0x19')][_0x1989('0x20')](_0x5e3bab));const _0x9e141b=_0xe9a30f[_0x1989('0x70')](_0x460295);_0x5b794d(_0x413a6f),_0x460295=_0xe9a30f['getClosestSelectedImageElement'](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),_0x5e3bab=_0x3baa06[_0x1989('0x4e')](_0x460295),_0x140b7f['markInsertion'](_0x519371[_0x1989('0x19')][_0x1989('0x20')](_0x5e3bab),_0x9e141b?null:_0x1989('0x58'));});}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')]('insertion',_0x1989('0x58'),_0x1989('0x69'),_0x1bdb5d)),_0x519371[_0x1989('0x3c')]['has']('ImageStyleEditing')){_0x140b7f[_0x1989('0x47')]('imageStyle',(_0x7e6504,_0x16276d)=>{const _0x31f24e=_0x519371[_0x1989('0x3c')][_0x1989('0x40')]('Users')['me'],_0x53088d=_0x519371[_0x1989('0x63')]['get']('imageStyle');let _0xaf23ca=_0xe9a30f['getClosestSelectedImageElement'](_0x519371[_0x1989('0x19')]['document']['selection']),_0x1e6df5=_0x519371[_0x1989('0x19')][_0x1989('0x20')](_0xaf23ca),_0x214871=_0x53088d[_0x1989('0x4b')];if(_0x214871==_0x16276d[_0x1989('0x4b')])return;const _0x34e0a1={'commandName':_0x1989('0x1d'),'commandParams':[_0x16276d],'formatGroupId':_0x5170e0()};_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{if(_0x140b7f[_0x1989('0x59')]()['filter'](_0x470d65=>_0x470d65[_0x1989('0x14')]&&_0x31f24e==_0x470d65[_0x1989('0x0')]&&(_0x1989('0x76')==_0x470d65['type']||_0x1989('0xd')==_0x470d65[_0x1989('0x31')])&&(_0x1989('0x3')==_0x470d65[_0x1989('0x44')]||'imageStylePostApply'==_0x470d65[_0x1989('0x44')])&&_0x470d65[_0x1989('0x5')]()['isEqual'](_0x1e6df5))[_0x1989('0x77')](_0x428b4d=>_0x140b7f[_0x1989('0x32')](_0x428b4d[_0x1989('0x41')])),_0xaf23ca=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),_0x1e6df5=_0x519371['model']['createRangeOn'](_0xaf23ca),_0x53088d[_0x1989('0x3a')](),_0x519371[_0x1989('0x63')][_0x1989('0x40')](_0x1989('0x11'))[_0x1989('0x3a')](),_0x519371[_0x1989('0x63')][_0x1989('0x40')]('imageTypeBlock')[_0x1989('0x3a')](),_0x214871=_0x53088d[_0x1989('0x4b')],_0x214871!=_0x16276d[_0x1989('0x4b')])return _0xe9a30f[_0x1989('0x64')](_0xaf23ca)&&_0x53088d[_0x1989('0x75')](_0x16276d[_0x1989('0x4b')],_0xaf23ca)?(_0x7e6504(_0x16276d),_0xaf23ca=_0xe9a30f[_0x1989('0x4c')](_0x519371[_0x1989('0x19')][_0x1989('0x37')][_0x1989('0x43')]),void _0x140b7f[_0x1989('0x54')](_0xaf23ca,{..._0x34e0a1,'commandReversedParams':[{'value':_0x214871||null}]},[],_0x1989('0x3'))):void(_0xe9a30f[_0x1989('0x70')](_0xaf23ca)?_0x140b7f[_0x1989('0x54')](_0xaf23ca,_0x34e0a1,[],'imageStylePostApply'):_0x140b7f['markInlineFormat'](_0x1e6df5,_0x34e0a1,_0x1989('0x2b')));});});for(const _0x3c21bb of _0x519371['plugins'][_0x1989('0x40')](_0x1989('0x50'))[_0x1989('0x3f')])_0x1a4ce2[_0x3c21bb[_0x1989('0x66')]]=_0x3c21bb[_0x1989('0x46')][_0x1989('0x78')]();_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),_0x1989('0x3'),_0x1989('0x5c'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),_0x1989('0x2b'),_0x1989('0x5c'),()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0xd'),_0x1989('0x2b'),'join',()=>{}),_0x140b7f['_suggestionFactory']['registerCustomCallback'](_0x1989('0x76'),_0x1989('0x3'),'accept',()=>{}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),_0x1989('0x3'),'discard',(_0x480b93,_0x36dd5b)=>{_0x140b7f[_0x1989('0x48')][_0x1989('0x38')](_0x1989('0x76'),'',_0x1989('0x26'))(_0x480b93,{'commandName':_0x36dd5b[_0x1989('0x53')],'commandParams':_0x36dd5b['commandReversedParams']});}),_0x140b7f[_0x1989('0x48')][_0x1989('0x74')](_0x1989('0x76'),'imageStylePreApply',_0x1989('0x69'),_0x1bdb5d);}const _0x522e51=[{'type':_0x1989('0x76'),'subType':_0x1989('0x3')},{'type':_0x1989('0x1f'),'subType':_0x1989('0x58')},{'type':_0x1989('0x76'),'subType':_0x1989('0x25')},{'type':'insertion','subType':_0x1989('0x25')}];function _0x845d14(_0x45424b,_0x367c0c){const _0x8c6dbe=_0x522e51['findIndex'](({type:_0x518089,subType:_0x803e92})=>_0x45424b[_0x1989('0x31')]==_0x518089&&_0x45424b[_0x1989('0x44')]==_0x803e92),_0x49ce2d=_0x522e51[_0x1989('0x3e')](({type:_0x4d9cd2,subType:_0x26eb2f})=>_0x367c0c['type']==_0x4d9cd2&&_0x367c0c['subType']==_0x26eb2f);if(_0x8c6dbe<0x0||_0x49ce2d<0x0)return!0x1;const _0x239971=_0x45424b[_0x1989('0x5')](),_0x56ea54=_0x367c0c[_0x1989('0x5')]();if((0x0==_0x8c6dbe||0x1==_0x8c6dbe)&&0x2==_0x49ce2d&&_0x239971[_0x1989('0x2f')](_0x56ea54))return!0x0;if(0x2==_0x8c6dbe&&0x3==_0x49ce2d){const _0x5c99e0=_0x140b7f[_0x1989('0x56')](_0x239971,_0x1989('0x1f'))[_0x1989('0x2')](({suggestion:_0x457950,meta:_0x34295b})=>_0x34295b['isOwn']&&_0x1989('0x25')==_0x457950[_0x1989('0x44')]);if(_0x5c99e0[_0x1989('0x42')]>0x1&&_0x56ea54[_0x1989('0x23')][_0x1989('0x10')](_0x239971[_0x1989('0x9')]))return!0x0;if(0x1==_0x5c99e0['length']&&(_0x239971['start'][_0x1989('0x10')](_0x56ea54[_0x1989('0x23')])||_0x239971['end'][_0x1989('0x10')](_0x56ea54['start'])))return!0x0;}if(0x3==_0x8c6dbe&&0x3==_0x49ce2d&&_0x239971[_0x1989('0x9')][_0x1989('0x2e')](_0x56ea54[_0x1989('0x9')])){const _0x1e206b=_0x239971[_0x1989('0x23')][_0x1989('0x3d')],_0x5b0748=_0x56ea54['start']['nodeBefore'];return _0xe9a30f[_0x1989('0x70')](_0x1e206b)&&_0x1e206b===_0x5b0748;}return!0x1;}function _0x1bdb5d(_0x17f308,_0x467e6f){return _0x845d14(_0x17f308,_0x467e6f)?[_0x17f308,_0x467e6f]:_0x845d14(_0x467e6f,_0x17f308)?[_0x467e6f,_0x17f308]:null;}_0x519371[_0x1989('0x19')]['document'][_0x1989('0x29')](()=>{let _0x1e1db4=!0x1;const _0x530e97=Array[_0x1989('0x3b')](_0x519371['model'][_0x1989('0x37')][_0x1989('0x62')]['getChangedMarkers']());for(const {name:_0x1f878c,data:_0x2348f7}of _0x530e97){const {group:_0x50f9e2,type:_0x2853e4,subType:_0x1af356,id:_0x5daedc}=_0x140b7f[_0x1989('0x34')](_0x1f878c);if(_0x1989('0x61')==_0x50f9e2&&_0x140b7f[_0x1989('0x6d')](_0x5daedc)){if(_0x1989('0x76')==_0x2853e4&&(_0x1989('0x3')==_0x1af356||_0x1989('0x2b')==_0x1af356)){const _0x5e0ffa=_0x140b7f['getSuggestion'](_0x5daedc);if(_0x2348f7['newRange']){const _0xeafd0f=_0x5e0ffa[_0x1989('0x5')]()[_0x1989('0x28')]();if(_0xe9a30f[_0x1989('0x70')](_0xeafd0f))continue;_0x140b7f['discardSuggestion'](_0x5e0ffa),_0x1e1db4=!0x0;}}if(_0x1989('0x1f')==_0x2853e4&&_0x1989('0x58')==_0x1af356&&!_0x2348f7[_0x1989('0x79')]){const _0x5b2905=_0x140b7f[_0x1989('0x21')](_0x5daedc);_0x5b2905[_0x1989('0x5b')]&&_0x5b2905[_0x1989('0x5b')][_0x1989('0x14')]&&(_0x140b7f[_0x1989('0x32')](_0x5b2905[_0x1989('0x5b')]),_0x1e1db4=!0x0);}}}return _0x1e1db4;}),_0x519371['plugins'][_0x1989('0x6f')](_0x1989('0x6a'))&&_0x140b7f[_0x1989('0x47')]('resizeImage',(_0x4d07b5,_0x45eb1d)=>{const _0x546db3=_0xe9a30f['getClosestSelectedImageElement'](_0x519371['model'][_0x1989('0x37')][_0x1989('0x43')]);_0x546db3[_0x1989('0x1a')]('width')!=_0x45eb1d['width']&&_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{_0x140b7f[_0x1989('0x54')](_0x546db3,{'commandName':_0x1989('0x33'),'commandParams':[_0x45eb1d]});});}),_0x519371[_0x1989('0x3c')][_0x1989('0x6f')](_0x1989('0x6'))&&_0x140b7f[_0x1989('0x47')](_0x1989('0x49'),(_0x2bef86,_0x83ce54)=>{const _0x29fc21=_0xe9a30f[_0x1989('0x4c')](_0x519371['model'][_0x1989('0x37')]['selection']);(_0x29fc21['hasAttribute']('alt')?_0x29fc21[_0x1989('0x1a')](_0x1989('0x72')):'')!=_0x83ce54[_0x1989('0x51')]&&_0x519371[_0x1989('0x19')][_0x1989('0xb')](()=>{_0x140b7f[_0x1989('0x54')](_0x29fc21,{'commandName':_0x1989('0x49'),'commandParams':[_0x83ce54]});});}),_0x140b7f[_0x1989('0x4')][_0x1989('0x7')](_0x2c5b67=>{if(!!_0x522e51[_0x1989('0x13')](({type:_0x5a1f43,subType:_0x57b540})=>_0x2c5b67[_0x1989('0x31')]==_0x5a1f43&&_0x2c5b67[_0x1989('0x44')]==_0x57b540))return _0x2c5b67[_0x1989('0x5a')]?{}:void 0x0;}),_0x140b7f[_0x1989('0x4')][_0x1989('0x7')](_0x4dc5a8=>{if(_0x1989('0x1f')==_0x4dc5a8[_0x1989('0x31')]||_0x1989('0x1c')==_0x4dc5a8[_0x1989('0x31')]){const _0x44f200=_0x4dc5a8[_0x1989('0x28')]();if(_0x44f200&&_0x44f200['is'](_0x1989('0x57'),_0x1989('0x17')))return{'type':_0x1989('0x1f')==_0x4dc5a8[_0x1989('0x31')]?_0x1989('0xc'):_0x1989('0x55'),'element':_0x44f200,'quantity':0x1};}}),_0x140b7f[_0x1989('0x4')]['registerDescriptionCallback'](_0x2d2cdf=>_0x1989('0x76')==_0x2d2cdf[_0x1989('0x31')]&&'convertInlineImageToBlock'==_0x2d2cdf[_0x1989('0x44')]?{'type':_0x1989('0x4d'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d2cdf[_0x1989('0x31')]&&_0x1989('0x60')==_0x2d2cdf[_0x1989('0x44')]?{'type':_0x1989('0x4d'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x140b7f[_0x1989('0x4')]['registerDescriptionCallback'](_0x4d2523=>{const {data:_0x4f4676}=_0x4d2523;if(_0x4f4676){if(_0x1989('0x1d')==_0x4f4676[_0x1989('0x53')]){const _0x35afb8=_0x4f4676[_0x1989('0x39')][0x0]['value'];return _0x4de1cc(_0x1989('0x7b')===_0x35afb8?_0x45eb9e(_0x515592,_0x1989('0x5f')):_0x1a4ce2[_0x35afb8]||_0x35afb8);}if(_0x1989('0x49')==_0x4f4676['commandName']){const _0x4e248b=_0x4f4676[_0x1989('0x39')][0x0][_0x1989('0x51')];return _0x4e248b?{'type':'format','content':_0x45eb9e(_0x515592,_0x1989('0x30'),'\x22'+_0x4e248b+'\x22')}:{'type':'format','content':_0x45eb9e(_0x515592,_0x1989('0x18'))};}if(_0x1989('0x33')==_0x4f4676['commandName']){const _0x361f1e=_0x4f4676['commandParams'][0x0][_0x1989('0x24')];return _0x361f1e?{'type':_0x1989('0x4d'),'content':_0x45eb9e(_0x515592,_0x1989('0x35'),_0x361f1e)}:{'type':'format','content':_0x45eb9e(_0x515592,'*Reset\x20image\x20width*')};}}function _0x4de1cc(_0x11312e){return{'type':_0x1989('0x4d'),'content':_0x45eb9e(_0x515592,'*Format:*\x20%0',_0x11312e)};}});}}
|
|
23
|
+
const _0x3443=['isBefore','getSuggestionCallback','editor','subType','deletion','imageCaption','markInlineFormat','afterInit','plugins','refresh','isInContent','registerPostFixer','join','getClosestSelectedImageElement','getAttribute','imageStylePostApply','Inline\x20image\x20to\x20block\x20image','markBlockFormat','ImageStyleEditing','registerCustomCallback','registerElementLabel','format','filter','ELEMENT_CAPTION','isBlockImage','differ','shouldConvertImageType','enableCommand','imageTextAlternative','suggestion','imageStyle','next','ImageTextAlternativeEditing','head','type','imageStylePreApply','markInsertion','getChangedMarkers','model','detach','discard','getContainedElement','*Set\x20image\x20width:*\x20%0','insertion','accept','commandName','ImageCaptionUtils','ELEMENT_IMAGE','_splitMarkerName','toPrevious','hasSuggestion','start','forceDefaultExecution','nodeAfter','*Format:*\x20%0','from','forEach','Users','convertInlineImageToBlock','backward','discardSuggestion','getFirstRange','ImageCaptionEditing','selection','caption','_findSuggestions','formatBlock','document','setImageNaturalSizeAttributes','chain','createRange','fromPosition','change','getNearestSelectionRange','convertBlockImageToInline','getCaptionFromImageModelElement','getSuggestions','Block\x20image\x20to\x20inline\x20image','previous','isOwn','registerDescriptionCallback','forward','alt','newValue','resizedWidth','hasAttribute','get','uploadImage','end','schema','has','isCollapsed','element','resizeImage','locale','findIndex','toNext','find','nodeBefore','createRangeOn','ImageInlineEditing','isInlineImage','getSuggestion','newRange','ImageBlockEditing','toLowerCase','*Reset\x20image\x20width*','length','_suggestionFactory','value','imageTypeInline','commandReversedParams','*Remove\x20image\x20text\x20alternative*','side','formatInline','isEqual','commands','imageInline','markDeletion','_descriptionFactory'];(function(_0x468396,_0x344356){const _0x58ddae=function(_0x206f23){while(--_0x206f23){_0x468396['push'](_0x468396['shift']());}};_0x58ddae(++_0x344356);}(_0x3443,0x18c));const _0x58dd=function(_0x468396,_0x344356){_0x468396=_0x468396-0x0;let _0x58ddae=_0x3443[_0x468396];return _0x58ddae;};import{Plugin as _0x59c4a4}from'ckeditor5/src/core';import{LivePosition as _0x5cfbca}from'ckeditor5/src/engine';import{uid as _0x1f19d4}from'ckeditor5/src/utils';import{getTranslation as _0x1d6875}from'../utils/common-translations';export default class Y extends _0x59c4a4{[_0x58dd('0x5b')](){const _0x18ebb7=this[_0x58dd('0x56')];if(!_0x18ebb7[_0x58dd('0x5c')]['has']('ImageEditing'))return;const _0x28d39e=_0x18ebb7['plugins'][_0x58dd('0x32')]('TrackChangesEditing'),_0xbfde1f=_0x18ebb7[_0x58dd('0x5c')]['get']('ImageUtils'),_0x1b6fac={},_0xffdc90=_0x18ebb7[_0x58dd('0x3a')];if(_0x28d39e['enableCommand']('insertImage'),_0x28d39e['_descriptionFactory'][_0x58dd('0x68')]('imageBlock',_0x16e1d4=>_0x1d6875(_0xffdc90,_0x58dd('0xb'),_0x16e1d4)),_0x28d39e[_0x58dd('0x53')][_0x58dd('0x68')](_0x58dd('0x51'),_0x2b7732=>_0x1d6875(_0xffdc90,'ELEMENT_INLINE_IMAGE',_0x2b7732)),_0x28d39e['_descriptionFactory'][_0x58dd('0x68')](_0x58dd('0x1c'),()=>_0x1d6875(_0xffdc90,_0x58dd('0x6b'))),_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')]('ImageUploadEditing')&&_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x33')),_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')](_0x58dd('0x44'))&&_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')](_0x58dd('0x40'))&&(_0x28d39e['enableCommand'](_0x58dd('0x4a'),(_0x484d1a,_0xf5162f)=>{const _0xa0b123=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')]['document'][_0x58dd('0x1b')]);_0x18ebb7[_0x58dd('0x2')]['change'](()=>{_0x28d39e[_0x58dd('0x65')](_0xa0b123,{'commandName':_0x58dd('0x4a'),'commandParams':[_0xf5162f]},[],_0x58dd('0x26'));});}),_0x28d39e[_0x58dd('0x6f')]('imageTypeBlock',(_0x4ddd51,_0x2cd245)=>{_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x24')](_0xa56ce8=>{let _0x3fe709=_0xbfde1f['getClosestSelectedImageElement'](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]),_0x3e4b13=_0xa56ce8['createRangeOn'](_0x3fe709);const _0x46f1e4=_0x5cfbca['fromPosition'](_0x3e4b13[_0x58dd('0xf')],_0x58dd('0xd')),_0x277fdb=_0x5cfbca[_0x58dd('0x23')](_0x3e4b13[_0x58dd('0x34')],_0x58dd('0x3c'));_0x28d39e[_0x58dd('0x10')](()=>_0x4ddd51(_0x2cd245)),_0x3fe709=_0xbfde1f['getClosestSelectedImageElement'](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')]['selection']),_0x3e4b13=_0xa56ce8[_0x58dd('0x3f')](_0x3fe709);const _0x559cad=_0xa56ce8[_0x58dd('0x22')](_0x46f1e4,_0x277fdb);_0x46f1e4[_0x58dd('0x3')](),_0x277fdb[_0x58dd('0x3')](),_0x28d39e['markBlockFormat'](_0x3fe709,{'commandName':_0x58dd('0x4a'),'commandParams':[_0x2cd245]},[],_0x58dd('0x16')),_0x559cad['start']['isBefore'](_0x3e4b13[_0x58dd('0xf')])&&_0x28d39e[_0x58dd('0x0')](_0xa56ce8[_0x58dd('0x22')](_0x559cad['start'],_0x3e4b13[_0x58dd('0xf')]),_0x58dd('0x16')),_0x3e4b13[_0x58dd('0x34')]['isBefore'](_0x559cad[_0x58dd('0x34')])&&_0x28d39e[_0x58dd('0x0')](_0xa56ce8[_0x58dd('0x22')](_0x3e4b13['end'],_0x559cad[_0x58dd('0x34')]),'convertInlineImageToBlock');});}),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')]('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x28d39e[_0x58dd('0x48')]['registerCustomCallback'](_0x58dd('0x1e'),'convertInlineImageToBlock',_0x58dd('0x8'),()=>!0x1),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x16'),'discard',_0x28d39e[_0x58dd('0x48')]['getSuggestionCallback'](_0x58dd('0x1e'),'',_0x58dd('0x8'))),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x7'),'convertInlineImageToBlock','join',()=>!0x1),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x7'),_0x58dd('0x16'),_0x58dd('0x4'),([_0x11cdd4])=>{const _0x31d052=_0x28d39e['_suggestionFactory'][_0x58dd('0x55')](_0x58dd('0x7'),'',_0x58dd('0x4'));let _0x12d001=_0x11cdd4[_0x58dd('0xf')],_0x45b024=_0x11cdd4[_0x58dd('0x34')];const _0x279de7=_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x35')][_0x58dd('0x25')](_0x12d001,_0x58dd('0x17')),_0x2f68af=_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x35')][_0x58dd('0x25')](_0x45b024,_0x58dd('0x2d'));_0x279de7['isCollapsed']&&(_0x12d001=_0x279de7[_0x58dd('0xf')]),_0x2f68af[_0x58dd('0x37')]&&(_0x45b024=_0x2f68af[_0x58dd('0x34')]),_0x31d052([_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x22')](_0x12d001,_0x45b024)]);}),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x16'),'chain',_0x11d686),_0x28d39e[_0x58dd('0x48')]['registerCustomCallback']('insertion',_0x58dd('0x16'),_0x58dd('0x21'),_0x11d686)),_0x18ebb7[_0x58dd('0x5c')]['has'](_0x58dd('0x1a'))&&(_0x28d39e['enableCommand']('toggleImageCaption',(_0x41f80d,_0x371454)=>{const _0x4406bf=_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x32')](_0x58dd('0xa'));let _0x875969=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')]['selection']),_0x2d196e=_0x4406bf[_0x58dd('0x27')](_0x875969);_0x18ebb7[_0x58dd('0x2')]['change'](()=>{if(_0x2d196e)return void _0x28d39e[_0x58dd('0x52')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x3f')](_0x2d196e));const _0x4e84d7=_0xbfde1f[_0x58dd('0x6c')](_0x875969);_0x41f80d(_0x371454),_0x875969=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7['model'][_0x58dd('0x1f')]['selection']),_0x2d196e=_0x4406bf[_0x58dd('0x27')](_0x875969),_0x28d39e[_0x58dd('0x0')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x3f')](_0x2d196e),_0x4e84d7?null:_0x58dd('0x59'));});}),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x7'),_0x58dd('0x59'),_0x58dd('0x21'),_0x11d686)),_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')](_0x58dd('0x66'))){_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x72'),(_0x4aa84e,_0x24ec3d)=>{const _0x26b84b=_0x18ebb7['plugins']['get'](_0x58dd('0x15'))['me'],_0x1f0054=_0x18ebb7['commands'][_0x58dd('0x32')](_0x58dd('0x72'));let _0x309654=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]),_0x1fe555=_0x18ebb7['model'][_0x58dd('0x3f')](_0x309654),_0x2f6619=_0x1f0054['value'];if(_0x2f6619==_0x24ec3d[_0x58dd('0x49')])return;const _0x515128={'commandName':_0x58dd('0x72'),'commandParams':[_0x24ec3d],'formatGroupId':_0x1f19d4()};_0x18ebb7['model'][_0x58dd('0x24')](()=>{if(_0x28d39e[_0x58dd('0x28')]()[_0x58dd('0x6a')](_0x42cb68=>_0x42cb68[_0x58dd('0x5e')]&&_0x26b84b==_0x42cb68['author']&&(_0x58dd('0x1e')==_0x42cb68[_0x58dd('0x76')]||_0x58dd('0x4e')==_0x42cb68[_0x58dd('0x76')])&&('imageStylePreApply'==_0x42cb68[_0x58dd('0x57')]||_0x58dd('0x63')==_0x42cb68[_0x58dd('0x57')])&&_0x42cb68['getFirstRange']()[_0x58dd('0x4f')](_0x1fe555))[_0x58dd('0x14')](_0x45ed13=>_0x28d39e['discardSuggestion'](_0x45ed13[_0x58dd('0x75')])),_0x309654=_0xbfde1f['getClosestSelectedImageElement'](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]),_0x1fe555=_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x3f')](_0x309654),_0x1f0054['refresh'](),_0x18ebb7[_0x58dd('0x50')]['get']('imageTypeInline')[_0x58dd('0x5d')](),_0x18ebb7[_0x58dd('0x50')][_0x58dd('0x32')]('imageTypeBlock')[_0x58dd('0x5d')](),_0x2f6619=_0x1f0054['value'],_0x2f6619!=_0x24ec3d[_0x58dd('0x49')])return _0xbfde1f[_0x58dd('0x41')](_0x309654)&&_0x1f0054[_0x58dd('0x6e')](_0x24ec3d['value'],_0x309654)?(_0x4aa84e({..._0x24ec3d,'setImageSizes':!0x1}),_0x309654=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')]['selection']),void _0x28d39e[_0x58dd('0x65')](_0x309654,{..._0x515128,'commandReversedParams':[{'value':_0x2f6619||null,'setImageSizes':!0x1}]},[],_0x58dd('0x77'))):void(_0xbfde1f[_0x58dd('0x6c')](_0x309654)?_0x28d39e[_0x58dd('0x65')](_0x309654,_0x515128,[],_0x58dd('0x63')):_0x28d39e[_0x58dd('0x5a')](_0x1fe555,_0x515128,_0x58dd('0x63')));});});for(const _0xd026be of _0x18ebb7[_0x58dd('0x5c')]['get'](_0x58dd('0x66'))['normalizedStyles'])_0x1b6fac[_0xd026be['name']]=_0xd026be['title'][_0x58dd('0x45')]();_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x77'),'join',()=>!0x1),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x63'),_0x58dd('0x60'),()=>!0x1),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')]('formatInline',_0x58dd('0x63'),_0x58dd('0x60'),()=>!0x1),_0x28d39e[_0x58dd('0x48')]['registerCustomCallback'](_0x58dd('0x1e'),_0x58dd('0x77'),_0x58dd('0x8'),([_0x43341a])=>{_0xbfde1f[_0x58dd('0x20')](_0x43341a[_0x58dd('0x5')]());}),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x77'),_0x58dd('0x4'),(_0x49acec,_0x2b3329)=>{_0x28d39e[_0x58dd('0x48')][_0x58dd('0x55')](_0x58dd('0x1e'),'',_0x58dd('0x8'))(_0x49acec,{'commandName':_0x2b3329[_0x58dd('0x9')],'commandParams':_0x2b3329[_0x58dd('0x4b')]});}),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')]('formatBlock','imageStylePreApply',_0x58dd('0x21'),_0x11d686);}const _0xc6006b=[{'type':_0x58dd('0x1e'),'subType':_0x58dd('0x77')},{'type':_0x58dd('0x7'),'subType':_0x58dd('0x59')},{'type':_0x58dd('0x1e'),'subType':_0x58dd('0x16')},{'type':_0x58dd('0x7'),'subType':_0x58dd('0x16')}];function _0x58bc94(_0x24a5c2,_0x3118a3){const _0x5e0712=_0xc6006b[_0x58dd('0x3b')](({type:_0x11234c,subType:_0x2d204c})=>_0x24a5c2[_0x58dd('0x76')]==_0x11234c&&_0x24a5c2['subType']==_0x2d204c),_0x19aaf9=_0xc6006b[_0x58dd('0x3b')](({type:_0x2646be,subType:_0x8cd84c})=>_0x3118a3[_0x58dd('0x76')]==_0x2646be&&_0x3118a3[_0x58dd('0x57')]==_0x8cd84c);if(_0x5e0712<0x0||_0x19aaf9<0x0)return!0x1;const _0x511971=_0x24a5c2[_0x58dd('0x19')](),_0x40bed8=_0x3118a3[_0x58dd('0x19')]();if((0x0==_0x5e0712||0x1==_0x5e0712)&&0x2==_0x19aaf9&&_0x511971['isIntersecting'](_0x40bed8))return!0x0;if(0x2==_0x5e0712&&0x3==_0x19aaf9){const _0x3af161=_0x28d39e[_0x58dd('0x1d')](_0x511971,_0x58dd('0x7'))['filter'](({suggestion:_0x28ec92,meta:_0x4e5d84})=>_0x4e5d84[_0x58dd('0x2b')]&&_0x58dd('0x16')==_0x28ec92[_0x58dd('0x57')]);if(_0x3af161[_0x58dd('0x47')]>0x1&&_0x40bed8[_0x58dd('0x34')]['isEqual'](_0x511971['start']))return!0x0;if(0x1==_0x3af161['length']&&(_0x511971[_0x58dd('0xf')]['isEqual'](_0x40bed8[_0x58dd('0x34')])||_0x511971[_0x58dd('0x34')][_0x58dd('0x4f')](_0x40bed8[_0x58dd('0xf')])))return!0x0;}if(0x3==_0x5e0712&&0x3==_0x19aaf9&&_0x511971['start'][_0x58dd('0x54')](_0x40bed8[_0x58dd('0xf')])){const _0x2f9dc8=_0x511971[_0x58dd('0x34')][_0x58dd('0x11')],_0x383cc6=_0x40bed8[_0x58dd('0xf')][_0x58dd('0x3e')];return _0xbfde1f['isBlockImage'](_0x2f9dc8)&&_0x2f9dc8===_0x383cc6;}return!0x1;}function _0x11d686(_0x46338f,_0xe40f80){return _0x58bc94(_0x46338f,_0xe40f80)?[_0x46338f,_0xe40f80]:_0x58bc94(_0xe40f80,_0x46338f)?[_0xe40f80,_0x46338f]:null;}_0x18ebb7['model']['document'][_0x58dd('0x5f')](()=>{let _0x1f49df=!0x1;const _0x2c1ee8=Array[_0x58dd('0x13')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x6d')][_0x58dd('0x1')]());for(const {name:_0x5b31a6,data:_0x539cd8}of _0x2c1ee8){const {group:_0x307937,type:_0x2f4739,subType:_0x25f8f5,id:_0x26cd16}=_0x28d39e[_0x58dd('0xc')](_0x5b31a6);if(_0x58dd('0x71')==_0x307937&&_0x28d39e[_0x58dd('0xe')](_0x26cd16)){if(_0x58dd('0x1e')==_0x2f4739&&(_0x58dd('0x77')==_0x25f8f5||_0x58dd('0x63')==_0x25f8f5)){const _0x4df89e=_0x28d39e[_0x58dd('0x42')](_0x26cd16);if(_0x539cd8[_0x58dd('0x43')]){const _0xbe64ad=_0x4df89e[_0x58dd('0x19')]()[_0x58dd('0x5')]();if(_0xbfde1f[_0x58dd('0x6c')](_0xbe64ad))continue;_0x28d39e[_0x58dd('0x18')](_0x4df89e),_0x1f49df=!0x0;}}if('insertion'==_0x2f4739&&_0x58dd('0x59')==_0x25f8f5&&!_0x539cd8['newRange']){const _0x2d55ee=_0x28d39e[_0x58dd('0x42')](_0x26cd16);_0x2d55ee['next']&&_0x2d55ee[_0x58dd('0x73')]['isInContent']&&(_0x28d39e['discardSuggestion'](_0x2d55ee['next']),_0x1f49df=!0x0);}}}return _0x1f49df;}),_0x18ebb7['plugins']['has']('ImageResize')&&_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x39'),(_0x44ff55,_0x2ab065)=>{const _0x490cec=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')]['document'][_0x58dd('0x1b')]);_0x490cec[_0x58dd('0x62')](_0x58dd('0x30'))!=_0x2ab065['width']&&_0x18ebb7['model'][_0x58dd('0x24')](()=>{_0x28d39e[_0x58dd('0x65')](_0x490cec,{'commandName':'resizeImage','commandParams':[_0x2ab065]});});}),_0x18ebb7['plugins'][_0x58dd('0x36')](_0x58dd('0x74'))&&_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x70'),(_0x105ae9,_0x517c05)=>{const _0x5c6303=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]);(_0x5c6303[_0x58dd('0x31')]('alt')?_0x5c6303[_0x58dd('0x62')](_0x58dd('0x2e')):'')!=_0x517c05[_0x58dd('0x2f')]&&_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x24')](()=>{_0x28d39e[_0x58dd('0x65')](_0x5c6303,{'commandName':_0x58dd('0x70'),'commandParams':[_0x517c05]});});}),_0x28d39e['_descriptionFactory'][_0x58dd('0x2c')](_0x29a5e7=>{if(!!_0xc6006b[_0x58dd('0x3d')](({type:_0x107bca,subType:_0x4dd03a})=>_0x29a5e7[_0x58dd('0x76')]==_0x107bca&&_0x29a5e7[_0x58dd('0x57')]==_0x4dd03a))return _0x29a5e7[_0x58dd('0x2a')]?{}:void 0x0;}),_0x28d39e[_0x58dd('0x53')][_0x58dd('0x2c')](_0x27cce4=>{if(_0x58dd('0x7')==_0x27cce4[_0x58dd('0x76')]||_0x58dd('0x58')==_0x27cce4[_0x58dd('0x76')]){const _0xb71b12=_0x27cce4[_0x58dd('0x5')]();if(_0xb71b12&&_0xb71b12['is'](_0x58dd('0x38'),_0x58dd('0x1c')))return{'type':_0x58dd('0x7')==_0x27cce4['type']?'addObject':'removeObject','element':_0xb71b12,'quantity':0x1};}}),_0x28d39e['_descriptionFactory'][_0x58dd('0x2c')](_0x57ed2b=>_0x58dd('0x1e')==_0x57ed2b[_0x58dd('0x76')]&&_0x58dd('0x16')==_0x57ed2b['subType']?{'type':_0x58dd('0x69'),'content':_0x58dd('0x64')}:_0x58dd('0x1e')==_0x57ed2b[_0x58dd('0x76')]&&_0x58dd('0x26')==_0x57ed2b[_0x58dd('0x57')]?{'type':_0x58dd('0x69'),'content':_0x58dd('0x29')}:void 0x0),_0x28d39e[_0x58dd('0x53')]['registerDescriptionCallback'](_0x1e6972=>{const {data:_0x5d40ac}=_0x1e6972;if(_0x5d40ac){if(_0x58dd('0x72')==_0x5d40ac[_0x58dd('0x9')]){const _0x5d9799=_0x5d40ac['commandParams'][0x0][_0x58dd('0x49')];return _0x1f10d2(_0x58dd('0x4d')===_0x5d9799?_0x1d6875(_0xffdc90,'FORMAT_SIDE_IMAGE'):_0x1b6fac[_0x5d9799]||_0x5d9799);}if(_0x58dd('0x70')==_0x5d40ac[_0x58dd('0x9')]){const _0x369747=_0x5d40ac['commandParams'][0x0][_0x58dd('0x2f')];return _0x369747?{'type':'format','content':_0x1d6875(_0xffdc90,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x369747+'\x22')}:{'type':'format','content':_0x1d6875(_0xffdc90,_0x58dd('0x4c'))};}if('resizeImage'==_0x5d40ac[_0x58dd('0x9')]){const _0x425fba=_0x5d40ac['commandParams'][0x0]['width'];return _0x425fba?{'type':_0x58dd('0x69'),'content':_0x1d6875(_0xffdc90,_0x58dd('0x6'),_0x425fba)}:{'type':_0x58dd('0x69'),'content':_0x1d6875(_0xffdc90,_0x58dd('0x46'))};}}function _0x1f10d2(_0x349bdb){return{'type':_0x58dd('0x69'),'content':_0x1d6875(_0xffdc90,_0x58dd('0x12'),_0x349bdb)};}});}}
|