@ckeditor/ckeditor5-track-changes 40.0.0 → 40.1.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/LICENSE.md +3 -3
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +20 -1
- package/lang/translations/ar.po +76 -0
- package/lang/translations/az.po +76 -0
- package/lang/translations/bg.po +76 -0
- package/lang/translations/bn.po +76 -0
- package/lang/translations/ca.po +76 -0
- package/lang/translations/cs.po +76 -0
- package/lang/translations/da.po +76 -0
- package/lang/translations/de.po +76 -0
- package/lang/translations/el.po +76 -0
- package/lang/translations/en-au.po +76 -0
- package/lang/translations/en.po +76 -0
- package/lang/translations/es.po +76 -0
- package/lang/translations/et.po +76 -0
- package/lang/translations/fi.po +76 -0
- package/lang/translations/fr.po +76 -0
- package/lang/translations/gl.po +76 -0
- package/lang/translations/he.po +76 -0
- package/lang/translations/hi.po +76 -0
- package/lang/translations/hr.po +76 -0
- package/lang/translations/hu.po +76 -0
- package/lang/translations/id.po +76 -0
- package/lang/translations/it.po +76 -0
- package/lang/translations/ja.po +76 -0
- package/lang/translations/ko.po +76 -0
- package/lang/translations/lt.po +76 -0
- package/lang/translations/lv.po +76 -0
- package/lang/translations/ms.po +76 -0
- package/lang/translations/nl.po +76 -0
- package/lang/translations/no.po +76 -0
- package/lang/translations/pl.po +76 -0
- package/lang/translations/pt-br.po +94 -18
- package/lang/translations/pt.po +76 -0
- package/lang/translations/ro.po +76 -0
- package/lang/translations/ru.po +76 -0
- package/lang/translations/sk.po +76 -0
- package/lang/translations/sq.po +76 -0
- package/lang/translations/sr-latn.po +76 -0
- package/lang/translations/sr.po +76 -0
- package/lang/translations/sv.po +76 -0
- package/lang/translations/th.po +76 -0
- package/lang/translations/tk.po +76 -0
- package/lang/translations/tr.po +76 -0
- package/lang/translations/tt.po +76 -0
- package/lang/translations/uk.po +76 -0
- package/lang/translations/ur.po +76 -0
- package/lang/translations/vi.po +76 -0
- package/lang/translations/zh-cn.po +76 -0
- package/lang/translations/zh.po +76 -0
- package/package.json +3 -3
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -17
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +17 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11c2=['model','editor','format','has','commandParams','find','*Change\x20to:*\x20%0','ELEMENT_HEADING','heading.options','_enableDefaultAttributesIntegration','name','type','plugins','value','title','_getHeadingLevel','_registerLegacyDescription','registerDescriptionCallback','afterInit','heading','config','TrackChangesEditing','paragraph','formatBlock','registerElementLabel','commandName','HeadingEditing','ELEMENT_HEADING_CUSTOM','_headingOptions','match','_descriptionFactory'];(function(_0x44c532,_0x11c229){const _0x286e9d=function(_0x8974c4){while(--_0x8974c4){_0x44c532['push'](_0x44c532['shift']());}};_0x286e9d(++_0x11c229);}(_0x11c2,0x185));const _0x286e=function(_0x44c532,_0x11c229){_0x44c532=_0x44c532-0x0;let _0x286e9d=_0x11c2[_0x44c532];return _0x286e9d;};import{Plugin as _0xdac203}from'ckeditor5/src/core';import{getTranslation as _0x4011be}from'../utils/common-translations';export default class X extends _0xdac203{[_0x286e('0x1')](){const _0x587e15=this[_0x286e('0xf')];if(!_0x587e15[_0x286e('0x1a')][_0x286e('0x11')](_0x286e('0x9')))return;this[_0x286e('0xb')]=_0x587e15[_0x286e('0x3')]['get'](_0x286e('0x16'));const _0x3a5c07=_0x587e15['locale'],_0x535d98=_0x587e15[_0x286e('0x1a')]['get'](_0x286e('0x4'));_0x535d98[_0x286e('0x17')](_0x286e('0x2'));for(const _0x17f4c4 of this[_0x286e('0xb')])_0x286e('0x5')!=_0x17f4c4[_0x286e('0xe')]&&_0x535d98[_0x286e('0xd')][_0x286e('0x7')](_0x17f4c4[_0x286e('0xe')],_0x4b840b=>{const _0x4e894d=this['_getHeadingLevel'](_0x17f4c4[_0x286e('0xe')]);return null!==_0x4e894d?_0x1cb8f0(_0x4b840b,_0x4e894d):_0x5765b8(_0x4b840b,_0x17f4c4[_0x286e('0x1c')]);});function _0x1cb8f0(_0x9d3a1d,_0x16104b){return _0x4011be(_0x3a5c07,_0x286e('0x15'),[_0x9d3a1d,_0x16104b]);}function _0x5765b8(_0x3eb19d,_0x4d40dd){return _0x4011be(_0x3a5c07,'ELEMENT_HEADING_CUSTOM',[_0x3eb19d,_0x4d40dd]);}this[_0x286e('0x1e')]();}[_0x286e('0x1e')](){const _0x2836e3=this[_0x286e('0xf')],_0x1a0cce=_0x2836e3['locale'];function _0x27c1c5(_0x2d4eb1,_0x4ba123){return _0x4011be(_0x1a0cce,_0x286e('0xa'),[_0x2d4eb1,_0x4ba123]);}_0x2836e3[_0x286e('0x1a')]['get']('TrackChangesEditing')[_0x286e('0xd')][_0x286e('0x0')](_0x18d03e=>{if(_0x286e('0x6')!=_0x18d03e[_0x286e('0x19')])return;const {data:_0xa208c5}=_0x18d03e;if(_0xa208c5&&'heading'==_0xa208c5[_0x286e('0x8')]){const _0x4fb8d2=_0xa208c5[_0x286e('0x12')][0x0][_0x286e('0x1b')],_0x374646=this[_0x286e('0x1d')](_0x4fb8d2);if(null!==_0x374646)return{'type':_0x286e('0x10'),'content':_0x4011be(_0x1a0cce,'*Change\x20to:*\x20%0',(_0x4698fc=0x1,_0x40fcb0=_0x374646,_0x4011be(_0x1a0cce,_0x286e('0x15'),[_0x4698fc,_0x40fcb0])))};const _0x4e88a1=this['_headingOptions']['find'](_0x213918=>_0x213918[_0x286e('0xe')]===_0x4fb8d2)['title'];return{'type':_0x286e('0x10'),'content':_0x4011be(_0x1a0cce,_0x286e('0x14'),_0x27c1c5(0x1,_0x4e88a1))};}var _0x4698fc,_0x40fcb0;});}[_0x286e('0x1d')](_0x219608){var _0xdfa199,_0x112c1b;const _0x5db2a1=_0x219608[_0x286e('0xc')](/^heading(\d+)/);if(_0x5db2a1)return _0x5db2a1[0x1];const _0x64dafe=null===(_0xdfa199=this[_0x286e('0xb')])||void 0x0===_0xdfa199?void 0x0:_0xdfa199[_0x286e('0x13')](_0xafc01b=>_0xafc01b['model']==_0x219608);if(_0x64dafe&&_0x64dafe['view']){const _0x19c4d1=_0x64dafe['view'],_0x5a6cb9=(null!==(_0x112c1b=_0x19c4d1[_0x286e('0x18')])&&void 0x0!==_0x112c1b?_0x112c1b:_0x19c4d1)[_0x286e('0xc')](/^h(\d+)/);if(_0x5a6cb9)return _0x5a6cb9[0x1];}return null;}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/highlight
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for highlight feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHighlight extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/highlight
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for highlight feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHighlight extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cd2=['FORMAT_HIGHLIGHT','find','get','highlight.options','locale','color','config','title','_descriptionFactory','format','commandName','HighlightEditing','_registerLegacyDescription','model','type','TrackChangesEditing','*Set\x20highlight:*\x20%0','editor','*Remove\x20highlight*','registerDescriptionCallback','plugins','formatInline','toLowerCase','highlight'];(function(_0x219ffa,_0x5cd271){const _0x5ec68a=function(_0x1ee435){while(--_0x1ee435){_0x219ffa['push'](_0x219ffa['shift']());}};_0x5ec68a(++_0x5cd271);}(_0x5cd2,0xf1));const _0x5ec6=function(_0x219ffa,_0x5cd271){_0x219ffa=_0x219ffa-0x0;let _0x5ec68a=_0x5cd2[_0x219ffa];return _0x5ec68a;};import{Plugin as _0x13a605}from'ckeditor5/src/core';import{getTranslation as _0x2a8622}from'../utils/common-translations';export default class Y extends _0x13a605{['afterInit'](){const _0x2644d2=this[_0x5ec6('0x10')];if(!_0x2644d2[_0x5ec6('0x13')]['has'](_0x5ec6('0xa')))return;const _0xa2406b=_0x2644d2[_0x5ec6('0x13')]['get']('TrackChangesEditing'),_0x4d6fe1=_0x2644d2[_0x5ec6('0x3')];_0xa2406b['_enableDefaultAttributesIntegration'](_0x5ec6('0x16'),[_0x5ec6('0x16')]),_0xa2406b[_0x5ec6('0x7')]['registerAttributeLabel'](_0x5ec6('0x16'),_0x2a8622(_0x4d6fe1,_0x5ec6('0x17'))),this['_registerLegacyDescription']();}[_0x5ec6('0xb')](){const _0x169f6f=this[_0x5ec6('0x10')],_0x1341f0=_0x169f6f[_0x5ec6('0x3')];_0x169f6f[_0x5ec6('0x13')][_0x5ec6('0x1')](_0x5ec6('0xe'))[_0x5ec6('0x7')][_0x5ec6('0x12')](_0x20a6be=>{if(_0x5ec6('0x14')!=_0x20a6be[_0x5ec6('0xd')])return;const {data:_0x2586ce}=_0x20a6be;if(_0x2586ce&&_0x5ec6('0x16')==_0x2586ce[_0x5ec6('0x9')]){const _0xc27784=_0x1341f0['t'],_0x524295=_0x2586ce['commandParams'][0x0]['value'];if(_0x524295){const _0x5bafc0=_0x169f6f[_0x5ec6('0x5')]['get'](_0x5ec6('0x2'))[_0x5ec6('0x0')](_0x5611fd=>_0x5611fd[_0x5ec6('0xc')]==_0x524295),_0xb87fe8=_0xc27784(_0x5bafc0[_0x5ec6('0x6')])[_0x5ec6('0x15')]();return{'type':'format','content':_0x2a8622(_0x1341f0,_0x5ec6('0xf'),_0xb87fe8),'color':{'value':_0x5bafc0[_0x5ec6('0x4')],'title':_0x5bafc0[_0x5ec6('0x6')]}};}return{'type':_0x5ec6('0x8'),'content':_0x2a8622(_0x1341f0,_0x5ec6('0x11'),_0x2a8622(_0x1341f0,_0x5ec6('0x17')))};}});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/horizontalline
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHorizontalLine extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/horizontalline
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHorizontalLine extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c5e=['dataDowncast','high','ck-horizontal-line','createPositionAt','ELEMENT_HORIZONTAL_LINE','editor','afterInit','addClass','insert','HorizontalLineEditing','locale','horizontalLine','enableCommand','showSuggestionHighlights','for','createEmptyElement','registerElementLabel','elementToStructure','get','conversion','div'];(function(_0x849e6c,_0x2c5e4d){const _0x1dd023=function(_0x3c8b78){while(--_0x3c8b78){_0x849e6c['push'](_0x849e6c['shift']());}};_0x1dd023(++_0x2c5e4d);}(_0x2c5e,0x86));const _0x1dd0=function(_0x849e6c,_0x2c5e4d){_0x849e6c=_0x849e6c-0x0;let _0x1dd023=_0x2c5e[_0x849e6c];return _0x1dd023;};import{Plugin as _0xd8dd98}from'ckeditor5/src/core';import{getTranslation as _0x174edd}from'../utils/common-translations';export default class Z extends _0xd8dd98{[_0x1dd0('0x13')](){const _0x302bba=this[_0x1dd0('0x12')];if(!_0x302bba['plugins']['has'](_0x1dd0('0x1')))return;_0x302bba['plugins'][_0x1dd0('0xa')]('TrackChangesEditing')[_0x1dd0('0x4')]('horizontalLine');const _0x34eb13=_0x302bba['plugins']['get']('TrackChangesEditing'),_0x57fbec=_0x302bba[_0x1dd0('0x2')];_0x34eb13['_descriptionFactory'][_0x1dd0('0x8')](_0x1dd0('0x3'),_0x53a02b=>_0x174edd(_0x57fbec,_0x1dd0('0x11'),_0x53a02b)),_0x302bba[_0x1dd0('0xb')][_0x1dd0('0x6')](_0x1dd0('0xd'))[_0x1dd0('0x9')]({'model':_0x1dd0('0x3'),'view':(_0x132396,{writer:_0x5027a0,options:_0x31cd9d})=>{if(!_0x31cd9d[_0x1dd0('0x5')])return null;const _0xb0bc72=_0x5027a0['createContainerElement'](_0x1dd0('0xc')),_0x3554d6=_0x5027a0[_0x1dd0('0x7')]('hr');return _0x5027a0[_0x1dd0('0x14')](_0x1dd0('0xf'),_0xb0bc72),_0x5027a0[_0x1dd0('0x0')](_0x5027a0[_0x1dd0('0x10')](_0xb0bc72,0x0),_0x3554d6),_0xb0bc72;},'converterPriority':_0x1dd0('0xe')});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/htmlembed
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesHtmlEmbed extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/htmlembed
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesHtmlEmbed extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x699e=['has','format','afterInit','start','attribute','_registerLegacyDescription','rawHtml','TrackChangesEditing','registerDescriptionCallback','formatBlock','ELEMENT_HTML_EMBED','commandName','get','getFirstRange','_enableDefaultAttributesIntegration','_descriptionFactory','registerElementLabel','value','htmlEmbed','editor','plugins','locale'];(function(_0x430ec1,_0x699e34){const _0x4d478f=function(_0x2dbd95){while(--_0x2dbd95){_0x430ec1['push'](_0x430ec1['shift']());}};_0x4d478f(++_0x699e34);}(_0x699e,0x17d));const _0x4d47=function(_0x430ec1,_0x699e34){_0x430ec1=_0x430ec1-0x0;let _0x4d478f=_0x699e[_0x430ec1];return _0x4d478f;};import{Plugin as _0x313a29}from'ckeditor5/src/core';import{getTranslation as _0x2bf0f5}from'../utils/common-translations';export default class tt extends _0x313a29{[_0x4d47('0x11')](){const _0x1eb48c=this[_0x4d47('0xc')];if(!_0x1eb48c[_0x4d47('0xd')][_0x4d47('0xf')]('HtmlEmbed'))return;const _0x24373e=_0x1eb48c[_0x4d47('0xd')]['get'](_0x4d47('0x0')),_0x2bc0e8=_0x1eb48c[_0x4d47('0xe')];_0x24373e[_0x4d47('0x8')][_0x4d47('0x9')]('rawHtml',_0x170119=>_0x2bf0f5(_0x2bc0e8,_0x4d47('0x3'),_0x170119)),_0x24373e[_0x4d47('0x7')](_0x4d47('0xb'),[],[_0x4d47('0xa')]),_0x24373e[_0x4d47('0x8')][_0x4d47('0x1')](_0x28258d=>{if(_0x4d47('0x13')!=_0x28258d['type'])return;const {data:_0x19fe85}=_0x28258d;if(_0x19fe85&&_0x4d47('0xa')==_0x19fe85['key']&&_0x28258d[_0x4d47('0x6')]()[_0x4d47('0x12')]['nodeAfter']['is']('element',_0x4d47('0x15'))){const _0x455956=_0x2bf0f5(_0x2bc0e8,_0x4d47('0x3'));return{'type':'format','content':_0x2bf0f5(_0x2bc0e8,'*Change\x20%0\x20content*',_0x455956)};}}),this[_0x4d47('0x14')]();}[_0x4d47('0x14')](){const _0x55a36e=this[_0x4d47('0xc')],_0x1dbe79=_0x55a36e[_0x4d47('0xe')];_0x55a36e['plugins'][_0x4d47('0x5')]('TrackChangesEditing')[_0x4d47('0x8')][_0x4d47('0x1')](_0x6a9e26=>{if(_0x4d47('0x2')!=_0x6a9e26['type'])return;const {data:_0x5bd66e}=_0x6a9e26;if(_0x5bd66e&&'htmlEmbed'==_0x5bd66e[_0x4d47('0x4')]){const _0x2fa538=_0x2bf0f5(_0x1dbe79,_0x4d47('0x3'));return{'type':_0x4d47('0x10'),'content':_0x2bf0f5(_0x1dbe79,'*Change\x20%0\x20content*',_0x2fa538)};}});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/image
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesImage extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/image
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImage extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3443=['isBefore','getSuggestionCallback','editor','subType','deletion','imageCaption','markInlineFormat','afterInit','plugins','refresh','isInContent','registerPostFixer','join','getClosestSelectedImageElement','getAttribute','imageStylePostApply','Inline\x20image\x20to\x20block\x20image','markBlockFormat','ImageStyleEditing','registerCustomCallback','registerElementLabel','format','filter','ELEMENT_CAPTION','isBlockImage','differ','shouldConvertImageType','enableCommand','imageTextAlternative','suggestion','imageStyle','next','ImageTextAlternativeEditing','head','type','imageStylePreApply','markInsertion','getChangedMarkers','model','detach','discard','getContainedElement','*Set\x20image\x20width:*\x20%0','insertion','accept','commandName','ImageCaptionUtils','ELEMENT_IMAGE','_splitMarkerName','toPrevious','hasSuggestion','start','forceDefaultExecution','nodeAfter','*Format:*\x20%0','from','forEach','Users','convertInlineImageToBlock','backward','discardSuggestion','getFirstRange','ImageCaptionEditing','selection','caption','_findSuggestions','formatBlock','document','setImageNaturalSizeAttributes','chain','createRange','fromPosition','change','getNearestSelectionRange','convertBlockImageToInline','getCaptionFromImageModelElement','getSuggestions','Block\x20image\x20to\x20inline\x20image','previous','isOwn','registerDescriptionCallback','forward','alt','newValue','resizedWidth','hasAttribute','get','uploadImage','end','schema','has','isCollapsed','element','resizeImage','locale','findIndex','toNext','find','nodeBefore','createRangeOn','ImageInlineEditing','isInlineImage','getSuggestion','newRange','ImageBlockEditing','toLowerCase','*Reset\x20image\x20width*','length','_suggestionFactory','value','imageTypeInline','commandReversedParams','*Remove\x20image\x20text\x20alternative*','side','formatInline','isEqual','commands','imageInline','markDeletion','_descriptionFactory'];(function(_0x468396,_0x344356){const _0x58ddae=function(_0x206f23){while(--_0x206f23){_0x468396['push'](_0x468396['shift']());}};_0x58ddae(++_0x344356);}(_0x3443,0x18c));const _0x58dd=function(_0x468396,_0x344356){_0x468396=_0x468396-0x0;let _0x58ddae=_0x3443[_0x468396];return _0x58ddae;};import{Plugin as _0x59c4a4}from'ckeditor5/src/core';import{LivePosition as _0x5cfbca}from'ckeditor5/src/engine';import{uid as _0x1f19d4}from'ckeditor5/src/utils';import{getTranslation as _0x1d6875}from'../utils/common-translations';export default class Y extends _0x59c4a4{[_0x58dd('0x5b')](){const _0x18ebb7=this[_0x58dd('0x56')];if(!_0x18ebb7[_0x58dd('0x5c')]['has']('ImageEditing'))return;const _0x28d39e=_0x18ebb7['plugins'][_0x58dd('0x32')]('TrackChangesEditing'),_0xbfde1f=_0x18ebb7[_0x58dd('0x5c')]['get']('ImageUtils'),_0x1b6fac={},_0xffdc90=_0x18ebb7[_0x58dd('0x3a')];if(_0x28d39e['enableCommand']('insertImage'),_0x28d39e['_descriptionFactory'][_0x58dd('0x68')]('imageBlock',_0x16e1d4=>_0x1d6875(_0xffdc90,_0x58dd('0xb'),_0x16e1d4)),_0x28d39e[_0x58dd('0x53')][_0x58dd('0x68')](_0x58dd('0x51'),_0x2b7732=>_0x1d6875(_0xffdc90,'ELEMENT_INLINE_IMAGE',_0x2b7732)),_0x28d39e['_descriptionFactory'][_0x58dd('0x68')](_0x58dd('0x1c'),()=>_0x1d6875(_0xffdc90,_0x58dd('0x6b'))),_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')]('ImageUploadEditing')&&_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x33')),_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')](_0x58dd('0x44'))&&_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')](_0x58dd('0x40'))&&(_0x28d39e['enableCommand'](_0x58dd('0x4a'),(_0x484d1a,_0xf5162f)=>{const _0xa0b123=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')]['document'][_0x58dd('0x1b')]);_0x18ebb7[_0x58dd('0x2')]['change'](()=>{_0x28d39e[_0x58dd('0x65')](_0xa0b123,{'commandName':_0x58dd('0x4a'),'commandParams':[_0xf5162f]},[],_0x58dd('0x26'));});}),_0x28d39e[_0x58dd('0x6f')]('imageTypeBlock',(_0x4ddd51,_0x2cd245)=>{_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x24')](_0xa56ce8=>{let _0x3fe709=_0xbfde1f['getClosestSelectedImageElement'](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]),_0x3e4b13=_0xa56ce8['createRangeOn'](_0x3fe709);const _0x46f1e4=_0x5cfbca['fromPosition'](_0x3e4b13[_0x58dd('0xf')],_0x58dd('0xd')),_0x277fdb=_0x5cfbca[_0x58dd('0x23')](_0x3e4b13[_0x58dd('0x34')],_0x58dd('0x3c'));_0x28d39e[_0x58dd('0x10')](()=>_0x4ddd51(_0x2cd245)),_0x3fe709=_0xbfde1f['getClosestSelectedImageElement'](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')]['selection']),_0x3e4b13=_0xa56ce8[_0x58dd('0x3f')](_0x3fe709);const _0x559cad=_0xa56ce8[_0x58dd('0x22')](_0x46f1e4,_0x277fdb);_0x46f1e4[_0x58dd('0x3')](),_0x277fdb[_0x58dd('0x3')](),_0x28d39e['markBlockFormat'](_0x3fe709,{'commandName':_0x58dd('0x4a'),'commandParams':[_0x2cd245]},[],_0x58dd('0x16')),_0x559cad['start']['isBefore'](_0x3e4b13[_0x58dd('0xf')])&&_0x28d39e[_0x58dd('0x0')](_0xa56ce8[_0x58dd('0x22')](_0x559cad['start'],_0x3e4b13[_0x58dd('0xf')]),_0x58dd('0x16')),_0x3e4b13[_0x58dd('0x34')]['isBefore'](_0x559cad[_0x58dd('0x34')])&&_0x28d39e[_0x58dd('0x0')](_0xa56ce8[_0x58dd('0x22')](_0x3e4b13['end'],_0x559cad[_0x58dd('0x34')]),'convertInlineImageToBlock');});}),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')]('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x28d39e[_0x58dd('0x48')]['registerCustomCallback'](_0x58dd('0x1e'),'convertInlineImageToBlock',_0x58dd('0x8'),()=>!0x1),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x16'),'discard',_0x28d39e[_0x58dd('0x48')]['getSuggestionCallback'](_0x58dd('0x1e'),'',_0x58dd('0x8'))),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x7'),'convertInlineImageToBlock','join',()=>!0x1),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x7'),_0x58dd('0x16'),_0x58dd('0x4'),([_0x11cdd4])=>{const _0x31d052=_0x28d39e['_suggestionFactory'][_0x58dd('0x55')](_0x58dd('0x7'),'',_0x58dd('0x4'));let _0x12d001=_0x11cdd4[_0x58dd('0xf')],_0x45b024=_0x11cdd4[_0x58dd('0x34')];const _0x279de7=_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x35')][_0x58dd('0x25')](_0x12d001,_0x58dd('0x17')),_0x2f68af=_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x35')][_0x58dd('0x25')](_0x45b024,_0x58dd('0x2d'));_0x279de7['isCollapsed']&&(_0x12d001=_0x279de7[_0x58dd('0xf')]),_0x2f68af[_0x58dd('0x37')]&&(_0x45b024=_0x2f68af[_0x58dd('0x34')]),_0x31d052([_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x22')](_0x12d001,_0x45b024)]);}),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x16'),'chain',_0x11d686),_0x28d39e[_0x58dd('0x48')]['registerCustomCallback']('insertion',_0x58dd('0x16'),_0x58dd('0x21'),_0x11d686)),_0x18ebb7[_0x58dd('0x5c')]['has'](_0x58dd('0x1a'))&&(_0x28d39e['enableCommand']('toggleImageCaption',(_0x41f80d,_0x371454)=>{const _0x4406bf=_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x32')](_0x58dd('0xa'));let _0x875969=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')]['selection']),_0x2d196e=_0x4406bf[_0x58dd('0x27')](_0x875969);_0x18ebb7[_0x58dd('0x2')]['change'](()=>{if(_0x2d196e)return void _0x28d39e[_0x58dd('0x52')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x3f')](_0x2d196e));const _0x4e84d7=_0xbfde1f[_0x58dd('0x6c')](_0x875969);_0x41f80d(_0x371454),_0x875969=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7['model'][_0x58dd('0x1f')]['selection']),_0x2d196e=_0x4406bf[_0x58dd('0x27')](_0x875969),_0x28d39e[_0x58dd('0x0')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x3f')](_0x2d196e),_0x4e84d7?null:_0x58dd('0x59'));});}),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x7'),_0x58dd('0x59'),_0x58dd('0x21'),_0x11d686)),_0x18ebb7[_0x58dd('0x5c')][_0x58dd('0x36')](_0x58dd('0x66'))){_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x72'),(_0x4aa84e,_0x24ec3d)=>{const _0x26b84b=_0x18ebb7['plugins']['get'](_0x58dd('0x15'))['me'],_0x1f0054=_0x18ebb7['commands'][_0x58dd('0x32')](_0x58dd('0x72'));let _0x309654=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]),_0x1fe555=_0x18ebb7['model'][_0x58dd('0x3f')](_0x309654),_0x2f6619=_0x1f0054['value'];if(_0x2f6619==_0x24ec3d[_0x58dd('0x49')])return;const _0x515128={'commandName':_0x58dd('0x72'),'commandParams':[_0x24ec3d],'formatGroupId':_0x1f19d4()};_0x18ebb7['model'][_0x58dd('0x24')](()=>{if(_0x28d39e[_0x58dd('0x28')]()[_0x58dd('0x6a')](_0x42cb68=>_0x42cb68[_0x58dd('0x5e')]&&_0x26b84b==_0x42cb68['author']&&(_0x58dd('0x1e')==_0x42cb68[_0x58dd('0x76')]||_0x58dd('0x4e')==_0x42cb68[_0x58dd('0x76')])&&('imageStylePreApply'==_0x42cb68[_0x58dd('0x57')]||_0x58dd('0x63')==_0x42cb68[_0x58dd('0x57')])&&_0x42cb68['getFirstRange']()[_0x58dd('0x4f')](_0x1fe555))[_0x58dd('0x14')](_0x45ed13=>_0x28d39e['discardSuggestion'](_0x45ed13[_0x58dd('0x75')])),_0x309654=_0xbfde1f['getClosestSelectedImageElement'](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]),_0x1fe555=_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x3f')](_0x309654),_0x1f0054['refresh'](),_0x18ebb7[_0x58dd('0x50')]['get']('imageTypeInline')[_0x58dd('0x5d')](),_0x18ebb7[_0x58dd('0x50')][_0x58dd('0x32')]('imageTypeBlock')[_0x58dd('0x5d')](),_0x2f6619=_0x1f0054['value'],_0x2f6619!=_0x24ec3d[_0x58dd('0x49')])return _0xbfde1f[_0x58dd('0x41')](_0x309654)&&_0x1f0054[_0x58dd('0x6e')](_0x24ec3d['value'],_0x309654)?(_0x4aa84e({..._0x24ec3d,'setImageSizes':!0x1}),_0x309654=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')]['selection']),void _0x28d39e[_0x58dd('0x65')](_0x309654,{..._0x515128,'commandReversedParams':[{'value':_0x2f6619||null,'setImageSizes':!0x1}]},[],_0x58dd('0x77'))):void(_0xbfde1f[_0x58dd('0x6c')](_0x309654)?_0x28d39e[_0x58dd('0x65')](_0x309654,_0x515128,[],_0x58dd('0x63')):_0x28d39e[_0x58dd('0x5a')](_0x1fe555,_0x515128,_0x58dd('0x63')));});});for(const _0xd026be of _0x18ebb7[_0x58dd('0x5c')]['get'](_0x58dd('0x66'))['normalizedStyles'])_0x1b6fac[_0xd026be['name']]=_0xd026be['title'][_0x58dd('0x45')]();_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x77'),'join',()=>!0x1),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x63'),_0x58dd('0x60'),()=>!0x1),_0x28d39e[_0x58dd('0x48')][_0x58dd('0x67')]('formatInline',_0x58dd('0x63'),_0x58dd('0x60'),()=>!0x1),_0x28d39e[_0x58dd('0x48')]['registerCustomCallback'](_0x58dd('0x1e'),_0x58dd('0x77'),_0x58dd('0x8'),([_0x43341a])=>{_0xbfde1f[_0x58dd('0x20')](_0x43341a[_0x58dd('0x5')]());}),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')](_0x58dd('0x1e'),_0x58dd('0x77'),_0x58dd('0x4'),(_0x49acec,_0x2b3329)=>{_0x28d39e[_0x58dd('0x48')][_0x58dd('0x55')](_0x58dd('0x1e'),'',_0x58dd('0x8'))(_0x49acec,{'commandName':_0x2b3329[_0x58dd('0x9')],'commandParams':_0x2b3329[_0x58dd('0x4b')]});}),_0x28d39e['_suggestionFactory'][_0x58dd('0x67')]('formatBlock','imageStylePreApply',_0x58dd('0x21'),_0x11d686);}const _0xc6006b=[{'type':_0x58dd('0x1e'),'subType':_0x58dd('0x77')},{'type':_0x58dd('0x7'),'subType':_0x58dd('0x59')},{'type':_0x58dd('0x1e'),'subType':_0x58dd('0x16')},{'type':_0x58dd('0x7'),'subType':_0x58dd('0x16')}];function _0x58bc94(_0x24a5c2,_0x3118a3){const _0x5e0712=_0xc6006b[_0x58dd('0x3b')](({type:_0x11234c,subType:_0x2d204c})=>_0x24a5c2[_0x58dd('0x76')]==_0x11234c&&_0x24a5c2['subType']==_0x2d204c),_0x19aaf9=_0xc6006b[_0x58dd('0x3b')](({type:_0x2646be,subType:_0x8cd84c})=>_0x3118a3[_0x58dd('0x76')]==_0x2646be&&_0x3118a3[_0x58dd('0x57')]==_0x8cd84c);if(_0x5e0712<0x0||_0x19aaf9<0x0)return!0x1;const _0x511971=_0x24a5c2[_0x58dd('0x19')](),_0x40bed8=_0x3118a3[_0x58dd('0x19')]();if((0x0==_0x5e0712||0x1==_0x5e0712)&&0x2==_0x19aaf9&&_0x511971['isIntersecting'](_0x40bed8))return!0x0;if(0x2==_0x5e0712&&0x3==_0x19aaf9){const _0x3af161=_0x28d39e[_0x58dd('0x1d')](_0x511971,_0x58dd('0x7'))['filter'](({suggestion:_0x28ec92,meta:_0x4e5d84})=>_0x4e5d84[_0x58dd('0x2b')]&&_0x58dd('0x16')==_0x28ec92[_0x58dd('0x57')]);if(_0x3af161[_0x58dd('0x47')]>0x1&&_0x40bed8[_0x58dd('0x34')]['isEqual'](_0x511971['start']))return!0x0;if(0x1==_0x3af161['length']&&(_0x511971[_0x58dd('0xf')]['isEqual'](_0x40bed8[_0x58dd('0x34')])||_0x511971[_0x58dd('0x34')][_0x58dd('0x4f')](_0x40bed8[_0x58dd('0xf')])))return!0x0;}if(0x3==_0x5e0712&&0x3==_0x19aaf9&&_0x511971['start'][_0x58dd('0x54')](_0x40bed8[_0x58dd('0xf')])){const _0x2f9dc8=_0x511971[_0x58dd('0x34')][_0x58dd('0x11')],_0x383cc6=_0x40bed8[_0x58dd('0xf')][_0x58dd('0x3e')];return _0xbfde1f['isBlockImage'](_0x2f9dc8)&&_0x2f9dc8===_0x383cc6;}return!0x1;}function _0x11d686(_0x46338f,_0xe40f80){return _0x58bc94(_0x46338f,_0xe40f80)?[_0x46338f,_0xe40f80]:_0x58bc94(_0xe40f80,_0x46338f)?[_0xe40f80,_0x46338f]:null;}_0x18ebb7['model']['document'][_0x58dd('0x5f')](()=>{let _0x1f49df=!0x1;const _0x2c1ee8=Array[_0x58dd('0x13')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x6d')][_0x58dd('0x1')]());for(const {name:_0x5b31a6,data:_0x539cd8}of _0x2c1ee8){const {group:_0x307937,type:_0x2f4739,subType:_0x25f8f5,id:_0x26cd16}=_0x28d39e[_0x58dd('0xc')](_0x5b31a6);if(_0x58dd('0x71')==_0x307937&&_0x28d39e[_0x58dd('0xe')](_0x26cd16)){if(_0x58dd('0x1e')==_0x2f4739&&(_0x58dd('0x77')==_0x25f8f5||_0x58dd('0x63')==_0x25f8f5)){const _0x4df89e=_0x28d39e[_0x58dd('0x42')](_0x26cd16);if(_0x539cd8[_0x58dd('0x43')]){const _0xbe64ad=_0x4df89e[_0x58dd('0x19')]()[_0x58dd('0x5')]();if(_0xbfde1f[_0x58dd('0x6c')](_0xbe64ad))continue;_0x28d39e[_0x58dd('0x18')](_0x4df89e),_0x1f49df=!0x0;}}if('insertion'==_0x2f4739&&_0x58dd('0x59')==_0x25f8f5&&!_0x539cd8['newRange']){const _0x2d55ee=_0x28d39e[_0x58dd('0x42')](_0x26cd16);_0x2d55ee['next']&&_0x2d55ee[_0x58dd('0x73')]['isInContent']&&(_0x28d39e['discardSuggestion'](_0x2d55ee['next']),_0x1f49df=!0x0);}}}return _0x1f49df;}),_0x18ebb7['plugins']['has']('ImageResize')&&_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x39'),(_0x44ff55,_0x2ab065)=>{const _0x490cec=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')]['document'][_0x58dd('0x1b')]);_0x490cec[_0x58dd('0x62')](_0x58dd('0x30'))!=_0x2ab065['width']&&_0x18ebb7['model'][_0x58dd('0x24')](()=>{_0x28d39e[_0x58dd('0x65')](_0x490cec,{'commandName':'resizeImage','commandParams':[_0x2ab065]});});}),_0x18ebb7['plugins'][_0x58dd('0x36')](_0x58dd('0x74'))&&_0x28d39e[_0x58dd('0x6f')](_0x58dd('0x70'),(_0x105ae9,_0x517c05)=>{const _0x5c6303=_0xbfde1f[_0x58dd('0x61')](_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x1f')][_0x58dd('0x1b')]);(_0x5c6303[_0x58dd('0x31')]('alt')?_0x5c6303[_0x58dd('0x62')](_0x58dd('0x2e')):'')!=_0x517c05[_0x58dd('0x2f')]&&_0x18ebb7[_0x58dd('0x2')][_0x58dd('0x24')](()=>{_0x28d39e[_0x58dd('0x65')](_0x5c6303,{'commandName':_0x58dd('0x70'),'commandParams':[_0x517c05]});});}),_0x28d39e['_descriptionFactory'][_0x58dd('0x2c')](_0x29a5e7=>{if(!!_0xc6006b[_0x58dd('0x3d')](({type:_0x107bca,subType:_0x4dd03a})=>_0x29a5e7[_0x58dd('0x76')]==_0x107bca&&_0x29a5e7[_0x58dd('0x57')]==_0x4dd03a))return _0x29a5e7[_0x58dd('0x2a')]?{}:void 0x0;}),_0x28d39e[_0x58dd('0x53')][_0x58dd('0x2c')](_0x27cce4=>{if(_0x58dd('0x7')==_0x27cce4[_0x58dd('0x76')]||_0x58dd('0x58')==_0x27cce4[_0x58dd('0x76')]){const _0xb71b12=_0x27cce4[_0x58dd('0x5')]();if(_0xb71b12&&_0xb71b12['is'](_0x58dd('0x38'),_0x58dd('0x1c')))return{'type':_0x58dd('0x7')==_0x27cce4['type']?'addObject':'removeObject','element':_0xb71b12,'quantity':0x1};}}),_0x28d39e['_descriptionFactory'][_0x58dd('0x2c')](_0x57ed2b=>_0x58dd('0x1e')==_0x57ed2b[_0x58dd('0x76')]&&_0x58dd('0x16')==_0x57ed2b['subType']?{'type':_0x58dd('0x69'),'content':_0x58dd('0x64')}:_0x58dd('0x1e')==_0x57ed2b[_0x58dd('0x76')]&&_0x58dd('0x26')==_0x57ed2b[_0x58dd('0x57')]?{'type':_0x58dd('0x69'),'content':_0x58dd('0x29')}:void 0x0),_0x28d39e[_0x58dd('0x53')]['registerDescriptionCallback'](_0x1e6972=>{const {data:_0x5d40ac}=_0x1e6972;if(_0x5d40ac){if(_0x58dd('0x72')==_0x5d40ac[_0x58dd('0x9')]){const _0x5d9799=_0x5d40ac['commandParams'][0x0][_0x58dd('0x49')];return _0x1f10d2(_0x58dd('0x4d')===_0x5d9799?_0x1d6875(_0xffdc90,'FORMAT_SIDE_IMAGE'):_0x1b6fac[_0x5d9799]||_0x5d9799);}if(_0x58dd('0x70')==_0x5d40ac[_0x58dd('0x9')]){const _0x369747=_0x5d40ac['commandParams'][0x0][_0x58dd('0x2f')];return _0x369747?{'type':'format','content':_0x1d6875(_0xffdc90,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x369747+'\x22')}:{'type':'format','content':_0x1d6875(_0xffdc90,_0x58dd('0x4c'))};}if('resizeImage'==_0x5d40ac[_0x58dd('0x9')]){const _0x425fba=_0x5d40ac['commandParams'][0x0]['width'];return _0x425fba?{'type':_0x58dd('0x69'),'content':_0x1d6875(_0xffdc90,_0x58dd('0x6'),_0x425fba)}:{'type':_0x58dd('0x69'),'content':_0x1d6875(_0xffdc90,_0x58dd('0x46'))};}}function _0x1f10d2(_0x349bdb){return{'type':_0x58dd('0x69'),'content':_0x1d6875(_0xffdc90,_0x58dd('0x12'),_0x349bdb)};}});}}
|
|
23
|
+
const _0x1186=['discard','enableCommand','markDeletion','*Set\x20image\x20text\x20alternative:*\x20%0','ImageBlockEditing','alt','isCollapsed','registerCustomCallback','convertInlineImageToBlock','deletion','ImageCaptionEditing','ImageResize','formatInline','getSuggestionCallback','type','registerDescriptionCallback','getNearestSelectionRange','key','formatBlock','ImageInlineEditing','imageTextAlternative','ELEMENT_CAPTION','forceDefaultExecution','getCaptionFromImageModelElement','*Set\x20image\x20width:*\x20%0','element','findIndex','createRange','attribute','ELEMENT_IMAGE','forward','insertImage','FORMAT_IMAGE_SIZE','afterInit','detach','document','insertion','imageStylePreApply','_descriptionFactory','getContainedElement','resizeImage','end','newValue','commandParams','backward','isOwn','resizedWidth','imageCaption','imageBlock','locale','*Remove\x20image\x20text\x20alternative*','chain','filter','accept','selection','imageTypeInline','convertBlockImageToInline','markBlockFormat','getClosestSelectedImageElement','ImageCaptionUtils','TrackChangesEditing','width','registerAttributeLabel','join','imageInline','getFirstRange','_suggestionFactory','isEqual','model','fromPosition','uploadImage','registerElementLabel','ImageEditing','schema','plugins','isBefore','Block\x20image\x20to\x20inline\x20image','previous','isBlockImage','length','ELEMENT_INLINE_IMAGE','markInsertion','caption','get','format','imageTypeBlock','subType','start','createRangeOn','commandName','nodeAfter','isIntersecting','editor','_registerLegacyDescription','has','*Reset\x20image\x20width*'];(function(_0x34c52d,_0x118676){const _0x5cfd36=function(_0xabf5f1){while(--_0xabf5f1){_0x34c52d['push'](_0x34c52d['shift']());}};_0x5cfd36(++_0x118676);}(_0x1186,0x141));const _0x5cfd=function(_0x34c52d,_0x118676){_0x34c52d=_0x34c52d-0x0;let _0x5cfd36=_0x1186[_0x34c52d];return _0x5cfd36;};import{Plugin as _0x1aa9cd}from'ckeditor5/src/core';import{LivePosition as _0x3f1676}from'ckeditor5/src/engine';import{getTranslation as _0x4f8721}from'../utils/common-translations';export default class it extends _0x1aa9cd{[_0x5cfd('0x0')](){const _0x4a1326=this[_0x5cfd('0x3b')];if(!_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x3d')](_0x5cfd('0x27')))return;const _0x573d9d=_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x32')](_0x5cfd('0x1b')),_0x189906=_0x4a1326[_0x5cfd('0x29')]['get']('ImageUtils'),_0x59bb63=_0x4a1326[_0x5cfd('0x10')];_0x573d9d[_0x5cfd('0x40')](_0x5cfd('0x5e')),_0x573d9d['_descriptionFactory']['registerElementLabel'](_0x5cfd('0xf'),_0x5e913=>_0x4f8721(_0x59bb63,_0x5cfd('0x5c'),_0x5e913)),_0x573d9d['_descriptionFactory'][_0x5cfd('0x26')](_0x5cfd('0x1f'),_0xb557=>_0x4f8721(_0x59bb63,_0x5cfd('0x2f'),_0xb557)),_0x573d9d[_0x5cfd('0x5')]['registerElementLabel'](_0x5cfd('0x31'),()=>_0x4f8721(_0x59bb63,_0x5cfd('0x54'))),_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x3d')]('ImageUploadEditing')&&_0x573d9d['enableCommand'](_0x5cfd('0x25')),_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x3d')](_0x5cfd('0x43'))&&_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x3d')](_0x5cfd('0x52'))&&(_0x573d9d[_0x5cfd('0x40')]('imageTypeInline',(_0x406fea,_0x434455)=>{const _0xc87314=_0x189906[_0x5cfd('0x19')](_0x4a1326[_0x5cfd('0x23')]['document'][_0x5cfd('0x15')]);_0x4a1326[_0x5cfd('0x23')]['change'](()=>{_0x573d9d[_0x5cfd('0x18')](_0xc87314,{'commandName':_0x5cfd('0x16'),'commandParams':[_0x434455]},[],_0x5cfd('0x17'));});}),_0x573d9d[_0x5cfd('0x40')](_0x5cfd('0x34'),(_0x259418,_0x3bdbdc)=>{_0x4a1326['model']['change'](_0x44e38d=>{let _0x13f7c8=_0x189906[_0x5cfd('0x19')](_0x4a1326[_0x5cfd('0x23')][_0x5cfd('0x2')][_0x5cfd('0x15')]),_0x460836=_0x44e38d[_0x5cfd('0x37')](_0x13f7c8);const _0x1d85fa=_0x3f1676[_0x5cfd('0x24')](_0x460836[_0x5cfd('0x36')],'toPrevious'),_0x5d9b0d=_0x3f1676[_0x5cfd('0x24')](_0x460836[_0x5cfd('0x8')],'toNext');_0x573d9d[_0x5cfd('0x55')](()=>_0x259418(_0x3bdbdc)),_0x13f7c8=_0x189906[_0x5cfd('0x19')](_0x4a1326['model'][_0x5cfd('0x2')][_0x5cfd('0x15')]),_0x460836=_0x44e38d[_0x5cfd('0x37')](_0x13f7c8);const _0x304f72=_0x44e38d[_0x5cfd('0x5a')](_0x1d85fa,_0x5d9b0d);_0x1d85fa[_0x5cfd('0x1')](),_0x5d9b0d[_0x5cfd('0x1')](),_0x573d9d[_0x5cfd('0x18')](_0x13f7c8,{'commandName':_0x5cfd('0x16'),'commandParams':[_0x3bdbdc]},[],_0x5cfd('0x47')),_0x304f72[_0x5cfd('0x36')][_0x5cfd('0x2a')](_0x460836[_0x5cfd('0x36')])&&_0x573d9d[_0x5cfd('0x30')](_0x44e38d[_0x5cfd('0x5a')](_0x304f72[_0x5cfd('0x36')],_0x460836[_0x5cfd('0x36')]),_0x5cfd('0x47')),_0x460836[_0x5cfd('0x8')][_0x5cfd('0x2a')](_0x304f72[_0x5cfd('0x8')])&&_0x573d9d[_0x5cfd('0x30')](_0x44e38d[_0x5cfd('0x5a')](_0x460836['end'],_0x304f72['end']),_0x5cfd('0x47'));});}),_0x573d9d['_suggestionFactory'][_0x5cfd('0x46')](_0x5cfd('0x51'),_0x5cfd('0x47'),'join',()=>!0x1),_0x573d9d[_0x5cfd('0x21')][_0x5cfd('0x46')](_0x5cfd('0x51'),'convertInlineImageToBlock',_0x5cfd('0x14'),()=>!0x1),_0x573d9d[_0x5cfd('0x21')][_0x5cfd('0x46')](_0x5cfd('0x51'),_0x5cfd('0x47'),_0x5cfd('0x3f'),_0x573d9d['_suggestionFactory'][_0x5cfd('0x4c')](_0x5cfd('0x51'),'',_0x5cfd('0x14'))),_0x573d9d[_0x5cfd('0x21')]['registerCustomCallback']('insertion',_0x5cfd('0x47'),_0x5cfd('0x1e'),()=>!0x1),_0x573d9d['_suggestionFactory'][_0x5cfd('0x46')](_0x5cfd('0x3'),_0x5cfd('0x47'),_0x5cfd('0x3f'),([_0x288a13])=>{const _0xe96caa=_0x573d9d['_suggestionFactory']['getSuggestionCallback']('insertion','',_0x5cfd('0x3f'));let _0xfe84c3=_0x288a13[_0x5cfd('0x36')],_0xff5ac1=_0x288a13[_0x5cfd('0x8')];const _0x4ee611=_0x4a1326['model'][_0x5cfd('0x28')][_0x5cfd('0x4f')](_0xfe84c3,_0x5cfd('0xb')),_0x13692e=_0x4a1326[_0x5cfd('0x23')][_0x5cfd('0x28')][_0x5cfd('0x4f')](_0xff5ac1,_0x5cfd('0x5d'));_0x4ee611['isCollapsed']&&(_0xfe84c3=_0x4ee611[_0x5cfd('0x36')]),_0x13692e[_0x5cfd('0x45')]&&(_0xff5ac1=_0x13692e[_0x5cfd('0x8')]),_0xe96caa([_0x4a1326[_0x5cfd('0x23')][_0x5cfd('0x5a')](_0xfe84c3,_0xff5ac1)]);}),_0x573d9d['_suggestionFactory']['registerCustomCallback'](_0x5cfd('0x51'),_0x5cfd('0x47'),'chain',_0x288a1b),_0x573d9d[_0x5cfd('0x21')]['registerCustomCallback']('insertion',_0x5cfd('0x47'),_0x5cfd('0x12'),_0x288a1b)),_0x4a1326[_0x5cfd('0x29')]['has'](_0x5cfd('0x49'))&&(_0x573d9d[_0x5cfd('0x40')]('toggleImageCaption',(_0x44b503,_0xee17ad)=>{const _0x3f3f9f=_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x32')](_0x5cfd('0x1a'));let _0x522c15=_0x189906[_0x5cfd('0x19')](_0x4a1326['model']['document'][_0x5cfd('0x15')]),_0x53f30e=_0x3f3f9f['getCaptionFromImageModelElement'](_0x522c15);_0x4a1326[_0x5cfd('0x23')]['change'](()=>{if(_0x53f30e)return void _0x573d9d[_0x5cfd('0x41')](_0x4a1326[_0x5cfd('0x23')][_0x5cfd('0x37')](_0x53f30e));const _0x1eff72=_0x189906[_0x5cfd('0x2d')](_0x522c15);_0x44b503(_0xee17ad),_0x522c15=_0x189906['getClosestSelectedImageElement'](_0x4a1326[_0x5cfd('0x23')][_0x5cfd('0x2')]['selection']),_0x53f30e=_0x3f3f9f[_0x5cfd('0x56')](_0x522c15),_0x573d9d[_0x5cfd('0x30')](_0x4a1326[_0x5cfd('0x23')][_0x5cfd('0x37')](_0x53f30e),_0x1eff72?null:'imageCaption');});}),_0x573d9d[_0x5cfd('0x21')]['registerCustomCallback']('insertion',_0x5cfd('0xe'),_0x5cfd('0x12'),_0x288a1b));const _0x33d072=[{'type':'formatBlock','subType':_0x5cfd('0x4')},{'type':_0x5cfd('0x3'),'subType':_0x5cfd('0xe')},{'type':'formatBlock','subType':_0x5cfd('0x47')},{'type':_0x5cfd('0x3'),'subType':'convertInlineImageToBlock'}];function _0x20f63a(_0x6b4721,_0x762338){const _0x2ff7f3=_0x33d072[_0x5cfd('0x59')](({type:_0x499df6,subType:_0x1d2015})=>_0x6b4721[_0x5cfd('0x4d')]==_0x499df6&&_0x6b4721[_0x5cfd('0x35')]==_0x1d2015),_0x4bcfac=_0x33d072[_0x5cfd('0x59')](({type:_0x368adf,subType:_0x57d6c2})=>_0x762338[_0x5cfd('0x4d')]==_0x368adf&&_0x762338[_0x5cfd('0x35')]==_0x57d6c2);if(_0x2ff7f3<0x0||_0x4bcfac<0x0)return!0x1;const _0x5caecc=_0x6b4721[_0x5cfd('0x20')](),_0x3d58b0=_0x762338[_0x5cfd('0x20')]();if((0x0==_0x2ff7f3||0x1==_0x2ff7f3)&&0x2==_0x4bcfac&&_0x5caecc[_0x5cfd('0x3a')](_0x3d58b0))return!0x0;if(0x2==_0x2ff7f3&&0x3==_0x4bcfac){const _0x2f7414=_0x573d9d['_findSuggestions'](_0x5caecc,_0x5cfd('0x3'))[_0x5cfd('0x13')](({suggestion:_0x3b0105,meta:_0xd254e8})=>_0xd254e8[_0x5cfd('0xc')]&&_0x5cfd('0x47')==_0x3b0105[_0x5cfd('0x35')]);if(_0x2f7414[_0x5cfd('0x2e')]>0x1&&_0x3d58b0[_0x5cfd('0x8')]['isEqual'](_0x5caecc[_0x5cfd('0x36')]))return!0x0;if(0x1==_0x2f7414['length']&&(_0x5caecc['start'][_0x5cfd('0x22')](_0x3d58b0['end'])||_0x5caecc[_0x5cfd('0x8')]['isEqual'](_0x3d58b0[_0x5cfd('0x36')])))return!0x0;}if(0x3==_0x2ff7f3&&0x3==_0x4bcfac&&_0x5caecc[_0x5cfd('0x36')][_0x5cfd('0x2a')](_0x3d58b0[_0x5cfd('0x36')])){const _0x41083d=_0x5caecc[_0x5cfd('0x8')][_0x5cfd('0x39')],_0x439fe2=_0x3d58b0[_0x5cfd('0x36')]['nodeBefore'];return _0x189906[_0x5cfd('0x2d')](_0x41083d)&&_0x41083d===_0x439fe2;}return!0x1;}function _0x288a1b(_0x412a44,_0x86af30){return _0x20f63a(_0x412a44,_0x86af30)?[_0x412a44,_0x86af30]:_0x20f63a(_0x86af30,_0x412a44)?[_0x86af30,_0x412a44]:null;}_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x3d')](_0x5cfd('0x4a'))&&(_0x573d9d['_enableDefaultAttributesIntegration']('resizeImage',[],[_0x5cfd('0xd')]),_0x573d9d[_0x5cfd('0x5')][_0x5cfd('0x1d')](_0x5cfd('0xd'),_0x4f8721(_0x59bb63,_0x5cfd('0x5f')))),_0x4a1326[_0x5cfd('0x29')][_0x5cfd('0x3d')]('ImageTextAlternativeEditing')&&_0x573d9d['_enableDefaultAttributesIntegration']('imageTextAlternative',[],[_0x5cfd('0x44')]),_0x573d9d[_0x5cfd('0x5')][_0x5cfd('0x4e')](_0x3e2c02=>{if(!!_0x33d072['find'](({type:_0x141e6f,subType:_0x2b25cb})=>_0x3e2c02['type']==_0x141e6f&&_0x3e2c02[_0x5cfd('0x35')]==_0x2b25cb))return _0x3e2c02[_0x5cfd('0x2c')]?{}:void 0x0;}),_0x573d9d[_0x5cfd('0x5')]['registerDescriptionCallback'](_0x38d1ce=>{if('insertion'==_0x38d1ce[_0x5cfd('0x4d')]||_0x5cfd('0x48')==_0x38d1ce[_0x5cfd('0x4d')]){const _0x36ed67=_0x38d1ce[_0x5cfd('0x6')]();if(_0x36ed67&&_0x36ed67['is'](_0x5cfd('0x58'),'caption'))return{'type':_0x5cfd('0x3')==_0x38d1ce[_0x5cfd('0x4d')]?'addObject':'removeObject','element':_0x36ed67,'quantity':0x1};}}),_0x573d9d[_0x5cfd('0x5')][_0x5cfd('0x4e')](_0xa43489=>_0x5cfd('0x51')==_0xa43489[_0x5cfd('0x4d')]&&'convertInlineImageToBlock'==_0xa43489[_0x5cfd('0x35')]?{'type':_0x5cfd('0x33'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x5cfd('0x51')==_0xa43489[_0x5cfd('0x4d')]&&_0x5cfd('0x17')==_0xa43489[_0x5cfd('0x35')]?{'type':_0x5cfd('0x33'),'content':_0x5cfd('0x2b')}:void 0x0),_0x573d9d[_0x5cfd('0x5')][_0x5cfd('0x4e')](_0x576720=>{if(_0x5cfd('0x5b')!=_0x576720['type'])return;const {data:_0x50b187}=_0x576720;if(!_0x50b187||_0x5cfd('0x44')!=_0x50b187[_0x5cfd('0x50')])return;const _0x12d7ac=_0x50b187['newValue'];return _0x12d7ac?{'type':_0x5cfd('0x33'),'content':_0x4f8721(_0x59bb63,_0x5cfd('0x42'),'\x22'+_0x12d7ac+'\x22')}:{'type':_0x5cfd('0x33'),'content':_0x4f8721(_0x59bb63,_0x5cfd('0x11'))};}),this[_0x5cfd('0x3c')]();}['_registerLegacyDescription'](){const _0x405cda=this[_0x5cfd('0x3b')],_0x513960=_0x405cda['locale'];_0x405cda[_0x5cfd('0x29')][_0x5cfd('0x32')](_0x5cfd('0x1b'))[_0x5cfd('0x5')][_0x5cfd('0x4e')](_0x538524=>{if(_0x5cfd('0x51')!=_0x538524[_0x5cfd('0x4d')]&&_0x5cfd('0x4b')!=_0x538524[_0x5cfd('0x4d')])return;const {data:_0x570066}=_0x538524;if(_0x570066){if(_0x5cfd('0x53')==_0x570066[_0x5cfd('0x38')]){const _0x4030e2=_0x570066[_0x5cfd('0xa')][0x0][_0x5cfd('0x9')];return _0x4030e2?{'type':'format','content':_0x4f8721(_0x513960,_0x5cfd('0x42'),'\x22'+_0x4030e2+'\x22')}:{'type':_0x5cfd('0x33'),'content':_0x4f8721(_0x513960,_0x5cfd('0x11'))};}if(_0x5cfd('0x7')==_0x570066[_0x5cfd('0x38')]){const _0x56c10f=_0x570066[_0x5cfd('0xa')][0x0][_0x5cfd('0x1c')];return _0x56c10f?{'type':_0x5cfd('0x33'),'content':_0x4f8721(_0x513960,_0x5cfd('0x57'),_0x56c10f)}:{'type':'format','content':_0x4f8721(_0x513960,_0x5cfd('0x3e'))};}}});}}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/imagereplace
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
afterInit(): void;
|
|
19
|
-
handleReplaceImageCommand(executeCommand: Function, options: {
|
|
20
|
-
source: string;
|
|
21
|
-
}): void;
|
|
22
|
-
handleSuggestionDescription(suggestion: Suggestion): Description | undefined;
|
|
23
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/imagereplace
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for image replace feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImageReplace extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4378=['get','locale','registerCustomCallback','TrackChangesEditing','format','editor','getSuggestionCallback','accept','_handleLegacySuggestions','plugins','key','registerDescriptionCallback','_registerLegacyDescription','_descriptionFactory','type','_enableDefaultAttributesIntegration','_suggestionFactory','src','ImageEditing','formatBlock','discard','replaceImageSource','formatInline','*Replace\x20image\x20URL*'];(function(_0xba6dff,_0x437887){const _0x35b411=function(_0x10493b){while(--_0x10493b){_0xba6dff['push'](_0xba6dff['shift']());}};_0x35b411(++_0x437887);}(_0x4378,0x94));const _0x35b4=function(_0xba6dff,_0x437887){_0xba6dff=_0xba6dff-0x0;let _0x35b411=_0x4378[_0xba6dff];return _0x35b411;};import{Plugin as _0x2c43fb}from'ckeditor5/src/core';import{getTranslation as _0x2918b6}from'../utils/common-translations';export default class et extends _0x2c43fb{['afterInit'](){if(!this['editor'][_0x35b4('0x5')]['has'](_0x35b4('0xe')))return;const _0x213363=this[_0x35b4('0x1')][_0x35b4('0x15')],_0x5d5f1c=this[_0x35b4('0x1')]['plugins'][_0x35b4('0x14')](_0x35b4('0x17'));_0x5d5f1c[_0x35b4('0xb')](_0x35b4('0x11'),[],['src']),_0x5d5f1c[_0x35b4('0x9')][_0x35b4('0x7')](_0x21ba3e=>{if('attribute'!=_0x21ba3e[_0x35b4('0xa')])return;const {data:_0x38e526}=_0x21ba3e;return _0x38e526&&_0x35b4('0xd')==_0x38e526[_0x35b4('0x6')]?_0x38e526['newValue']&&_0x38e526['oldValue']?{'type':'format','content':_0x2918b6(_0x213363,_0x35b4('0x13'))}:{'type':_0x35b4('0x0'),'content':''}:void 0x0;}),this['_handleLegacySuggestions']();}[_0x35b4('0x4')](){const _0x1d2190=this[_0x35b4('0x1')][_0x35b4('0x5')][_0x35b4('0x14')](_0x35b4('0x17'));_0x1d2190['_suggestionFactory'][_0x35b4('0x16')](_0x35b4('0xf'),'replaceImageSource',_0x35b4('0x3'),_0x1d2190[_0x35b4('0xc')]['getSuggestionCallback'](_0x35b4('0xf'),null,_0x35b4('0x10'))),_0x1d2190[_0x35b4('0xc')][_0x35b4('0x16')](_0x35b4('0xf'),_0x35b4('0x11'),_0x35b4('0x10'),_0x1d2190[_0x35b4('0xc')][_0x35b4('0x2')](_0x35b4('0xf'),null,_0x35b4('0x3'))),this[_0x35b4('0x8')]();}[_0x35b4('0x8')](){const _0x3f6c95=this[_0x35b4('0x1')],_0x37ea6b=_0x3f6c95[_0x35b4('0x15')];_0x3f6c95['plugins']['get'](_0x35b4('0x17'))[_0x35b4('0x9')][_0x35b4('0x7')](_0x4ebf17=>{if('formatBlock'!=_0x4ebf17[_0x35b4('0xa')]&&_0x35b4('0x12')!=_0x4ebf17[_0x35b4('0xa')])return;const {data:_0x315375}=_0x4ebf17;return _0x315375&&_0x35b4('0x11')===_0x315375['commandName']?{'type':'format','content':_0x2918b6(_0x37ea6b,_0x35b4('0x13'))}:void 0x0;});}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/image
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImageStyle extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x3a6b=['Users','imageStylePreApply','isBlockImage','plugins','enableCommand','normalizedStyles','markBlockFormat','name','title','commands','imageTypeInline','ImageStyleEditing','isBefore','nodeBefore','end','imageCaption','*Format:*\x20%0','selection','get','change','FORMAT_SIDE_IMAGE','getSuggestion','insertion','start','_suggestionFactory','markInlineFormat','next','value','newRange','createRangeOn','imageStyle','hasSuggestion','toLowerCase','discard','forEach','discardSuggestion','setImageNaturalSizeAttributes','locale','getChangedMarkers','filter','getSuggestionCallback','editor','convertInlineImageToBlock','commandName','type','join','getFirstRange','document','nodeAfter','commandReversedParams','refresh','subType','accept','from','findIndex','_splitMarkerName','afterInit','TrackChangesEditing','commandParams','getClosestSelectedImageElement','isEqual','registerDescriptionCallback','registerCustomCallback','shouldConvertImageType','suggestion','imageStylePostApply','model','chain','_registerLegacyDescription','formatBlock','isIntersecting','getSuggestions','differ','formatInline','length'];(function(_0x2cfcae,_0x3a6b10){const _0x13aff4=function(_0x14a8ef){while(--_0x14a8ef){_0x2cfcae['push'](_0x2cfcae['shift']());}};_0x13aff4(++_0x3a6b10);}(_0x3a6b,0x121));const _0x13af=function(_0x2cfcae,_0x3a6b10){_0x2cfcae=_0x2cfcae-0x0;let _0x13aff4=_0x3a6b[_0x2cfcae];return _0x13aff4;};import{Plugin as _0x46d762}from'ckeditor5/src/core';import{uid as _0x26367a}from'ckeditor5/src/utils';import{getTranslation as _0x4bfe5c}from'../utils/common-translations';export default class nt extends _0x46d762{[_0x13af('0x43')](){const _0xee7579=this[_0x13af('0x34')];if(!_0xee7579['plugins']['has'](_0x13af('0x16')))return;const _0x18e109=_0xee7579['plugins']['get'](_0x13af('0x44')),_0x29084c=_0xee7579[_0x13af('0xe')][_0x13af('0x1d')]('ImageUtils'),_0x8ee52d={};_0x18e109[_0x13af('0xf')](_0x13af('0x29'),(_0x1c5e1d,_0x34c69f)=>{const _0x145415=_0xee7579[_0x13af('0xe')][_0x13af('0x1d')](_0x13af('0xb'))['me'],_0x3e91af=_0xee7579[_0x13af('0x14')][_0x13af('0x1d')]('imageStyle');let _0x34258a=_0x29084c[_0x13af('0x46')](_0xee7579[_0x13af('0x2')]['document'][_0x13af('0x1c')]),_0x238bf7=_0xee7579[_0x13af('0x2')][_0x13af('0x28')](_0x34258a),_0x4f52b8=_0x3e91af[_0x13af('0x26')];if(_0x4f52b8==_0x34c69f[_0x13af('0x26')])return;const _0x787c2a={'commandName':_0x13af('0x29'),'commandParams':[_0x34c69f],'formatGroupId':_0x26367a()};_0xee7579['model'][_0x13af('0x1e')](()=>{if(_0x18e109[_0x13af('0x7')]()[_0x13af('0x32')](_0x4d75a6=>_0x4d75a6['isInContent']&&_0x145415==_0x4d75a6['author']&&(_0x13af('0x5')==_0x4d75a6[_0x13af('0x37')]||_0x13af('0x9')==_0x4d75a6[_0x13af('0x37')])&&(_0x13af('0xc')==_0x4d75a6[_0x13af('0x3e')]||_0x13af('0x1')==_0x4d75a6[_0x13af('0x3e')])&&_0x4d75a6[_0x13af('0x39')]()[_0x13af('0x47')](_0x238bf7))[_0x13af('0x2d')](_0x45a8d1=>_0x18e109[_0x13af('0x2e')](_0x45a8d1['head'])),_0x34258a=_0x29084c[_0x13af('0x46')](_0xee7579[_0x13af('0x2')][_0x13af('0x3a')][_0x13af('0x1c')]),_0x238bf7=_0xee7579[_0x13af('0x2')][_0x13af('0x28')](_0x34258a),_0x3e91af[_0x13af('0x3d')](),_0xee7579['commands'][_0x13af('0x1d')](_0x13af('0x15'))['refresh'](),_0xee7579[_0x13af('0x14')][_0x13af('0x1d')]('imageTypeBlock')['refresh'](),_0x4f52b8=_0x3e91af[_0x13af('0x26')],_0x4f52b8!=_0x34c69f[_0x13af('0x26')])return _0x29084c['isInlineImage'](_0x34258a)&&_0x3e91af[_0x13af('0x4a')](_0x34c69f[_0x13af('0x26')],_0x34258a)?(_0x1c5e1d({..._0x34c69f,'setImageSizes':!0x1}),_0x34258a=_0x29084c[_0x13af('0x46')](_0xee7579[_0x13af('0x2')][_0x13af('0x3a')][_0x13af('0x1c')]),void _0x18e109[_0x13af('0x11')](_0x34258a,{..._0x787c2a,'commandReversedParams':[{'value':_0x4f52b8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29084c[_0x13af('0xd')](_0x34258a)?_0x18e109[_0x13af('0x11')](_0x34258a,_0x787c2a,[],'imageStylePostApply'):_0x18e109[_0x13af('0x24')](_0x238bf7,_0x787c2a,_0x13af('0x1')));});});for(const _0x2f98d9 of _0xee7579[_0x13af('0xe')]['get'](_0x13af('0x16'))[_0x13af('0x10')])_0x8ee52d[_0x2f98d9[_0x13af('0x12')]]=_0x2f98d9[_0x13af('0x13')][_0x13af('0x2b')]();_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),'imageStylePreApply',_0x13af('0x38'),()=>!0x1),_0x18e109['_suggestionFactory'][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0x1'),_0x13af('0x38'),()=>!0x1),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x9'),_0x13af('0x1'),_0x13af('0x38'),()=>!0x1),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0xc'),_0x13af('0x3f'),([_0x2b8c52])=>{_0x29084c[_0x13af('0x2f')](_0x2b8c52['getContainedElement']());}),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0xc'),_0x13af('0x2c'),(_0x116c57,_0x111dd0)=>{_0x18e109[_0x13af('0x23')][_0x13af('0x33')](_0x13af('0x5'),'',_0x13af('0x3f'))(_0x116c57,{'commandName':_0x111dd0[_0x13af('0x36')],'commandParams':_0x111dd0[_0x13af('0x3c')]});}),_0x18e109[_0x13af('0x23')][_0x13af('0x49')](_0x13af('0x5'),_0x13af('0xc'),_0x13af('0x3'),function(_0x5160a5,_0x11d081){if(_0x25b2c2(_0x5160a5,_0x11d081))return[_0x5160a5,_0x11d081];if(_0x25b2c2(_0x11d081,_0x5160a5))return[_0x11d081,_0x5160a5];return null;});const _0x23bbdc=[{'type':_0x13af('0x5'),'subType':'imageStylePreApply'},{'type':_0x13af('0x21'),'subType':_0x13af('0x1a')},{'type':_0x13af('0x5'),'subType':'convertInlineImageToBlock'},{'type':_0x13af('0x21'),'subType':_0x13af('0x35')}];function _0x25b2c2(_0x503324,_0x3eaaea){const _0x1471a9=_0x23bbdc[_0x13af('0x41')](({type:_0x5e060f,subType:_0x5b6bb9})=>_0x503324[_0x13af('0x37')]==_0x5e060f&&_0x503324['subType']==_0x5b6bb9),_0x28bcf7=_0x23bbdc['findIndex'](({type:_0x2f7aa1,subType:_0x55c137})=>_0x3eaaea[_0x13af('0x37')]==_0x2f7aa1&&_0x3eaaea[_0x13af('0x3e')]==_0x55c137);if(_0x1471a9<0x0||_0x28bcf7<0x0)return!0x1;const _0x9b9605=_0x503324[_0x13af('0x39')](),_0x3b2cec=_0x3eaaea['getFirstRange']();if((0x0==_0x1471a9||0x1==_0x1471a9)&&0x2==_0x28bcf7&&_0x9b9605[_0x13af('0x6')](_0x3b2cec))return!0x0;if(0x2==_0x1471a9&&0x3==_0x28bcf7){const _0x2bca28=_0x18e109['_findSuggestions'](_0x9b9605,_0x13af('0x21'))[_0x13af('0x32')](({suggestion:_0xa9f138,meta:_0x191345})=>_0x191345['isOwn']&&'convertInlineImageToBlock'==_0xa9f138[_0x13af('0x3e')]);if(_0x2bca28['length']>0x1&&_0x3b2cec[_0x13af('0x19')][_0x13af('0x47')](_0x9b9605[_0x13af('0x22')]))return!0x0;if(0x1==_0x2bca28[_0x13af('0xa')]&&(_0x9b9605[_0x13af('0x22')][_0x13af('0x47')](_0x3b2cec[_0x13af('0x19')])||_0x9b9605[_0x13af('0x19')][_0x13af('0x47')](_0x3b2cec['start'])))return!0x0;}if(0x3==_0x1471a9&&0x3==_0x28bcf7&&_0x9b9605[_0x13af('0x22')][_0x13af('0x17')](_0x3b2cec[_0x13af('0x22')])){const _0x4ffbf2=_0x9b9605[_0x13af('0x19')][_0x13af('0x3b')],_0x4e4090=_0x3b2cec['start'][_0x13af('0x18')];return _0x29084c[_0x13af('0xd')](_0x4ffbf2)&&_0x4ffbf2===_0x4e4090;}return!0x1;}_0xee7579['model'][_0x13af('0x3a')]['registerPostFixer'](()=>{let _0x4dc35e=!0x1;const _0x5b6c57=Array[_0x13af('0x40')](_0xee7579[_0x13af('0x2')]['document'][_0x13af('0x8')][_0x13af('0x31')]());for(const {name:_0xffc440,data:_0x38caaa}of _0x5b6c57){const {group:_0x585854,type:_0x33eabe,subType:_0x380736,id:_0x101229}=_0x18e109[_0x13af('0x42')](_0xffc440);if(_0x13af('0x0')==_0x585854&&_0x18e109[_0x13af('0x2a')](_0x101229)){if(_0x13af('0x5')==_0x33eabe&&(_0x13af('0xc')==_0x380736||'imageStylePostApply'==_0x380736)){const _0x327bea=_0x18e109[_0x13af('0x20')](_0x101229);if(_0x38caaa[_0x13af('0x27')]){const _0x409be9=_0x327bea[_0x13af('0x39')]()['getContainedElement']();if(_0x29084c[_0x13af('0xd')](_0x409be9))continue;_0x18e109[_0x13af('0x2e')](_0x327bea),_0x4dc35e=!0x0;}}if(_0x13af('0x21')==_0x33eabe&&_0x13af('0x1a')==_0x380736&&!_0x38caaa[_0x13af('0x27')]){const _0x3391a1=_0x18e109[_0x13af('0x20')](_0x101229);_0x3391a1[_0x13af('0x25')]&&_0x3391a1[_0x13af('0x25')]['isInContent']&&(_0x18e109[_0x13af('0x2e')](_0x3391a1[_0x13af('0x25')]),_0x4dc35e=!0x0);}}}return _0x4dc35e;}),this[_0x13af('0x4')](_0x8ee52d);}['_registerLegacyDescription'](_0x182af7){const _0x4ca67d=this['editor'],_0x14c3e1=_0x4ca67d[_0x13af('0x30')];_0x4ca67d[_0x13af('0xe')][_0x13af('0x1d')](_0x13af('0x44'))['_descriptionFactory'][_0x13af('0x48')](_0x2592f9=>{if('formatBlock'!=_0x2592f9[_0x13af('0x37')]&&_0x13af('0x9')!=_0x2592f9[_0x13af('0x37')])return;const {data:_0x2e5028}=_0x2592f9;if(!_0x2e5028||_0x13af('0x29')!=_0x2e5028[_0x13af('0x36')])return;const _0x2cc98c=_0x2e5028[_0x13af('0x45')][0x0][_0x13af('0x26')];return _0x321f9e('side'===_0x2cc98c?_0x4bfe5c(_0x14c3e1,_0x13af('0x1f')):_0x182af7[_0x2cc98c]||_0x2cc98c);function _0x321f9e(_0x1dff57){return{'type':'format','content':_0x4bfe5c(_0x14c3e1,_0x13af('0x1b'),_0x1dff57)};}});}}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/importword
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for the import from Word feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesImportWord extends Plugin {
|
|
13
|
-
constructor(editor: Editor);
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
afterInit(): void;
|
|
18
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/importword
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for the import from Word feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesImportWord extends Plugin {
|
|
13
|
+
constructor(editor: Editor);
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
afterInit(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x287e=['afterInit','_handleImportedData','enableCommand','TrackChangesEditing','execute','high','collaboration_features','commands','listenTo','bind','dataInsert','get','value','_trackChangesExecuted','track_changes','Users','forEach','_trackChangesValueDuringImport','editor','importWord','plugins','trackChanges'];(function(_0x1a896f,_0x287e90){const _0x401225=function(_0x5ab5d0){while(--_0x5ab5d0){_0x1a896f['push'](_0x1a896f['shift']());}};_0x401225(++_0x287e90);}(_0x287e,0xd3));const _0x4012=function(_0x1a896f,_0x287e90){_0x1a896f=_0x1a896f-0x0;let _0x401225=_0x287e[_0x1a896f];return _0x401225;};import{Plugin as _0x43a241}from'ckeditor5/src/core';export default class st extends _0x43a241{constructor(_0x4568c6){super(_0x4568c6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x4012('0x9')](){const _0x486ce3=this['editor'],_0x22cb21=_0x486ce3[_0x4012('0x10')]['get']('importWord'),_0x4537a7=_0x486ce3[_0x4012('0x10')][_0x4012('0x14')](_0x4012('0x8'));_0x22cb21&&(_0x22cb21['on'](_0x4012('0xd'),(_0x572df5,[,_0x368af7])=>{this[_0x4012('0x4')]=_0x4537a7[_0x4012('0x15')],_0x368af7[_0x4012('0xf')][_0x4012('0x1')]=!this['_trackChangesValueDuringImport'];},{'priority':_0x4012('0xe')}),this['listenTo'](_0x22cb21,_0x4012('0x13'),this[_0x4012('0xa')][_0x4012('0x12')](this)),this[_0x4012('0x11')](_0x22cb21,_0x4012('0x13'),()=>{this[_0x4012('0x0')]&&(_0x4537a7['execute'](),this[_0x4012('0x0')]=!0x1);},{'priority':'lowest'}),_0x486ce3[_0x4012('0x7')][_0x4012('0x14')](_0x4012('0xc'))[_0x4012('0xb')](_0x4012('0x6')));}['_handleImportedData'](_0x5e56fc,_0x444076){const {suggestions:_0x171ff8}=_0x444076,_0x161c92=this[_0x4012('0x5')][_0x4012('0x10')][_0x4012('0x14')]('trackChanges'),_0x4bb4f8=_0x161c92[_0x4012('0x15')];this[_0x4012('0x4')]!==_0x4bb4f8&&(_0x161c92[_0x4012('0xd')](),this[_0x4012('0x0')]=!0x0),_0x171ff8&&_0x171ff8[_0x4012('0x3')](({id:_0x5a44c4,type:_0x275186,author:_0x28372d,created_at:_0x494c2e})=>{const _0x5b96fa={'id':_0x5a44c4,'type':_0x275186,'authorId':this[_0x4012('0x5')][_0x4012('0x7')]['get'](_0x4012('0x2'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x28372d,'createdAt':_0x494c2e?new Date(_0x494c2e):new Date(),'source':'importWord'}}};this[_0x4012('0x5')][_0x4012('0x7')][_0x4012('0x14')]('TrackChangesEditing')['_setSuggestionData'](_0x5b96fa);});}}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module track-changes/integrations/indent
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesIndent extends Plugin {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
afterInit(): void;
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/integrations/indent
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:indent/indent~Indent indent/outdent feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesIndent extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|