@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.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/README.md +0 -1
- package/build/track-changes.js +2 -2
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +6 -2
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +6 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +6 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +5 -1
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +16 -12
- package/src/index.js +2 -2
- package/src/integrations/alignment.d.ts +5 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +5 -1
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +5 -1
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +5 -1
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +5 -1
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +5 -1
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +6 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +5 -1
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +7 -3
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +6 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +5 -1
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +5 -1
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +5 -1
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +5 -1
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +5 -1
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +5 -1
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +5 -1
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +5 -1
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +7 -3
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +5 -1
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +5 -1
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +6 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +5 -1
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +5 -1
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +7 -3
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +5 -1
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +5 -1
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +5 -1
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +5 -1
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +5 -1
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +5 -1
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +6 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +5 -1
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +5 -1
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +5 -1
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +6 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +4 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +8 -4
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +6 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +6 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +5 -1
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +8 -4
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +5 -1
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +5 -1
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +5 -1
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +7 -3
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +15 -5
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +5 -5
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +10 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +5 -1
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +55 -51
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +7 -3
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +7 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +7 -7
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +8 -4
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x5050=['value','enableCommand','highlight','getAttribute','config','format','_descriptionFactory','model','selection','getFirstPosition','plugins','formatInline','toLowerCase','has','*Remove\x20highlight*','commandName','item','getRanges','*Set\x20highlight:*\x20%0','backward','TrackChangesEditing','push','get','createRange','isCollapsed','commandParams','color','hasAttribute','afterInit','document','find'];(function(_0x4845e8,_0x5050c4){const _0x116a24=function(_0x491cc9){while(--_0x491cc9){_0x4845e8['push'](_0x4845e8['shift']());}};_0x116a24(++_0x5050c4);}(_0x5050,0x193));const _0x116a=function(_0x4845e8,_0x5050c4){_0x4845e8=_0x4845e8-0x0;let _0x116a24=_0x5050[_0x4845e8];return _0x116a24;};import{Plugin as _0x34c879}from'ckeditor5/src/core';import{getTranslation as _0x282ecf}from'../utils/common-translations';import{getRangesWithAttribute as _0x52ef01}from'./utils';export default class K extends _0x34c879{[_0x116a('0x1c')](){const _0x4c3ef8=this['editor'];if(!_0x4c3ef8[_0x116a('0xa')][_0x116a('0xd')]('HighlightEditing'))return;const _0x413d5b=_0x4c3ef8[_0x116a('0xa')][_0x116a('0x16')](_0x116a('0x14'));_0x413d5b[_0x116a('0x1')](_0x116a('0x2'),(_0x169015,_0x4d7774={})=>{const _0x726bc9=_0x4c3ef8['model'][_0x116a('0x1d')][_0x116a('0x8')],_0x1bdd13=_0x726bc9[_0x116a('0x3')]('highlight');let _0x4918bc=_0x4d7774[_0x116a('0x0')],_0x98c8a5=[];if(_0x726bc9[_0x116a('0x18')]){const _0x159f44=_0x726bc9[_0x116a('0x9')]();if(!_0x726bc9[_0x116a('0x1b')](_0x116a('0x2')))return void _0x169015(_0x4d7774);{const _0x203d32=_0x5a8c2f=>_0x5a8c2f[_0x116a('0x10')]['getAttribute'](_0x116a('0x2'))===_0x1bdd13,_0x51f1ca=_0x159f44['getLastMatchingPosition'](_0x203d32,{'direction':_0x116a('0x13')}),_0x33af67=_0x159f44['getLastMatchingPosition'](_0x203d32);_0x98c8a5=[_0x4c3ef8[_0x116a('0x7')][_0x116a('0x17')](_0x51f1ca,_0x33af67)],_0x4918bc==_0x1bdd13&&(_0x4918bc=null);}}else for(const _0x493645 of _0x726bc9[_0x116a('0x11')]())_0x4918bc?_0x98c8a5['push'](_0x493645):_0x98c8a5[_0x116a('0x15')](..._0x52ef01(_0x116a('0x2'),_0x493645,_0x4c3ef8['model']));_0x4c3ef8[_0x116a('0x7')]['change'](()=>{for(const _0x10409d of _0x98c8a5)_0x413d5b['markInlineFormat'](_0x10409d,{'commandName':'highlight','commandParams':[{'value':_0x4918bc}]});});});const _0x3f099a=_0x4c3ef8['locale'];_0x413d5b[_0x116a('0x6')]['registerDescriptionCallback'](_0x3d71f8=>{const {type:_0x4b05e4,data:_0x4e1ad0}=_0x3d71f8;if(_0x116a('0xb')==_0x4b05e4&&_0x4e1ad0&&_0x116a('0x2')==_0x4e1ad0[_0x116a('0xf')]){const _0x145d46=_0x3f099a['t'],_0x5a2bdd=_0x4e1ad0[_0x116a('0x19')][0x0][_0x116a('0x0')];if(_0x5a2bdd){const _0x59ad56=_0x4c3ef8[_0x116a('0x4')][_0x116a('0x16')]('highlight.options')[_0x116a('0x1e')](_0xdb9e8b=>_0xdb9e8b['model']==_0x5a2bdd),_0x51ac69=_0x145d46(_0x59ad56['title'])[_0x116a('0xc')]();return{'type':_0x116a('0x5'),'content':_0x282ecf(_0x3f099a,_0x116a('0x12'),_0x51ac69),'color':{'value':_0x59ad56[_0x116a('0x1a')],'title':_0x59ad56['title']}};}return{'type':_0x116a('0x5'),'content':_0x282ecf(_0x3f099a,_0x116a('0xe'),_0x282ecf(_0x3f099a,'FORMAT_HIGHLIGHT'))};}});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/horizontalline
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x330d=['enableCommand','createPositionAt','insert','dataDowncast','ELEMENT_HORIZONTAL_LINE','has','afterInit','showSuggestionHighlights','conversion','elementToStructure','plugins','addClass','_descriptionFactory','get','ck-horizontal-line','createEmptyElement','for','editor','horizontalLine','registerElementLabel','high','TrackChangesEditing','locale','createContainerElement'];(function(_0x112e15,_0x330dda){const _0x44c31d=function(_0x4e2492){while(--_0x4e2492){_0x112e15['push'](_0x112e15['shift']());}};_0x44c31d(++_0x330dda);}(_0x330d,0xac));const _0x44c3=function(_0x112e15,_0x330dda){_0x112e15=_0x112e15-0x0;let _0x44c31d=_0x330d[_0x112e15];return _0x44c31d;};import{Plugin as _0x4d48a7}from'ckeditor5/src/core';import{getTranslation as _0x2113ce}from'../utils/common-translations';export default class Q extends _0x4d48a7{[_0x44c3('0x2')](){const _0x2bc187=this[_0x44c3('0xd')];if(!_0x2bc187[_0x44c3('0x6')][_0x44c3('0x1')]('HorizontalLineEditing'))return;_0x2bc187[_0x44c3('0x6')][_0x44c3('0x9')](_0x44c3('0x11'))[_0x44c3('0x14')](_0x44c3('0xe'));const _0x3480a7=_0x2bc187[_0x44c3('0x6')]['get']('TrackChangesEditing'),_0x2040d9=_0x2bc187[_0x44c3('0x12')];_0x3480a7[_0x44c3('0x8')][_0x44c3('0xf')](_0x44c3('0xe'),_0x56bc42=>_0x2113ce(_0x2040d9,_0x44c3('0x0'),_0x56bc42)),_0x2bc187[_0x44c3('0x4')][_0x44c3('0xc')](_0x44c3('0x17'))[_0x44c3('0x5')]({'model':_0x44c3('0xe'),'view':(_0x527254,{writer:_0x58fe26,options:_0x22838e})=>{if(!_0x22838e[_0x44c3('0x3')])return null;const _0x6ef35a=_0x58fe26[_0x44c3('0x13')]('div'),_0xe08fdc=_0x58fe26[_0x44c3('0xb')]('hr');return _0x58fe26[_0x44c3('0x7')](_0x44c3('0xa'),_0x6ef35a),_0x58fe26[_0x44c3('0x16')](_0x58fe26[_0x44c3('0x15')](_0x6ef35a,0x0),_0xe08fdc),_0x6ef35a;},'converterPriority':_0x44c3('0x10')});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/htmlembed
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x48b7=['model','change','registerDescriptionCallback','cancel','enableCommand','document','*Change\x20%0\x20content*','locale','afterInit','element','selection','editing','ELEMENT_HTML_EMBED','markBlockFormat','rawHtml','view','editor','commandName','format','TrackChangesEditing','_descriptionFactory','has','get','getAttribute','htmlEmbed','plugins','getSelectedElement','getCustomProperty'];(function(_0x553313,_0x48b7be){const _0x2d623a=function(_0x3478c5){while(--_0x3478c5){_0x553313['push'](_0x553313['shift']());}};_0x2d623a(++_0x48b7be);}(_0x48b7,0x1ca));const _0x2d62=function(_0x553313,_0x48b7be){_0x553313=_0x553313-0x0;let _0x2d623a=_0x48b7[_0x553313];return _0x2d623a;};import{Plugin as _0x31fb9f}from'ckeditor5/src/core';import{getTranslation as _0x34c6c9}from'../utils/common-translations';export default class V extends _0x31fb9f{[_0x2d62('0x1a')](){const _0x1d6c9b=this[_0x2d62('0x6')];if(!_0x1d6c9b[_0x2d62('0xf')][_0x2d62('0xb')]('HtmlEmbed'))return;const _0x2f11cf=_0x1d6c9b[_0x2d62('0xf')][_0x2d62('0xc')](_0x2d62('0x9')),_0x1ebf0a=_0x1d6c9b[_0x2d62('0x19')],_0x4d9544=_0x1d6c9b[_0x2d62('0x1')][_0x2d62('0x5')]['document'][_0x2d62('0x0')];_0x2f11cf[_0x2d62('0xa')]['registerElementLabel']('rawHtml',_0x26f389=>_0x34c6c9(_0x1ebf0a,'ELEMENT_HTML_EMBED',_0x26f389)),_0x1d6c9b['plugins'][_0x2d62('0xc')](_0x2d62('0x9'))[_0x2d62('0x16')](_0x2d62('0xe'),(_0x2ac8fe,_0x4f6e85)=>{const _0x1ff019=_0x1d6c9b[_0x2d62('0x12')],_0x226beb=_0x1ff019[_0x2d62('0x17')]['selection'];_0x1ff019[_0x2d62('0x13')](()=>{const _0x495756=function(_0x4e92d9){const _0x11ddd2=_0x4e92d9['getSelectedElement']();if(_0x11ddd2&&_0x11ddd2['is'](_0x2d62('0x1b'),_0x2d62('0x4')))return _0x4e92d9[_0x2d62('0x10')]();return null;}(_0x226beb);if(!_0x495756)return void _0x2ac8fe(null);const _0x2ff1bf=_0x495756[_0x2d62('0xd')]('value')||'';if(void 0x0===_0x4f6e85)return;if(_0x4f6e85===_0x2ff1bf)return;_0x2f11cf[_0x2d62('0x3')](_0x495756,{'commandName':'htmlEmbed','commandParams':[_0x4f6e85]}),_0x4d9544[_0x2d62('0x10')]()[_0x2d62('0x11')]('rawHtmlApi')[_0x2d62('0x15')]();});}),_0x2f11cf[_0x2d62('0xa')][_0x2d62('0x14')](_0x590905=>{const {data:_0x354bbc}=_0x590905;if(_0x354bbc&&'htmlEmbed'==_0x354bbc[_0x2d62('0x7')]){const _0x4f2b86=_0x34c6c9(_0x1ebf0a,_0x2d62('0x2'));return{'type':_0x2d62('0x8'),'content':_0x34c6c9(_0x1ebf0a,_0x2d62('0x18'),_0x4f2b86)};}});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/image
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0xa296=['commandParams','toLowerCase','commandReversedParams','filter','get','newValue','ImageUploadEditing','length','side','next','ImageStyleEditing','formatInline','commandName','refresh','ImageTextAlternativeEditing','nodeBefore','toNext','getSuggestionCallback','getSuggestions','imageStyle','head','imageCaption','ImageUtils','type','getFirstRange','imageTypeInline','find','_findSuggestions','format','ELEMENT_INLINE_IMAGE','Users','caption','accept','registerElementLabel','nodeAfter','shouldConvertImageType','selection','resizeImage','isEqual','_descriptionFactory','getNearestSelectionRange','ImageBlockEditing','imageInline','Inline\x20image\x20to\x20block\x20image','*Format:*\x20%0','ELEMENT_IMAGE','uploadImage','getCaptionFromImageModelElement','addObject','isOwn','editor','join','markInlineFormat','insertImage','hasSuggestion','insertion','forceDefaultExecution','discardSuggestion','isCollapsed','getSuggestion','formatBlock','isIntersecting','chain','*Reset\x20image\x20width*','width','fromPosition','ImageEditing','toggleImageCaption','hasAttribute','previous','ELEMENT_CAPTION','imageStylePreApply','imageStylePostApply','isInlineImage','createRange','*Set\x20image\x20text\x20alternative:*\x20%0','isBefore','*Remove\x20image\x20text\x20alternative*','getChangedMarkers','enableCommand','registerCustomCallback','model','markBlockFormat','_suggestionFactory','suggestion','registerPostFixer','imageTextAlternative','element','document','has','registerDescriptionCallback','value','start','toPrevious','getClosestSelectedImageElement','deletion','*Set\x20image\x20width:*\x20%0','findIndex','isInContent','convertBlockImageToInline','createRangeOn','end','forEach','newRange','ImageCaptionEditing','_splitMarkerName','TrackChangesEditing','plugins','getContainedElement','getAttribute','schema','subType','change','imageTypeBlock','convertInlineImageToBlock','isBlockImage','title','discard','afterInit','backward','markDeletion','commands','from'];(function(_0x4cb2e5,_0xa29622){const _0x1a5364=function(_0x527550){while(--_0x527550){_0x4cb2e5['push'](_0x4cb2e5['shift']());}};_0x1a5364(++_0xa29622);}(_0xa296,0x1a6));const _0x1a53=function(_0x4cb2e5,_0xa29622){_0x4cb2e5=_0x4cb2e5-0x0;let _0x1a5364=_0xa296[_0x4cb2e5];return _0x1a5364;};import{Plugin as _0x4f4f0d}from'ckeditor5/src/core.js';import{LivePosition as _0x5127af}from'ckeditor5/src/engine.js';import{uid as _0x3c11d0}from'ckeditor5/src/utils.js';import{getTranslation as _0x458bee}from'../utils/common-translations.js';export default class X extends _0x4f4f0d{[_0x1a53('0x41')](){const _0x1ca000=this[_0x1a53('0x78')];if(!_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0xd')))return;const _0x286dab=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')](_0x1a53('0x35')),_0x7b4b65=_0x1ca000['plugins']['get'](_0x1a53('0x5c')),_0x4b20a4={},_0xcb0ca0=_0x1ca000['locale'];if(_0x286dab[_0x1a53('0x1a')](_0x1a53('0x0')),_0x286dab['_descriptionFactory']['registerElementLabel']('imageBlock',_0x2fddc2=>_0x458bee(_0xcb0ca0,_0x1a53('0x73'),_0x2fddc2)),_0x286dab[_0x1a53('0x6d')]['registerElementLabel'](_0x1a53('0x70'),_0xb62bd=>_0x458bee(_0xcb0ca0,_0x1a53('0x63'),_0xb62bd)),_0x286dab['_descriptionFactory'][_0x1a53('0x67')](_0x1a53('0x65'),()=>_0x458bee(_0xcb0ca0,_0x1a53('0x11'))),_0x1ca000['plugins'][_0x1a53('0x24')](_0x1a53('0x4c'))&&_0x286dab[_0x1a53('0x1a')](_0x1a53('0x74')),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x6f'))&&_0x1ca000['plugins'][_0x1a53('0x24')]('ImageInlineEditing')&&(_0x286dab[_0x1a53('0x1a')](_0x1a53('0x5f'),(_0x5d4b7e,_0x120fcc)=>{const _0x3739f5=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]);_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x3739f5,{'commandName':_0x1a53('0x5f'),'commandParams':[_0x120fcc]},[],_0x1a53('0x2e'));});}),_0x286dab[_0x1a53('0x1a')]('imageTypeBlock',(_0x1cb0d4,_0x9fadf9)=>{_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](_0x569fcd=>{let _0xdd7f2d=_0x7b4b65[_0x1a53('0x29')](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x436bd3=_0x569fcd[_0x1a53('0x2f')](_0xdd7f2d);const _0x5146aa=_0x5127af['fromPosition'](_0x436bd3[_0x1a53('0x27')],_0x1a53('0x28')),_0x1015d3=_0x5127af[_0x1a53('0xc')](_0x436bd3['end'],_0x1a53('0x56'));_0x286dab[_0x1a53('0x3')](()=>_0x1cb0d4(_0x9fadf9)),_0xdd7f2d=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x436bd3=_0x569fcd[_0x1a53('0x2f')](_0xdd7f2d);const _0x141c73=_0x569fcd[_0x1a53('0x15')](_0x5146aa,_0x1015d3);_0x5146aa['detach'](),_0x1015d3['detach'](),_0x286dab['markBlockFormat'](_0xdd7f2d,{'commandName':_0x1a53('0x5f'),'commandParams':[]},[],_0x1a53('0x3d')),_0x141c73[_0x1a53('0x27')][_0x1a53('0x17')](_0x436bd3['start'])&&_0x286dab['markInsertion'](_0x569fcd[_0x1a53('0x15')](_0x141c73[_0x1a53('0x27')],_0x436bd3['start']),_0x1a53('0x3d')),_0x436bd3[_0x1a53('0x30')]['isBefore'](_0x141c73['end'])&&_0x286dab['markInsertion'](_0x569fcd[_0x1a53('0x15')](_0x436bd3['end'],_0x141c73[_0x1a53('0x30')]),_0x1a53('0x3d'));});}),_0x286dab[_0x1a53('0x1e')]['registerCustomCallback'](_0x1a53('0x7'),_0x1a53('0x3d'),'join',()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x3d'),'accept',()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x3d'),_0x1a53('0x40'),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x57')]('formatBlock','','accept')),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x3d'),_0x1a53('0x79'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x3d'),_0x1a53('0x40'),([_0x4effd3])=>{const _0x2ac357=_0x286dab['_suggestionFactory']['getSuggestionCallback']('insertion','',_0x1a53('0x40'));let _0x3602db=_0x4effd3[_0x1a53('0x27')],_0x2b4037=_0x4effd3[_0x1a53('0x30')];const _0x548e4d=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x39')][_0x1a53('0x6e')](_0x3602db,_0x1a53('0x42')),_0x4d678f=_0x1ca000[_0x1a53('0x1c')]['schema']['getNearestSelectionRange'](_0x2b4037,'forward');_0x548e4d['isCollapsed']&&(_0x3602db=_0x548e4d[_0x1a53('0x27')]),_0x4d678f[_0x1a53('0x5')]&&(_0x2b4037=_0x4d678f['end']),_0x2ac357([_0x1ca000[_0x1a53('0x1c')]['createRange'](_0x3602db,_0x2b4037)]);}),_0x286dab[_0x1a53('0x1e')]['registerCustomCallback'](_0x1a53('0x7'),_0x1a53('0x3d'),_0x1a53('0x9'),_0x27156a),_0x286dab['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock',_0x1a53('0x9'),_0x27156a)),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x33'))&&(_0x286dab[_0x1a53('0x1a')](_0x1a53('0xe'),(_0x36c2cf,_0x2570c2)=>{const _0x18f404=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')]('ImageCaptionUtils');let _0x413301=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['selection']),_0x237b9e=_0x18f404['getCaptionFromImageModelElement'](_0x413301);_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{if(_0x237b9e)return void _0x286dab[_0x1a53('0x43')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x237b9e));const _0x5c2164=_0x7b4b65['isBlockImage'](_0x413301);_0x36c2cf(_0x2570c2),_0x413301=_0x7b4b65[_0x1a53('0x29')](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x237b9e=_0x18f404[_0x1a53('0x75')](_0x413301),_0x286dab['markInsertion'](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x237b9e),_0x5c2164?null:_0x1a53('0x5b'));});}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x2'),_0x1a53('0x5b'),'chain',_0x27156a)),_0x1ca000['plugins'][_0x1a53('0x24')]('ImageStyleEditing')){_0x286dab[_0x1a53('0x1a')](_0x1a53('0x59'),(_0xf82ac2,_0x3c7fcc)=>{const _0x5d4785=_0x1ca000[_0x1a53('0x36')][_0x1a53('0x4a')](_0x1a53('0x64'))['me'],_0x4289f3=_0x1ca000['commands'][_0x1a53('0x4a')]('imageStyle');let _0x1ad3d2=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000['model'][_0x1a53('0x23')][_0x1a53('0x6a')]),_0x18e12e=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x1ad3d2),_0x327c4f=_0x4289f3['value'];if(_0x327c4f==_0x3c7fcc[_0x1a53('0x26')])return;const _0x37af84={'commandName':_0x1a53('0x59'),'commandParams':[_0x3c7fcc],'formatGroupId':_0x3c11d0()};_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{if(_0x286dab[_0x1a53('0x58')]()[_0x1a53('0x49')](_0x112324=>_0x112324[_0x1a53('0x2d')]&&_0x5d4785==_0x112324['author']&&(_0x1a53('0x7')==_0x112324['type']||_0x1a53('0x51')==_0x112324[_0x1a53('0x5d')])&&('imageStylePreApply'==_0x112324[_0x1a53('0x3a')]||_0x1a53('0x13')==_0x112324['subType'])&&_0x112324[_0x1a53('0x5e')]()[_0x1a53('0x6c')](_0x18e12e))[_0x1a53('0x31')](_0x65eece=>_0x286dab[_0x1a53('0x4')](_0x65eece[_0x1a53('0x5a')])),_0x1ad3d2=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000[_0x1a53('0x1c')]['document'][_0x1a53('0x6a')]),_0x18e12e=_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x2f')](_0x1ad3d2),_0x4289f3[_0x1a53('0x53')](),_0x1ca000[_0x1a53('0x44')][_0x1a53('0x4a')](_0x1a53('0x5f'))[_0x1a53('0x53')](),_0x1ca000[_0x1a53('0x44')][_0x1a53('0x4a')](_0x1a53('0x3c'))[_0x1a53('0x53')](),_0x327c4f=_0x4289f3[_0x1a53('0x26')],_0x327c4f!=_0x3c7fcc[_0x1a53('0x26')])return _0x7b4b65[_0x1a53('0x14')](_0x1ad3d2)&&_0x4289f3[_0x1a53('0x69')](_0x3c7fcc[_0x1a53('0x26')],_0x1ad3d2)?(_0xf82ac2(_0x3c7fcc),_0x1ad3d2=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x6a')]),void _0x286dab[_0x1a53('0x1d')](_0x1ad3d2,{..._0x37af84,'commandReversedParams':[{'value':_0x327c4f||null}]},[],_0x1a53('0x12'))):void(_0x7b4b65[_0x1a53('0x3e')](_0x1ad3d2)?_0x286dab[_0x1a53('0x1d')](_0x1ad3d2,_0x37af84,[],_0x1a53('0x13')):_0x286dab[_0x1a53('0x7a')](_0x18e12e,_0x37af84,'imageStylePostApply'));});});for(const _0xc362c5 of _0x1ca000[_0x1a53('0x36')]['get'](_0x1a53('0x50'))['normalizedStyles'])_0x4b20a4[_0xc362c5['name']]=_0xc362c5[_0x1a53('0x3f')][_0x1a53('0x47')]();_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x7'),'imageStylePreApply','join',()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x13'),_0x1a53('0x79'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatInline','imageStylePostApply',_0x1a53('0x79'),()=>{}),_0x286dab['_suggestionFactory'][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x12'),_0x1a53('0x66'),()=>{}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')]('formatBlock',_0x1a53('0x12'),_0x1a53('0x40'),(_0x44334b,_0x2447ee)=>{_0x286dab['_suggestionFactory'][_0x1a53('0x57')](_0x1a53('0x7'),'',_0x1a53('0x66'))(_0x44334b,{'commandName':_0x2447ee[_0x1a53('0x52')],'commandParams':_0x2447ee[_0x1a53('0x48')]});}),_0x286dab[_0x1a53('0x1e')][_0x1a53('0x1b')](_0x1a53('0x7'),_0x1a53('0x12'),_0x1a53('0x9'),_0x27156a);}const _0xd46376=[{'type':_0x1a53('0x7'),'subType':_0x1a53('0x12')},{'type':_0x1a53('0x2'),'subType':_0x1a53('0x5b')},{'type':_0x1a53('0x7'),'subType':_0x1a53('0x3d')},{'type':_0x1a53('0x2'),'subType':'convertInlineImageToBlock'}];function _0x1951b9(_0x330b16,_0x4a8ecc){const _0x5a27fe=_0xd46376[_0x1a53('0x2c')](({type:_0x4ef716,subType:_0x28bd31})=>_0x330b16['type']==_0x4ef716&&_0x330b16['subType']==_0x28bd31),_0x1577ab=_0xd46376[_0x1a53('0x2c')](({type:_0x1132f3,subType:_0x1931e4})=>_0x4a8ecc[_0x1a53('0x5d')]==_0x1132f3&&_0x4a8ecc[_0x1a53('0x3a')]==_0x1931e4);if(_0x5a27fe<0x0||_0x1577ab<0x0)return!0x1;const _0x2b8eb2=_0x330b16[_0x1a53('0x5e')](),_0x1c38a0=_0x4a8ecc[_0x1a53('0x5e')]();if((0x0==_0x5a27fe||0x1==_0x5a27fe)&&0x2==_0x1577ab&&_0x2b8eb2[_0x1a53('0x8')](_0x1c38a0))return!0x0;if(0x2==_0x5a27fe&&0x3==_0x1577ab){const _0x502909=_0x286dab[_0x1a53('0x61')](_0x2b8eb2,'insertion')[_0x1a53('0x49')](({suggestion:_0x1149f9,meta:_0x5c50f7})=>_0x5c50f7[_0x1a53('0x77')]&&_0x1a53('0x3d')==_0x1149f9[_0x1a53('0x3a')]);if(_0x502909[_0x1a53('0x4d')]>0x1&&_0x1c38a0['end'][_0x1a53('0x6c')](_0x2b8eb2['start']))return!0x0;if(0x1==_0x502909['length']&&(_0x2b8eb2[_0x1a53('0x27')][_0x1a53('0x6c')](_0x1c38a0['end'])||_0x2b8eb2['end'][_0x1a53('0x6c')](_0x1c38a0[_0x1a53('0x27')])))return!0x0;}if(0x3==_0x5a27fe&&0x3==_0x1577ab&&_0x2b8eb2['start'][_0x1a53('0x17')](_0x1c38a0[_0x1a53('0x27')])){const _0x56be5b=_0x2b8eb2[_0x1a53('0x30')][_0x1a53('0x68')],_0x4800fd=_0x1c38a0['start'][_0x1a53('0x55')];return _0x7b4b65['isBlockImage'](_0x56be5b)&&_0x56be5b===_0x4800fd;}return!0x1;}function _0x27156a(_0x53ff48,_0xcd035f){return _0x1951b9(_0x53ff48,_0xcd035f)?[_0x53ff48,_0xcd035f]:_0x1951b9(_0xcd035f,_0x53ff48)?[_0xcd035f,_0x53ff48]:null;}_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')][_0x1a53('0x20')](()=>{let _0xf8ebeb=!0x1;const _0x26811b=Array[_0x1a53('0x45')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['differ'][_0x1a53('0x19')]());for(const {name:_0x377172,data:_0xc09163}of _0x26811b){const {group:_0x1cfaaa,type:_0x25271e,subType:_0x10f11b,id:_0x129b10}=_0x286dab[_0x1a53('0x34')](_0x377172);if(_0x1a53('0x1f')==_0x1cfaaa&&_0x286dab[_0x1a53('0x1')](_0x129b10)){if(_0x1a53('0x7')==_0x25271e&&('imageStylePreApply'==_0x10f11b||_0x1a53('0x13')==_0x10f11b)){const _0x24a0b4=_0x286dab[_0x1a53('0x6')](_0x129b10);if(_0xc09163[_0x1a53('0x32')]){const _0x45f646=_0x24a0b4[_0x1a53('0x5e')]()[_0x1a53('0x37')]();if(_0x7b4b65['isBlockImage'](_0x45f646))continue;_0x286dab[_0x1a53('0x4')](_0x24a0b4),_0xf8ebeb=!0x0;}}if('insertion'==_0x25271e&&_0x1a53('0x5b')==_0x10f11b&&!_0xc09163[_0x1a53('0x32')]){const _0x288bfe=_0x286dab[_0x1a53('0x6')](_0x129b10);_0x288bfe[_0x1a53('0x4f')]&&_0x288bfe[_0x1a53('0x4f')]['isInContent']&&(_0x286dab[_0x1a53('0x4')](_0x288bfe[_0x1a53('0x4f')]),_0xf8ebeb=!0x0);}}}return _0xf8ebeb;}),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')]('ImageResize')&&_0x286dab[_0x1a53('0x1a')](_0x1a53('0x6b'),(_0x3db10c,_0x56883e)=>{const _0x22663b=_0x7b4b65[_0x1a53('0x29')](_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x23')]['selection']);_0x22663b[_0x1a53('0x38')](_0x1a53('0xb'))!=_0x56883e[_0x1a53('0xb')]&&_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x22663b,{'commandName':_0x1a53('0x6b'),'commandParams':[_0x56883e]});});}),_0x1ca000[_0x1a53('0x36')][_0x1a53('0x24')](_0x1a53('0x54'))&&_0x286dab['enableCommand'](_0x1a53('0x21'),(_0xe73460,_0xb43342)=>{const _0x120548=_0x7b4b65['getClosestSelectedImageElement'](_0x1ca000[_0x1a53('0x1c')]['document'][_0x1a53('0x6a')]);(_0x120548[_0x1a53('0xf')]('alt')?_0x120548[_0x1a53('0x38')]('alt'):'')!=_0xb43342[_0x1a53('0x4b')]&&_0x1ca000[_0x1a53('0x1c')][_0x1a53('0x3b')](()=>{_0x286dab[_0x1a53('0x1d')](_0x120548,{'commandName':_0x1a53('0x21'),'commandParams':[_0xb43342]});});}),_0x286dab[_0x1a53('0x6d')]['registerDescriptionCallback'](_0x4e8338=>{if(!!_0xd46376[_0x1a53('0x60')](({type:_0x1d9d64,subType:_0x53d8e1})=>_0x4e8338[_0x1a53('0x5d')]==_0x1d9d64&&_0x4e8338[_0x1a53('0x3a')]==_0x53d8e1))return _0x4e8338[_0x1a53('0x10')]?{}:void 0x0;}),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0x58b6e9=>{if('insertion'==_0x58b6e9[_0x1a53('0x5d')]||_0x1a53('0x2a')==_0x58b6e9[_0x1a53('0x5d')]){const _0x3b225c=_0x58b6e9[_0x1a53('0x37')]();if(_0x3b225c&&_0x3b225c['is'](_0x1a53('0x22'),'caption'))return{'type':'insertion'==_0x58b6e9[_0x1a53('0x5d')]?_0x1a53('0x76'):'removeObject','element':_0x3b225c,'quantity':0x1};}}),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0xc5c129=>_0x1a53('0x7')==_0xc5c129[_0x1a53('0x5d')]&&'convertInlineImageToBlock'==_0xc5c129[_0x1a53('0x3a')]?{'type':_0x1a53('0x62'),'content':_0x1a53('0x71')}:_0x1a53('0x7')==_0xc5c129[_0x1a53('0x5d')]&&_0x1a53('0x2e')==_0xc5c129[_0x1a53('0x3a')]?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x286dab[_0x1a53('0x6d')][_0x1a53('0x25')](_0x23b635=>{const {data:_0x3269c5}=_0x23b635;if(_0x3269c5){if(_0x1a53('0x59')==_0x3269c5[_0x1a53('0x52')]){const _0x4bcbd6=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0x26')];return _0xc18489(_0x1a53('0x4e')===_0x4bcbd6?_0x458bee(_0xcb0ca0,'FORMAT_SIDE_IMAGE'):_0x4b20a4[_0x4bcbd6]||_0x4bcbd6);}if(_0x1a53('0x21')==_0x3269c5[_0x1a53('0x52')]){const _0x30f829=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0x4b')];return _0x30f829?{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x16'),'\x22'+_0x30f829+'\x22')}:{'type':'format','content':_0x458bee(_0xcb0ca0,_0x1a53('0x18'))};}if(_0x1a53('0x6b')==_0x3269c5['commandName']){const _0x1b8dce=_0x3269c5[_0x1a53('0x46')][0x0][_0x1a53('0xb')];return _0x1b8dce?{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x2b'),_0x1b8dce)}:{'type':'format','content':_0x458bee(_0xcb0ca0,_0x1a53('0xa'))};}}function _0xc18489(_0x2b4fec){return{'type':_0x1a53('0x62'),'content':_0x458bee(_0xcb0ca0,_0x1a53('0x72'),_0x2b4fec)};}});}}
|
|
23
|
+
const _0x1329=['ImageBlockEditing','isInContent','accept','isInlineImage','fromPosition','commandParams','isEqual','getChangedMarkers','get','shouldConvertImageType','join','ImageStyleEditing','_descriptionFactory','length','markBlockFormat','ImageTextAlternativeEditing','getSuggestionCallback','getAttribute','_findSuggestions','forceDefaultExecution','createRange','imageStyle','_splitMarkerName','format','editor','getClosestSelectedImageElement','createRangeOn','toNext','uploadImage','start','convertInlineImageToBlock','head','find','insertImage','formatBlock','discardSuggestion','FORMAT_SIDE_IMAGE','filter','from','next','ELEMENT_CAPTION','isOwn','end','insertion','getContainedElement','imageCaption','removeObject','commands','refresh','ImageUtils','discard','differ','getSuggestion','registerPostFixer','chain','imageBlock','isCollapsed','markInlineFormat','locale','getCaptionFromImageModelElement','detach','nodeAfter','enableCommand','registerDescriptionCallback','markDeletion','isIntersecting','previous','nodeBefore','imageStylePreApply','commandName','toggleImageCaption','subType','_suggestionFactory','Users','model','backward','*Set\x20image\x20text\x20alternative:*\x20%0','getNearestSelectionRange','selection','ImageResize','isBefore','change','ImageInlineEditing','ImageCaptionEditing','registerCustomCallback','has','alt','name','value','newValue','type','newRange','findIndex','TrackChangesEditing','document','caption','width','getFirstRange','ImageUploadEditing','forEach','convertBlockImageToInline','registerElementLabel','plugins','imageTextAlternative','imageTypeInline','forward','hasAttribute','isBlockImage','*Reset\x20image\x20width*','Inline\x20image\x20to\x20block\x20image','title','imageStylePostApply','ImageEditing','toPrevious','imageTypeBlock','resizeImage','commandReversedParams','markInsertion','schema','deletion','formatInline'];(function(_0x2764cd,_0x13290b){const _0x47e429=function(_0x36983c){while(--_0x36983c){_0x2764cd['push'](_0x2764cd['shift']());}};_0x47e429(++_0x13290b);}(_0x1329,0x109));const _0x47e4=function(_0x2764cd,_0x13290b){_0x2764cd=_0x2764cd-0x0;let _0x47e429=_0x1329[_0x2764cd];return _0x47e429;};import{Plugin as _0x10774f}from'ckeditor5/src/core';import{LivePosition as _0x2fc7c7}from'ckeditor5/src/engine';import{uid as _0xb511d0}from'ckeditor5/src/utils';import{getTranslation as _0x2f98da}from'../utils/common-translations';export default class X extends _0x10774f{['afterInit'](){const _0x20bc1d=this[_0x47e4('0x1')];if(!_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x59')))return;const _0x26a978=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x46')),_0x56a0e5=_0x20bc1d['plugins'][_0x47e4('0x6a')](_0x47e4('0x1a')),_0x247065={},_0x2064d1=_0x20bc1d[_0x47e4('0x23')];if(_0x26a978[_0x47e4('0x27')](_0x47e4('0xa')),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x20'),_0x61c6e2=>_0x2f98da(_0x2064d1,'ELEMENT_IMAGE',_0x61c6e2)),_0x26a978['_descriptionFactory']['registerElementLabel']('imageInline',_0x3830ac=>_0x2f98da(_0x2064d1,'ELEMENT_INLINE_IMAGE',_0x3830ac)),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x4e')](_0x47e4('0x48'),()=>_0x2f98da(_0x2064d1,_0x47e4('0x11'))),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x4b'))&&_0x26a978['enableCommand'](_0x47e4('0x5')),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x62'))&&_0x20bc1d['plugins']['has'](_0x47e4('0x3b'))&&(_0x26a978[_0x47e4('0x27')]('imageTypeInline',(_0xf82b9a,_0x41bba0)=>{const _0x41e72a=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]);_0x20bc1d['model'][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x41e72a,{'commandName':_0x47e4('0x51'),'commandParams':[_0x41bba0]},[],_0x47e4('0x4d'));});}),_0x26a978['enableCommand'](_0x47e4('0x5b'),(_0x2b830a,_0x4e23a0)=>{_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](_0x4f0d76=>{let _0x4a56ca=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x1170d9=_0x2fc7c7[_0x47e4('0x66')](_0x432e81[_0x47e4('0x6')],_0x47e4('0x5a')),_0x23a671=_0x2fc7c7['fromPosition'](_0x432e81[_0x47e4('0x13')],_0x47e4('0x4'));_0x26a978[_0x47e4('0x75')](()=>_0x2b830a(_0x4e23a0)),_0x4a56ca=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x432e81=_0x4f0d76[_0x47e4('0x3')](_0x4a56ca);const _0x3969ae=_0x4f0d76[_0x47e4('0x76')](_0x1170d9,_0x23a671);_0x1170d9['detach'](),_0x23a671[_0x47e4('0x25')](),_0x26a978[_0x47e4('0x70')](_0x4a56ca,{'commandName':_0x47e4('0x51'),'commandParams':[]},[],'convertInlineImageToBlock'),_0x3969ae[_0x47e4('0x6')][_0x47e4('0x39')](_0x432e81[_0x47e4('0x6')])&&_0x26a978['markInsertion'](_0x4f0d76[_0x47e4('0x76')](_0x3969ae[_0x47e4('0x6')],_0x432e81[_0x47e4('0x6')]),_0x47e4('0x7')),_0x432e81[_0x47e4('0x13')][_0x47e4('0x39')](_0x3969ae[_0x47e4('0x13')])&&_0x26a978[_0x47e4('0x5e')](_0x4f0d76[_0x47e4('0x76')](_0x432e81[_0x47e4('0x13')],_0x3969ae['end']),'convertInlineImageToBlock');});}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'convertInlineImageToBlock',_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x7'),_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock','convertInlineImageToBlock','discard',_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')]('formatBlock','',_0x47e4('0x64'))),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),'join',()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x14'),_0x47e4('0x7'),_0x47e4('0x1b'),([_0xe72aaa])=>{const _0x4fc33d=_0x26a978[_0x47e4('0x31')][_0x47e4('0x72')](_0x47e4('0x14'),'',_0x47e4('0x1b'));let _0x1ddc6d=_0xe72aaa[_0x47e4('0x6')],_0x468694=_0xe72aaa['end'];const _0x45c8da=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')]['getNearestSelectionRange'](_0x1ddc6d,_0x47e4('0x34')),_0x1c9f6e=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x5f')][_0x47e4('0x36')](_0x468694,_0x47e4('0x52'));_0x45c8da[_0x47e4('0x21')]&&(_0x1ddc6d=_0x45c8da[_0x47e4('0x6')]),_0x1c9f6e['isCollapsed']&&(_0x468694=_0x1c9f6e[_0x47e4('0x13')]),_0x4fc33d([_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x76')](_0x1ddc6d,_0x468694)]);}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('formatBlock',_0x47e4('0x7'),_0x47e4('0x1f'),_0x3bcbb8),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')]('insertion','convertInlineImageToBlock',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d['plugins'][_0x47e4('0x3e')](_0x47e4('0x3c'))&&(_0x26a978['enableCommand'](_0x47e4('0x2f'),(_0x420cf2,_0x22afff)=>{const _0x3aa95e=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageCaptionUtils');let _0x79a594=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594);_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x3b874a)return void _0x26a978[_0x47e4('0x29')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a));const _0x575c11=_0x56a0e5[_0x47e4('0x54')](_0x79a594);_0x420cf2(_0x22afff),_0x79a594=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]),_0x3b874a=_0x3aa95e[_0x47e4('0x24')](_0x79a594),_0x26a978[_0x47e4('0x5e')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x3b874a),_0x575c11?null:_0x47e4('0x16'));});}),_0x26a978[_0x47e4('0x31')]['registerCustomCallback'](_0x47e4('0x14'),'imageCaption',_0x47e4('0x1f'),_0x3bcbb8)),_0x20bc1d[_0x47e4('0x4f')]['has'](_0x47e4('0x6d'))){_0x26a978[_0x47e4('0x27')](_0x47e4('0x77'),(_0x4bfc61,_0x55f5f4)=>{const _0x2b3f6a=_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')](_0x47e4('0x32'))['me'],_0x4eae08=_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x77'));let _0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d['model'][_0x47e4('0x3')](_0x2684c3),_0x464480=_0x4eae08['value'];if(_0x464480==_0x55f5f4[_0x47e4('0x41')])return;const _0x155f3b={'commandName':'imageStyle','commandParams':[_0x55f5f4],'formatGroupId':_0xb511d0()};_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{if(_0x26a978['getSuggestions']()[_0x47e4('0xe')](_0x4cd7a5=>_0x4cd7a5[_0x47e4('0x63')]&&_0x2b3f6a==_0x4cd7a5['author']&&(_0x47e4('0xb')==_0x4cd7a5['type']||_0x47e4('0x61')==_0x4cd7a5[_0x47e4('0x43')])&&(_0x47e4('0x2d')==_0x4cd7a5[_0x47e4('0x30')]||'imageStylePostApply'==_0x4cd7a5[_0x47e4('0x30')])&&_0x4cd7a5[_0x47e4('0x4a')]()[_0x47e4('0x68')](_0x470413))[_0x47e4('0x4c')](_0x4c8742=>_0x26a978['discardSuggestion'](_0x4c8742[_0x47e4('0x8')])),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),_0x470413=_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3')](_0x2684c3),_0x4eae08[_0x47e4('0x19')](),_0x20bc1d[_0x47e4('0x18')][_0x47e4('0x6a')](_0x47e4('0x51'))[_0x47e4('0x19')](),_0x20bc1d['commands'][_0x47e4('0x6a')](_0x47e4('0x5b'))[_0x47e4('0x19')](),_0x464480=_0x4eae08['value'],_0x464480!=_0x55f5f4[_0x47e4('0x41')])return _0x56a0e5[_0x47e4('0x65')](_0x2684c3)&&_0x4eae08[_0x47e4('0x6b')](_0x55f5f4[_0x47e4('0x41')],_0x2684c3)?(_0x4bfc61(_0x55f5f4),_0x2684c3=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x37')]),void _0x26a978['markBlockFormat'](_0x2684c3,{..._0x155f3b,'commandReversedParams':[{'value':_0x464480||null}]},[],_0x47e4('0x2d'))):void(_0x56a0e5[_0x47e4('0x54')](_0x2684c3)?_0x26a978[_0x47e4('0x70')](_0x2684c3,_0x155f3b,[],_0x47e4('0x58')):_0x26a978[_0x47e4('0x22')](_0x470413,_0x155f3b,_0x47e4('0x58')));});});for(const _0x29dc0b of _0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x6a')]('ImageStyleEditing')['normalizedStyles'])_0x247065[_0x29dc0b[_0x47e4('0x40')]]=_0x29dc0b[_0x47e4('0x57')]['toLowerCase']();_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0x61'),_0x47e4('0x58'),_0x47e4('0x6c'),()=>{}),_0x26a978['_suggestionFactory'][_0x47e4('0x3d')](_0x47e4('0xb'),'imageStylePreApply',_0x47e4('0x64'),()=>{}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1b'),(_0x577b27,_0x25a4f8)=>{_0x26a978[_0x47e4('0x31')]['getSuggestionCallback'](_0x47e4('0xb'),'',_0x47e4('0x64'))(_0x577b27,{'commandName':_0x25a4f8['commandName'],'commandParams':_0x25a4f8[_0x47e4('0x5d')]});}),_0x26a978[_0x47e4('0x31')][_0x47e4('0x3d')](_0x47e4('0xb'),_0x47e4('0x2d'),_0x47e4('0x1f'),_0x3bcbb8);}const _0x1ddc98=[{'type':_0x47e4('0xb'),'subType':_0x47e4('0x2d')},{'type':_0x47e4('0x14'),'subType':_0x47e4('0x16')},{'type':_0x47e4('0xb'),'subType':'convertInlineImageToBlock'},{'type':_0x47e4('0x14'),'subType':'convertInlineImageToBlock'}];function _0x3f5eb8(_0x4158dc,_0x383b56){const _0x12336a=_0x1ddc98[_0x47e4('0x45')](({type:_0x3e200e,subType:_0x1496d4})=>_0x4158dc[_0x47e4('0x43')]==_0x3e200e&&_0x4158dc[_0x47e4('0x30')]==_0x1496d4),_0x5f065b=_0x1ddc98[_0x47e4('0x45')](({type:_0x2fbdc2,subType:_0x638628})=>_0x383b56[_0x47e4('0x43')]==_0x2fbdc2&&_0x383b56['subType']==_0x638628);if(_0x12336a<0x0||_0x5f065b<0x0)return!0x1;const _0x5bd65a=_0x4158dc['getFirstRange'](),_0x33c763=_0x383b56[_0x47e4('0x4a')]();if((0x0==_0x12336a||0x1==_0x12336a)&&0x2==_0x5f065b&&_0x5bd65a[_0x47e4('0x2a')](_0x33c763))return!0x0;if(0x2==_0x12336a&&0x3==_0x5f065b){const _0x550bbf=_0x26a978[_0x47e4('0x74')](_0x5bd65a,_0x47e4('0x14'))[_0x47e4('0xe')](({suggestion:_0x57c19a,meta:_0x326134})=>_0x326134[_0x47e4('0x12')]&&_0x47e4('0x7')==_0x57c19a[_0x47e4('0x30')]);if(_0x550bbf[_0x47e4('0x6f')]>0x1&&_0x33c763[_0x47e4('0x13')]['isEqual'](_0x5bd65a[_0x47e4('0x6')]))return!0x0;if(0x1==_0x550bbf[_0x47e4('0x6f')]&&(_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x13')])||_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x68')](_0x33c763[_0x47e4('0x6')])))return!0x0;}if(0x3==_0x12336a&&0x3==_0x5f065b&&_0x5bd65a[_0x47e4('0x6')][_0x47e4('0x39')](_0x33c763[_0x47e4('0x6')])){const _0x1397e9=_0x5bd65a[_0x47e4('0x13')][_0x47e4('0x26')],_0xf774d9=_0x33c763[_0x47e4('0x6')][_0x47e4('0x2c')];return _0x56a0e5[_0x47e4('0x54')](_0x1397e9)&&_0x1397e9===_0xf774d9;}return!0x1;}function _0x3bcbb8(_0x4dc3c5,_0x284995){return _0x3f5eb8(_0x4dc3c5,_0x284995)?[_0x4dc3c5,_0x284995]:_0x3f5eb8(_0x284995,_0x4dc3c5)?[_0x284995,_0x4dc3c5]:null;}_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1e')](()=>{let _0x16a646=!0x1;const _0x4958c2=Array[_0x47e4('0xf')](_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x47')][_0x47e4('0x1c')][_0x47e4('0x69')]());for(const {name:_0x1e6919,data:_0x4ea86d}of _0x4958c2){const {group:_0x2bf60c,type:_0x31715e,subType:_0x271f85,id:_0x50bc3b}=_0x26a978[_0x47e4('0x78')](_0x1e6919);if('suggestion'==_0x2bf60c&&_0x26a978['hasSuggestion'](_0x50bc3b)){if(_0x47e4('0xb')==_0x31715e&&('imageStylePreApply'==_0x271f85||'imageStylePostApply'==_0x271f85)){const _0x30dca4=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);if(_0x4ea86d['newRange']){const _0xe13c95=_0x30dca4[_0x47e4('0x4a')]()[_0x47e4('0x15')]();if(_0x56a0e5[_0x47e4('0x54')](_0xe13c95))continue;_0x26a978['discardSuggestion'](_0x30dca4),_0x16a646=!0x0;}}if(_0x47e4('0x14')==_0x31715e&&'imageCaption'==_0x271f85&&!_0x4ea86d[_0x47e4('0x44')]){const _0xaaac51=_0x26a978[_0x47e4('0x1d')](_0x50bc3b);_0xaaac51['next']&&_0xaaac51[_0x47e4('0x10')][_0x47e4('0x63')]&&(_0x26a978[_0x47e4('0xc')](_0xaaac51[_0x47e4('0x10')]),_0x16a646=!0x0);}}}return _0x16a646;}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x38'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x5c'),(_0x1820a4,_0x2fa6d5)=>{const _0x15c3b4=_0x56a0e5['getClosestSelectedImageElement'](_0x20bc1d[_0x47e4('0x33')]['document'][_0x47e4('0x37')]);_0x15c3b4[_0x47e4('0x73')](_0x47e4('0x49'))!=_0x2fa6d5[_0x47e4('0x49')]&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978['markBlockFormat'](_0x15c3b4,{'commandName':'resizeImage','commandParams':[_0x2fa6d5]});});}),_0x20bc1d[_0x47e4('0x4f')][_0x47e4('0x3e')](_0x47e4('0x71'))&&_0x26a978[_0x47e4('0x27')](_0x47e4('0x50'),(_0x1f1102,_0x3498a6)=>{const _0x400716=_0x56a0e5[_0x47e4('0x2')](_0x20bc1d['model'][_0x47e4('0x47')][_0x47e4('0x37')]);(_0x400716[_0x47e4('0x53')](_0x47e4('0x3f'))?_0x400716[_0x47e4('0x73')](_0x47e4('0x3f')):'')!=_0x3498a6['newValue']&&_0x20bc1d[_0x47e4('0x33')][_0x47e4('0x3a')](()=>{_0x26a978[_0x47e4('0x70')](_0x400716,{'commandName':'imageTextAlternative','commandParams':[_0x3498a6]});});}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x5208a5=>{if(!!_0x1ddc98[_0x47e4('0x9')](({type:_0x4f860f,subType:_0x3c4429})=>_0x5208a5[_0x47e4('0x43')]==_0x4f860f&&_0x5208a5['subType']==_0x3c4429))return _0x5208a5[_0x47e4('0x2b')]?{}:void 0x0;}),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x3851ea=>{if(_0x47e4('0x14')==_0x3851ea['type']||_0x47e4('0x60')==_0x3851ea[_0x47e4('0x43')]){const _0x3dba8c=_0x3851ea['getContainedElement']();if(_0x3dba8c&&_0x3dba8c['is']('element','caption'))return{'type':_0x47e4('0x14')==_0x3851ea[_0x47e4('0x43')]?'addObject':_0x47e4('0x17'),'element':_0x3dba8c,'quantity':0x1};}}),_0x26a978[_0x47e4('0x6e')]['registerDescriptionCallback'](_0x3b06f8=>_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&'convertInlineImageToBlock'==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':_0x47e4('0x56')}:_0x47e4('0xb')==_0x3b06f8[_0x47e4('0x43')]&&_0x47e4('0x4d')==_0x3b06f8[_0x47e4('0x30')]?{'type':_0x47e4('0x0'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a978[_0x47e4('0x6e')][_0x47e4('0x28')](_0x30bfa1=>{const {data:_0x1c910a}=_0x30bfa1;if(_0x1c910a){if('imageStyle'==_0x1c910a[_0x47e4('0x2e')]){const _0x2cda3f=_0x1c910a[_0x47e4('0x67')][0x0]['value'];return _0x4315fb('side'===_0x2cda3f?_0x2f98da(_0x2064d1,_0x47e4('0xd')):_0x247065[_0x2cda3f]||_0x2cda3f);}if(_0x47e4('0x50')==_0x1c910a[_0x47e4('0x2e')]){const _0x542073=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x42')];return _0x542073?{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x35'),'\x22'+_0x542073+'\x22')}:{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Remove\x20image\x20text\x20alternative*')};}if(_0x47e4('0x5c')==_0x1c910a['commandName']){const _0x2fc4ae=_0x1c910a[_0x47e4('0x67')][0x0][_0x47e4('0x49')];return _0x2fc4ae?{'type':_0x47e4('0x0'),'content':_0x2f98da(_0x2064d1,'*Set\x20image\x20width:*\x20%0',_0x2fc4ae)}:{'type':'format','content':_0x2f98da(_0x2064d1,_0x47e4('0x55'))};}}function _0x4315fb(_0x4565fb){return{'type':'format','content':_0x2f98da(_0x2064d1,'*Format:*\x20%0',_0x4565fb)};}});}}
|
|
@@ -1,9 +1,13 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/imagereplace
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import type Suggestion from '../suggestion
|
|
6
|
-
import type { Description } from '../suggestiondescriptionfactory
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import type Suggestion from '../suggestion';
|
|
10
|
+
import type { Description } from '../suggestiondescriptionfactory';
|
|
7
11
|
/**
|
|
8
12
|
* Provides track changes plugin integration for image replace feature.
|
|
9
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x2152=['selection','model','discard','document','data','commandName','*Format:*\x20replace\x20image\x20URL','editor','formatBlock','replaceImageSource','accept','enableCommand','handleSuggestionDescription','getAttribute','subType','getContainedElement','markBlockFormat','TrackChangesEditing','_suggestionFactory','change','format','_descriptionFactory','commandParams','registerCustomCallback','get','handleReplaceImageCommand','plugins','has','locale','getSuggestionCallback'];(function(_0xb4bb47,_0x21526f){const _0x132ea7=function(_0x1be2bb){while(--_0x1be2bb){_0xb4bb47['push'](_0xb4bb47['shift']());}};_0x132ea7(++_0x21526f);}(_0x2152,0x93));const _0x132e=function(_0xb4bb47,_0x21526f){_0xb4bb47=_0xb4bb47-0x0;let _0x132ea7=_0x2152[_0xb4bb47];return _0x132ea7;};import{Plugin as _0x5382e2}from'ckeditor5/src/core';import{getTranslation as _0x2776b0}from'../utils/common-translations';export default class Y extends _0x5382e2{['afterInit'](){if(!this[_0x132e('0xa')][_0x132e('0x1d')][_0x132e('0x0')]('ImageEditing'))return;const _0x229ba1=this[_0x132e('0xa')][_0x132e('0x1d')][_0x132e('0x1b')](_0x132e('0x14'));_0x229ba1[_0x132e('0xe')]('replaceImageSource',(_0x2fbc19,_0x1c474f)=>this[_0x132e('0x1c')](_0x2fbc19,_0x1c474f)),_0x229ba1[_0x132e('0x15')][_0x132e('0x1a')](_0x132e('0xb'),'replaceImageSource','accept',_0x229ba1[_0x132e('0x15')][_0x132e('0x2')](_0x132e('0xb'),null,_0x132e('0x5'))),_0x229ba1['_suggestionFactory'][_0x132e('0x1a')](_0x132e('0xb'),_0x132e('0xc'),'discard',_0x229ba1[_0x132e('0x15')][_0x132e('0x2')](_0x132e('0xb'),null,_0x132e('0xd'))),_0x229ba1[_0x132e('0x18')]['registerDescriptionCallback'](_0x1f5207=>this[_0x132e('0xf')](_0x1f5207));}['handleReplaceImageCommand'](_0x2abf21,_0x3ef8b3){const _0x256f0a=this[_0x132e('0xa')]['plugins'][_0x132e('0x1b')]('TrackChangesEditing'),_0x407f3c=this[_0x132e('0xa')]['model'][_0x132e('0x6')][_0x132e('0x3')]['getSelectedElement']();this[_0x132e('0xa')][_0x132e('0x4')][_0x132e('0x16')](()=>{let _0x489ec1=_0x407f3c[_0x132e('0x10')]('src');const _0x1408b3=this[_0x132e('0xa')]['plugins']['get']('Users')['me'];for(const _0x58518a of _0x256f0a['getSuggestions']({'skipNotAttached':!0x0})){const _0x24d406=_0x58518a[_0x132e('0x12')]();if(_0x132e('0xc')===_0x58518a[_0x132e('0x11')]&&_0x24d406===_0x407f3c){_0x58518a['author']!==_0x1408b3&&_0x58518a[_0x132e('0x5')](),_0x489ec1=_0x58518a[_0x132e('0x7')][_0x132e('0x19')][0x0]['source'];break;}}_0x2abf21(_0x3ef8b3),_0x256f0a[_0x132e('0x13')](_0x407f3c,{'commandName':'replaceImageSource','commandParams':[{'source':_0x489ec1}]},[],'replaceImageSource');});}[_0x132e('0xf')](_0x12cf91){const {data:_0x3ce818}=_0x12cf91;if(_0x3ce818&&_0x132e('0xc')===_0x3ce818[_0x132e('0x8')]){const _0x4b076d=_0x132e('0x9');return{'type':_0x132e('0x17'),'content':_0x2776b0(this[_0x132e('0xa')][_0x132e('0x1')],_0x4b076d)};}}}
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/importword
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for the import from Word feature.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x1481=['get','commands','execute','plugins','dataInsert','track_changes','TrackChangesEditing','importWord','_trackChangesExecuted','_setSuggestionData','_handleImportedData','lowest','high','listenTo','afterInit','_trackChangesValueDuringImport','editor','trackChanges','value'];(function(_0x3172ef,_0x148136){const _0x4bfed8=function(_0x2b627c){while(--_0x2b627c){_0x3172ef['push'](_0x3172ef['shift']());}};_0x4bfed8(++_0x148136);}(_0x1481,0x133));const _0x4bfe=function(_0x3172ef,_0x148136){_0x3172ef=_0x3172ef-0x0;let _0x4bfed8=_0x1481[_0x3172ef];return _0x4bfed8;};import{Plugin as _0x470fee}from'ckeditor5/src/core';export default class Z extends _0x470fee{constructor(_0xd27ade){super(_0xd27ade),this['_trackChangesValueDuringImport']=!0x1,this[_0x4bfe('0x5')]=!0x1;}[_0x4bfe('0xb')](){const _0x1999ac=this['editor'],_0xd2df56=_0x1999ac[_0x4bfe('0x11')][_0x4bfe('0x10')]('importWord'),_0x27d9fc=_0x1999ac[_0x4bfe('0x11')][_0x4bfe('0x10')](_0x4bfe('0xe'));_0xd2df56&&(_0xd2df56['on']('execute',(_0x5f1e04,[,_0x1be8f2])=>{this[_0x4bfe('0xc')]=_0x27d9fc[_0x4bfe('0xf')],_0x1be8f2['collaboration_features'][_0x4bfe('0x2')]=!this[_0x4bfe('0xc')];},{'priority':_0x4bfe('0x9')}),this[_0x4bfe('0xa')](_0xd2df56,'dataInsert',this[_0x4bfe('0x7')]['bind'](this)),this[_0x4bfe('0xa')](_0xd2df56,_0x4bfe('0x1'),()=>{this[_0x4bfe('0x5')]&&(_0x27d9fc['execute'](),this[_0x4bfe('0x5')]=!0x1);},{'priority':_0x4bfe('0x8')}),_0x1999ac[_0x4bfe('0x0')][_0x4bfe('0x10')](_0x4bfe('0x3'))['enableCommand'](_0x4bfe('0x4')));}['_handleImportedData'](_0x3c49b7,_0x2cbab4){const {suggestions:_0x257158}=_0x2cbab4,_0x1173e7=this[_0x4bfe('0xd')][_0x4bfe('0x11')]['get'](_0x4bfe('0xe')),_0x320616=_0x1173e7[_0x4bfe('0xf')];this[_0x4bfe('0xc')]!==_0x320616&&(_0x1173e7[_0x4bfe('0x12')](),this[_0x4bfe('0x5')]=!0x0),_0x257158&&_0x257158['forEach'](({id:_0x5f46ba,type:_0xe3b9ec,author:_0x321649,created_at:_0x3ef5cf})=>{const _0x9d91b2={'id':_0x5f46ba,'type':_0xe3b9ec,'authorId':this[_0x4bfe('0xd')][_0x4bfe('0x0')][_0x4bfe('0x10')]('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x321649,'createdAt':_0x3ef5cf?new Date(_0x3ef5cf):new Date(),'source':_0x4bfe('0x4')}}};this[_0x4bfe('0xd')][_0x4bfe('0x0')]['get'](_0x4bfe('0x3'))[_0x4bfe('0x6')](_0x9d91b2);});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/indent
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
7
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x45c8=['model','schema','outdent','IndentEditing','enableCommand','getItemLabel','indent','locale','change','TrackChangesEditing','selection','from','getItems','*Indent:*\x20%0','blockIndent','editor','commandName','markBlockFormat','_descriptionFactory','IndentBlock','*Outdent:*\x20%0','outdentBlock','document','get','filter','format','plugins','has','indentBlock'];(function(_0x4e278e,_0x45c8c6){const _0x2373fb=function(_0x407d04){while(--_0x407d04){_0x4e278e['push'](_0x4e278e['shift']());}};_0x2373fb(++_0x45c8c6);}(_0x45c8,0x1ac));const _0x2373=function(_0x4e278e,_0x45c8c6){_0x4e278e=_0x4e278e-0x0;let _0x2373fb=_0x45c8[_0x4e278e];return _0x2373fb;};import{Plugin as _0x243f2e}from'ckeditor5/src/core';import{getTranslation as _0x426615}from'../utils/common-translations';export default class tt extends _0x243f2e{['afterInit'](){const _0x29fff2=this[_0x2373('0x16')],_0x40e5db=_0x29fff2['plugins'][_0x2373('0x1')](_0x2373('0x10'));_0x29fff2['plugins']['has'](_0x2373('0xa'))&&(_0x40e5db[_0x2373('0xb')](_0x2373('0xd')),_0x40e5db[_0x2373('0xb')](_0x2373('0x9')));const _0x541ca2=_0x29fff2[_0x2373('0xe')];if(_0x29fff2[_0x2373('0x4')][_0x2373('0x5')](_0x2373('0x1a'))){for(const _0x1cb849 of[_0x2373('0x6'),_0x2373('0x1c')])_0x40e5db[_0x2373('0xb')](_0x1cb849,()=>{const _0x4e988b=Array[_0x2373('0x12')](this[_0x2373('0x16')][_0x2373('0x7')][_0x2373('0x0')][_0x2373('0x11')]['getSelectedBlocks']())[_0x2373('0x2')](_0x419e25=>this[_0x2373('0x16')][_0x2373('0x7')][_0x2373('0x8')]['checkAttribute'](_0x419e25,_0x2373('0x15')));_0x29fff2[_0x2373('0x7')][_0x2373('0xf')](()=>{for(const _0x169aaa of _0x4e988b)_0x40e5db[_0x2373('0x18')](_0x169aaa,{'commandName':_0x1cb849,'commandParams':[{'value':''}],'formatGroupId':_0x2373('0x6')});});});_0x40e5db['_descriptionFactory']['registerDescriptionCallback'](_0x1d1ece=>{const {data:_0x4ed002}=_0x1d1ece;if(!_0x4ed002)return;if(_0x2373('0x6')!=_0x4ed002['commandName']&&'outdentBlock'!=_0x4ed002['commandName'])return;const _0x24277f=_0x1d1ece[_0x2373('0x13')]()[0x0],_0x131a84=_0x40e5db[_0x2373('0x19')][_0x2373('0xc')](_0x24277f);return _0x2373('0x6')==_0x4ed002[_0x2373('0x17')]?{'type':_0x2373('0x3'),'content':_0x426615(_0x541ca2,_0x2373('0x14'),_0x131a84)}:_0x2373('0x1c')==_0x4ed002[_0x2373('0x17')]?{'type':_0x2373('0x3'),'content':_0x426615(_0x541ca2,_0x2373('0x1b'),_0x131a84)}:void 0x0;});}}}
|
|
@@ -1,8 +1,12 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/inputcommand/inputcommand
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
5
|
-
import { Input } from 'ckeditor5/src/typing
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { Input } from 'ckeditor5/src/typing';
|
|
6
10
|
/**
|
|
7
11
|
* Provides track changes plugin integration for {@link module:typing/inputcommand~InputCommand input command}.
|
|
8
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
-
var
|
|
23
|
+
var _0x3566=['TrackChangesEditing','init','plugins','get','editor','requires','input'];(function(_0x591e14,_0x35665b){var _0x358bab=function(_0x27d327){while(--_0x27d327){_0x591e14['push'](_0x591e14['shift']());}};_0x358bab(++_0x35665b);}(_0x3566,0x1da));var _0x358b=function(_0x591e14,_0x35665b){_0x591e14=_0x591e14-0x0;var _0x358bab=_0x3566[_0x591e14];return _0x358bab;};import{Plugin as _0x9a7fa2}from'ckeditor5/src/core';import{Input as _0x55068e}from'ckeditor5/src/typing';export default class it extends _0x9a7fa2{static get[_0x358b('0x0')](){return[_0x55068e];}[_0x358b('0x3')](){this[_0x358b('0x6')][_0x358b('0x4')][_0x358b('0x5')](_0x358b('0x2'))['enableCommand'](_0x358b('0x1'));}}
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/link
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for link feature.
|
|
7
11
|
*/
|
package/src/integrations/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x1e3e=['getRanges','selection','model','link','editor','linkHref','TrackChangesEditing','getAttribute','enableCommand','from','LinkEditing','*Set\x20link:*\x20%0','markInlineFormat','locale','document','getFirstRange','has','format','*Remove\x20link*','get','afterInit','_descriptionFactory','registerDescriptionCallback','commandParams','plugins','unlink','hasAttribute'];(function(_0x326921,_0x1e3eeb){const _0x49e24f=function(_0x2d5b67){while(--_0x2d5b67){_0x326921['push'](_0x326921['shift']());}};_0x49e24f(++_0x1e3eeb);}(_0x1e3e,0x137));const _0x49e2=function(_0x326921,_0x1e3eeb){_0x326921=_0x326921-0x0;let _0x49e24f=_0x1e3e[_0x326921];return _0x49e24f;};import{Plugin as _0x493c40}from'ckeditor5/src/core';import{findAttributeRange as _0x31ad9a}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x3c7af6}from'./utils';import{getTranslation as _0x1aa905}from'../utils/common-translations';export default class et extends _0x493c40{[_0x49e2('0x6')](){const _0x5b7e3e=this[_0x49e2('0x11')];if(!_0x5b7e3e[_0x49e2('0xa')][_0x49e2('0x2')](_0x49e2('0x17')))return;const _0x3fac09=_0x5b7e3e[_0x49e2('0xa')][_0x49e2('0x5')](_0x49e2('0x13'));_0x3fac09[_0x49e2('0x15')](_0x49e2('0x10'),(_0x354525,_0x4fd626)=>{const _0xadb70d=_0x5b7e3e[_0x49e2('0xf')][_0x49e2('0x0')][_0x49e2('0xe')];let _0xf0b765=[];if(_0xadb70d['isCollapsed']){if(!_0xadb70d[_0x49e2('0xc')](_0x49e2('0x12')))return void _0x354525(_0x4fd626);{const _0x35fb10=_0x31ad9a(_0xadb70d['getFirstPosition'](),'linkHref',_0xadb70d['getAttribute'](_0x49e2('0x12')),_0x5b7e3e['model']);_0xf0b765=[_0x35fb10];}}else _0xf0b765=Array[_0x49e2('0x16')](_0xadb70d[_0x49e2('0xd')]());_0x5b7e3e['model']['change'](()=>{for(const _0x8fecf5 of _0xf0b765)_0x3fac09[_0x49e2('0x19')](_0x8fecf5,{'commandName':_0x49e2('0x10'),'commandParams':[_0x4fd626]});});}),_0x3fac09[_0x49e2('0x15')]('unlink',()=>{const _0x474477=this[_0x49e2('0x11')][_0x49e2('0xf')],_0x2eba19=_0x474477[_0x49e2('0x0')][_0x49e2('0xe')];_0x474477['change'](()=>{let _0x24e4d7=[];if(_0x2eba19['isCollapsed'])_0x24e4d7=[_0x31ad9a(_0x2eba19['getFirstPosition'](),_0x49e2('0x12'),_0x2eba19[_0x49e2('0x14')]('linkHref'),_0x5b7e3e['model'])];else _0x24e4d7=_0x3c7af6(_0x49e2('0x12'),_0x2eba19[_0x49e2('0x1')](),_0x5b7e3e[_0x49e2('0xf')]);for(const _0x3000c1 of _0x24e4d7)_0x3fac09[_0x49e2('0x19')](_0x3000c1,{'commandName':_0x49e2('0xb'),'commandParams':[]});});}),_0x3fac09[_0x49e2('0x7')][_0x49e2('0x8')](_0x1b9b0d=>{const {data:_0x1039e5}=_0x1b9b0d,_0x4d5d3b=_0x5b7e3e[_0x49e2('0x1a')];if(_0x1039e5){if(_0x49e2('0x10')==_0x1039e5['commandName']){const _0x20590d=_0x1039e5[_0x49e2('0x9')][0x0];return{'type':_0x49e2('0x3'),'content':_0x1aa905(_0x4d5d3b,_0x49e2('0x18'),'\x22'+_0x20590d+'\x22')};}return _0x49e2('0xb')==_0x1039e5['commandName']?{'type':_0x49e2('0x3'),'content':_0x1aa905(_0x4d5d3b,_0x49e2('0x4'))}:void 0x0;}});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
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
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/integrations/list
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
9
|
/**
|
|
6
10
|
* Provides track changes plugin integration for list feature.
|
|
7
11
|
*/
|