@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.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 +15 -15
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +78 -2
- package/lang/translations/az.po +77 -1
- package/lang/translations/bg.po +78 -2
- package/lang/translations/bn.po +78 -2
- package/lang/translations/ca.po +78 -2
- package/lang/translations/cs.po +78 -2
- package/lang/translations/da.po +78 -2
- package/lang/translations/de.po +78 -2
- package/lang/translations/el.po +78 -2
- package/lang/translations/en-au.po +78 -2
- package/lang/translations/en.po +78 -2
- package/lang/translations/es.po +78 -2
- package/lang/translations/et.po +78 -2
- package/lang/translations/fi.po +78 -2
- package/lang/translations/fr.po +78 -2
- package/lang/translations/gl.po +90 -14
- package/lang/translations/he.po +78 -2
- package/lang/translations/hi.po +78 -2
- package/lang/translations/hr.po +78 -2
- package/lang/translations/hu.po +78 -2
- package/lang/translations/id.po +78 -2
- package/lang/translations/it.po +78 -2
- package/lang/translations/ja.po +78 -2
- package/lang/translations/ko.po +78 -2
- package/lang/translations/lt.po +78 -2
- package/lang/translations/lv.po +78 -2
- package/lang/translations/ms.po +78 -2
- package/lang/translations/nl.po +78 -2
- package/lang/translations/no.po +78 -2
- package/lang/translations/pl.po +78 -2
- package/lang/translations/pt-br.po +96 -20
- package/lang/translations/pt.po +78 -2
- package/lang/translations/ro.po +78 -2
- package/lang/translations/ru.po +78 -2
- package/lang/translations/sk.po +78 -2
- package/lang/translations/sq.po +77 -1
- package/lang/translations/sr-latn.po +78 -2
- package/lang/translations/sr.po +78 -2
- package/lang/translations/sv.po +78 -2
- package/lang/translations/th.po +78 -2
- package/lang/translations/tk.po +77 -1
- package/lang/translations/tr.po +78 -2
- package/lang/translations/tt.po +77 -1
- package/lang/translations/uk.po +78 -2
- package/lang/translations/ur.po +77 -1
- package/lang/translations/vi.po +78 -2
- package/lang/translations/zh-cn.po +78 -2
- package/lang/translations/zh.po +78 -2
- package/package.json +3 -3
- 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 -17
- package/src/integrations/aiassistant.js +1 -1
- 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 +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- 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 +17 -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 +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- 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
|
@@ -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 _0x5067=['fontBackgroundColor','formatInline','FORMAT_FONT_FAMILY','get','*Reset\x20font\x20color*','TrackChangesEditing','value','*Set\x20font\x20family:*\x20%0','trim','fontFamily','registerAttributeLabel','_registerLegacyDescription','FontSizeEditing','fontColor','FORMAT_FONT_COLOR','config','title','find','commandParams','toLowerCase','fontSize','FontFamilyEditing','*Set\x20font\x20color:*\x20%0','normalizeSizeOptions','afterInit','type','model','_enableDefaultAttributesIntegration','format','*Set\x20font\x20background\x20color:*\x20%0','editor','_descriptionFactory','*Reset\x20font\x20size*','has','fontColor.colors','*Reset\x20font\x20family*','locale','FORMAT_FONT_BACKGROUND','commandName','plugins','fontBackgroundColor.colors','FORMAT_FONT_SIZE','label'];(function(_0x393312,_0x50673d){const _0x15c12f=function(_0x51c481){while(--_0x51c481){_0x393312['push'](_0x393312['shift']());}};_0x15c12f(++_0x50673d);}(_0x5067,0x154));const _0x15c1=function(_0x393312,_0x50673d){_0x393312=_0x393312-0x0;let _0x15c12f=_0x5067[_0x393312];return _0x15c12f;};import{Plugin as _0x3f4578}from'ckeditor5/src/core';import{normalizeColorOptions as _0x3dc331}from'ckeditor5/src/ui';import{getTranslation as _0x92dc7f}from'../utils/common-translations';const ro=[{'pluginName':_0x15c1('0x10'),'commandName':'fontSize'},{'pluginName':_0x15c1('0x19'),'commandName':_0x15c1('0xd')},{'pluginName':'FontColorEditing','commandName':_0x15c1('0x11')},{'pluginName':'FontBackgroundColorEditing','commandName':_0x15c1('0x4')}];export default class K extends _0x3f4578{[_0x15c1('0x1c')](){const _0x55a320=this[_0x15c1('0x22')][_0x15c1('0x28')],_0x292cb1=this[_0x15c1('0x22')][_0x15c1('0x0')]['get'](_0x15c1('0x9'));for(const {pluginName:_0x3e05d7,commandName:_0x1269e1}of ro)this['editor'][_0x15c1('0x0')][_0x15c1('0x25')](_0x3e05d7)&&_0x292cb1[_0x15c1('0x1f')](_0x1269e1,[_0x1269e1]);_0x55a320['t'],(_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')](_0x15c1('0x18'),_0x92dc7f(_0x55a320,_0x15c1('0x2'))),_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')](_0x15c1('0xd'),_0x92dc7f(_0x55a320,_0x15c1('0x6'))),_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')](_0x15c1('0x11'),_0x92dc7f(_0x55a320,_0x15c1('0x12'))),_0x292cb1[_0x15c1('0x23')][_0x15c1('0xe')]('fontBackgroundColor',_0x92dc7f(_0x55a320,_0x15c1('0x29'))),this[_0x15c1('0xf')]());}[_0x15c1('0xf')](){const _0x29859c=this[_0x15c1('0x22')],_0x18d45f=_0x29859c[_0x15c1('0x28')];_0x29859c[_0x15c1('0x0')][_0x15c1('0x7')](_0x15c1('0x9'))[_0x15c1('0x23')]['registerDescriptionCallback'](_0x80ef42=>{const _0x114952=_0x18d45f['t'];if(_0x15c1('0x5')!=_0x80ef42[_0x15c1('0x1d')])return;const {data:_0x53da03}=_0x80ef42;if(null!=_0x53da03){if(_0x15c1('0x18')==_0x53da03[_0x15c1('0x2a')]){const _0xe6ebca=_0x53da03[_0x15c1('0x16')][0x0][_0x15c1('0xa')];if(_0xe6ebca){const _0x45d2fd=_0x114952(this[_0x15c1('0x22')]['plugins'][_0x15c1('0x7')]('FontSize')[_0x15c1('0x1b')](this[_0x15c1('0x22')][_0x15c1('0x13')][_0x15c1('0x7')]('fontSize.options'))[_0x15c1('0x15')](_0xb3afac=>_0xb3afac['model']==_0xe6ebca)[_0x15c1('0x14')])['toLowerCase']();return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,'*Set\x20font\x20size:*\x20%0',_0x45d2fd)};}return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x24'))};}if(_0x15c1('0xd')==_0x53da03['commandName']){const _0x331796=_0x53da03[_0x15c1('0x16')][0x0]['value'];return _0x331796?{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0xb'),_0x331796)}:{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x27'))};}if('fontColor'==_0x53da03[_0x15c1('0x2a')]){const _0x5a83d4=_0x53da03[_0x15c1('0x16')][0x0][_0x15c1('0xa')];if(_0x5a83d4){const _0x3c9bb1=_0x3dc331(this[_0x15c1('0x22')]['config'][_0x15c1('0x7')](_0x15c1('0x26')))[_0x15c1('0x15')](_0x6cbd82=>_0x6cbd82[_0x15c1('0x1e')]==_0x5a83d4);let _0x4a0726=_0x5a83d4,_0x511c29='';return _0x3c9bb1&&(_0x4a0726=_0x3c9bb1[_0x15c1('0x3')],_0x511c29=_0x114952(_0x4a0726)[_0x15c1('0x17')]()),{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x1a'),_0x511c29)[_0x15c1('0xc')](),'color':{'value':_0x5a83d4,'title':_0x511c29||_0x4a0726}};}return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x8'))};}if('fontBackgroundColor'==_0x53da03[_0x15c1('0x2a')]){const _0x4e8cf0=_0x53da03['commandParams'][0x0][_0x15c1('0xa')];if(_0x4e8cf0){const _0x2dd79b=_0x3dc331(this['editor'][_0x15c1('0x13')][_0x15c1('0x7')](_0x15c1('0x1')))[_0x15c1('0x15')](_0x52475f=>_0x52475f[_0x15c1('0x1e')]==_0x4e8cf0);let _0x8ee085=_0x4e8cf0,_0x5246b0='';return _0x2dd79b&&(_0x8ee085=_0x2dd79b[_0x15c1('0x3')],_0x5246b0=_0x114952(_0x8ee085)['toLowerCase']()),{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,_0x15c1('0x21'),_0x5246b0)[_0x15c1('0xc')](),'color':{'value':_0x4e8cf0,'title':_0x5246b0||_0x8ee085}};}return{'type':_0x15c1('0x20'),'content':_0x92dc7f(_0x18d45f,'*Reset\x20font\x20background\x20color*')};}}});}}
|
|
@@ -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 _0xf889=['length','title','join','formatInline','copyFormat','get','fontSize','toUpperCase','model','*Remove\x20all\x20formatting*','entries','charAt','find','commandName','commands','formatBlock','plugins','label','fontBackgroundColor','locale','afterInit','registerDescriptionCallback','TrackChangesEditing','toLowerCase','fontSize.options','editor','format','fontColor','fontColor.colors','config','*Set\x20format\x20to:*\x20%0','FontSize','normalizeSizeOptions','slice','pasteFormat','_registerLegacyDescription'];(function(_0x21241e,_0xf889c9){const _0x30afd1=function(_0x9f2116){while(--_0x9f2116){_0x21241e['push'](_0x21241e['shift']());}};_0x30afd1(++_0xf889c9);}(_0xf889,0xef));const _0x30af=function(_0x21241e,_0xf889c9){_0x21241e=_0x21241e-0x0;let _0x30afd1=_0xf889[_0x21241e];return _0x30afd1;};import{Plugin as _0x43b9b8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5b16f8}from'ckeditor5/src/ui';import{getTranslation as _0x156b40}from'../utils/common-translations';export default class Q extends _0x43b9b8{[_0x30af('0x21')](){const _0x39598c=this[_0x30af('0x2')],_0x4de173=_0x39598c[_0x30af('0x1d')][_0x30af('0x12')](_0x30af('0x23')),_0xfcfbe8=_0x39598c[_0x30af('0x1b')][_0x30af('0x12')]('copyFormat'),_0x557573=_0x39598c[_0x30af('0x1b')]['get'](_0x30af('0xb'));_0xfcfbe8&&_0x557573&&(_0x4de173['_enableDefaultAttributesIntegration'](_0x30af('0xb')),_0x4de173['enableCommand'](_0x30af('0x11')),this[_0x30af('0xc')]());}[_0x30af('0xc')](){const _0x5aa7d1=this['editor'],_0x19ffc8=_0x5aa7d1[_0x30af('0x20')];_0x5aa7d1[_0x30af('0x1d')][_0x30af('0x12')]('TrackChangesEditing')['_descriptionFactory'][_0x30af('0x22')](_0x50144d=>{if(_0x30af('0x1c')!=_0x50144d['type']&&_0x30af('0x10')!=_0x50144d['type'])return;const {data:_0x555632}=_0x50144d;if(_0x555632&&_0x30af('0xb')===_0x555632[_0x30af('0x1a')]){const _0x1978c9=[],_0x3cede1=_0x555632['commandParams'][0x0];for(const [_0x4cc771,_0x30d47a]of Object[_0x30af('0x17')](_0x3cede1))_0x1978c9['push'](ao(_0x5aa7d1,_0x4cc771,_0x30d47a));return _0x1978c9[_0x30af('0xd')]?{'type':_0x30af('0x3'),'content':_0x156b40(_0x19ffc8,_0x30af('0x7'),_0x1978c9[_0x30af('0xf')](',\x20'))}:{'type':_0x30af('0x3'),'content':_0x156b40(_0x19ffc8,_0x30af('0x16'))};}});}}function ao(_0x18c64f,_0x35f922,_0x19244d){const _0x4c5891=_0x18c64f['locale']['t'],_0x5baddf=_0x35f922['split'](/(?=[A-Z])/)[_0x30af('0xf')]('\x20'),_0x2cd5c5=_0x4c5891(_0x5baddf[_0x30af('0x18')](0x0)[_0x30af('0x14')]()+_0x5baddf[_0x30af('0xa')](0x1))[_0x30af('0x0')]();if('boolean'==typeof _0x19244d)return _0x2cd5c5;if(_0x30af('0x4')===_0x35f922||_0x30af('0x1f')===_0x35f922){const _0x21a5e8=_0x5b16f8(_0x18c64f['config']['get'](_0x30af('0x5')))[_0x30af('0x19')](_0x28e321=>_0x28e321[_0x30af('0x15')]==_0x19244d);return _0x2cd5c5+'\x20('+(_0x21a5e8?_0x4c5891(_0x21a5e8[_0x30af('0x1e')])['toLowerCase']():_0x19244d)+')';}if(_0x30af('0x13')===_0x35f922&&isNaN(parseFloat(_0x19244d))){const _0xd7dc42=_0x18c64f['plugins'][_0x30af('0x12')](_0x30af('0x8'))[_0x30af('0x9')](_0x18c64f[_0x30af('0x6')][_0x30af('0x12')](_0x30af('0x1')))['find'](_0x49d964=>_0x49d964[_0x30af('0x15')]==_0x19244d);return _0x2cd5c5+'\x20('+(_0xd7dc42?_0x4c5891(_0xd7dc42[_0x30af('0xe')])[_0x30af('0x0')]():_0x19244d)+')';}return _0x2cd5c5+'\x20('+_0x19244d+')';}
|
|
@@ -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 _0x4cd9=['afterInit','*Change\x20to:*\x20%0','formatBlock','heading','name','plugins','has','commandParams','get','registerElementLabel','locale','paragraph','match','model','_registerLegacyDescription','ELEMENT_HEADING','format','TrackChangesEditing','_descriptionFactory','_getHeadingLevel','find','_headingOptions','config','editor','value','heading.options','view','ELEMENT_HEADING_CUSTOM'];(function(_0x46628b,_0x4cd9e1){const _0x4a2372=function(_0x4d3c9d){while(--_0x4d3c9d){_0x46628b['push'](_0x46628b['shift']());}};_0x4a2372(++_0x4cd9e1);}(_0x4cd9,0x18b));const _0x4a23=function(_0x46628b,_0x4cd9e1){_0x46628b=_0x46628b-0x0;let _0x4a2372=_0x4cd9[_0x46628b];return _0x4a2372;};import{Plugin as _0x45b526}from'ckeditor5/src/core';import{getTranslation as _0xaf03b8}from'../utils/common-translations';export default class X extends _0x45b526{[_0x4a23('0x19')](){const _0x13beeb=this['editor'];if(!_0x13beeb[_0x4a23('0x2')][_0x4a23('0x3')]('HeadingEditing'))return;this[_0x4a23('0x12')]=_0x13beeb[_0x4a23('0x13')]['get'](_0x4a23('0x16'));const _0x5cca3e=_0x13beeb[_0x4a23('0x7')],_0x38ed64=_0x13beeb[_0x4a23('0x2')]['get'](_0x4a23('0xe'));_0x38ed64['_enableDefaultAttributesIntegration'](_0x4a23('0x0'));for(const _0x29a384 of this[_0x4a23('0x12')])_0x4a23('0x8')!=_0x29a384['model']&&_0x38ed64['_descriptionFactory'][_0x4a23('0x6')](_0x29a384['model'],_0x4f6509=>{const _0xac485b=this['_getHeadingLevel'](_0x29a384['model']);return null!==_0xac485b?_0x175fb0(_0x4f6509,_0xac485b):_0x449a81(_0x4f6509,_0x29a384['title']);});function _0x175fb0(_0x343090,_0x281c50){return _0xaf03b8(_0x5cca3e,_0x4a23('0xc'),[_0x343090,_0x281c50]);}function _0x449a81(_0x4db335,_0x41b5d8){return _0xaf03b8(_0x5cca3e,_0x4a23('0x18'),[_0x4db335,_0x41b5d8]);}this[_0x4a23('0xb')]();}['_registerLegacyDescription'](){const _0x28264f=this[_0x4a23('0x14')],_0x207678=_0x28264f[_0x4a23('0x7')];function _0x59bc2b(_0x470d1d,_0x6c4a9d){return _0xaf03b8(_0x207678,'ELEMENT_HEADING_CUSTOM',[_0x470d1d,_0x6c4a9d]);}_0x28264f[_0x4a23('0x2')][_0x4a23('0x5')](_0x4a23('0xe'))[_0x4a23('0xf')]['registerDescriptionCallback'](_0x507752=>{if(_0x4a23('0x1b')!=_0x507752['type'])return;const {data:_0x3ea5dd}=_0x507752;if(_0x3ea5dd&&'heading'==_0x3ea5dd['commandName']){const _0x1c9d57=_0x3ea5dd[_0x4a23('0x4')][0x0][_0x4a23('0x15')],_0x295024=this[_0x4a23('0x10')](_0x1c9d57);if(null!==_0x295024)return{'type':_0x4a23('0xd'),'content':_0xaf03b8(_0x207678,_0x4a23('0x1a'),(_0x59d510=0x1,_0x3d8eb8=_0x295024,_0xaf03b8(_0x207678,_0x4a23('0xc'),[_0x59d510,_0x3d8eb8])))};const _0x536399=this[_0x4a23('0x12')][_0x4a23('0x11')](_0x36dc4c=>_0x36dc4c[_0x4a23('0xa')]===_0x1c9d57)['title'];return{'type':_0x4a23('0xd'),'content':_0xaf03b8(_0x207678,_0x4a23('0x1a'),_0x59bc2b(0x1,_0x536399))};}var _0x59d510,_0x3d8eb8;});}[_0x4a23('0x10')](_0x35053d){var _0x4133c0,_0xf5b155;const _0x5559c7=_0x35053d[_0x4a23('0x9')](/^heading(\d+)/);if(_0x5559c7)return _0x5559c7[0x1];const _0x3e2743=null===(_0x4133c0=this['_headingOptions'])||void 0x0===_0x4133c0?void 0x0:_0x4133c0[_0x4a23('0x11')](_0x407d29=>_0x407d29[_0x4a23('0xa')]==_0x35053d);if(_0x3e2743&&_0x3e2743[_0x4a23('0x17')]){const _0x355940=_0x3e2743['view'],_0xc805e7=(null!==(_0xf5b155=_0x355940[_0x4a23('0x1')])&&void 0x0!==_0xf5b155?_0xf5b155:_0x355940)[_0x4a23('0x9')](/^h(\d+)/);if(_0xc805e7)return _0xc805e7[0x1];}return 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 _0x2010=['model','title','*Set\x20highlight:*\x20%0','get','*Remove\x20highlight*','highlight','FORMAT_HIGHLIGHT','registerAttributeLabel','toLowerCase','format','formatInline','find','_enableDefaultAttributesIntegration','TrackChangesEditing','afterInit','_registerLegacyDescription','commandName','locale','config','editor','highlight.options','commandParams','_descriptionFactory','plugins','has'];(function(_0x50ea02,_0x2010f0){const _0x24de85=function(_0x3d75f1){while(--_0x3d75f1){_0x50ea02['push'](_0x50ea02['shift']());}};_0x24de85(++_0x2010f0);}(_0x2010,0x1b8));const _0x24de=function(_0x50ea02,_0x2010f0){_0x50ea02=_0x50ea02-0x0;let _0x24de85=_0x2010[_0x50ea02];return _0x24de85;};import{Plugin as _0x448af1}from'ckeditor5/src/core';import{getTranslation as _0x3fbcdb}from'../utils/common-translations';export default class Y extends _0x448af1{[_0x24de('0x18')](){const _0x35b1d3=this[_0x24de('0x4')];if(!_0x35b1d3[_0x24de('0x8')][_0x24de('0x9')]('HighlightEditing'))return;const _0x484b32=_0x35b1d3[_0x24de('0x8')]['get'](_0x24de('0x17')),_0x3893c5=_0x35b1d3[_0x24de('0x2')];_0x484b32[_0x24de('0x16')]('highlight',[_0x24de('0xf')]),_0x484b32['_descriptionFactory'][_0x24de('0x11')](_0x24de('0xf'),_0x3fbcdb(_0x3893c5,_0x24de('0x10'))),this[_0x24de('0x0')]();}[_0x24de('0x0')](){const _0x125c14=this[_0x24de('0x4')],_0x1bc490=_0x125c14[_0x24de('0x2')];_0x125c14[_0x24de('0x8')][_0x24de('0xd')]('TrackChangesEditing')[_0x24de('0x7')]['registerDescriptionCallback'](_0x45c640=>{if(_0x24de('0x14')!=_0x45c640['type'])return;const {data:_0x1c822c}=_0x45c640;if(_0x1c822c&&_0x24de('0xf')==_0x1c822c[_0x24de('0x1')]){const _0x527469=_0x1bc490['t'],_0x4c82dd=_0x1c822c[_0x24de('0x6')][0x0]['value'];if(_0x4c82dd){const _0x264ce6=_0x125c14[_0x24de('0x3')]['get'](_0x24de('0x5'))[_0x24de('0x15')](_0x5801ae=>_0x5801ae[_0x24de('0xa')]==_0x4c82dd),_0x3aa4eb=_0x527469(_0x264ce6[_0x24de('0xb')])[_0x24de('0x12')]();return{'type':_0x24de('0x13'),'content':_0x3fbcdb(_0x1bc490,_0x24de('0xc'),_0x3aa4eb),'color':{'value':_0x264ce6['color'],'title':_0x264ce6[_0x24de('0xb')]}};}return{'type':_0x24de('0x13'),'content':_0x3fbcdb(_0x1bc490,_0x24de('0xe'),_0x3fbcdb(_0x1bc490,_0x24de('0x10')))};}});}}
|
|
@@ -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 _0x1373=['ck-horizontal-line','div','afterInit','has','elementToStructure','dataDowncast','get','HorizontalLineEditing','enableCommand','horizontalLine','conversion','addClass','TrackChangesEditing','insert','registerElementLabel','editor','locale','plugins','createEmptyElement','ELEMENT_HORIZONTAL_LINE','createContainerElement'];(function(_0x3f1c5b,_0x13730c){const _0x4cd3ec=function(_0x3a58cd){while(--_0x3a58cd){_0x3f1c5b['push'](_0x3f1c5b['shift']());}};_0x4cd3ec(++_0x13730c);}(_0x1373,0x16d));const _0x4cd3=function(_0x3f1c5b,_0x13730c){_0x3f1c5b=_0x3f1c5b-0x0;let _0x4cd3ec=_0x1373[_0x3f1c5b];return _0x4cd3ec;};import{Plugin as _0x22cc4f}from'ckeditor5/src/core';import{getTranslation as _0x4077da}from'../utils/common-translations';export default class Z extends _0x22cc4f{[_0x4cd3('0xf')](){const _0x3d3f45=this[_0x4cd3('0x7')];if(!_0x3d3f45[_0x4cd3('0x9')][_0x4cd3('0x10')](_0x4cd3('0x14')))return;_0x3d3f45['plugins']['get']('TrackChangesEditing')[_0x4cd3('0x0')]('horizontalLine');const _0x347088=_0x3d3f45['plugins'][_0x4cd3('0x13')](_0x4cd3('0x4')),_0x3840cb=_0x3d3f45[_0x4cd3('0x8')];_0x347088['_descriptionFactory'][_0x4cd3('0x6')](_0x4cd3('0x1'),_0x5b308e=>_0x4077da(_0x3840cb,_0x4cd3('0xb'),_0x5b308e)),_0x3d3f45[_0x4cd3('0x2')]['for'](_0x4cd3('0x12'))[_0x4cd3('0x11')]({'model':_0x4cd3('0x1'),'view':(_0x169297,{writer:_0x3ce9a9,options:_0x19034a})=>{if(!_0x19034a['showSuggestionHighlights'])return null;const _0x4679ec=_0x3ce9a9[_0x4cd3('0xc')](_0x4cd3('0xe')),_0x55913d=_0x3ce9a9[_0x4cd3('0xa')]('hr');return _0x3ce9a9[_0x4cd3('0x3')](_0x4cd3('0xd'),_0x4679ec),_0x3ce9a9[_0x4cd3('0x5')](_0x3ce9a9['createPositionAt'](_0x4679ec,0x0),_0x55913d),_0x4679ec;},'converterPriority':'high'});}}
|
|
@@ -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 _0x1efc=['_registerLegacyDescription','nodeAfter','editor','_descriptionFactory','attribute','format','_enableDefaultAttributesIntegration','value','commandName','get','rawHtml','plugins','formatBlock','getFirstRange','TrackChangesEditing','key','has','ELEMENT_HTML_EMBED','locale','type','htmlEmbed','afterInit'];(function(_0xe2d45c,_0x1efc41){const _0x197ff9=function(_0x37cce4){while(--_0x37cce4){_0xe2d45c['push'](_0xe2d45c['shift']());}};_0x197ff9(++_0x1efc41);}(_0x1efc,0x9f));const _0x197f=function(_0xe2d45c,_0x1efc41){_0xe2d45c=_0xe2d45c-0x0;let _0x197ff9=_0x1efc[_0xe2d45c];return _0x197ff9;};import{Plugin as _0x4f6c95}from'ckeditor5/src/core';import{getTranslation as _0x39cdc6}from'../utils/common-translations';export default class tt extends _0x4f6c95{[_0x197f('0x10')](){const _0x812e59=this['editor'];if(!_0x812e59[_0x197f('0x6')][_0x197f('0xb')]('HtmlEmbed'))return;const _0x4193cf=_0x812e59[_0x197f('0x6')][_0x197f('0x4')](_0x197f('0x9')),_0x26e918=_0x812e59[_0x197f('0xd')];_0x4193cf['_descriptionFactory']['registerElementLabel'](_0x197f('0x5'),_0x57af4a=>_0x39cdc6(_0x26e918,_0x197f('0xc'),_0x57af4a)),_0x4193cf[_0x197f('0x1')](_0x197f('0xf'),[],[_0x197f('0x2')]),_0x4193cf[_0x197f('0x14')]['registerDescriptionCallback'](_0x228835=>{if(_0x197f('0x15')!=_0x228835[_0x197f('0xe')])return;const {data:_0x362a9e}=_0x228835;if(_0x362a9e&&_0x197f('0x2')==_0x362a9e[_0x197f('0xa')]&&_0x228835[_0x197f('0x8')]()['start'][_0x197f('0x12')]['is']('element',_0x197f('0x5'))){const _0x5ab024=_0x39cdc6(_0x26e918,_0x197f('0xc'));return{'type':_0x197f('0x0'),'content':_0x39cdc6(_0x26e918,'*Change\x20%0\x20content*',_0x5ab024)};}}),this[_0x197f('0x11')]();}[_0x197f('0x11')](){const _0x376851=this[_0x197f('0x13')],_0x5c0d9b=_0x376851[_0x197f('0xd')];_0x376851['plugins'][_0x197f('0x4')](_0x197f('0x9'))[_0x197f('0x14')]['registerDescriptionCallback'](_0x160c3b=>{if(_0x197f('0x7')!=_0x160c3b[_0x197f('0xe')])return;const {data:_0x32e6b9}=_0x160c3b;if(_0x32e6b9&&_0x197f('0xf')==_0x32e6b9[_0x197f('0x3')]){const _0x3e4fd1=_0x39cdc6(_0x5c0d9b,_0x197f('0xc'));return{'type':_0x197f('0x0'),'content':_0x39cdc6(_0x5c0d9b,'*Change\x20%0\x20content*',_0x3e4fd1)};}});}}
|
|
@@ -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 _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)};}});}}
|
|
23
|
+
const _0xe43f=['insertImage','join','ELEMENT_CAPTION','markBlockFormat','resizedWidth','uploadImage','ImageResize','registerDescriptionCallback','getClosestSelectedImageElement','insertion','ImageCaptionUtils','Inline\x20image\x20to\x20block\x20image','forceDefaultExecution','plugins','ImageUploadEditing','schema','toggleImageCaption','_registerLegacyDescription','ELEMENT_IMAGE','accept','*Set\x20image\x20width:*\x20%0','discard','convertBlockImageToInline','chain','imageTextAlternative','imageTypeBlock','filter','type','markInsertion','addObject','ImageBlockEditing','getFirstRange','registerAttributeLabel','has','subType','*Reset\x20image\x20width*','element','newValue','imageStylePreApply','isBlockImage','selection','backward','attribute','isCollapsed','TrackChangesEditing','getContainedElement','_descriptionFactory','commandName','imageTypeInline','caption','removeObject','previous','alt','fromPosition','findIndex','length','commandParams','formatBlock','_enableDefaultAttributesIntegration','deletion','*Remove\x20image\x20text\x20alternative*','width','*Set\x20image\x20text\x20alternative:*\x20%0','start','change','Block\x20image\x20to\x20inline\x20image','formatInline','detach','document','createRangeOn','ELEMENT_INLINE_IMAGE','imageInline','get','createRange','forward','registerCustomCallback','ImageInlineEditing','resizeImage','end','ImageUtils','ImageCaptionEditing','_findSuggestions','isBefore','_suggestionFactory','ImageEditing','imageCaption','toPrevious','afterInit','locale','markDeletion','getSuggestionCallback','isEqual','registerElementLabel','getCaptionFromImageModelElement','format','getNearestSelectionRange','model','convertInlineImageToBlock','editor','enableCommand'];(function(_0xd1f55d,_0xe43f02){const _0x340147=function(_0xa40b23){while(--_0xa40b23){_0xd1f55d['push'](_0xd1f55d['shift']());}};_0x340147(++_0xe43f02);}(_0xe43f,0x9b));const _0x3401=function(_0xd1f55d,_0xe43f02){_0xd1f55d=_0xd1f55d-0x0;let _0x340147=_0xe43f[_0xd1f55d];return _0x340147;};import{Plugin as _0x5dcdfa}from'ckeditor5/src/core';import{LivePosition as _0x2119ed}from'ckeditor5/src/engine';import{getTranslation as _0x3f9f62}from'../utils/common-translations';export default class it extends _0x5dcdfa{[_0x3401('0x20')](){const _0xaa49ea=this[_0x3401('0x2b')];if(!_0xaa49ea['plugins'][_0x3401('0x4e')](_0x3401('0x1d')))return;const _0x240e80=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x59')),_0x5a0cd4=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x18')),_0x2229f1=_0xaa49ea[_0x3401('0x21')];_0x240e80[_0x3401('0x2c')](_0x3401('0x2d')),_0x240e80[_0x3401('0x5b')][_0x3401('0x25')]('imageBlock',_0xe98673=>_0x3f9f62(_0x2229f1,_0x3401('0x3f'),_0xe98673)),_0x240e80[_0x3401('0x5b')][_0x3401('0x25')](_0x3401('0x10'),_0xaf0e8b=>_0x3f9f62(_0x2229f1,_0x3401('0xf'),_0xaf0e8b)),_0x240e80['_descriptionFactory'][_0x3401('0x25')](_0x3401('0x5e'),()=>_0x3f9f62(_0x2229f1,_0x3401('0x2f'))),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x3b'))&&_0x240e80[_0x3401('0x2c')](_0x3401('0x32')),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x4b'))&&_0xaa49ea[_0x3401('0x3a')]['has'](_0x3401('0x15'))&&(_0x240e80['enableCommand'](_0x3401('0x5d'),(_0x2a5d20,_0x426ed9)=>{const _0x45b272=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]);_0xaa49ea['model'][_0x3401('0x9')](()=>{_0x240e80[_0x3401('0x30')](_0x45b272,{'commandName':_0x3401('0x5d'),'commandParams':[_0x426ed9]},[],'convertBlockImageToInline');});}),_0x240e80['enableCommand'](_0x3401('0x46'),(_0x3784c8,_0x2eada6)=>{_0xaa49ea['model'][_0x3401('0x9')](_0x50492c=>{let _0x465575=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea['model'][_0x3401('0xd')][_0x3401('0x55')]),_0x5ce2b4=_0x50492c[_0x3401('0xe')](_0x465575);const _0x41ccf7=_0x2119ed[_0x3401('0x62')](_0x5ce2b4[_0x3401('0x8')],_0x3401('0x1f')),_0x4efcb8=_0x2119ed[_0x3401('0x62')](_0x5ce2b4[_0x3401('0x17')],'toNext');_0x240e80[_0x3401('0x39')](()=>_0x3784c8(_0x2eada6)),_0x465575=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')]['selection']),_0x5ce2b4=_0x50492c[_0x3401('0xe')](_0x465575);const _0x373e1b=_0x50492c[_0x3401('0x12')](_0x41ccf7,_0x4efcb8);_0x41ccf7[_0x3401('0xc')](),_0x4efcb8[_0x3401('0xc')](),_0x240e80['markBlockFormat'](_0x465575,{'commandName':_0x3401('0x5d'),'commandParams':[_0x2eada6]},[],_0x3401('0x2a')),_0x373e1b[_0x3401('0x8')][_0x3401('0x1b')](_0x5ce2b4[_0x3401('0x8')])&&_0x240e80[_0x3401('0x49')](_0x50492c['createRange'](_0x373e1b[_0x3401('0x8')],_0x5ce2b4[_0x3401('0x8')]),_0x3401('0x2a')),_0x5ce2b4[_0x3401('0x17')]['isBefore'](_0x373e1b['end'])&&_0x240e80['markInsertion'](_0x50492c[_0x3401('0x12')](_0x5ce2b4['end'],_0x373e1b[_0x3401('0x17')]),_0x3401('0x2a'));});}),_0x240e80['_suggestionFactory'][_0x3401('0x14')]('formatBlock','convertInlineImageToBlock',_0x3401('0x2e'),()=>!0x1),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')]('formatBlock',_0x3401('0x2a'),_0x3401('0x40'),()=>!0x1),_0x240e80['_suggestionFactory'][_0x3401('0x14')](_0x3401('0x2'),'convertInlineImageToBlock',_0x3401('0x42'),_0x240e80[_0x3401('0x1c')]['getSuggestionCallback'](_0x3401('0x2'),'',_0x3401('0x40'))),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')](_0x3401('0x36'),_0x3401('0x2a'),_0x3401('0x2e'),()=>!0x1),_0x240e80['_suggestionFactory'][_0x3401('0x14')]('insertion',_0x3401('0x2a'),_0x3401('0x42'),([_0x2bbfa1])=>{const _0x46cc23=_0x240e80[_0x3401('0x1c')][_0x3401('0x23')]('insertion','',_0x3401('0x42'));let _0x108c7a=_0x2bbfa1[_0x3401('0x8')],_0x559f01=_0x2bbfa1['end'];const _0x50c655=_0xaa49ea[_0x3401('0x29')]['schema'][_0x3401('0x28')](_0x108c7a,_0x3401('0x56')),_0x4075a0=_0xaa49ea[_0x3401('0x29')][_0x3401('0x3c')][_0x3401('0x28')](_0x559f01,_0x3401('0x13'));_0x50c655[_0x3401('0x58')]&&(_0x108c7a=_0x50c655[_0x3401('0x8')]),_0x4075a0[_0x3401('0x58')]&&(_0x559f01=_0x4075a0[_0x3401('0x17')]),_0x46cc23([_0xaa49ea[_0x3401('0x29')][_0x3401('0x12')](_0x108c7a,_0x559f01)]);}),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')](_0x3401('0x2'),'convertInlineImageToBlock','chain',_0x3c7385),_0x240e80[_0x3401('0x1c')]['registerCustomCallback'](_0x3401('0x36'),_0x3401('0x2a'),_0x3401('0x44'),_0x3c7385)),_0xaa49ea['plugins'][_0x3401('0x4e')](_0x3401('0x19'))&&(_0x240e80['enableCommand'](_0x3401('0x3d'),(_0x493f77,_0x4ea97e)=>{const _0x147e89=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x37'));let _0x2a4311=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]),_0xc99877=_0x147e89[_0x3401('0x26')](_0x2a4311);_0xaa49ea['model'][_0x3401('0x9')](()=>{if(_0xc99877)return void _0x240e80[_0x3401('0x22')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xe')](_0xc99877));const _0x21586a=_0x5a0cd4[_0x3401('0x54')](_0x2a4311);_0x493f77(_0x4ea97e),_0x2a4311=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]),_0xc99877=_0x147e89[_0x3401('0x26')](_0x2a4311),_0x240e80['markInsertion'](_0xaa49ea[_0x3401('0x29')][_0x3401('0xe')](_0xc99877),_0x21586a?null:_0x3401('0x1e'));});}),_0x240e80['_suggestionFactory'][_0x3401('0x14')](_0x3401('0x36'),'imageCaption',_0x3401('0x44'),_0x3c7385));const _0x15d2ab=[{'type':_0x3401('0x2'),'subType':_0x3401('0x53')},{'type':_0x3401('0x36'),'subType':_0x3401('0x1e')},{'type':_0x3401('0x2'),'subType':'convertInlineImageToBlock'},{'type':_0x3401('0x36'),'subType':_0x3401('0x2a')}];function _0x1c87a9(_0x53ef52,_0x135836){const _0x36c19b=_0x15d2ab[_0x3401('0x63')](({type:_0x3bde70,subType:_0x35f6b1})=>_0x53ef52[_0x3401('0x48')]==_0x3bde70&&_0x53ef52['subType']==_0x35f6b1),_0x13fdb2=_0x15d2ab[_0x3401('0x63')](({type:_0x58a469,subType:_0x43aa3e})=>_0x135836['type']==_0x58a469&&_0x135836[_0x3401('0x4f')]==_0x43aa3e);if(_0x36c19b<0x0||_0x13fdb2<0x0)return!0x1;const _0x2110c0=_0x53ef52[_0x3401('0x4c')](),_0x49304a=_0x135836['getFirstRange']();if((0x0==_0x36c19b||0x1==_0x36c19b)&&0x2==_0x13fdb2&&_0x2110c0['isIntersecting'](_0x49304a))return!0x0;if(0x2==_0x36c19b&&0x3==_0x13fdb2){const _0x51039e=_0x240e80[_0x3401('0x1a')](_0x2110c0,_0x3401('0x36'))[_0x3401('0x47')](({suggestion:_0x5cb859,meta:_0x4c602f})=>_0x4c602f['isOwn']&&'convertInlineImageToBlock'==_0x5cb859[_0x3401('0x4f')]);if(_0x51039e[_0x3401('0x0')]>0x1&&_0x49304a[_0x3401('0x17')][_0x3401('0x24')](_0x2110c0[_0x3401('0x8')]))return!0x0;if(0x1==_0x51039e[_0x3401('0x0')]&&(_0x2110c0['start'][_0x3401('0x24')](_0x49304a['end'])||_0x2110c0[_0x3401('0x17')][_0x3401('0x24')](_0x49304a[_0x3401('0x8')])))return!0x0;}if(0x3==_0x36c19b&&0x3==_0x13fdb2&&_0x2110c0['start'][_0x3401('0x1b')](_0x49304a['start'])){const _0x4751b6=_0x2110c0[_0x3401('0x17')]['nodeAfter'],_0x5ba827=_0x49304a[_0x3401('0x8')]['nodeBefore'];return _0x5a0cd4[_0x3401('0x54')](_0x4751b6)&&_0x4751b6===_0x5ba827;}return!0x1;}function _0x3c7385(_0x355170,_0x4e8c6e){return _0x1c87a9(_0x355170,_0x4e8c6e)?[_0x355170,_0x4e8c6e]:_0x1c87a9(_0x4e8c6e,_0x355170)?[_0x4e8c6e,_0x355170]:null;}_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x33'))&&(_0x240e80[_0x3401('0x3')](_0x3401('0x16'),[],[_0x3401('0x31')]),_0x240e80[_0x3401('0x5b')][_0x3401('0x4d')](_0x3401('0x31'),_0x3f9f62(_0x2229f1,'FORMAT_IMAGE_SIZE'))),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')]('ImageTextAlternativeEditing')&&_0x240e80['_enableDefaultAttributesIntegration'](_0x3401('0x45'),[],['alt']),_0x240e80['_descriptionFactory'][_0x3401('0x34')](_0x239f41=>{if(!!_0x15d2ab['find'](({type:_0x2dfe0c,subType:_0x2fa7d2})=>_0x239f41[_0x3401('0x48')]==_0x2dfe0c&&_0x239f41[_0x3401('0x4f')]==_0x2fa7d2))return _0x239f41[_0x3401('0x60')]?{}:void 0x0;}),_0x240e80[_0x3401('0x5b')][_0x3401('0x34')](_0x3b3695=>{if(_0x3401('0x36')==_0x3b3695[_0x3401('0x48')]||_0x3401('0x4')==_0x3b3695['type']){const _0x578a4b=_0x3b3695[_0x3401('0x5a')]();if(_0x578a4b&&_0x578a4b['is'](_0x3401('0x51'),'caption'))return{'type':_0x3401('0x36')==_0x3b3695[_0x3401('0x48')]?_0x3401('0x4a'):_0x3401('0x5f'),'element':_0x578a4b,'quantity':0x1};}}),_0x240e80['_descriptionFactory'][_0x3401('0x34')](_0x853fa=>'formatBlock'==_0x853fa['type']&&_0x3401('0x2a')==_0x853fa[_0x3401('0x4f')]?{'type':_0x3401('0x27'),'content':_0x3401('0x38')}:_0x3401('0x2')==_0x853fa[_0x3401('0x48')]&&_0x3401('0x43')==_0x853fa[_0x3401('0x4f')]?{'type':_0x3401('0x27'),'content':_0x3401('0xa')}:void 0x0),_0x240e80[_0x3401('0x5b')][_0x3401('0x34')](_0x14effc=>{if(_0x3401('0x57')!=_0x14effc[_0x3401('0x48')])return;const {data:_0x32fd45}=_0x14effc;if(!_0x32fd45||_0x3401('0x61')!=_0x32fd45['key'])return;const _0x69bbc7=_0x32fd45[_0x3401('0x52')];return _0x69bbc7?{'type':'format','content':_0x3f9f62(_0x2229f1,_0x3401('0x7'),'\x22'+_0x69bbc7+'\x22')}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x2229f1,_0x3401('0x5'))};}),this[_0x3401('0x3e')]();}[_0x3401('0x3e')](){const _0xb6595d=this[_0x3401('0x2b')],_0x437754=_0xb6595d[_0x3401('0x21')];_0xb6595d[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x59'))['_descriptionFactory'][_0x3401('0x34')](_0x4aa741=>{if(_0x3401('0x2')!=_0x4aa741['type']&&_0x3401('0xb')!=_0x4aa741[_0x3401('0x48')])return;const {data:_0x5384c8}=_0x4aa741;if(_0x5384c8){if(_0x3401('0x45')==_0x5384c8[_0x3401('0x5c')]){const _0x49b6e3=_0x5384c8[_0x3401('0x1')][0x0][_0x3401('0x52')];return _0x49b6e3?{'type':'format','content':_0x3f9f62(_0x437754,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49b6e3+'\x22')}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x437754,_0x3401('0x5'))};}if(_0x3401('0x16')==_0x5384c8['commandName']){const _0xcf5e0d=_0x5384c8[_0x3401('0x1')][0x0][_0x3401('0x6')];return _0xcf5e0d?{'type':'format','content':_0x3f9f62(_0x437754,_0x3401('0x41'),_0xcf5e0d)}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x437754,_0x3401('0x50'))};}}});}}
|
|
@@ -1,23 +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/imagereplace
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
handleReplaceImageCommand(executeCommand: Function, options: {
|
|
20
|
-
source: string;
|
|
21
|
-
}): void;
|
|
22
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
23
|
-
}
|
|
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/imagereplace
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for image replace feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImageReplace extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|