@ckeditor/ckeditor5-track-changes 40.2.0 → 41.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/CHANGELOG.md +5 -5
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/es.js +1 -1
- package/build/translations/ro.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +2 -2
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +2 -2
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6bb8=['markerName','markInsertion','createRange','data','ck-suggestion-marker-split','writer','remove','get','init','requires','plugins','parent','model','hasClass','split','fire','enter','change','removeMarker:suggestion:insertion','setSelection','TrackChangesEditing','commands','getFirstRange','mapper','detach','downcastDispatcher','bind','high','unbindElementFromMarkerName','options','editing','enterBlock','addMarker:suggestion:insertion','editor','createPositionAt','getFirstPosition','end'];(function(_0xcfd133,_0x6bb896){const _0x2e3e20=function(_0x297873){while(--_0x297873){_0xcfd133['push'](_0xcfd133['shift']());}};_0x2e3e20(++_0x6bb896);}(_0x6bb8,0x9a));const _0x2e3e=function(_0xcfd133,_0x6bb896){_0xcfd133=_0xcfd133-0x0;let _0x2e3e20=_0x6bb8[_0xcfd133];return _0x2e3e20;};import{Plugin as _0x2d4f08}from'ckeditor5/src/core.js';import{Enter as _0x1428eb}from'ckeditor5/src/enter.js';import{LiveRange as _0x595e9a}from'ckeditor5/src/engine.js';import{downcastSplitMergeMarker as _0x126590}from'./utils.js';export default class W extends _0x2d4f08{static get[_0x2e3e('0x3')](){return[_0x1428eb];}[_0x2e3e('0x2')](){const _0x2af01c=this[_0x2e3e('0x1b')],_0x15b5c3=_0x2af01c[_0x2e3e('0x4')][_0x2e3e('0x1')](_0x2e3e('0xe')),_0x3da90a=_0x2af01c[_0x2e3e('0xf')]['get']('enter');_0x15b5c3['enableCommand'](_0x2e3e('0xa'),()=>{_0x2af01c[_0x2e3e('0x6')][_0x2e3e('0xb')](_0x3fe94b=>{const _0x3a65e1=_0x2af01c[_0x2e3e('0x6')]['document']['selection'],_0x43606=_0x3a65e1[_0x2e3e('0x1d')](),_0x5b9c4a=_0x595e9a['fromRange'](_0x3a65e1[_0x2e3e('0x10')]());if(_0x3da90a[_0x2e3e('0x19')](_0x3fe94b)){const _0x47da68=_0x2af01c[_0x2e3e('0x6')][_0x2e3e('0x1c')](_0x43606[_0x2e3e('0x5')]['nextSibling'],0x0),_0x3c381d=_0x3fe94b[_0x2e3e('0x21')](_0x43606,_0x47da68);_0x15b5c3[_0x2e3e('0x20')](_0x3c381d);}else _0x3fe94b[_0x2e3e('0xd')](_0x3fe94b[_0x2e3e('0x21')](_0x5b9c4a[_0x2e3e('0x1e')]));_0x5b9c4a[_0x2e3e('0x12')](),_0x3da90a[_0x2e3e('0x9')]('afterExecute',{'writer':_0x3fe94b});});}),_0x2af01c[_0x2e3e('0x18')][_0x2e3e('0x13')]['on'](_0x2e3e('0x1a'),_0x126590(_0x2af01c,_0x2e3e('0x8')),{'priority':_0x2e3e('0x15')}),_0x2af01c['editing'][_0x2e3e('0x13')]['on'](_0x2e3e('0xc'),(_0x2e9bee,_0x4fcbb2,_0x489e70)=>{const _0x43c090=_0x489e70[_0x2e3e('0x11')]['markerNameToElements'](_0x4fcbb2[_0x2e3e('0x1f')]);if(_0x43c090)for(const _0x3f8888 of _0x43c090)_0x3f8888[_0x2e3e('0x7')](_0x2e3e('0x23'))&&(_0x489e70[_0x2e3e('0x11')][_0x2e3e('0x16')](_0x3f8888,_0x4fcbb2[_0x2e3e('0x1f')]),_0x489e70[_0x2e3e('0x24')][_0x2e3e('0x0')](_0x3f8888));},{'priority':'high'}),_0x2af01c[_0x2e3e('0x22')][_0x2e3e('0x13')]['on'](_0x2e3e('0x1a'),(_0x53bc33,_0x2bb966,_0x3c135e)=>{_0x3c135e[_0x2e3e('0x17')]['showSuggestionHighlights']&&_0x126590(_0x2af01c,'split',{'showActiveMarker':!0x1})[_0x2e3e('0x14')](this)(_0x53bc33,_0x2bb966,_0x3c135e);},{'priority':'high'});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/findandreplace
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for find and replace feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x333b=['filter','bind','createPositionAt','createRange','getIntersection','has','find','handleFindCommand','_isInDeletionRange','start','get','string','enableCommand','editor','plugins','model','findPrevious','FindAndReplaceEditing','findNext','afterInit','item','replace'];(function(_0x2972aa,_0x333b64){const _0x3d1089=function(_0x4fe29f){while(--_0x4fe29f){_0x2972aa['push'](_0x2972aa['shift']());}};_0x3d1089(++_0x333b64);}(_0x333b,0x112));const _0x3d10=function(_0x2972aa,_0x333b64){_0x2972aa=_0x2972aa-0x0;let _0x3d1089=_0x333b[_0x2972aa];return _0x3d1089;};import{Plugin as _0x6885c4}from'ckeditor5/src/core.js';export default class J extends _0x6885c4{[_0x3d10('0x9')](){if(!this[_0x3d10('0x3')][_0x3d10('0x4')][_0x3d10('0x11')](_0x3d10('0x7')))return;const _0x4da272=this[_0x3d10('0x3')]['plugins'][_0x3d10('0x0')]('TrackChangesEditing');_0x4da272[_0x3d10('0x2')](_0x3d10('0x12'),this[_0x3d10('0x13')][_0x3d10('0xd')](this)),_0x4da272['enableCommand'](_0x3d10('0x8')),_0x4da272[_0x3d10('0x2')](_0x3d10('0x6')),_0x4da272['enableCommand'](_0x3d10('0xb')),_0x4da272['enableCommand']('replaceAll');}[_0x3d10('0x13')](_0x262e20,_0x4ac1d2,_0x1e32b0={}){const _0x2c15b8=this[_0x3d10('0x3')][_0x3d10('0x4')]['get']('FindAndReplaceUtils');return _0x262e20(_0x581e7d=>(_0x3d10('0x1')==typeof _0x4ac1d2?_0x2c15b8['findByTextCallback'](_0x4ac1d2,_0x1e32b0):_0x4ac1d2)(_0x581e7d)[_0x3d10('0xc')](_0xaed6dc=>!0x1===this[_0x3d10('0x14')](_0xaed6dc,_0x581e7d[_0x3d10('0xa')])),_0x1e32b0);}[_0x3d10('0x14')](_0xca3775,_0x2194d6){const _0x135fd8=this[_0x3d10('0x3')][_0x3d10('0x5')][_0x3d10('0xf')](this[_0x3d10('0x3')][_0x3d10('0x5')][_0x3d10('0xe')](_0x2194d6,_0xca3775[_0x3d10('0x15')]),this[_0x3d10('0x3')][_0x3d10('0x5')][_0x3d10('0xe')](_0x2194d6,_0xca3775['end']));for(const _0x8ef5a4 of this['editor'][_0x3d10('0x5')]['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x135fd8[_0x3d10('0x10')](_0x8ef5a4['getRange']()))return!0x0;return!0x1;}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/font
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for font features.
|
|
11
11
|
*/
|
package/src/integrations/font.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51f4=['fontSize.options','label','FontBackgroundColorEditing','find','editor','_registerLegacyDescription','*Set\x20font\x20color:*\x20%0','normalizeSizeOptions','plugins','fontSize','afterInit','get','FORMAT_FONT_SIZE','*Reset\x20font\x20size*','fontBackgroundColor.colors','toLowerCase','commandParams','commandName','has','*Set\x20font\x20family:*\x20%0','model','config','FontSize','format','FORMAT_FONT_FAMILY','*Set\x20font\x20background\x20color:*\x20%0','_descriptionFactory','value','locale','fontFamily','TrackChangesEditing','type','fontColor','fontColor.colors','registerAttributeLabel','FontColorEditing','formatInline','trim','*Reset\x20font\x20background\x20color*','_enableDefaultAttributesIntegration','fontBackgroundColor','registerDescriptionCallback','title'];(function(_0x2e7b52,_0x51f47f){const _0x1a5ba5=function(_0x557d42){while(--_0x557d42){_0x2e7b52['push'](_0x2e7b52['shift']());}};_0x1a5ba5(++_0x51f47f);}(_0x51f4,0x127));const _0x1a5b=function(_0x2e7b52,_0x51f47f){_0x2e7b52=_0x2e7b52-0x0;let _0x1a5ba5=_0x51f4[_0x2e7b52];return _0x1a5ba5;};import{Plugin as _0x1527a2}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x3ca464}from'ckeditor5/src/ui.js';import{getTranslation as _0x1fc160}from'../utils/common-translations.js';const ro=[{'pluginName':'FontSizeEditing','commandName':_0x1a5b('0xf')},{'pluginName':'FontFamilyEditing','commandName':_0x1a5b('0x23')},{'pluginName':_0x1a5b('0x29'),'commandName':'fontColor'},{'pluginName':_0x1a5b('0x8'),'commandName':_0x1a5b('0x3')}];export default class Q extends _0x1527a2{[_0x1a5b('0x10')](){const _0x11d84e=this[_0x1a5b('0xa')]['locale'],_0x5aa355=this[_0x1a5b('0xa')][_0x1a5b('0xe')][_0x1a5b('0x11')](_0x1a5b('0x24'));for(const {pluginName:_0x59d5e0,commandName:_0x1cfbd7}of ro)this[_0x1a5b('0xa')]['plugins'][_0x1a5b('0x18')](_0x59d5e0)&&_0x5aa355[_0x1a5b('0x2')](_0x1cfbd7,[_0x1cfbd7]);_0x11d84e['t'],(_0x5aa355[_0x1a5b('0x20')][_0x1a5b('0x28')](_0x1a5b('0xf'),_0x1fc160(_0x11d84e,_0x1a5b('0x12'))),_0x5aa355[_0x1a5b('0x20')]['registerAttributeLabel'](_0x1a5b('0x23'),_0x1fc160(_0x11d84e,_0x1a5b('0x1e'))),_0x5aa355[_0x1a5b('0x20')][_0x1a5b('0x28')](_0x1a5b('0x26'),_0x1fc160(_0x11d84e,'FORMAT_FONT_COLOR')),_0x5aa355['_descriptionFactory']['registerAttributeLabel'](_0x1a5b('0x3'),_0x1fc160(_0x11d84e,'FORMAT_FONT_BACKGROUND')),this[_0x1a5b('0xb')]());}[_0x1a5b('0xb')](){const _0x46d086=this[_0x1a5b('0xa')],_0x2d5675=_0x46d086[_0x1a5b('0x22')];_0x46d086[_0x1a5b('0xe')][_0x1a5b('0x11')](_0x1a5b('0x24'))[_0x1a5b('0x20')][_0x1a5b('0x4')](_0x5653db=>{const _0x36fa66=_0x2d5675['t'];if(_0x1a5b('0x2a')!=_0x5653db[_0x1a5b('0x25')])return;const {data:_0x5b015a}=_0x5653db;if(null!=_0x5b015a){if(_0x1a5b('0xf')==_0x5b015a[_0x1a5b('0x17')]){const _0x4a9e8e=_0x5b015a[_0x1a5b('0x16')][0x0]['value'];if(_0x4a9e8e){const _0x237a03=_0x36fa66(this[_0x1a5b('0xa')][_0x1a5b('0xe')]['get'](_0x1a5b('0x1c'))[_0x1a5b('0xd')](this[_0x1a5b('0xa')][_0x1a5b('0x1b')]['get'](_0x1a5b('0x6')))[_0x1a5b('0x9')](_0x5ed633=>_0x5ed633[_0x1a5b('0x1a')]==_0x4a9e8e)[_0x1a5b('0x5')])['toLowerCase']();return{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,'*Set\x20font\x20size:*\x20%0',_0x237a03)};}return{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x13'))};}if(_0x1a5b('0x23')==_0x5b015a[_0x1a5b('0x17')]){const _0x4ae511=_0x5b015a['commandParams'][0x0][_0x1a5b('0x21')];return _0x4ae511?{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x19'),_0x4ae511)}:{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5b015a[_0x1a5b('0x17')]){const _0x36c6c6=_0x5b015a[_0x1a5b('0x16')][0x0][_0x1a5b('0x21')];if(_0x36c6c6){const _0x40e21e=_0x3ca464(this[_0x1a5b('0xa')][_0x1a5b('0x1b')][_0x1a5b('0x11')](_0x1a5b('0x27')))[_0x1a5b('0x9')](_0x45db7d=>_0x45db7d['model']==_0x36c6c6);let _0x3a2b6a=_0x36c6c6,_0x301ef7='';return _0x40e21e&&(_0x3a2b6a=_0x40e21e['label'],_0x301ef7=_0x36fa66(_0x3a2b6a)[_0x1a5b('0x15')]()),{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0xc'),_0x301ef7)[_0x1a5b('0x0')](),'color':{'value':_0x36c6c6,'title':_0x301ef7||_0x3a2b6a}};}return{'type':'format','content':_0x1fc160(_0x2d5675,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5b015a[_0x1a5b('0x17')]){const _0x32e3a8=_0x5b015a[_0x1a5b('0x16')][0x0][_0x1a5b('0x21')];if(_0x32e3a8){const _0x34ae3a=_0x3ca464(this['editor']['config'][_0x1a5b('0x11')](_0x1a5b('0x14')))[_0x1a5b('0x9')](_0x2f137b=>_0x2f137b[_0x1a5b('0x1a')]==_0x32e3a8);let _0x222943=_0x32e3a8,_0x1edddc='';return _0x34ae3a&&(_0x222943=_0x34ae3a[_0x1a5b('0x7')],_0x1edddc=_0x36fa66(_0x222943)[_0x1a5b('0x15')]()),{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x1f'),_0x1edddc)[_0x1a5b('0x0')](),'color':{'value':_0x32e3a8,'title':_0x1edddc||_0x222943}};}return{'type':_0x1a5b('0x1d'),'content':_0x1fc160(_0x2d5675,_0x1a5b('0x1'))};}}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/formatpainter
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for the Format Painter feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2952=['enableCommand','commandName','*Remove\x20all\x20formatting*','formatInline','join','label','boolean','find','model','registerDescriptionCallback','fontColor','pasteFormat','get','commandParams','editor','split','length','_enableDefaultAttributesIntegration','format','commands','slice','toLowerCase','*Set\x20format\x20to:*\x20%0','fontSize','copyFormat','config','FontSize','type','normalizeSizeOptions','fontSize.options','formatBlock','locale','fontColor.colors','TrackChangesEditing','plugins','afterInit','_registerLegacyDescription','_descriptionFactory'];(function(_0x170f18,_0x295230){const _0x5b26b0=function(_0x1ffc1d){while(--_0x1ffc1d){_0x170f18['push'](_0x170f18['shift']());}};_0x5b26b0(++_0x295230);}(_0x2952,0xc4));const _0x5b26=function(_0x170f18,_0x295230){_0x170f18=_0x170f18-0x0;let _0x5b26b0=_0x2952[_0x170f18];return _0x5b26b0;};import{Plugin as _0x3d43fc}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x28581e}from'ckeditor5/src/ui.js';import{getTranslation as _0x2e553f}from'../utils/common-translations.js';export default class X extends _0x3d43fc{[_0x5b26('0x1d')](){const _0x5761e2=this[_0x5b26('0x8')],_0x35a96a=_0x5761e2[_0x5b26('0x1c')][_0x5b26('0x6')](_0x5b26('0x1b')),_0x330367=_0x5761e2[_0x5b26('0xd')][_0x5b26('0x6')](_0x5b26('0x12')),_0x2982c0=_0x5761e2[_0x5b26('0xd')]['get'](_0x5b26('0x5'));_0x330367&&_0x2982c0&&(_0x35a96a[_0x5b26('0xb')](_0x5b26('0x5')),_0x35a96a[_0x5b26('0x20')](_0x5b26('0x12')),this[_0x5b26('0x1e')]());}[_0x5b26('0x1e')](){const _0x2f5499=this[_0x5b26('0x8')],_0x238f8c=_0x2f5499[_0x5b26('0x19')];_0x2f5499['plugins'][_0x5b26('0x6')](_0x5b26('0x1b'))[_0x5b26('0x1f')][_0x5b26('0x3')](_0x579ffb=>{if(_0x5b26('0x18')!=_0x579ffb[_0x5b26('0x15')]&&_0x5b26('0x23')!=_0x579ffb['type'])return;const {data:_0x2f5b55}=_0x579ffb;if(_0x2f5b55&&_0x5b26('0x5')===_0x2f5b55[_0x5b26('0x21')]){const _0x228ceb=[],_0x19269c=_0x2f5b55[_0x5b26('0x7')][0x0];for(const [_0x219c32,_0x3e4a83]of Object['entries'](_0x19269c))_0x228ceb['push'](so(_0x2f5499,_0x219c32,_0x3e4a83));return _0x228ceb[_0x5b26('0xa')]?{'type':_0x5b26('0xc'),'content':_0x2e553f(_0x238f8c,_0x5b26('0x10'),_0x228ceb[_0x5b26('0x24')](',\x20'))}:{'type':_0x5b26('0xc'),'content':_0x2e553f(_0x238f8c,_0x5b26('0x22'))};}});}}function so(_0x5bf746,_0x1d40d7,_0x47db30){const _0x107716=_0x5bf746[_0x5b26('0x19')]['t'],_0x1d7d0e=_0x1d40d7[_0x5b26('0x9')](/(?=[A-Z])/)['join']('\x20'),_0x1a1c28=_0x107716(_0x1d7d0e['charAt'](0x0)['toUpperCase']()+_0x1d7d0e[_0x5b26('0xe')](0x1))[_0x5b26('0xf')]();if(_0x5b26('0x0')==typeof _0x47db30)return _0x1a1c28;if(_0x5b26('0x4')===_0x1d40d7||'fontBackgroundColor'===_0x1d40d7){const _0x65e3f6=_0x28581e(_0x5bf746['config'][_0x5b26('0x6')](_0x5b26('0x1a')))[_0x5b26('0x1')](_0x186a6e=>_0x186a6e[_0x5b26('0x2')]==_0x47db30);return _0x1a1c28+'\x20('+(_0x65e3f6?_0x107716(_0x65e3f6[_0x5b26('0x25')])[_0x5b26('0xf')]():_0x47db30)+')';}if(_0x5b26('0x11')===_0x1d40d7&&isNaN(parseFloat(_0x47db30))){const _0x44787e=_0x5bf746[_0x5b26('0x1c')]['get'](_0x5b26('0x14'))[_0x5b26('0x16')](_0x5bf746[_0x5b26('0x13')]['get'](_0x5b26('0x17')))['find'](_0x27445b=>_0x27445b[_0x5b26('0x2')]==_0x47db30);return _0x1a1c28+'\x20('+(_0x44787e?_0x107716(_0x44787e['title'])['toLowerCase']():_0x47db30)+')';}return _0x1a1c28+'\x20('+_0x47db30+')';}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/heading
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for heading feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x595b=['config','heading','has','_headingOptions','title','model','plugins','ELEMENT_HEADING','heading.options','commandName','editor','*Change\x20to:*\x20%0','TrackChangesEditing','_enableDefaultAttributesIntegration','ELEMENT_HEADING_CUSTOM','registerElementLabel','format','commandParams','type','afterInit','_registerLegacyDescription','_getHeadingLevel','locale','formatBlock','find','value','get'];(function(_0x57740a,_0x595b8f){const _0x4b30e0=function(_0x3eec43){while(--_0x3eec43){_0x57740a['push'](_0x57740a['shift']());}};_0x4b30e0(++_0x595b8f);}(_0x595b,0x1d3));const _0x4b30=function(_0x57740a,_0x595b8f){_0x57740a=_0x57740a-0x0;let _0x4b30e0=_0x595b[_0x57740a];return _0x4b30e0;};import{Plugin as _0x583501}from'ckeditor5/src/core.js';import{getTranslation as _0x5555ff}from'../utils/common-translations.js';export default class Y extends _0x583501{[_0x4b30('0xb')](){const _0x25f047=this[_0x4b30('0x2')];if(!_0x25f047['plugins'][_0x4b30('0x15')]('HeadingEditing'))return;this[_0x4b30('0x16')]=_0x25f047[_0x4b30('0x13')][_0x4b30('0x12')](_0x4b30('0x0'));const _0x2717ae=_0x25f047[_0x4b30('0xe')],_0x62ae31=_0x25f047[_0x4b30('0x19')]['get']('TrackChangesEditing');_0x62ae31[_0x4b30('0x5')](_0x4b30('0x14'));for(const _0x1e293d of this[_0x4b30('0x16')])'paragraph'!=_0x1e293d[_0x4b30('0x18')]&&_0x62ae31['_descriptionFactory'][_0x4b30('0x7')](_0x1e293d[_0x4b30('0x18')],_0x217c25=>{const _0x145d6e=this[_0x4b30('0xd')](_0x1e293d[_0x4b30('0x18')]);return null!==_0x145d6e?_0x344341(_0x217c25,_0x145d6e):_0x5694eb(_0x217c25,_0x1e293d[_0x4b30('0x17')]);});function _0x344341(_0x538b20,_0x5c4fe9){return _0x5555ff(_0x2717ae,_0x4b30('0x1a'),[_0x538b20,_0x5c4fe9]);}function _0x5694eb(_0x93e228,_0x38a895){return _0x5555ff(_0x2717ae,_0x4b30('0x6'),[_0x93e228,_0x38a895]);}this[_0x4b30('0xc')]();}[_0x4b30('0xc')](){const _0x592293=this[_0x4b30('0x2')],_0x5916f6=_0x592293['locale'];function _0x5ba550(_0x13572a,_0x5ee815){return _0x5555ff(_0x5916f6,_0x4b30('0x6'),[_0x13572a,_0x5ee815]);}_0x592293[_0x4b30('0x19')][_0x4b30('0x12')](_0x4b30('0x4'))['_descriptionFactory']['registerDescriptionCallback'](_0x2de3d1=>{if(_0x4b30('0xf')!=_0x2de3d1[_0x4b30('0xa')])return;const {data:_0x45f256}=_0x2de3d1;if(_0x45f256&&_0x4b30('0x14')==_0x45f256[_0x4b30('0x1')]){const _0x3634fc=_0x45f256[_0x4b30('0x9')][0x0][_0x4b30('0x11')],_0x135bb4=this[_0x4b30('0xd')](_0x3634fc);if(null!==_0x135bb4)return{'type':_0x4b30('0x8'),'content':_0x5555ff(_0x5916f6,_0x4b30('0x3'),(_0x4d2a2b=0x1,_0x573d2c=_0x135bb4,_0x5555ff(_0x5916f6,_0x4b30('0x1a'),[_0x4d2a2b,_0x573d2c])))};const _0x286b1e=this[_0x4b30('0x16')][_0x4b30('0x10')](_0x5f52af=>_0x5f52af[_0x4b30('0x18')]===_0x3634fc)[_0x4b30('0x17')];return{'type':'format','content':_0x5555ff(_0x5916f6,_0x4b30('0x3'),_0x5ba550(0x1,_0x286b1e))};}var _0x4d2a2b,_0x573d2c;});}['_getHeadingLevel'](_0x1606f7){var _0x553ffa,_0x2fd64a;const _0x44af23=_0x1606f7['match'](/^heading(\d+)/);if(_0x44af23)return _0x44af23[0x1];const _0x135be2=null===(_0x553ffa=this[_0x4b30('0x16')])||void 0x0===_0x553ffa?void 0x0:_0x553ffa['find'](_0x5af897=>_0x5af897['model']==_0x1606f7);if(_0x135be2&&_0x135be2['view']){const _0x398d19=_0x135be2['view'],_0x44192e=(null!==(_0x2fd64a=_0x398d19['name'])&&void 0x0!==_0x2fd64a?_0x2fd64a:_0x398d19)['match'](/^h(\d+)/);if(_0x44192e)return _0x44192e[0x1];}return null;}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/highlight
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for highlight feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x548f=['commandName','has','color','config','locale','registerAttributeLabel','highlight.options','plugins','_descriptionFactory','_registerLegacyDescription','model','toLowerCase','FORMAT_HIGHLIGHT','title','editor','highlight','TrackChangesEditing','find'];(function(_0x19abab,_0x548f23){const _0x57aee9=function(_0x4a96d5){while(--_0x4a96d5){_0x19abab['push'](_0x19abab['shift']());}};_0x57aee9(++_0x548f23);}(_0x548f,0xcf));const _0x57ae=function(_0x19abab,_0x548f23){_0x19abab=_0x19abab-0x0;let _0x57aee9=_0x548f[_0x19abab];return _0x57aee9;};import{Plugin as _0x487f5f}from'ckeditor5/src/core.js';import{getTranslation as _0x354afe}from'../utils/common-translations.js';export default class Z extends _0x487f5f{['afterInit'](){const _0x3ea539=this[_0x57ae('0x5')];if(!_0x3ea539[_0x57ae('0x10')][_0x57ae('0xa')]('HighlightEditing'))return;const _0x5ae5ce=_0x3ea539[_0x57ae('0x10')]['get'](_0x57ae('0x7')),_0x49971c=_0x3ea539[_0x57ae('0xd')];_0x5ae5ce['_enableDefaultAttributesIntegration'](_0x57ae('0x6'),[_0x57ae('0x6')]),_0x5ae5ce[_0x57ae('0x11')][_0x57ae('0xe')](_0x57ae('0x6'),_0x354afe(_0x49971c,_0x57ae('0x3'))),this[_0x57ae('0x0')]();}[_0x57ae('0x0')](){const _0x3ea04f=this[_0x57ae('0x5')],_0x340a70=_0x3ea04f['locale'];_0x3ea04f[_0x57ae('0x10')]['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xba8c7a=>{if('formatInline'!=_0xba8c7a['type'])return;const {data:_0xc1565b}=_0xba8c7a;if(_0xc1565b&&_0x57ae('0x6')==_0xc1565b[_0x57ae('0x9')]){const _0x5902b6=_0x340a70['t'],_0x5b962f=_0xc1565b['commandParams'][0x0]['value'];if(_0x5b962f){const _0x28ff76=_0x3ea04f[_0x57ae('0xc')]['get'](_0x57ae('0xf'))[_0x57ae('0x8')](_0x5d074f=>_0x5d074f[_0x57ae('0x1')]==_0x5b962f),_0x5ad66a=_0x5902b6(_0x28ff76[_0x57ae('0x4')])[_0x57ae('0x2')]();return{'type':'format','content':_0x354afe(_0x340a70,'*Set\x20highlight:*\x20%0',_0x5ad66a),'color':{'value':_0x28ff76[_0x57ae('0xb')],'title':_0x28ff76['title']}};}return{'type':'format','content':_0x354afe(_0x340a70,'*Remove\x20highlight*',_0x354afe(_0x340a70,_0x57ae('0x3')))};}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/horizontalline
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:horizontal-line/horizontalline~HorizontalLine horizontal line feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbe0b=['createEmptyElement','registerElementLabel','ELEMENT_HORIZONTAL_LINE','TrackChangesEditing','high','insert','ck-horizontal-line','plugins','addClass','_descriptionFactory','editor','has','HorizontalLineEditing','horizontalLine','div','elementToStructure','showSuggestionHighlights','dataDowncast','for','get','conversion','locale'];(function(_0x75a6e6,_0xbe0b06){const _0x200930=function(_0x2260f1){while(--_0x2260f1){_0x75a6e6['push'](_0x75a6e6['shift']());}};_0x200930(++_0xbe0b06);}(_0xbe0b,0x82));const _0x2009=function(_0x75a6e6,_0xbe0b06){_0x75a6e6=_0x75a6e6-0x0;let _0x200930=_0xbe0b[_0x75a6e6];return _0x200930;};import{Plugin as _0x591cf0}from'ckeditor5/src/core.js';import{getTranslation as _0x2a09d4}from'../utils/common-translations.js';export default class tt extends _0x591cf0{['afterInit'](){const _0x47cb25=this[_0x2009('0xc')];if(!_0x47cb25[_0x2009('0x9')][_0x2009('0xd')](_0x2009('0xe')))return;_0x47cb25[_0x2009('0x9')][_0x2009('0x15')](_0x2009('0x5'))['enableCommand'](_0x2009('0xf'));const _0x4e1dd0=_0x47cb25['plugins'][_0x2009('0x15')](_0x2009('0x5')),_0x166fe7=_0x47cb25[_0x2009('0x1')];_0x4e1dd0[_0x2009('0xb')][_0x2009('0x3')]('horizontalLine',_0x3f6a7b=>_0x2a09d4(_0x166fe7,_0x2009('0x4'),_0x3f6a7b)),_0x47cb25[_0x2009('0x0')][_0x2009('0x14')](_0x2009('0x13'))[_0x2009('0x11')]({'model':_0x2009('0xf'),'view':(_0x4cd7ed,{writer:_0x5c1e89,options:_0x195162})=>{if(!_0x195162[_0x2009('0x12')])return null;const _0x5aad39=_0x5c1e89['createContainerElement'](_0x2009('0x10')),_0xa1903c=_0x5c1e89[_0x2009('0x2')]('hr');return _0x5c1e89[_0x2009('0xa')](_0x2009('0x8'),_0x5aad39),_0x5c1e89[_0x2009('0x7')](_0x5c1e89['createPositionAt'](_0x5aad39,0x0),_0xa1903c),_0x5aad39;},'converterPriority':_0x2009('0x6')});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/htmlembed
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:html-embed/htmlembed~HtmlEmbed HTML Embed feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25b4=['get','element','plugins','editor','formatBlock','_descriptionFactory','*Change\x20%0\x20content*','rawHtml','value','key','_enableDefaultAttributesIntegration','attribute','afterInit','ELEMENT_HTML_EMBED','_registerLegacyDescription','htmlEmbed','format','TrackChangesEditing','type','has','registerDescriptionCallback','locale','HtmlEmbed'];(function(_0x1a7697,_0x25b42b){const _0x582003=function(_0x45c940){while(--_0x45c940){_0x1a7697['push'](_0x1a7697['shift']());}};_0x582003(++_0x25b42b);}(_0x25b4,0xd3));const _0x5820=function(_0x1a7697,_0x25b42b){_0x1a7697=_0x1a7697-0x0;let _0x582003=_0x25b4[_0x1a7697];return _0x582003;};import{Plugin as _0x5a4698}from'ckeditor5/src/core.js';import{getTranslation as _0x106398}from'../utils/common-translations.js';export default class et extends _0x5a4698{[_0x5820('0x8')](){const _0xf21ba=this[_0x5820('0x16')];if(!_0xf21ba[_0x5820('0x15')][_0x5820('0xf')](_0x5820('0x12')))return;const _0x4e8add=_0xf21ba[_0x5820('0x15')]['get'](_0x5820('0xd')),_0x2e751e=_0xf21ba[_0x5820('0x11')];_0x4e8add[_0x5820('0x1')]['registerElementLabel'](_0x5820('0x3'),_0x51283c=>_0x106398(_0x2e751e,_0x5820('0x9'),_0x51283c)),_0x4e8add[_0x5820('0x6')](_0x5820('0xb'),[],['value']),_0x4e8add['_descriptionFactory'][_0x5820('0x10')](_0x80885a=>{if(_0x5820('0x7')!=_0x80885a[_0x5820('0xe')])return;const {data:_0x557dcd}=_0x80885a;if(_0x557dcd&&_0x5820('0x4')==_0x557dcd[_0x5820('0x5')]&&_0x80885a['getFirstRange']()['start']['nodeAfter']['is'](_0x5820('0x14'),'rawHtml')){const _0x3d5fcf=_0x106398(_0x2e751e,_0x5820('0x9'));return{'type':_0x5820('0xc'),'content':_0x106398(_0x2e751e,_0x5820('0x2'),_0x3d5fcf)};}}),this[_0x5820('0xa')]();}[_0x5820('0xa')](){const _0x5670de=this['editor'],_0x23b4ba=_0x5670de[_0x5820('0x11')];_0x5670de[_0x5820('0x15')][_0x5820('0x13')](_0x5820('0xd'))[_0x5820('0x1')][_0x5820('0x10')](_0x3cac5a=>{if(_0x5820('0x0')!=_0x3cac5a[_0x5820('0xe')])return;const {data:_0x479a69}=_0x3cac5a;if(_0x479a69&&_0x5820('0xb')==_0x479a69['commandName']){const _0x3c9d43=_0x106398(_0x23b4ba,_0x5820('0x9'));return{'type':_0x5820('0xc'),'content':_0x106398(_0x23b4ba,_0x5820('0x2'),_0x3c9d43)};}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/image
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xe43f=['insertImage','join','ELEMENT_CAPTION','markBlockFormat','resizedWidth','uploadImage','ImageResize','registerDescriptionCallback','getClosestSelectedImageElement','insertion','ImageCaptionUtils','Inline\x20image\x20to\x20block\x20image','forceDefaultExecution','plugins','ImageUploadEditing','schema','toggleImageCaption','_registerLegacyDescription','ELEMENT_IMAGE','accept','*Set\x20image\x20width:*\x20%0','discard','convertBlockImageToInline','chain','imageTextAlternative','imageTypeBlock','filter','type','markInsertion','addObject','ImageBlockEditing','getFirstRange','registerAttributeLabel','has','subType','*Reset\x20image\x20width*','element','newValue','imageStylePreApply','isBlockImage','selection','backward','attribute','isCollapsed','TrackChangesEditing','getContainedElement','_descriptionFactory','commandName','imageTypeInline','caption','removeObject','previous','alt','fromPosition','findIndex','length','commandParams','formatBlock','_enableDefaultAttributesIntegration','deletion','*Remove\x20image\x20text\x20alternative*','width','*Set\x20image\x20text\x20alternative:*\x20%0','start','change','Block\x20image\x20to\x20inline\x20image','formatInline','detach','document','createRangeOn','ELEMENT_INLINE_IMAGE','imageInline','get','createRange','forward','registerCustomCallback','ImageInlineEditing','resizeImage','end','ImageUtils','ImageCaptionEditing','_findSuggestions','isBefore','_suggestionFactory','ImageEditing','imageCaption','toPrevious','afterInit','locale','markDeletion','getSuggestionCallback','isEqual','registerElementLabel','getCaptionFromImageModelElement','format','getNearestSelectionRange','model','convertInlineImageToBlock','editor','enableCommand'];(function(_0xd1f55d,_0xe43f02){const _0x340147=function(_0xa40b23){while(--_0xa40b23){_0xd1f55d['push'](_0xd1f55d['shift']());}};_0x340147(++_0xe43f02);}(_0xe43f,0x9b));const _0x3401=function(_0xd1f55d,_0xe43f02){_0xd1f55d=_0xd1f55d-0x0;let _0x340147=_0xe43f[_0xd1f55d];return _0x340147;};import{Plugin as _0x5dcdfa}from'ckeditor5/src/core';import{LivePosition as _0x2119ed}from'ckeditor5/src/engine';import{getTranslation as _0x3f9f62}from'../utils/common-translations';export default class it extends _0x5dcdfa{[_0x3401('0x20')](){const _0xaa49ea=this[_0x3401('0x2b')];if(!_0xaa49ea['plugins'][_0x3401('0x4e')](_0x3401('0x1d')))return;const _0x240e80=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x59')),_0x5a0cd4=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x18')),_0x2229f1=_0xaa49ea[_0x3401('0x21')];_0x240e80[_0x3401('0x2c')](_0x3401('0x2d')),_0x240e80[_0x3401('0x5b')][_0x3401('0x25')]('imageBlock',_0xe98673=>_0x3f9f62(_0x2229f1,_0x3401('0x3f'),_0xe98673)),_0x240e80[_0x3401('0x5b')][_0x3401('0x25')](_0x3401('0x10'),_0xaf0e8b=>_0x3f9f62(_0x2229f1,_0x3401('0xf'),_0xaf0e8b)),_0x240e80['_descriptionFactory'][_0x3401('0x25')](_0x3401('0x5e'),()=>_0x3f9f62(_0x2229f1,_0x3401('0x2f'))),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x3b'))&&_0x240e80[_0x3401('0x2c')](_0x3401('0x32')),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x4b'))&&_0xaa49ea[_0x3401('0x3a')]['has'](_0x3401('0x15'))&&(_0x240e80['enableCommand'](_0x3401('0x5d'),(_0x2a5d20,_0x426ed9)=>{const _0x45b272=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]);_0xaa49ea['model'][_0x3401('0x9')](()=>{_0x240e80[_0x3401('0x30')](_0x45b272,{'commandName':_0x3401('0x5d'),'commandParams':[_0x426ed9]},[],'convertBlockImageToInline');});}),_0x240e80['enableCommand'](_0x3401('0x46'),(_0x3784c8,_0x2eada6)=>{_0xaa49ea['model'][_0x3401('0x9')](_0x50492c=>{let _0x465575=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea['model'][_0x3401('0xd')][_0x3401('0x55')]),_0x5ce2b4=_0x50492c[_0x3401('0xe')](_0x465575);const _0x41ccf7=_0x2119ed[_0x3401('0x62')](_0x5ce2b4[_0x3401('0x8')],_0x3401('0x1f')),_0x4efcb8=_0x2119ed[_0x3401('0x62')](_0x5ce2b4[_0x3401('0x17')],'toNext');_0x240e80[_0x3401('0x39')](()=>_0x3784c8(_0x2eada6)),_0x465575=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')]['selection']),_0x5ce2b4=_0x50492c[_0x3401('0xe')](_0x465575);const _0x373e1b=_0x50492c[_0x3401('0x12')](_0x41ccf7,_0x4efcb8);_0x41ccf7[_0x3401('0xc')](),_0x4efcb8[_0x3401('0xc')](),_0x240e80['markBlockFormat'](_0x465575,{'commandName':_0x3401('0x5d'),'commandParams':[_0x2eada6]},[],_0x3401('0x2a')),_0x373e1b[_0x3401('0x8')][_0x3401('0x1b')](_0x5ce2b4[_0x3401('0x8')])&&_0x240e80[_0x3401('0x49')](_0x50492c['createRange'](_0x373e1b[_0x3401('0x8')],_0x5ce2b4[_0x3401('0x8')]),_0x3401('0x2a')),_0x5ce2b4[_0x3401('0x17')]['isBefore'](_0x373e1b['end'])&&_0x240e80['markInsertion'](_0x50492c[_0x3401('0x12')](_0x5ce2b4['end'],_0x373e1b[_0x3401('0x17')]),_0x3401('0x2a'));});}),_0x240e80['_suggestionFactory'][_0x3401('0x14')]('formatBlock','convertInlineImageToBlock',_0x3401('0x2e'),()=>!0x1),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')]('formatBlock',_0x3401('0x2a'),_0x3401('0x40'),()=>!0x1),_0x240e80['_suggestionFactory'][_0x3401('0x14')](_0x3401('0x2'),'convertInlineImageToBlock',_0x3401('0x42'),_0x240e80[_0x3401('0x1c')]['getSuggestionCallback'](_0x3401('0x2'),'',_0x3401('0x40'))),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')](_0x3401('0x36'),_0x3401('0x2a'),_0x3401('0x2e'),()=>!0x1),_0x240e80['_suggestionFactory'][_0x3401('0x14')]('insertion',_0x3401('0x2a'),_0x3401('0x42'),([_0x2bbfa1])=>{const _0x46cc23=_0x240e80[_0x3401('0x1c')][_0x3401('0x23')]('insertion','',_0x3401('0x42'));let _0x108c7a=_0x2bbfa1[_0x3401('0x8')],_0x559f01=_0x2bbfa1['end'];const _0x50c655=_0xaa49ea[_0x3401('0x29')]['schema'][_0x3401('0x28')](_0x108c7a,_0x3401('0x56')),_0x4075a0=_0xaa49ea[_0x3401('0x29')][_0x3401('0x3c')][_0x3401('0x28')](_0x559f01,_0x3401('0x13'));_0x50c655[_0x3401('0x58')]&&(_0x108c7a=_0x50c655[_0x3401('0x8')]),_0x4075a0[_0x3401('0x58')]&&(_0x559f01=_0x4075a0[_0x3401('0x17')]),_0x46cc23([_0xaa49ea[_0x3401('0x29')][_0x3401('0x12')](_0x108c7a,_0x559f01)]);}),_0x240e80[_0x3401('0x1c')][_0x3401('0x14')](_0x3401('0x2'),'convertInlineImageToBlock','chain',_0x3c7385),_0x240e80[_0x3401('0x1c')]['registerCustomCallback'](_0x3401('0x36'),_0x3401('0x2a'),_0x3401('0x44'),_0x3c7385)),_0xaa49ea['plugins'][_0x3401('0x4e')](_0x3401('0x19'))&&(_0x240e80['enableCommand'](_0x3401('0x3d'),(_0x493f77,_0x4ea97e)=>{const _0x147e89=_0xaa49ea[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x37'));let _0x2a4311=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]),_0xc99877=_0x147e89[_0x3401('0x26')](_0x2a4311);_0xaa49ea['model'][_0x3401('0x9')](()=>{if(_0xc99877)return void _0x240e80[_0x3401('0x22')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xe')](_0xc99877));const _0x21586a=_0x5a0cd4[_0x3401('0x54')](_0x2a4311);_0x493f77(_0x4ea97e),_0x2a4311=_0x5a0cd4[_0x3401('0x35')](_0xaa49ea[_0x3401('0x29')][_0x3401('0xd')][_0x3401('0x55')]),_0xc99877=_0x147e89[_0x3401('0x26')](_0x2a4311),_0x240e80['markInsertion'](_0xaa49ea[_0x3401('0x29')][_0x3401('0xe')](_0xc99877),_0x21586a?null:_0x3401('0x1e'));});}),_0x240e80['_suggestionFactory'][_0x3401('0x14')](_0x3401('0x36'),'imageCaption',_0x3401('0x44'),_0x3c7385));const _0x15d2ab=[{'type':_0x3401('0x2'),'subType':_0x3401('0x53')},{'type':_0x3401('0x36'),'subType':_0x3401('0x1e')},{'type':_0x3401('0x2'),'subType':'convertInlineImageToBlock'},{'type':_0x3401('0x36'),'subType':_0x3401('0x2a')}];function _0x1c87a9(_0x53ef52,_0x135836){const _0x36c19b=_0x15d2ab[_0x3401('0x63')](({type:_0x3bde70,subType:_0x35f6b1})=>_0x53ef52[_0x3401('0x48')]==_0x3bde70&&_0x53ef52['subType']==_0x35f6b1),_0x13fdb2=_0x15d2ab[_0x3401('0x63')](({type:_0x58a469,subType:_0x43aa3e})=>_0x135836['type']==_0x58a469&&_0x135836[_0x3401('0x4f')]==_0x43aa3e);if(_0x36c19b<0x0||_0x13fdb2<0x0)return!0x1;const _0x2110c0=_0x53ef52[_0x3401('0x4c')](),_0x49304a=_0x135836['getFirstRange']();if((0x0==_0x36c19b||0x1==_0x36c19b)&&0x2==_0x13fdb2&&_0x2110c0['isIntersecting'](_0x49304a))return!0x0;if(0x2==_0x36c19b&&0x3==_0x13fdb2){const _0x51039e=_0x240e80[_0x3401('0x1a')](_0x2110c0,_0x3401('0x36'))[_0x3401('0x47')](({suggestion:_0x5cb859,meta:_0x4c602f})=>_0x4c602f['isOwn']&&'convertInlineImageToBlock'==_0x5cb859[_0x3401('0x4f')]);if(_0x51039e[_0x3401('0x0')]>0x1&&_0x49304a[_0x3401('0x17')][_0x3401('0x24')](_0x2110c0[_0x3401('0x8')]))return!0x0;if(0x1==_0x51039e[_0x3401('0x0')]&&(_0x2110c0['start'][_0x3401('0x24')](_0x49304a['end'])||_0x2110c0[_0x3401('0x17')][_0x3401('0x24')](_0x49304a[_0x3401('0x8')])))return!0x0;}if(0x3==_0x36c19b&&0x3==_0x13fdb2&&_0x2110c0['start'][_0x3401('0x1b')](_0x49304a['start'])){const _0x4751b6=_0x2110c0[_0x3401('0x17')]['nodeAfter'],_0x5ba827=_0x49304a[_0x3401('0x8')]['nodeBefore'];return _0x5a0cd4[_0x3401('0x54')](_0x4751b6)&&_0x4751b6===_0x5ba827;}return!0x1;}function _0x3c7385(_0x355170,_0x4e8c6e){return _0x1c87a9(_0x355170,_0x4e8c6e)?[_0x355170,_0x4e8c6e]:_0x1c87a9(_0x4e8c6e,_0x355170)?[_0x4e8c6e,_0x355170]:null;}_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')](_0x3401('0x33'))&&(_0x240e80[_0x3401('0x3')](_0x3401('0x16'),[],[_0x3401('0x31')]),_0x240e80[_0x3401('0x5b')][_0x3401('0x4d')](_0x3401('0x31'),_0x3f9f62(_0x2229f1,'FORMAT_IMAGE_SIZE'))),_0xaa49ea[_0x3401('0x3a')][_0x3401('0x4e')]('ImageTextAlternativeEditing')&&_0x240e80['_enableDefaultAttributesIntegration'](_0x3401('0x45'),[],['alt']),_0x240e80['_descriptionFactory'][_0x3401('0x34')](_0x239f41=>{if(!!_0x15d2ab['find'](({type:_0x2dfe0c,subType:_0x2fa7d2})=>_0x239f41[_0x3401('0x48')]==_0x2dfe0c&&_0x239f41[_0x3401('0x4f')]==_0x2fa7d2))return _0x239f41[_0x3401('0x60')]?{}:void 0x0;}),_0x240e80[_0x3401('0x5b')][_0x3401('0x34')](_0x3b3695=>{if(_0x3401('0x36')==_0x3b3695[_0x3401('0x48')]||_0x3401('0x4')==_0x3b3695['type']){const _0x578a4b=_0x3b3695[_0x3401('0x5a')]();if(_0x578a4b&&_0x578a4b['is'](_0x3401('0x51'),'caption'))return{'type':_0x3401('0x36')==_0x3b3695[_0x3401('0x48')]?_0x3401('0x4a'):_0x3401('0x5f'),'element':_0x578a4b,'quantity':0x1};}}),_0x240e80['_descriptionFactory'][_0x3401('0x34')](_0x853fa=>'formatBlock'==_0x853fa['type']&&_0x3401('0x2a')==_0x853fa[_0x3401('0x4f')]?{'type':_0x3401('0x27'),'content':_0x3401('0x38')}:_0x3401('0x2')==_0x853fa[_0x3401('0x48')]&&_0x3401('0x43')==_0x853fa[_0x3401('0x4f')]?{'type':_0x3401('0x27'),'content':_0x3401('0xa')}:void 0x0),_0x240e80[_0x3401('0x5b')][_0x3401('0x34')](_0x14effc=>{if(_0x3401('0x57')!=_0x14effc[_0x3401('0x48')])return;const {data:_0x32fd45}=_0x14effc;if(!_0x32fd45||_0x3401('0x61')!=_0x32fd45['key'])return;const _0x69bbc7=_0x32fd45[_0x3401('0x52')];return _0x69bbc7?{'type':'format','content':_0x3f9f62(_0x2229f1,_0x3401('0x7'),'\x22'+_0x69bbc7+'\x22')}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x2229f1,_0x3401('0x5'))};}),this[_0x3401('0x3e')]();}[_0x3401('0x3e')](){const _0xb6595d=this[_0x3401('0x2b')],_0x437754=_0xb6595d[_0x3401('0x21')];_0xb6595d[_0x3401('0x3a')][_0x3401('0x11')](_0x3401('0x59'))['_descriptionFactory'][_0x3401('0x34')](_0x4aa741=>{if(_0x3401('0x2')!=_0x4aa741['type']&&_0x3401('0xb')!=_0x4aa741[_0x3401('0x48')])return;const {data:_0x5384c8}=_0x4aa741;if(_0x5384c8){if(_0x3401('0x45')==_0x5384c8[_0x3401('0x5c')]){const _0x49b6e3=_0x5384c8[_0x3401('0x1')][0x0][_0x3401('0x52')];return _0x49b6e3?{'type':'format','content':_0x3f9f62(_0x437754,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49b6e3+'\x22')}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x437754,_0x3401('0x5'))};}if(_0x3401('0x16')==_0x5384c8['commandName']){const _0xcf5e0d=_0x5384c8[_0x3401('0x1')][0x0][_0x3401('0x6')];return _0xcf5e0d?{'type':'format','content':_0x3f9f62(_0x437754,_0x3401('0x41'),_0xcf5e0d)}:{'type':_0x3401('0x27'),'content':_0x3f9f62(_0x437754,_0x3401('0x50'))};}}});}}
|
|
23
|
+
const _0x2133=['*Reset\x20image\x20width*','forward','getNearestSelectionRange','toNext','ImageTextAlternativeEditing','newValue','commandParams','discard','nodeBefore','filter','chain','start','formatInline','detach','markBlockFormat','registerCustomCallback','TrackChangesEditing','imageTypeInline','ImageCaptionUtils','_findSuggestions','_suggestionFactory','plugins','ELEMENT_CAPTION','previous','createRangeOn','ImageUtils','element','locale','isEqual','change','insertion','ImageUploadEditing','Inline\x20image\x20to\x20block\x20image','schema','get','registerDescriptionCallback','convertBlockImageToInline','markInsertion','getContainedElement','find','_descriptionFactory','imageTextAlternative','length','join','isOwn','fromPosition','end','imageStylePreApply','ELEMENT_IMAGE','ImageEditing','model','isCollapsed','isBefore','caption','imageCaption','findIndex','subType','commandName','type','toggleImageCaption','ImageInlineEditing','imageTypeBlock','selection','getSuggestionCallback','document','*Set\x20image\x20width:*\x20%0','format','enableCommand','createRange','registerElementLabel','has','formatBlock','imageInline','*Remove\x20image\x20text\x20alternative*','addObject','deletion','toPrevious','uploadImage','insertImage','forceDefaultExecution','nodeAfter','accept','Block\x20image\x20to\x20inline\x20image','*Set\x20image\x20text\x20alternative:*\x20%0','markDeletion','afterInit','backward','_registerLegacyDescription','width','getFirstRange','isBlockImage','editor','convertInlineImageToBlock','resizedWidth','removeObject','key','getClosestSelectedImageElement','imageBlock','isIntersecting','_enableDefaultAttributesIntegration','resizeImage'];(function(_0x4e89ba,_0x2133c3){const _0x2c55a9=function(_0x39f6b6){while(--_0x39f6b6){_0x4e89ba['push'](_0x4e89ba['shift']());}};_0x2c55a9(++_0x2133c3);}(_0x2133,0x1ae));const _0x2c55=function(_0x4e89ba,_0x2133c3){_0x4e89ba=_0x4e89ba-0x0;let _0x2c55a9=_0x2133[_0x4e89ba];return _0x2c55a9;};import{Plugin as _0xf96540}from'ckeditor5/src/core.js';import{LivePosition as _0x4f8d00}from'ckeditor5/src/engine.js';import{getTranslation as _0x59a6bc}from'../utils/common-translations.js';export default class it extends _0xf96540{[_0x2c55('0x3b')](){const _0x33dd42=this[_0x2c55('0x41')];if(!_0x33dd42[_0x2c55('0x60')]['has'](_0x2c55('0x17')))return;const _0x20712b=_0x33dd42[_0x2c55('0x60')][_0x2c55('0x8')](_0x2c55('0x5b')),_0x17fae1=_0x33dd42['plugins'][_0x2c55('0x8')](_0x2c55('0x64')),_0x1b4588=_0x33dd42['locale'];_0x20712b[_0x2c55('0x29')](_0x2c55('0x34')),_0x20712b[_0x2c55('0xe')][_0x2c55('0x2b')](_0x2c55('0x47'),_0x406e53=>_0x59a6bc(_0x1b4588,_0x2c55('0x16'),_0x406e53)),_0x20712b['_descriptionFactory'][_0x2c55('0x2b')](_0x2c55('0x2e'),_0x2b0722=>_0x59a6bc(_0x1b4588,'ELEMENT_INLINE_IMAGE',_0x2b0722)),_0x20712b[_0x2c55('0xe')][_0x2c55('0x2b')]('caption',()=>_0x59a6bc(_0x1b4588,_0x2c55('0x61'))),_0x33dd42[_0x2c55('0x60')][_0x2c55('0x2c')](_0x2c55('0x5'))&&_0x20712b[_0x2c55('0x29')](_0x2c55('0x33')),_0x33dd42[_0x2c55('0x60')][_0x2c55('0x2c')]('ImageBlockEditing')&&_0x33dd42[_0x2c55('0x60')][_0x2c55('0x2c')](_0x2c55('0x22'))&&(_0x20712b['enableCommand'](_0x2c55('0x5c'),(_0x236079,_0xd43dde)=>{const _0x5130d2=_0x17fae1['getClosestSelectedImageElement'](_0x33dd42['model']['document'][_0x2c55('0x24')]);_0x33dd42[_0x2c55('0x18')]['change'](()=>{_0x20712b[_0x2c55('0x59')](_0x5130d2,{'commandName':'imageTypeInline','commandParams':[_0xd43dde]},[],_0x2c55('0xa'));});}),_0x20712b[_0x2c55('0x29')](_0x2c55('0x23'),(_0x1d7b1b,_0x3a8620)=>{_0x33dd42['model'][_0x2c55('0x3')](_0x1e7e56=>{let _0x48f994=_0x17fae1[_0x2c55('0x46')](_0x33dd42[_0x2c55('0x18')]['document'][_0x2c55('0x24')]),_0x3e59d7=_0x1e7e56[_0x2c55('0x63')](_0x48f994);const _0x359245=_0x4f8d00[_0x2c55('0x13')](_0x3e59d7[_0x2c55('0x56')],_0x2c55('0x32')),_0x91630f=_0x4f8d00['fromPosition'](_0x3e59d7['end'],_0x2c55('0x4e'));_0x20712b[_0x2c55('0x35')](()=>_0x1d7b1b(_0x3a8620)),_0x48f994=_0x17fae1[_0x2c55('0x46')](_0x33dd42[_0x2c55('0x18')][_0x2c55('0x26')][_0x2c55('0x24')]),_0x3e59d7=_0x1e7e56['createRangeOn'](_0x48f994);const _0x11fd7e=_0x1e7e56[_0x2c55('0x2a')](_0x359245,_0x91630f);_0x359245['detach'](),_0x91630f[_0x2c55('0x58')](),_0x20712b[_0x2c55('0x59')](_0x48f994,{'commandName':'imageTypeInline','commandParams':[_0x3a8620]},[],_0x2c55('0x42')),_0x11fd7e[_0x2c55('0x56')][_0x2c55('0x1a')](_0x3e59d7['start'])&&_0x20712b['markInsertion'](_0x1e7e56[_0x2c55('0x2a')](_0x11fd7e['start'],_0x3e59d7[_0x2c55('0x56')]),'convertInlineImageToBlock'),_0x3e59d7[_0x2c55('0x14')][_0x2c55('0x1a')](_0x11fd7e[_0x2c55('0x14')])&&_0x20712b[_0x2c55('0xb')](_0x1e7e56['createRange'](_0x3e59d7[_0x2c55('0x14')],_0x11fd7e[_0x2c55('0x14')]),_0x2c55('0x42'));});}),_0x20712b[_0x2c55('0x5f')][_0x2c55('0x5a')](_0x2c55('0x2d'),_0x2c55('0x42'),_0x2c55('0x11'),()=>!0x1),_0x20712b[_0x2c55('0x5f')]['registerCustomCallback'](_0x2c55('0x2d'),_0x2c55('0x42'),_0x2c55('0x37'),()=>!0x1),_0x20712b[_0x2c55('0x5f')]['registerCustomCallback'](_0x2c55('0x2d'),'convertInlineImageToBlock','discard',_0x20712b[_0x2c55('0x5f')][_0x2c55('0x25')](_0x2c55('0x2d'),'',_0x2c55('0x37'))),_0x20712b['_suggestionFactory'][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x42'),_0x2c55('0x11'),()=>!0x1),_0x20712b[_0x2c55('0x5f')][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x42'),'discard',([_0x5e33ab])=>{const _0x431b7c=_0x20712b['_suggestionFactory'][_0x2c55('0x25')]('insertion','',_0x2c55('0x52'));let _0x478503=_0x5e33ab['start'],_0x156394=_0x5e33ab[_0x2c55('0x14')];const _0x106f70=_0x33dd42[_0x2c55('0x18')][_0x2c55('0x7')][_0x2c55('0x4d')](_0x478503,_0x2c55('0x3c')),_0x3609a0=_0x33dd42[_0x2c55('0x18')]['schema'][_0x2c55('0x4d')](_0x156394,_0x2c55('0x4c'));_0x106f70['isCollapsed']&&(_0x478503=_0x106f70[_0x2c55('0x56')]),_0x3609a0[_0x2c55('0x19')]&&(_0x156394=_0x3609a0[_0x2c55('0x14')]),_0x431b7c([_0x33dd42[_0x2c55('0x18')]['createRange'](_0x478503,_0x156394)]);}),_0x20712b[_0x2c55('0x5f')]['registerCustomCallback']('formatBlock',_0x2c55('0x42'),_0x2c55('0x55'),_0x8f121d),_0x20712b[_0x2c55('0x5f')][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x42'),_0x2c55('0x55'),_0x8f121d)),_0x33dd42['plugins'][_0x2c55('0x2c')]('ImageCaptionEditing')&&(_0x20712b[_0x2c55('0x29')](_0x2c55('0x21'),(_0x308cc1,_0x460e1e)=>{const _0x267a69=_0x33dd42[_0x2c55('0x60')][_0x2c55('0x8')](_0x2c55('0x5d'));let _0x6f12ae=_0x17fae1[_0x2c55('0x46')](_0x33dd42['model'][_0x2c55('0x26')][_0x2c55('0x24')]),_0x3f9cf2=_0x267a69['getCaptionFromImageModelElement'](_0x6f12ae);_0x33dd42[_0x2c55('0x18')][_0x2c55('0x3')](()=>{if(_0x3f9cf2)return void _0x20712b[_0x2c55('0x3a')](_0x33dd42['model'][_0x2c55('0x63')](_0x3f9cf2));const _0x43dca2=_0x17fae1[_0x2c55('0x40')](_0x6f12ae);_0x308cc1(_0x460e1e),_0x6f12ae=_0x17fae1[_0x2c55('0x46')](_0x33dd42[_0x2c55('0x18')]['document'][_0x2c55('0x24')]),_0x3f9cf2=_0x267a69['getCaptionFromImageModelElement'](_0x6f12ae),_0x20712b[_0x2c55('0xb')](_0x33dd42['model'][_0x2c55('0x63')](_0x3f9cf2),_0x43dca2?null:'imageCaption');});}),_0x20712b['_suggestionFactory'][_0x2c55('0x5a')](_0x2c55('0x4'),_0x2c55('0x1c'),_0x2c55('0x55'),_0x8f121d));const _0x2b0b62=[{'type':_0x2c55('0x2d'),'subType':_0x2c55('0x15')},{'type':_0x2c55('0x4'),'subType':_0x2c55('0x1c')},{'type':_0x2c55('0x2d'),'subType':_0x2c55('0x42')},{'type':_0x2c55('0x4'),'subType':'convertInlineImageToBlock'}];function _0xac846c(_0x29eb48,_0x5aff1a){const _0x545068=_0x2b0b62['findIndex'](({type:_0x275f62,subType:_0x3ec08e})=>_0x29eb48[_0x2c55('0x20')]==_0x275f62&&_0x29eb48[_0x2c55('0x1e')]==_0x3ec08e),_0x1b9daa=_0x2b0b62[_0x2c55('0x1d')](({type:_0x56b627,subType:_0x4f6aaa})=>_0x5aff1a['type']==_0x56b627&&_0x5aff1a[_0x2c55('0x1e')]==_0x4f6aaa);if(_0x545068<0x0||_0x1b9daa<0x0)return!0x1;const _0x226e78=_0x29eb48['getFirstRange'](),_0x2ec6bc=_0x5aff1a[_0x2c55('0x3f')]();if((0x0==_0x545068||0x1==_0x545068)&&0x2==_0x1b9daa&&_0x226e78[_0x2c55('0x48')](_0x2ec6bc))return!0x0;if(0x2==_0x545068&&0x3==_0x1b9daa){const _0x1d0b85=_0x20712b[_0x2c55('0x5e')](_0x226e78,_0x2c55('0x4'))[_0x2c55('0x54')](({suggestion:_0x47bfa0,meta:_0x2f2ae0})=>_0x2f2ae0[_0x2c55('0x12')]&&_0x2c55('0x42')==_0x47bfa0[_0x2c55('0x1e')]);if(_0x1d0b85[_0x2c55('0x10')]>0x1&&_0x2ec6bc[_0x2c55('0x14')][_0x2c55('0x2')](_0x226e78[_0x2c55('0x56')]))return!0x0;if(0x1==_0x1d0b85[_0x2c55('0x10')]&&(_0x226e78['start']['isEqual'](_0x2ec6bc[_0x2c55('0x14')])||_0x226e78['end'][_0x2c55('0x2')](_0x2ec6bc[_0x2c55('0x56')])))return!0x0;}if(0x3==_0x545068&&0x3==_0x1b9daa&&_0x226e78[_0x2c55('0x56')]['isBefore'](_0x2ec6bc[_0x2c55('0x56')])){const _0x3e7625=_0x226e78[_0x2c55('0x14')][_0x2c55('0x36')],_0x2f786e=_0x2ec6bc['start'][_0x2c55('0x53')];return _0x17fae1['isBlockImage'](_0x3e7625)&&_0x3e7625===_0x2f786e;}return!0x1;}function _0x8f121d(_0x1a10e2,_0x1f94a7){return _0xac846c(_0x1a10e2,_0x1f94a7)?[_0x1a10e2,_0x1f94a7]:_0xac846c(_0x1f94a7,_0x1a10e2)?[_0x1f94a7,_0x1a10e2]:null;}_0x33dd42['plugins'][_0x2c55('0x2c')]('ImageResize')&&(_0x20712b[_0x2c55('0x49')]('resizeImage',[],[_0x2c55('0x43')]),_0x20712b['_descriptionFactory']['registerAttributeLabel'](_0x2c55('0x43'),_0x59a6bc(_0x1b4588,'FORMAT_IMAGE_SIZE'))),_0x33dd42['plugins']['has'](_0x2c55('0x4f'))&&_0x20712b['_enableDefaultAttributesIntegration'](_0x2c55('0xf'),[],['alt']),_0x20712b[_0x2c55('0xe')][_0x2c55('0x9')](_0x553d4b=>{if(!!_0x2b0b62[_0x2c55('0xd')](({type:_0x146cf6,subType:_0x50bcbf})=>_0x553d4b['type']==_0x146cf6&&_0x553d4b[_0x2c55('0x1e')]==_0x50bcbf))return _0x553d4b[_0x2c55('0x62')]?{}:void 0x0;}),_0x20712b[_0x2c55('0xe')][_0x2c55('0x9')](_0x322046=>{if(_0x2c55('0x4')==_0x322046['type']||_0x2c55('0x31')==_0x322046[_0x2c55('0x20')]){const _0x101fff=_0x322046[_0x2c55('0xc')]();if(_0x101fff&&_0x101fff['is'](_0x2c55('0x0'),_0x2c55('0x1b')))return{'type':_0x2c55('0x4')==_0x322046['type']?_0x2c55('0x30'):_0x2c55('0x44'),'element':_0x101fff,'quantity':0x1};}}),_0x20712b['_descriptionFactory'][_0x2c55('0x9')](_0x4246a8=>_0x2c55('0x2d')==_0x4246a8['type']&&_0x2c55('0x42')==_0x4246a8[_0x2c55('0x1e')]?{'type':_0x2c55('0x28'),'content':_0x2c55('0x6')}:_0x2c55('0x2d')==_0x4246a8[_0x2c55('0x20')]&&_0x2c55('0xa')==_0x4246a8[_0x2c55('0x1e')]?{'type':_0x2c55('0x28'),'content':_0x2c55('0x38')}:void 0x0),_0x20712b[_0x2c55('0xe')][_0x2c55('0x9')](_0x14a969=>{if('attribute'!=_0x14a969[_0x2c55('0x20')])return;const {data:_0x3ad7ee}=_0x14a969;if(!_0x3ad7ee||'alt'!=_0x3ad7ee[_0x2c55('0x45')])return;const _0x54fc9a=_0x3ad7ee[_0x2c55('0x50')];return _0x54fc9a?{'type':'format','content':_0x59a6bc(_0x1b4588,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54fc9a+'\x22')}:{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x1b4588,_0x2c55('0x2f'))};}),this[_0x2c55('0x3d')]();}['_registerLegacyDescription'](){const _0x58fbd0=this[_0x2c55('0x41')],_0x246a7c=_0x58fbd0[_0x2c55('0x1')];_0x58fbd0['plugins'][_0x2c55('0x8')](_0x2c55('0x5b'))['_descriptionFactory']['registerDescriptionCallback'](_0x2b10b1=>{if(_0x2c55('0x2d')!=_0x2b10b1[_0x2c55('0x20')]&&_0x2c55('0x57')!=_0x2b10b1[_0x2c55('0x20')])return;const {data:_0x263f9d}=_0x2b10b1;if(_0x263f9d){if(_0x2c55('0xf')==_0x263f9d[_0x2c55('0x1f')]){const _0x589824=_0x263f9d[_0x2c55('0x51')][0x0]['newValue'];return _0x589824?{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,_0x2c55('0x39'),'\x22'+_0x589824+'\x22')}:{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,'*Remove\x20image\x20text\x20alternative*')};}if(_0x2c55('0x4a')==_0x263f9d[_0x2c55('0x1f')]){const _0x25c5a2=_0x263f9d[_0x2c55('0x51')][0x0][_0x2c55('0x3e')];return _0x25c5a2?{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,_0x2c55('0x27'),_0x25c5a2)}:{'type':_0x2c55('0x28'),'content':_0x59a6bc(_0x246a7c,_0x2c55('0x4b'))};}}});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/imagereplace
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for image replace feature.
|
|
11
11
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a20=['registerDescriptionCallback','key','formatBlock','formatInline','registerCustomCallback','*Replace\x20image\x20URL*','has','plugins','replaceImageSource','src','format','TrackChangesEditing','ImageEditing','getSuggestionCallback','accept','locale','editor','type','afterInit','attribute','_suggestionFactory','_handleLegacySuggestions','oldValue','get','_registerLegacyDescription','*Format:*\x20replace\x20image\x20URL','_descriptionFactory'];(function(_0x2d2c05,_0x1a209c){const _0x58076a=function(_0x8b1ddc){while(--_0x8b1ddc){_0x2d2c05['push'](_0x2d2c05['shift']());}};_0x58076a(++_0x1a209c);}(_0x1a20,0x121));const _0x5807=function(_0x2d2c05,_0x1a209c){_0x2d2c05=_0x2d2c05-0x0;let _0x58076a=_0x1a20[_0x2d2c05];return _0x58076a;};import{Plugin as _0x33555b}from'ckeditor5/src/core.js';import{getTranslation as _0x56b6cf}from'../utils/common-translations.js';export default class st extends _0x33555b{[_0x5807('0x1a')](){if(!this[_0x5807('0x18')]['plugins'][_0x5807('0xe')](_0x5807('0x14')))return;const _0x23e954=this['editor'][_0x5807('0x17')],_0x31cb78=this[_0x5807('0x18')][_0x5807('0xf')][_0x5807('0x4')](_0x5807('0x13'));_0x31cb78['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x31cb78[_0x5807('0x7')][_0x5807('0x8')](_0x466157=>{if(_0x5807('0x0')!=_0x466157['type'])return;const {data:_0x2573aa}=_0x466157;return _0x2573aa&&_0x5807('0x11')==_0x2573aa[_0x5807('0x9')]?_0x2573aa['newValue']&&_0x2573aa[_0x5807('0x3')]?{'type':_0x5807('0x12'),'content':_0x56b6cf(_0x23e954,_0x5807('0xd'))}:{'type':_0x5807('0x12'),'content':''}:void 0x0;}),this[_0x5807('0x2')]();}['_handleLegacySuggestions'](){const _0x4b650f=this['editor']['plugins'][_0x5807('0x4')](_0x5807('0x13'));_0x4b650f[_0x5807('0x1')][_0x5807('0xc')]('formatBlock',_0x5807('0x10'),_0x5807('0x16'),_0x4b650f[_0x5807('0x1')][_0x5807('0x15')](_0x5807('0xa'),null,'discard')),_0x4b650f[_0x5807('0x1')][_0x5807('0xc')](_0x5807('0xa'),_0x5807('0x10'),'discard',_0x4b650f[_0x5807('0x1')][_0x5807('0x15')](_0x5807('0xa'),null,_0x5807('0x16'))),this['_registerLegacyDescription']();}[_0x5807('0x5')](){const _0x306422=this[_0x5807('0x18')],_0x424467=_0x306422['locale'];_0x306422[_0x5807('0xf')][_0x5807('0x4')](_0x5807('0x13'))[_0x5807('0x7')][_0x5807('0x8')](_0x3c4580=>{if('formatBlock'!=_0x3c4580[_0x5807('0x19')]&&_0x5807('0xb')!=_0x3c4580['type'])return;const {data:_0x4d473b}=_0x3c4580;if(!_0x4d473b||'replaceImageSource'!=_0x4d473b['commandName'])return;return{'type':_0x5807('0x12'),'content':_0x56b6cf(_0x424467,_0x5807('0x6'))};});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/integrations/image
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* Provides track changes plugin integration for {@link module:image/image~Image image feature}.
|
|
11
11
|
*/
|