@ckeditor/ckeditor5-track-changes 40.2.0 → 41.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 +5 -5
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/es.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +2 -2
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- 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
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/findandreplace
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for find and replace feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34be=['findNext','handleFindCommand','createRange','editor','getRange','createPositionAt','markers','filter','plugins','_isInDeletionRange','suggestion:deletion','start','find','TrackChangesEditing','bind','get','findPrevious','getIntersection','afterInit','model','findByTextCallback','replaceAll','has','end','getMarkersGroup','item','enableCommand'];(function(_0x56053d,_0x34be67){const _0x3d6975=function(_0xea1759){while(--_0xea1759){_0x56053d['push'](_0x56053d['shift']());}};_0x3d6975(++_0x34be67);}(_0x34be,0x1cd));const _0x3d69=function(_0x56053d,_0x34be67){_0x56053d=_0x56053d-0x0;let _0x3d6975=_0x34be[_0x56053d];return _0x3d6975;};import{Plugin as _0xbb8d14}from'ckeditor5/src/core.js';export default class J extends _0xbb8d14{[_0x3d69('0x10')](){if(!this[_0x3d69('0x1')][_0x3d69('0x6')][_0x3d69('0x14')]('FindAndReplaceEditing'))return;const _0x19715c=this['editor']['plugins'][_0x3d69('0xd')](_0x3d69('0xb'));_0x19715c[_0x3d69('0x18')](_0x3d69('0xa'),this[_0x3d69('0x1a')][_0x3d69('0xc')](this)),_0x19715c[_0x3d69('0x18')](_0x3d69('0x19')),_0x19715c[_0x3d69('0x18')](_0x3d69('0xe')),_0x19715c[_0x3d69('0x18')]('replace'),_0x19715c[_0x3d69('0x18')](_0x3d69('0x13'));}['handleFindCommand'](_0x2510bb,_0x317e28,_0x19c833={}){const _0x409493=this['editor'][_0x3d69('0x6')]['get']('FindAndReplaceUtils');return _0x2510bb(_0x56e9ad=>('string'==typeof _0x317e28?_0x409493[_0x3d69('0x12')](_0x317e28,_0x19c833):_0x317e28)(_0x56e9ad)[_0x3d69('0x5')](_0x2e2fdc=>!0x1===this[_0x3d69('0x7')](_0x2e2fdc,_0x56e9ad[_0x3d69('0x17')])),_0x19c833);}[_0x3d69('0x7')](_0xb4d73,_0x2b6fac){const _0x2c0441=this[_0x3d69('0x1')][_0x3d69('0x11')][_0x3d69('0x0')](this[_0x3d69('0x1')][_0x3d69('0x11')][_0x3d69('0x3')](_0x2b6fac,_0xb4d73[_0x3d69('0x9')]),this[_0x3d69('0x1')][_0x3d69('0x11')][_0x3d69('0x3')](_0x2b6fac,_0xb4d73[_0x3d69('0x15')]));for(const _0x3853d5 of this['editor'][_0x3d69('0x11')][_0x3d69('0x4')][_0x3d69('0x16')](_0x3d69('0x8')))if(null!==_0x2c0441[_0x3d69('0xf')](_0x3853d5[_0x3d69('0x2')]()))return!0x0;return!0x1;}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/font
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for font features.
|
|
11
11
|
*/
|
package/src/integrations/font.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10b8=['fontSize','trim','registerDescriptionCallback','commandName','title','model','formatInline','commandParams','FORMAT_FONT_FAMILY','fontSize.options','label','*Reset\x20font\x20size*','type','config','find','_registerLegacyDescription','value','plugins','FontBackgroundColorEditing','_descriptionFactory','fontBackgroundColor','editor','_enableDefaultAttributesIntegration','get','FORMAT_FONT_SIZE','*Set\x20font\x20family:*\x20%0','format','*Set\x20font\x20background\x20color:*\x20%0','FontFamilyEditing','afterInit','fontBackgroundColor.colors','toLowerCase','*Reset\x20font\x20family*','fontColor','locale','TrackChangesEditing','fontFamily','registerAttributeLabel','*Reset\x20font\x20background\x20color*'];(function(_0x511cbd,_0x10b8ec){const _0x37d40d=function(_0x498d51){while(--_0x498d51){_0x511cbd['push'](_0x511cbd['shift']());}};_0x37d40d(++_0x10b8ec);}(_0x10b8,0x1b9));const _0x37d4=function(_0x511cbd,_0x10b8ec){_0x511cbd=_0x511cbd-0x0;let _0x37d40d=_0x10b8[_0x511cbd];return _0x37d40d;};import{Plugin as _0x190947}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x8b8ebe}from'ckeditor5/src/ui.js';import{getTranslation as _0x141645}from'../utils/common-translations.js';const ro=[{'pluginName':'FontSizeEditing','commandName':_0x37d4('0x1b')},{'pluginName':_0x37d4('0x10'),'commandName':_0x37d4('0x18')},{'pluginName':'FontColorEditing','commandName':_0x37d4('0x15')},{'pluginName':_0x37d4('0x6'),'commandName':_0x37d4('0x8')}];export default class Q extends _0x190947{[_0x37d4('0x11')](){const _0x3e6d35=this['editor'][_0x37d4('0x16')],_0x1d9e80=this[_0x37d4('0x9')][_0x37d4('0x5')][_0x37d4('0xb')](_0x37d4('0x17'));for(const {pluginName:_0x351a8b,commandName:_0x49afe9}of ro)this[_0x37d4('0x9')][_0x37d4('0x5')]['has'](_0x351a8b)&&_0x1d9e80[_0x37d4('0xa')](_0x49afe9,[_0x49afe9]);_0x3e6d35['t'],(_0x1d9e80['_descriptionFactory'][_0x37d4('0x19')](_0x37d4('0x1b'),_0x141645(_0x3e6d35,_0x37d4('0xc'))),_0x1d9e80[_0x37d4('0x7')][_0x37d4('0x19')](_0x37d4('0x18'),_0x141645(_0x3e6d35,_0x37d4('0x23'))),_0x1d9e80[_0x37d4('0x7')]['registerAttributeLabel'](_0x37d4('0x15'),_0x141645(_0x3e6d35,'FORMAT_FONT_COLOR')),_0x1d9e80[_0x37d4('0x7')]['registerAttributeLabel'](_0x37d4('0x8'),_0x141645(_0x3e6d35,'FORMAT_FONT_BACKGROUND')),this[_0x37d4('0x3')]());}['_registerLegacyDescription'](){const _0x5b22cd=this[_0x37d4('0x9')],_0x18f88e=_0x5b22cd[_0x37d4('0x16')];_0x5b22cd[_0x37d4('0x5')]['get'](_0x37d4('0x17'))['_descriptionFactory'][_0x37d4('0x1d')](_0xc9dc9d=>{const _0x55c16c=_0x18f88e['t'];if(_0x37d4('0x21')!=_0xc9dc9d[_0x37d4('0x0')])return;const {data:_0x107438}=_0xc9dc9d;if(null!=_0x107438){if(_0x37d4('0x1b')==_0x107438['commandName']){const _0x71ba79=_0x107438['commandParams'][0x0]['value'];if(_0x71ba79){const _0x38390f=_0x55c16c(this[_0x37d4('0x9')][_0x37d4('0x5')][_0x37d4('0xb')]('FontSize')['normalizeSizeOptions'](this[_0x37d4('0x9')][_0x37d4('0x1')][_0x37d4('0xb')](_0x37d4('0x24')))[_0x37d4('0x2')](_0x36f9c0=>_0x36f9c0[_0x37d4('0x20')]==_0x71ba79)[_0x37d4('0x1f')])[_0x37d4('0x13')]();return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,'*Set\x20font\x20size:*\x20%0',_0x38390f)};}return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0x26'))};}if(_0x37d4('0x18')==_0x107438[_0x37d4('0x1e')]){const _0x7f0194=_0x107438[_0x37d4('0x22')][0x0][_0x37d4('0x4')];return _0x7f0194?{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0xd'),_0x7f0194)}:{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0x14'))};}if(_0x37d4('0x15')==_0x107438['commandName']){const _0x271c17=_0x107438[_0x37d4('0x22')][0x0][_0x37d4('0x4')];if(_0x271c17){const _0x1d9381=_0x8b8ebe(this[_0x37d4('0x9')][_0x37d4('0x1')][_0x37d4('0xb')]('fontColor.colors'))[_0x37d4('0x2')](_0x1b2d78=>_0x1b2d78['model']==_0x271c17);let _0xa88307=_0x271c17,_0x2bbf7d='';return _0x1d9381&&(_0xa88307=_0x1d9381[_0x37d4('0x25')],_0x2bbf7d=_0x55c16c(_0xa88307)[_0x37d4('0x13')]()),{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,'*Set\x20font\x20color:*\x20%0',_0x2bbf7d)[_0x37d4('0x1c')](),'color':{'value':_0x271c17,'title':_0x2bbf7d||_0xa88307}};}return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,'*Reset\x20font\x20color*')};}if(_0x37d4('0x8')==_0x107438[_0x37d4('0x1e')]){const _0xaba7e4=_0x107438['commandParams'][0x0][_0x37d4('0x4')];if(_0xaba7e4){const _0x2185fe=_0x8b8ebe(this['editor'][_0x37d4('0x1')][_0x37d4('0xb')](_0x37d4('0x12')))[_0x37d4('0x2')](_0x1d4c63=>_0x1d4c63[_0x37d4('0x20')]==_0xaba7e4);let _0x248d57=_0xaba7e4,_0x32072f='';return _0x2185fe&&(_0x248d57=_0x2185fe['label'],_0x32072f=_0x55c16c(_0x248d57)[_0x37d4('0x13')]()),{'type':'format','content':_0x141645(_0x18f88e,_0x37d4('0xf'),_0x32072f)[_0x37d4('0x1c')](),'color':{'value':_0xaba7e4,'title':_0x32072f||_0x248d57}};}return{'type':_0x37d4('0xe'),'content':_0x141645(_0x18f88e,_0x37d4('0x1a'))};}}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/formatpainter
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for the Format Painter feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30dc=['formatBlock','commandName','fontColor.colors','toUpperCase','fontSize','join','toLowerCase','split','plugins','fontColor','length','find','config','_registerLegacyDescription','editor','format','_enableDefaultAttributesIntegration','pasteFormat','entries','FontSize','locale','boolean','get','_descriptionFactory','fontBackgroundColor','type','commands','model','copyFormat','title','push','registerDescriptionCallback'];(function(_0x14379f,_0x30dcf2){const _0x1acbb0=function(_0x5eab0d){while(--_0x5eab0d){_0x14379f['push'](_0x14379f['shift']());}};_0x1acbb0(++_0x30dcf2);}(_0x30dc,0xb8));const _0x1acb=function(_0x14379f,_0x30dcf2){_0x14379f=_0x14379f-0x0;let _0x1acbb0=_0x30dc[_0x14379f];return _0x1acbb0;};import{Plugin as _0x518fed}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x326ce0}from'ckeditor5/src/ui.js';import{getTranslation as _0x39d710}from'../utils/common-translations.js';export default class X extends _0x518fed{['afterInit'](){const _0x4737fb=this[_0x1acb('0x16')],_0x29a4db=_0x4737fb['plugins']['get']('TrackChangesEditing'),_0x1ddaf0=_0x4737fb[_0x1acb('0x2')][_0x1acb('0x1e')]('copyFormat'),_0x5f142c=_0x4737fb[_0x1acb('0x2')][_0x1acb('0x1e')](_0x1acb('0x19'));_0x1ddaf0&&_0x5f142c&&(_0x29a4db[_0x1acb('0x18')](_0x1acb('0x19')),_0x29a4db['enableCommand'](_0x1acb('0x4')),this[_0x1acb('0x15')]());}['_registerLegacyDescription'](){const _0x9f698f=this[_0x1acb('0x16')],_0x4dca89=_0x9f698f[_0x1acb('0x1c')];_0x9f698f['plugins'][_0x1acb('0x1e')]('TrackChangesEditing')[_0x1acb('0x1f')][_0x1acb('0x7')](_0x338d07=>{if(_0x1acb('0x8')!=_0x338d07[_0x1acb('0x1')]&&'formatInline'!=_0x338d07[_0x1acb('0x1')])return;const {data:_0x5a2895}=_0x338d07;if(_0x5a2895&&_0x1acb('0x19')===_0x5a2895[_0x1acb('0x9')]){const _0x119777=[],_0x2e1399=_0x5a2895['commandParams'][0x0];for(const [_0x92a391,_0x2c65a3]of Object[_0x1acb('0x1a')](_0x2e1399))_0x119777[_0x1acb('0x6')](so(_0x9f698f,_0x92a391,_0x2c65a3));return _0x119777[_0x1acb('0x12')]?{'type':_0x1acb('0x17'),'content':_0x39d710(_0x4dca89,'*Set\x20format\x20to:*\x20%0',_0x119777[_0x1acb('0xd')](',\x20'))}:{'type':_0x1acb('0x17'),'content':_0x39d710(_0x4dca89,'*Remove\x20all\x20formatting*')};}});}}function so(_0x328397,_0x4a2a7f,_0x50823b){const _0x273c09=_0x328397[_0x1acb('0x1c')]['t'],_0x13276c=_0x4a2a7f[_0x1acb('0xf')](/(?=[A-Z])/)['join']('\x20'),_0x57174f=_0x273c09(_0x13276c['charAt'](0x0)[_0x1acb('0xb')]()+_0x13276c['slice'](0x1))[_0x1acb('0xe')]();if(_0x1acb('0x1d')==typeof _0x50823b)return _0x57174f;if(_0x1acb('0x11')===_0x4a2a7f||_0x1acb('0x0')===_0x4a2a7f){const _0x3ac597=_0x326ce0(_0x328397[_0x1acb('0x14')][_0x1acb('0x1e')](_0x1acb('0xa')))[_0x1acb('0x13')](_0x18894f=>_0x18894f[_0x1acb('0x3')]==_0x50823b);return _0x57174f+'\x20('+(_0x3ac597?_0x273c09(_0x3ac597['label'])['toLowerCase']():_0x50823b)+')';}if(_0x1acb('0xc')===_0x4a2a7f&&isNaN(parseFloat(_0x50823b))){const _0x4f6544=_0x328397[_0x1acb('0x10')][_0x1acb('0x1e')](_0x1acb('0x1b'))['normalizeSizeOptions'](_0x328397[_0x1acb('0x14')]['get']('fontSize.options'))[_0x1acb('0x13')](_0x33f9ae=>_0x33f9ae[_0x1acb('0x3')]==_0x50823b);return _0x57174f+'\x20('+(_0x4f6544?_0x273c09(_0x4f6544[_0x1acb('0x5')])[_0x1acb('0xe')]():_0x50823b)+')';}return _0x57174f+'\x20('+_0x50823b+')';}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/heading
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for heading feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1916=['get','config','*Change\x20to:*\x20%0','commandParams','has','format','plugins','formatBlock','ELEMENT_HEADING','editor','ELEMENT_HEADING_CUSTOM','_getHeadingLevel','type','match','name','_registerLegacyDescription','_headingOptions','locale','registerDescriptionCallback','value','TrackChangesEditing','_descriptionFactory','title','HeadingEditing','model','view','commandName','find','registerElementLabel','heading','_enableDefaultAttributesIntegration'];(function(_0x639897,_0x19169e){const _0x406bb1=function(_0x135722){while(--_0x135722){_0x639897['push'](_0x639897['shift']());}};_0x406bb1(++_0x19169e);}(_0x1916,0x7e));const _0x406b=function(_0x639897,_0x19169e){_0x639897=_0x639897-0x0;let _0x406bb1=_0x1916[_0x639897];return _0x406bb1;};import{Plugin as _0x5cc316}from'ckeditor5/src/core.js';import{getTranslation as _0xd45161}from'../utils/common-translations.js';export default class Y extends _0x5cc316{['afterInit'](){const _0x9cf6f0=this['editor'];if(!_0x9cf6f0[_0x406b('0x4')][_0x406b('0x2')](_0x406b('0x15')))return;this[_0x406b('0xe')]=_0x9cf6f0[_0x406b('0x1e')][_0x406b('0x1d')]('heading.options');const _0x5c1eb6=_0x9cf6f0[_0x406b('0xf')],_0x57d64b=_0x9cf6f0['plugins'][_0x406b('0x1d')]('TrackChangesEditing');_0x57d64b[_0x406b('0x1c')](_0x406b('0x1b'));for(const _0x1d2ee0 of this['_headingOptions'])'paragraph'!=_0x1d2ee0[_0x406b('0x16')]&&_0x57d64b[_0x406b('0x13')][_0x406b('0x1a')](_0x1d2ee0['model'],_0x10e576=>{const _0xd94829=this[_0x406b('0x9')](_0x1d2ee0['model']);return null!==_0xd94829?_0x5743fa(_0x10e576,_0xd94829):_0x48a741(_0x10e576,_0x1d2ee0['title']);});function _0x5743fa(_0x79c4f0,_0x41306d){return _0xd45161(_0x5c1eb6,_0x406b('0x6'),[_0x79c4f0,_0x41306d]);}function _0x48a741(_0x20fe7d,_0x2b25b9){return _0xd45161(_0x5c1eb6,'ELEMENT_HEADING_CUSTOM',[_0x20fe7d,_0x2b25b9]);}this[_0x406b('0xd')]();}[_0x406b('0xd')](){const _0x46486f=this[_0x406b('0x7')],_0x1b0eed=_0x46486f['locale'];function _0x3a12e1(_0x8a2f25,_0x48819f){return _0xd45161(_0x1b0eed,_0x406b('0x8'),[_0x8a2f25,_0x48819f]);}_0x46486f[_0x406b('0x4')][_0x406b('0x1d')](_0x406b('0x12'))[_0x406b('0x13')][_0x406b('0x10')](_0x4fc4b0=>{if(_0x406b('0x5')!=_0x4fc4b0[_0x406b('0xa')])return;const {data:_0x3a5bda}=_0x4fc4b0;if(_0x3a5bda&&'heading'==_0x3a5bda[_0x406b('0x18')]){const _0x54ba4b=_0x3a5bda[_0x406b('0x1')][0x0][_0x406b('0x11')],_0x3ee8d0=this[_0x406b('0x9')](_0x54ba4b);if(null!==_0x3ee8d0)return{'type':_0x406b('0x3'),'content':_0xd45161(_0x1b0eed,_0x406b('0x0'),(_0x34fc13=0x1,_0x3d0478=_0x3ee8d0,_0xd45161(_0x1b0eed,_0x406b('0x6'),[_0x34fc13,_0x3d0478])))};const _0xc37b9a=this['_headingOptions']['find'](_0x2fe579=>_0x2fe579[_0x406b('0x16')]===_0x54ba4b)[_0x406b('0x14')];return{'type':_0x406b('0x3'),'content':_0xd45161(_0x1b0eed,_0x406b('0x0'),_0x3a12e1(0x1,_0xc37b9a))};}var _0x34fc13,_0x3d0478;});}[_0x406b('0x9')](_0x2c0a70){var _0x44f035,_0xfa0c31;const _0x445ad8=_0x2c0a70[_0x406b('0xb')](/^heading(\d+)/);if(_0x445ad8)return _0x445ad8[0x1];const _0x227c96=null===(_0x44f035=this['_headingOptions'])||void 0x0===_0x44f035?void 0x0:_0x44f035[_0x406b('0x19')](_0x2d8bdf=>_0x2d8bdf[_0x406b('0x16')]==_0x2c0a70);if(_0x227c96&&_0x227c96[_0x406b('0x17')]){const _0x55f3ce=_0x227c96[_0x406b('0x17')],_0x983899=(null!==(_0xfa0c31=_0x55f3ce[_0x406b('0xc')])&&void 0x0!==_0xfa0c31?_0xfa0c31:_0x55f3ce)[_0x406b('0xb')](/^h(\d+)/);if(_0x983899)return _0x983899[0x1];}return null;}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/highlight
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for highlight feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9055=['_registerLegacyDescription','has','editor','HighlightEditing','highlight','FORMAT_HIGHLIGHT','color','title','locale','_enableDefaultAttributesIntegration','afterInit','value','*Remove\x20highlight*','TrackChangesEditing','toLowerCase','registerDescriptionCallback','commandName','*Set\x20highlight:*\x20%0','format','registerAttributeLabel','plugins','highlight.options','get','commandParams'];(function(_0x588951,_0x905559){const _0x450034=function(_0x4c69f2){while(--_0x4c69f2){_0x588951['push'](_0x588951['shift']());}};_0x450034(++_0x905559);}(_0x9055,0x1d8));const _0x4500=function(_0x588951,_0x905559){_0x588951=_0x588951-0x0;let _0x450034=_0x9055[_0x588951];return _0x450034;};import{Plugin as _0x33fd7a}from'ckeditor5/src/core.js';import{getTranslation as _0x37aa9f}from'../utils/common-translations.js';export default class Z extends _0x33fd7a{[_0x4500('0x12')](){const _0x194d03=this[_0x4500('0xa')];if(!_0x194d03[_0x4500('0x4')][_0x4500('0x9')](_0x4500('0xb')))return;const _0x133c38=_0x194d03[_0x4500('0x4')][_0x4500('0x6')]('TrackChangesEditing'),_0x2be5e7=_0x194d03[_0x4500('0x10')];_0x133c38[_0x4500('0x11')](_0x4500('0xc'),['highlight']),_0x133c38['_descriptionFactory'][_0x4500('0x3')](_0x4500('0xc'),_0x37aa9f(_0x2be5e7,_0x4500('0xd'))),this[_0x4500('0x8')]();}[_0x4500('0x8')](){const _0x55eff6=this[_0x4500('0xa')],_0x36c56b=_0x55eff6['locale'];_0x55eff6[_0x4500('0x4')]['get'](_0x4500('0x15'))['_descriptionFactory'][_0x4500('0x17')](_0x535388=>{if('formatInline'!=_0x535388['type'])return;const {data:_0x57d511}=_0x535388;if(_0x57d511&&'highlight'==_0x57d511[_0x4500('0x0')]){const _0x45270d=_0x36c56b['t'],_0x4574ca=_0x57d511[_0x4500('0x7')][0x0][_0x4500('0x13')];if(_0x4574ca){const _0x38be6e=_0x55eff6['config']['get'](_0x4500('0x5'))['find'](_0x4111d7=>_0x4111d7['model']==_0x4574ca),_0x315aa4=_0x45270d(_0x38be6e[_0x4500('0xf')])[_0x4500('0x16')]();return{'type':'format','content':_0x37aa9f(_0x36c56b,_0x4500('0x1'),_0x315aa4),'color':{'value':_0x38be6e[_0x4500('0xe')],'title':_0x38be6e[_0x4500('0xf')]}};}return{'type':_0x4500('0x2'),'content':_0x37aa9f(_0x36c56b,_0x4500('0x14'),_0x37aa9f(_0x36c56b,_0x4500('0xd')))};}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/horizontalline
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x227a=['addClass','createEmptyElement','has','createContainerElement','horizontalLine','high','TrackChangesEditing','ELEMENT_HORIZONTAL_LINE','ck-horizontal-line','dataDowncast','conversion','plugins','HorizontalLineEditing','elementToStructure','showSuggestionHighlights','div','registerElementLabel','editor','insert','_descriptionFactory','for'];(function(_0x431fcf,_0x227a0d){const _0x4f92c1=function(_0x141f8d){while(--_0x141f8d){_0x431fcf['push'](_0x431fcf['shift']());}};_0x4f92c1(++_0x227a0d);}(_0x227a,0x17e));const _0x4f92=function(_0x431fcf,_0x227a0d){_0x431fcf=_0x431fcf-0x0;let _0x4f92c1=_0x227a[_0x431fcf];return _0x4f92c1;};import{Plugin as _0x3602ed}from'ckeditor5/src/core.js';import{getTranslation as _0x1b93ed}from'../utils/common-translations.js';export default class tt extends _0x3602ed{['afterInit'](){const _0xef86a8=this[_0x4f92('0xd')];if(!_0xef86a8[_0x4f92('0x7')][_0x4f92('0x13')](_0x4f92('0x8')))return;_0xef86a8[_0x4f92('0x7')]['get'](_0x4f92('0x2'))['enableCommand'](_0x4f92('0x0'));const _0x4ec117=_0xef86a8[_0x4f92('0x7')]['get'](_0x4f92('0x2')),_0x4e3a1e=_0xef86a8['locale'];_0x4ec117[_0x4f92('0xf')][_0x4f92('0xc')](_0x4f92('0x0'),_0x5b4760=>_0x1b93ed(_0x4e3a1e,_0x4f92('0x3'),_0x5b4760)),_0xef86a8[_0x4f92('0x6')][_0x4f92('0x10')](_0x4f92('0x5'))[_0x4f92('0x9')]({'model':'horizontalLine','view':(_0x187f01,{writer:_0x85b13,options:_0x41bdce})=>{if(!_0x41bdce[_0x4f92('0xa')])return null;const _0x488a50=_0x85b13[_0x4f92('0x14')](_0x4f92('0xb')),_0x1a1058=_0x85b13[_0x4f92('0x12')]('hr');return _0x85b13[_0x4f92('0x11')](_0x4f92('0x4'),_0x488a50),_0x85b13[_0x4f92('0xe')](_0x85b13['createPositionAt'](_0x488a50,0x0),_0x1a1058),_0x488a50;},'converterPriority':_0x4f92('0x1')});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/htmlembed
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c43=['TrackChangesEditing','editor','locale','getFirstRange','rawHtml','key','start','_descriptionFactory','has','htmlEmbed','_enableDefaultAttributesIntegration','*Change\x20%0\x20content*','format','value','formatBlock','type','afterInit','attribute','_registerLegacyDescription','registerElementLabel','ELEMENT_HTML_EMBED','plugins','commandName'];(function(_0x2b78fe,_0x3c4308){const _0x3491de=function(_0x607b7){while(--_0x607b7){_0x2b78fe['push'](_0x2b78fe['shift']());}};_0x3491de(++_0x3c4308);}(_0x3c43,0x11a));const _0x3491=function(_0x2b78fe,_0x3c4308){_0x2b78fe=_0x2b78fe-0x0;let _0x3491de=_0x3c43[_0x2b78fe];return _0x3491de;};import{Plugin as _0x4a1dd7}from'ckeditor5/src/core.js';import{getTranslation as _0x1462a5}from'../utils/common-translations.js';export default class et extends _0x4a1dd7{[_0x3491('0xa')](){const _0x8886f4=this[_0x3491('0x12')];if(!_0x8886f4[_0x3491('0xf')][_0x3491('0x2')]('HtmlEmbed'))return;const _0x27b4dd=_0x8886f4[_0x3491('0xf')]['get'](_0x3491('0x11')),_0x281ffa=_0x8886f4['locale'];_0x27b4dd['_descriptionFactory'][_0x3491('0xd')](_0x3491('0x15'),_0x4114d5=>_0x1462a5(_0x281ffa,_0x3491('0xe'),_0x4114d5)),_0x27b4dd[_0x3491('0x4')](_0x3491('0x3'),[],[_0x3491('0x7')]),_0x27b4dd[_0x3491('0x1')]['registerDescriptionCallback'](_0x289e9d=>{if(_0x3491('0xb')!=_0x289e9d['type'])return;const {data:_0x30aa39}=_0x289e9d;if(_0x30aa39&&_0x3491('0x7')==_0x30aa39[_0x3491('0x16')]&&_0x289e9d[_0x3491('0x14')]()[_0x3491('0x0')]['nodeAfter']['is']('element',_0x3491('0x15'))){const _0x498103=_0x1462a5(_0x281ffa,_0x3491('0xe'));return{'type':_0x3491('0x6'),'content':_0x1462a5(_0x281ffa,_0x3491('0x5'),_0x498103)};}}),this[_0x3491('0xc')]();}[_0x3491('0xc')](){const _0x34b496=this[_0x3491('0x12')],_0x774a0f=_0x34b496[_0x3491('0x13')];_0x34b496[_0x3491('0xf')]['get'](_0x3491('0x11'))[_0x3491('0x1')]['registerDescriptionCallback'](_0x44cf40=>{if(_0x3491('0x8')!=_0x44cf40[_0x3491('0x9')])return;const {data:_0x3ac7ed}=_0x44cf40;if(_0x3ac7ed&&_0x3491('0x3')==_0x3ac7ed[_0x3491('0x10')]){const _0x282101=_0x1462a5(_0x774a0f,_0x3491('0xe'));return{'type':_0x3491('0x6'),'content':_0x1462a5(_0x774a0f,_0x3491('0x5'),_0x282101)};}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/image
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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'))};}}});}}
|
|
23
|
+
const _0x2aa9=['Inline\x20image\x20to\x20block\x20image','*Reset\x20image\x20width*','end','getNearestSelectionRange','convertBlockImageToInline','join','imageTextAlternative','isIntersecting','_registerLegacyDescription','schema','_suggestionFactory','addObject','markInsertion','createRange','document','convertInlineImageToBlock','ImageEditing','imageTypeInline','change','editor','detach','ELEMENT_INLINE_IMAGE','afterInit','imageTypeBlock','commandParams','formatBlock','previous','isBlockImage','enableCommand','TrackChangesEditing','imageStylePreApply','model','resizedWidth','get','registerDescriptionCallback','ImageCaptionEditing','getFirstRange','*Set\x20image\x20text\x20alternative:*\x20%0','getClosestSelectedImageElement','insertImage','element','*Remove\x20image\x20text\x20alternative*','caption','ImageUtils','imageInline','locale','backward','discard','selection','isCollapsed','commandName','alt','markBlockFormat','start','resizeImage','nodeAfter','getSuggestionCallback','findIndex','chain','isEqual','fromPosition','ELEMENT_IMAGE','createRangeOn','_enableDefaultAttributesIntegration','ImageResize','plugins','deletion','*Set\x20image\x20width:*\x20%0','isOwn','toPrevious','isBefore','registerAttributeLabel','ImageTextAlternativeEditing','registerElementLabel','accept','ImageInlineEditing','nodeBefore','filter','_findSuggestions','has','length','FORMAT_IMAGE_SIZE','width','type','subType','forceDefaultExecution','imageCaption','formatInline','newValue','registerCustomCallback','getContainedElement','_descriptionFactory','insertion','format'];(function(_0x2d539d,_0x2aa9f2){const _0xa32b74=function(_0x1a7977){while(--_0x1a7977){_0x2d539d['push'](_0x2d539d['shift']());}};_0xa32b74(++_0x2aa9f2);}(_0x2aa9,0x122));const _0xa32b=function(_0x2d539d,_0x2aa9f2){_0x2d539d=_0x2d539d-0x0;let _0xa32b74=_0x2aa9[_0x2d539d];return _0xa32b74;};import{Plugin as _0x4634ca}from'ckeditor5/src/core.js';import{LivePosition as _0x467a13}from'ckeditor5/src/engine.js';import{getTranslation as _0x547086}from'../utils/common-translations.js';export default class it extends _0x4634ca{[_0xa32b('0xe')](){const _0x1f63f2=this['editor'];if(!_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x8')))return;const _0x192532=_0x1f63f2[_0xa32b('0x39')]['get']('TrackChangesEditing'),_0x4df73a=_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x19')](_0xa32b('0x23')),_0x3a1eae=_0x1f63f2[_0xa32b('0x25')];_0x192532[_0xa32b('0x14')](_0xa32b('0x1f')),_0x192532[_0xa32b('0x53')][_0xa32b('0x41')]('imageBlock',_0x2aa0d8=>_0x547086(_0x3a1eae,_0xa32b('0x35'),_0x2aa0d8)),_0x192532[_0xa32b('0x53')][_0xa32b('0x41')](_0xa32b('0x24'),_0xc97ad7=>_0x547086(_0x3a1eae,_0xa32b('0xd'),_0xc97ad7)),_0x192532[_0xa32b('0x53')]['registerElementLabel'](_0xa32b('0x22'),()=>_0x547086(_0x3a1eae,'ELEMENT_CAPTION')),_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')]('ImageUploadEditing')&&_0x192532[_0xa32b('0x14')]('uploadImage'),_0x1f63f2[_0xa32b('0x39')]['has']('ImageBlockEditing')&&_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x43'))&&(_0x192532[_0xa32b('0x14')]('imageTypeInline',(_0x4c72ce,_0x595306)=>{const _0x1f0d32=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2[_0xa32b('0x17')]['document']['selection']);_0x1f63f2[_0xa32b('0x17')][_0xa32b('0xa')](()=>{_0x192532['markBlockFormat'](_0x1f0d32,{'commandName':'imageTypeInline','commandParams':[_0x595306]},[],_0xa32b('0x5a'));});}),_0x192532[_0xa32b('0x14')](_0xa32b('0xf'),(_0x1af318,_0x4c440a)=>{_0x1f63f2[_0xa32b('0x17')][_0xa32b('0xa')](_0x8d027f=>{let _0x4e157c=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2[_0xa32b('0x17')]['document'][_0xa32b('0x28')]),_0x2fe0b1=_0x8d027f[_0xa32b('0x36')](_0x4e157c);const _0x3d7d33=_0x467a13['fromPosition'](_0x2fe0b1['start'],_0xa32b('0x3d')),_0x23325d=_0x467a13[_0xa32b('0x34')](_0x2fe0b1[_0xa32b('0x58')],'toNext');_0x192532[_0xa32b('0x4d')](()=>_0x1af318(_0x4c440a)),_0x4e157c=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2['model'][_0xa32b('0x6')][_0xa32b('0x28')]),_0x2fe0b1=_0x8d027f[_0xa32b('0x36')](_0x4e157c);const _0x5c7b4b=_0x8d027f[_0xa32b('0x5')](_0x3d7d33,_0x23325d);_0x3d7d33[_0xa32b('0xc')](),_0x23325d['detach'](),_0x192532[_0xa32b('0x2c')](_0x4e157c,{'commandName':_0xa32b('0x9'),'commandParams':[_0x4c440a]},[],'convertInlineImageToBlock'),_0x5c7b4b[_0xa32b('0x2d')][_0xa32b('0x3e')](_0x2fe0b1[_0xa32b('0x2d')])&&_0x192532['markInsertion'](_0x8d027f['createRange'](_0x5c7b4b[_0xa32b('0x2d')],_0x2fe0b1[_0xa32b('0x2d')]),_0xa32b('0x7')),_0x2fe0b1[_0xa32b('0x58')][_0xa32b('0x3e')](_0x5c7b4b['end'])&&_0x192532[_0xa32b('0x4')](_0x8d027f['createRange'](_0x2fe0b1['end'],_0x5c7b4b['end']),_0xa32b('0x7'));});}),_0x192532['_suggestionFactory'][_0xa32b('0x51')](_0xa32b('0x11'),_0xa32b('0x7'),_0xa32b('0x5b'),()=>!0x1),_0x192532[_0xa32b('0x2')][_0xa32b('0x51')](_0xa32b('0x11'),_0xa32b('0x7'),_0xa32b('0x42'),()=>!0x1),_0x192532[_0xa32b('0x2')][_0xa32b('0x51')](_0xa32b('0x11'),'convertInlineImageToBlock',_0xa32b('0x27'),_0x192532['_suggestionFactory']['getSuggestionCallback'](_0xa32b('0x11'),'','accept')),_0x192532[_0xa32b('0x2')][_0xa32b('0x51')](_0xa32b('0x54'),'convertInlineImageToBlock','join',()=>!0x1),_0x192532['_suggestionFactory'][_0xa32b('0x51')]('insertion',_0xa32b('0x7'),_0xa32b('0x27'),([_0x5e6db3])=>{const _0x58e0ca=_0x192532[_0xa32b('0x2')][_0xa32b('0x30')]('insertion','','discard');let _0x334f9d=_0x5e6db3['start'],_0x9cec37=_0x5e6db3[_0xa32b('0x58')];const _0x51b78a=_0x1f63f2['model'][_0xa32b('0x1')]['getNearestSelectionRange'](_0x334f9d,_0xa32b('0x26')),_0x488087=_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x1')][_0xa32b('0x59')](_0x9cec37,'forward');_0x51b78a[_0xa32b('0x29')]&&(_0x334f9d=_0x51b78a['start']),_0x488087[_0xa32b('0x29')]&&(_0x9cec37=_0x488087[_0xa32b('0x58')]),_0x58e0ca([_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x5')](_0x334f9d,_0x9cec37)]);}),_0x192532['_suggestionFactory'][_0xa32b('0x51')](_0xa32b('0x11'),_0xa32b('0x7'),_0xa32b('0x32'),_0x183f70),_0x192532['_suggestionFactory'][_0xa32b('0x51')](_0xa32b('0x54'),_0xa32b('0x7'),_0xa32b('0x32'),_0x183f70)),_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x1b'))&&(_0x192532[_0xa32b('0x14')]('toggleImageCaption',(_0x4a76a6,_0x2df82e)=>{const _0x5500fc=_0x1f63f2[_0xa32b('0x39')]['get']('ImageCaptionUtils');let _0x4b15ae=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x6')][_0xa32b('0x28')]),_0x2b964f=_0x5500fc['getCaptionFromImageModelElement'](_0x4b15ae);_0x1f63f2[_0xa32b('0x17')][_0xa32b('0xa')](()=>{if(_0x2b964f)return void _0x192532['markDeletion'](_0x1f63f2[_0xa32b('0x17')][_0xa32b('0x36')](_0x2b964f));const _0x45650e=_0x4df73a[_0xa32b('0x13')](_0x4b15ae);_0x4a76a6(_0x2df82e),_0x4b15ae=_0x4df73a[_0xa32b('0x1e')](_0x1f63f2['model']['document'][_0xa32b('0x28')]),_0x2b964f=_0x5500fc['getCaptionFromImageModelElement'](_0x4b15ae),_0x192532[_0xa32b('0x4')](_0x1f63f2['model']['createRangeOn'](_0x2b964f),_0x45650e?null:_0xa32b('0x4e'));});}),_0x192532[_0xa32b('0x2')]['registerCustomCallback']('insertion','imageCaption','chain',_0x183f70));const _0x2bfe45=[{'type':_0xa32b('0x11'),'subType':_0xa32b('0x16')},{'type':_0xa32b('0x54'),'subType':_0xa32b('0x4e')},{'type':_0xa32b('0x11'),'subType':_0xa32b('0x7')},{'type':_0xa32b('0x54'),'subType':_0xa32b('0x7')}];function _0x50dee7(_0x44fe9b,_0x3a7d8f){const _0xadad42=_0x2bfe45[_0xa32b('0x31')](({type:_0x478f11,subType:_0x883b23})=>_0x44fe9b['type']==_0x478f11&&_0x44fe9b[_0xa32b('0x4c')]==_0x883b23),_0x4b894b=_0x2bfe45['findIndex'](({type:_0x5c0a71,subType:_0x419b32})=>_0x3a7d8f['type']==_0x5c0a71&&_0x3a7d8f[_0xa32b('0x4c')]==_0x419b32);if(_0xadad42<0x0||_0x4b894b<0x0)return!0x1;const _0x25c463=_0x44fe9b[_0xa32b('0x1c')](),_0x2b6bc9=_0x3a7d8f[_0xa32b('0x1c')]();if((0x0==_0xadad42||0x1==_0xadad42)&&0x2==_0x4b894b&&_0x25c463[_0xa32b('0x5d')](_0x2b6bc9))return!0x0;if(0x2==_0xadad42&&0x3==_0x4b894b){const _0x5b8d52=_0x192532[_0xa32b('0x46')](_0x25c463,_0xa32b('0x54'))[_0xa32b('0x45')](({suggestion:_0x3e8e5d,meta:_0x31e541})=>_0x31e541[_0xa32b('0x3c')]&&_0xa32b('0x7')==_0x3e8e5d[_0xa32b('0x4c')]);if(_0x5b8d52[_0xa32b('0x48')]>0x1&&_0x2b6bc9[_0xa32b('0x58')][_0xa32b('0x33')](_0x25c463['start']))return!0x0;if(0x1==_0x5b8d52[_0xa32b('0x48')]&&(_0x25c463[_0xa32b('0x2d')][_0xa32b('0x33')](_0x2b6bc9[_0xa32b('0x58')])||_0x25c463[_0xa32b('0x58')][_0xa32b('0x33')](_0x2b6bc9[_0xa32b('0x2d')])))return!0x0;}if(0x3==_0xadad42&&0x3==_0x4b894b&&_0x25c463[_0xa32b('0x2d')]['isBefore'](_0x2b6bc9['start'])){const _0x23c93b=_0x25c463[_0xa32b('0x58')][_0xa32b('0x2f')],_0x2d2f49=_0x2b6bc9[_0xa32b('0x2d')][_0xa32b('0x44')];return _0x4df73a[_0xa32b('0x13')](_0x23c93b)&&_0x23c93b===_0x2d2f49;}return!0x1;}function _0x183f70(_0x311f2f,_0x51acd6){return _0x50dee7(_0x311f2f,_0x51acd6)?[_0x311f2f,_0x51acd6]:_0x50dee7(_0x51acd6,_0x311f2f)?[_0x51acd6,_0x311f2f]:null;}_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x38'))&&(_0x192532[_0xa32b('0x37')](_0xa32b('0x2e'),[],['resizedWidth']),_0x192532[_0xa32b('0x53')][_0xa32b('0x3f')](_0xa32b('0x18'),_0x547086(_0x3a1eae,_0xa32b('0x49')))),_0x1f63f2[_0xa32b('0x39')][_0xa32b('0x47')](_0xa32b('0x40'))&&_0x192532[_0xa32b('0x37')](_0xa32b('0x5c'),[],['alt']),_0x192532['_descriptionFactory']['registerDescriptionCallback'](_0x3c4e95=>{if(!!_0x2bfe45['find'](({type:_0x455d1b,subType:_0x3acc99})=>_0x3c4e95[_0xa32b('0x4b')]==_0x455d1b&&_0x3c4e95[_0xa32b('0x4c')]==_0x3acc99))return _0x3c4e95[_0xa32b('0x12')]?{}:void 0x0;}),_0x192532[_0xa32b('0x53')][_0xa32b('0x1a')](_0x1151b3=>{if(_0xa32b('0x54')==_0x1151b3[_0xa32b('0x4b')]||_0xa32b('0x3a')==_0x1151b3['type']){const _0x443b11=_0x1151b3[_0xa32b('0x52')]();if(_0x443b11&&_0x443b11['is'](_0xa32b('0x20'),'caption'))return{'type':'insertion'==_0x1151b3[_0xa32b('0x4b')]?_0xa32b('0x3'):'removeObject','element':_0x443b11,'quantity':0x1};}}),_0x192532[_0xa32b('0x53')][_0xa32b('0x1a')](_0x3b9073=>'formatBlock'==_0x3b9073[_0xa32b('0x4b')]&&'convertInlineImageToBlock'==_0x3b9073[_0xa32b('0x4c')]?{'type':_0xa32b('0x55'),'content':_0xa32b('0x56')}:'formatBlock'==_0x3b9073[_0xa32b('0x4b')]&&'convertBlockImageToInline'==_0x3b9073[_0xa32b('0x4c')]?{'type':_0xa32b('0x55'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x192532[_0xa32b('0x53')]['registerDescriptionCallback'](_0x4e9c47=>{if('attribute'!=_0x4e9c47[_0xa32b('0x4b')])return;const {data:_0x284b20}=_0x4e9c47;if(!_0x284b20||_0xa32b('0x2b')!=_0x284b20['key'])return;const _0xc7df45=_0x284b20['newValue'];return _0xc7df45?{'type':_0xa32b('0x55'),'content':_0x547086(_0x3a1eae,_0xa32b('0x1d'),'\x22'+_0xc7df45+'\x22')}:{'type':'format','content':_0x547086(_0x3a1eae,_0xa32b('0x21'))};}),this[_0xa32b('0x0')]();}['_registerLegacyDescription'](){const _0x533a1c=this[_0xa32b('0xb')],_0x298ec9=_0x533a1c[_0xa32b('0x25')];_0x533a1c['plugins']['get'](_0xa32b('0x15'))[_0xa32b('0x53')][_0xa32b('0x1a')](_0x4054ce=>{if(_0xa32b('0x11')!=_0x4054ce['type']&&_0xa32b('0x4f')!=_0x4054ce[_0xa32b('0x4b')])return;const {data:_0xc7f8fa}=_0x4054ce;if(_0xc7f8fa){if(_0xa32b('0x5c')==_0xc7f8fa[_0xa32b('0x2a')]){const _0x42cf68=_0xc7f8fa[_0xa32b('0x10')][0x0][_0xa32b('0x50')];return _0x42cf68?{'type':_0xa32b('0x55'),'content':_0x547086(_0x298ec9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42cf68+'\x22')}:{'type':_0xa32b('0x55'),'content':_0x547086(_0x298ec9,'*Remove\x20image\x20text\x20alternative*')};}if(_0xa32b('0x2e')==_0xc7f8fa[_0xa32b('0x2a')]){const _0x1a2ea6=_0xc7f8fa['commandParams'][0x0][_0xa32b('0x4a')];return _0x1a2ea6?{'type':_0xa32b('0x55'),'content':_0x547086(_0x298ec9,_0xa32b('0x3b'),_0x1a2ea6)}:{'type':'format','content':_0x547086(_0x298ec9,_0xa32b('0x57'))};}}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/imagereplace
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for image replace feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c1b=['get','format','attribute','formatBlock','_descriptionFactory','_suggestionFactory','replaceImageSource','editor','getSuggestionCallback','commandName','type','_handleLegacySuggestions','registerCustomCallback','_enableDefaultAttributesIntegration','_registerLegacyDescription','newValue','afterInit','plugins','ImageEditing','formatInline','registerDescriptionCallback','*Format:*\x20replace\x20image\x20URL','TrackChangesEditing','key','has','src','locale'];(function(_0x4d45b6,_0x5c1b68){const _0x11ea75=function(_0x4eaa0b){while(--_0x4eaa0b){_0x4d45b6['push'](_0x4d45b6['shift']());}};_0x11ea75(++_0x5c1b68);}(_0x5c1b,0x1a8));const _0x11ea=function(_0x4d45b6,_0x5c1b68){_0x4d45b6=_0x4d45b6-0x0;let _0x11ea75=_0x5c1b[_0x4d45b6];return _0x11ea75;};import{Plugin as _0x4c39fb}from'ckeditor5/src/core.js';import{getTranslation as _0x30925c}from'../utils/common-translations.js';export default class st extends _0x4c39fb{[_0x11ea('0x18')](){if(!this[_0x11ea('0xf')][_0x11ea('0x19')][_0x11ea('0x5')](_0x11ea('0x1a')))return;const _0x12d6cd=this[_0x11ea('0xf')][_0x11ea('0x7')],_0xe68bd0=this['editor'][_0x11ea('0x19')]['get']('TrackChangesEditing');_0xe68bd0[_0x11ea('0x15')](_0x11ea('0xe'),[],['src']),_0xe68bd0[_0x11ea('0xc')][_0x11ea('0x1')](_0x35ca1f=>{if(_0x11ea('0xa')!=_0x35ca1f[_0x11ea('0x12')])return;const {data:_0x1a027b}=_0x35ca1f;return _0x1a027b&&_0x11ea('0x6')==_0x1a027b[_0x11ea('0x4')]?_0x1a027b[_0x11ea('0x17')]&&_0x1a027b['oldValue']?{'type':_0x11ea('0x9'),'content':_0x30925c(_0x12d6cd,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this[_0x11ea('0x13')]();}[_0x11ea('0x13')](){const _0x224a04=this['editor'][_0x11ea('0x19')][_0x11ea('0x8')]('TrackChangesEditing');_0x224a04[_0x11ea('0xd')][_0x11ea('0x14')](_0x11ea('0xb'),_0x11ea('0xe'),'accept',_0x224a04['_suggestionFactory'][_0x11ea('0x10')](_0x11ea('0xb'),null,'discard')),_0x224a04[_0x11ea('0xd')][_0x11ea('0x14')](_0x11ea('0xb'),'replaceImageSource','discard',_0x224a04[_0x11ea('0xd')][_0x11ea('0x10')]('formatBlock',null,'accept')),this[_0x11ea('0x16')]();}[_0x11ea('0x16')](){const _0x48a367=this[_0x11ea('0xf')],_0x2e953d=_0x48a367['locale'];_0x48a367[_0x11ea('0x19')][_0x11ea('0x8')](_0x11ea('0x3'))[_0x11ea('0xc')][_0x11ea('0x1')](_0x481d25=>{if('formatBlock'!=_0x481d25['type']&&_0x11ea('0x0')!=_0x481d25[_0x11ea('0x12')])return;const {data:_0x396189}=_0x481d25;if(!_0x396189||_0x11ea('0xe')!=_0x396189[_0x11ea('0x11')])return;return{'type':_0x11ea('0x9'),'content':_0x30925c(_0x2e953d,_0x11ea('0x2'))};});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/image
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
11
|
*/
|