@ckeditor/ckeditor5-track-changes 39.0.1 → 40.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/LICENSE.md +6 -6
- package/README.md +14 -14
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- 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 -0
- package/src/integrations/aiassistant.js +23 -0
- 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 +23 -23
- package/src/integrations/imagereplace.js +1 -1
- 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 +18 -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 +276 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +163 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +244 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +75 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +468 -439
- 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
- 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
|
@@ -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/mediaembed
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesMediaEmbed 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/mediaembed
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:media-embed/mediaembed~MediaEmbed media embed feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesMediaEmbed extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ab=['enableCommand','media','showSuggestionHighlights','MediaEmbedEditing','options','high','data','plugins','afterInit','stop','attribute:url:media','get','ELEMENT_MEDIA','dataDowncast','conversion','registerElementLabel'];(function(_0x55fcc5,_0x16ab18){const _0x218212=function(_0x128c18){while(--_0x128c18){_0x55fcc5['push'](_0x55fcc5['shift']());}};_0x218212(++_0x16ab18);}(_0x16ab,0x1cd));const _0x2182=function(_0x55fcc5,_0x16ab18){_0x55fcc5=_0x55fcc5-0x0;let _0x218212=_0x16ab[_0x55fcc5];return _0x218212;};import{Plugin as _0x5702b7}from'ckeditor5/src/core';import{getTranslation as _0x17ea61}from'../utils/common-translations';export default class rt extends _0x5702b7{[_0x2182('0xb')](){const _0x272b5b=this['editor'];if(!_0x272b5b[_0x2182('0xa')]['has'](_0x2182('0x6')))return;const _0x171fcc=_0x272b5b['plugins'][_0x2182('0xe')]('TrackChangesEditing'),_0x13829c=_0x272b5b['locale'];_0x171fcc[_0x2182('0x3')]('mediaEmbed'),_0x171fcc['_descriptionFactory'][_0x2182('0x2')](_0x2182('0x4'),_0x158a52=>_0x17ea61(_0x13829c,_0x2182('0xf'),_0x158a52)),_0x272b5b[_0x2182('0x1')]['for'](_0x2182('0x0'))['elementToElement']({'model':_0x2182('0x4'),'view':(_0x38dc12,{writer:_0x31158e,options:_0x31c587})=>{if(_0x31c587[_0x2182('0x5')])return _0x31158e['createEmptyElement']('div');},'converterPriority':'high'}),_0x272b5b[_0x2182('0x9')]['downcastDispatcher']['on'](_0x2182('0xd'),(_0x191f52,_0x3ec261,_0x28ea3b)=>{_0x28ea3b[_0x2182('0x7')][_0x2182('0x5')]&&_0x191f52[_0x2182('0xc')]();},{'priority':_0x2182('0x8')});}}
|
|
@@ -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/mention
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for mention feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesMention 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/mention
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for mention feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesMention extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2773=['has','mention','editor','get','TrackChangesEditing','MentionEditing','plugins'];(function(_0x26c123,_0x2773cf){const _0x522a5c=function(_0x34c510){while(--_0x34c510){_0x26c123['push'](_0x26c123['shift']());}};_0x522a5c(++_0x2773cf);}(_0x2773,0x106));const _0x522a=function(_0x26c123,_0x2773cf){_0x26c123=_0x26c123-0x0;let _0x522a5c=_0x2773[_0x26c123];return _0x522a5c;};import{Plugin as _0x4b4e02}from'ckeditor5/src/core';export default class at extends _0x4b4e02{['afterInit'](){const _0x195332=this[_0x522a('0x6')];_0x195332[_0x522a('0x3')][_0x522a('0x4')](_0x522a('0x2'))&&_0x195332['plugins'][_0x522a('0x0')](_0x522a('0x1'))['enableCommand'](_0x522a('0x5'));}}
|
|
@@ -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/pagebreak
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for {@link module:page-break/pagebreak~PageBreak page break feature}.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesPageBreak 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/pagebreak
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for {@link module:page-break/pagebreak~PageBreak page break feature}.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesPageBreak extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a14=['enableCommand','editor','afterInit','get','locale','TrackChangesEditing','pageBreak','registerElementLabel','plugins'];(function(_0xafe4ff,_0x1a14ae){const _0xd34449=function(_0x23de4f){while(--_0x23de4f){_0xafe4ff['push'](_0xafe4ff['shift']());}};_0xd34449(++_0x1a14ae);}(_0x1a14,0x92));const _0xd344=function(_0xafe4ff,_0x1a14ae){_0xafe4ff=_0xafe4ff-0x0;let _0xd34449=_0x1a14[_0xafe4ff];return _0xd34449;};import{Plugin as _0x561149}from'ckeditor5/src/core';import{getTranslation as _0x32e5ca}from'../utils/common-translations';export default class ct extends _0x561149{[_0xd344('0x0')](){const _0x2a43af=this[_0xd344('0x8')];if(!_0x2a43af[_0xd344('0x6')]['has']('PageBreakEditing'))return;_0x2a43af[_0xd344('0x6')][_0xd344('0x1')](_0xd344('0x3'))[_0xd344('0x7')](_0xd344('0x4'));const _0x3469e3=_0x2a43af['plugins'][_0xd344('0x1')](_0xd344('0x3')),_0x436848=_0x2a43af[_0xd344('0x2')];_0x3469e3['_descriptionFactory'][_0xd344('0x5')](_0xd344('0x4'),_0x2493ff=>_0x32e5ca(_0x436848,'ELEMENT_PAGE_BREAK',_0x2493ff));}}
|
|
@@ -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/paragraph
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for paragraph feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesParagraph 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/paragraph
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for paragraph feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesParagraph extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x184f=['ck-suggestion-marker--active','mapper','document','filter','plugins','from','locale','toViewPosition','get','has','writer','TrackChangesEditing','parent','markerRange','enableCommand','bindElementToMarker','getFirstRange','change','schema','commandName','markBlockFormat','nodeAfter','end','markerName','ELEMENT_PARAGRAPH','insertParagraph','Paragraph','*Insert:*\x20%0','editor','_descriptionFactory','isTouching','getItemLabel','includes','addMarker:suggestion:insertion','model','paragraph','data','downcastDispatcher','showSuggestionHighlights','addClass','format','isLimit','registerElementLabel','name','registerDescriptionCallback','editing','getSelectedBlocks','blockName','consumable','checkChild','highest'];(function(_0x39507a,_0x184f68){const _0x3808e2=function(_0x59d191){while(--_0x59d191){_0x39507a['push'](_0x39507a['shift']());}};_0x3808e2(++_0x184f68);}(_0x184f,0x154));const _0x3808=function(_0x39507a,_0x184f68){_0x39507a=_0x39507a-0x0;let _0x3808e2=_0x184f[_0x39507a];return _0x3808e2;};import{Plugin as _0x2924c6}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x310c0b}from'./utils';import{getTranslation as _0x9b139b}from'../utils/common-translations';export default class ht extends _0x2924c6{['afterInit'](){const _0xbc58a0=this[_0x3808('0x2d')];if(!_0xbc58a0[_0x3808('0x15')][_0x3808('0x1a')](_0x3808('0x2b')))return;const _0xb77098=_0xbc58a0[_0x3808('0x17')],_0x3fc406=_0xbc58a0[_0x3808('0x15')][_0x3808('0x19')](_0x3808('0x1c'));_0x3fc406[_0x3808('0x2e')][_0x3808('0x8')](_0x3808('0x1'),_0x22b5a2=>_0x9b139b(_0xb77098,_0x3808('0x29'),_0x22b5a2)),_0x3fc406['enableCommand'](_0x3808('0x1'),(_0x44c3cc,_0xf89b92={})=>{const _0x187881=_0xbc58a0[_0x3808('0x0')][_0x3808('0x13')],_0x3b1971=_0xf89b92['selection']||_0x187881['selection'],_0x3944ef=Array[_0x3808('0x16')](_0x3b1971[_0x3808('0xc')]())[_0x3808('0x14')](_0x7b8395=>function(_0x4993b8,_0x25f4ea){return _0x25f4ea['checkChild'](_0x4993b8[_0x3808('0x1d')],_0x3808('0x1'))&&!_0x25f4ea['isObject'](_0x4993b8)&&_0x3808('0x1')!=_0x4993b8[_0x3808('0x9')];}(_0x7b8395,this['editor'][_0x3808('0x0')][_0x3808('0x23')]));_0xbc58a0[_0x3808('0x0')][_0x3808('0x22')](()=>{for(const _0x5aaaf8 of _0x3944ef)_0x3fc406[_0x3808('0x25')](_0x5aaaf8,{'commandName':_0x3808('0x1'),'commandParams':[],'formatGroupId':_0x3808('0xd')},_0x310c0b(_0x5aaaf8));});}),_0x3fc406[_0x3808('0x2e')][_0x3808('0xa')](_0x33e301=>{const {data:_0x152550}=_0x33e301;if(_0x152550&&_0x3808('0x1')==_0x152550[_0x3808('0x24')])return{'type':_0x3808('0x6'),'content':_0x9b139b(_0xb77098,'*Change\x20to:*\x20%0',_0x9b139b(_0xb77098,_0x3808('0x29')))};}),_0x3fc406[_0x3808('0x1f')](_0x3808('0x2a')),_0xbc58a0[_0x3808('0xb')][_0x3808('0x3')]['on']('addMarker:suggestion:insertion',ar(_0xbc58a0),{'priority':_0x3808('0x10')}),_0xbc58a0[_0x3808('0x2')]['downcastDispatcher']['on'](_0x3808('0x32'),(_0x2a37f5,_0x1f8e2b,_0x575e5f)=>{_0x575e5f['options'][_0x3808('0x4')]&&ar(_0xbc58a0,{'showActiveMarker':!0x1})(_0x2a37f5,_0x1f8e2b,_0x575e5f);},{'priority':_0x3808('0x10')});const _0x162f76=_0x3fc406[_0x3808('0x2e')];_0x162f76['registerDescriptionCallback'](_0x25de07=>{if('insertion'!==_0x25de07['type'])return;const {start:_0xc952d3,end:_0x160194}=_0x25de07[_0x3808('0x21')]();if(!_0xc952d3[_0x3808('0x2f')](_0x160194)||!_0xc952d3[_0x3808('0x26')])return;const _0x540d36=_0xbc58a0[_0x3808('0x0')]['schema'],_0x35bf6c=_0xc952d3[_0x3808('0x26')];return _0x540d36['isBlock'](_0x35bf6c)&&!_0x540d36[_0x3808('0x7')](_0x35bf6c)&&_0x540d36[_0x3808('0xf')](_0x35bf6c,'$text')?{'type':'insertion','content':_0x9b139b(_0xb77098,_0x3808('0x2c'),_0x162f76[_0x3808('0x30')](_0x35bf6c,0x1))}:void 0x0;});}}function ar(_0x14e542,{showActiveMarker:_0x243b36=!0x0}={}){return(_0x305275,_0x168978,_0x39940d)=>{const _0x5db57b=_0x14e542[_0x3808('0x15')]['get'](_0x3808('0x1c')),_0x11f00a=_0x168978[_0x3808('0x1e')]['start'],_0x216d1b=_0x168978[_0x3808('0x1e')][_0x3808('0x27')],_0x3cd5ed=_0x14e542[_0x3808('0x0')][_0x3808('0x23')];if(!_0x11f00a[_0x3808('0x2f')](_0x216d1b)||!_0x11f00a[_0x3808('0x26')])return;const _0x5a93a=_0x11f00a[_0x3808('0x26')];if(_0x3cd5ed['isBlock'](_0x5a93a)&&!_0x3cd5ed[_0x3808('0x7')](_0x5a93a)&&_0x3cd5ed[_0x3808('0xf')](_0x5a93a,'$text')){if(!_0x39940d[_0x3808('0xe')]['consume'](_0x168978[_0x3808('0x1e')],_0x305275[_0x3808('0x9')]))return;const _0xedb300=_0x39940d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5673e3=_0x39940d[_0x3808('0x12')][_0x3808('0x18')](_0x216d1b);_0x243b36&&_0x5db57b['activeMarkers'][_0x3808('0x31')](_0x168978['markerName'])&&_0x39940d[_0x3808('0x1b')][_0x3808('0x5')](_0x3808('0x11'),_0xedb300),_0x39940d[_0x3808('0x1b')]['insert'](_0x5673e3,_0xedb300),_0x39940d[_0x3808('0x12')][_0x3808('0x20')](_0xedb300,_0x168978[_0x3808('0x28')]);}};}
|
|
@@ -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/removeformat
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for remove format feature.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesRemoveFormat 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/removeformat
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for remove format feature.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesRemoveFormat extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc9c3=['_descriptionFactory','registerDescriptionCallback','markInlineFormat','model','isFormatting','TrackChangesEditing','has','plugins','*Remove\x20all\x20formatting*','get','isCollapsed','editor','getRanges','createRangeOn','schema','from','removeFormat','commandName','getAttributeProperties'];(function(_0x4bc184,_0xc9c34a){const _0x1f36fc=function(_0xbe7513){while(--_0xbe7513){_0x4bc184['push'](_0x4bc184['shift']());}};_0x1f36fc(++_0xc9c34a);}(_0xc9c3,0x1a2));const _0x1f36=function(_0x4bc184,_0xc9c34a){_0x4bc184=_0x4bc184-0x0;let _0x1f36fc=_0xc9c3[_0x4bc184];return _0x1f36fc;};import{Plugin as _0x24276f}from'ckeditor5/src/core';import{getTranslation as _0x5d4cfa}from'../utils/common-translations';export default class ut extends _0x24276f{['afterInit'](){const _0x19ff69=this[_0x1f36('0xb')];if(!_0x19ff69['plugins'][_0x1f36('0x6')]('RemoveFormatEditing'))return;const _0x5638f3=_0x19ff69[_0x1f36('0x7')][_0x1f36('0x9')](_0x1f36('0x5'));_0x5638f3['enableCommand'](_0x1f36('0x10'),_0x5f3731=>{const _0x31db09=_0x19ff69[_0x1f36('0x3')]['document']['selection'];_0x31db09[_0x1f36('0xa')]?_0x5f3731():_0x19ff69[_0x1f36('0x3')]['change'](()=>{const _0x4f1a43=Array[_0x1f36('0xf')](_0x31db09[_0x1f36('0xc')]());for(const _0x5c551d of _0x4f1a43)for(const _0x587f1b of _0x5c551d['getItems']())mo(_0x587f1b,_0x19ff69[_0x1f36('0x3')][_0x1f36('0xe')])&&_0x5638f3[_0x1f36('0x2')](_0x19ff69['model'][_0x1f36('0xd')](_0x587f1b),{'commandName':_0x1f36('0x10'),'commandParams':[]});});}),_0x5638f3[_0x1f36('0x0')][_0x1f36('0x1')](_0x3bcc37=>{const {data:_0x5e371d}=_0x3bcc37;if(_0x5e371d&&'removeFormat'==_0x5e371d[_0x1f36('0x11')])return{'type':'format','content':_0x5d4cfa(_0x19ff69['locale'],_0x1f36('0x8'))};});}}function mo(_0x38dfd0,_0x38169a){for(const [_0x44e462]of _0x38dfd0['getAttributes']()){const _0x2564fa=_0x38169a[_0x1f36('0x12')](_0x44e462);if(_0x2564fa&&_0x2564fa[_0x1f36('0x4')])return!0x0;}return!0x1;}
|
|
@@ -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/mention
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesRestrictedEditingMode 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/mention
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesRestrictedEditingMode extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43b5=['goToNextRestrictedEditingException','acceptAllSuggestions','plugins','discardAllSuggestions','acceptSelectedSuggestions','enableCommand','afterInit','goToPreviousRestrictedEditingException','discardSelectedSuggestions','RestrictedEditingModeEditing','editor','trackChanges','get'];(function(_0x2891eb,_0x43b525){const _0x3016ec=function(_0x727cd6){while(--_0x727cd6){_0x2891eb['push'](_0x2891eb['shift']());}};_0x3016ec(++_0x43b525);}(_0x43b5,0x10e));const _0x3016=function(_0x2891eb,_0x43b525){_0x2891eb=_0x2891eb-0x0;let _0x3016ec=_0x43b5[_0x2891eb];return _0x3016ec;};import{Plugin as _0x162a7d}from'ckeditor5/src/core';export default class ft extends _0x162a7d{[_0x3016('0x9')](){const _0x33b16e=this[_0x3016('0x0')];if(!_0x33b16e[_0x3016('0x5')]['has'](_0x3016('0xc')))return;const _0x40bdb5=_0x33b16e['plugins'][_0x3016('0x2')]('TrackChangesEditing');_0x40bdb5[_0x3016('0x8')](_0x3016('0xa')),_0x40bdb5[_0x3016('0x8')](_0x3016('0x3'));const _0x313095=_0x33b16e['plugins'][_0x3016('0x2')](_0x3016('0xc'));_0x313095[_0x3016('0x8')](_0x3016('0x1')),_0x313095[_0x3016('0x8')]('acceptSuggestion'),_0x313095[_0x3016('0x8')]('discardSuggestion'),_0x313095['enableCommand'](_0x3016('0x4')),_0x313095['enableCommand'](_0x3016('0x6')),_0x313095[_0x3016('0x8')](_0x3016('0x7')),_0x313095[_0x3016('0x8')](_0x3016('0xb'));}}
|
|
@@ -1,16 +1,16 @@
|
|
|
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/shiftentercommand
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
10
|
-
/**
|
|
11
|
-
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
14
|
-
static get requires(): readonly [typeof ShiftEnter];
|
|
15
|
-
init(): void;
|
|
16
|
-
}
|
|
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/shiftentercommand
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import { ShiftEnter } from 'ckeditor5/src/enter';
|
|
10
|
+
/**
|
|
11
|
+
* Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesShiftEnterCommand extends Plugin {
|
|
14
|
+
static get requires(): readonly [typeof ShiftEnter];
|
|
15
|
+
init(): void;
|
|
16
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31e6=['activeMarkers','addMarker:suggestion:deletion','_descriptionFactory','merge','get','split','ck-suggestion-marker-','mapper','TrackChangesEditing','init','ck-suggestion-marker--active','shiftEnter','createPositionBefore','writer','requires','consumable','options','test','span','addMarker:suggestion:insertion','showSuggestionHighlights','includes','editor','markerName','plugins','createUIElement','locale','markerRange','element','addClass','getItems','softBreak','registerElementLabel','editing','data','bindElementToMarker','downcastDispatcher','high'];(function(_0x298a80,_0x31e6e1){const _0x4fbcd8=function(_0x38bed6){while(--_0x38bed6){_0x298a80['push'](_0x298a80['shift']());}};_0x4fbcd8(++_0x31e6e1);}(_0x31e6,0x112));const _0x4fbc=function(_0x298a80,_0x31e6e1){_0x298a80=_0x298a80-0x0;let _0x4fbcd8=_0x31e6[_0x298a80];return _0x4fbcd8;};import{Plugin as _0x22b46c}from'ckeditor5/src/core';import{ShiftEnter as _0x3226a4}from'ckeditor5/src/enter';import{getTranslation as _0x2ed43d}from'../utils/common-translations';export default class lt extends _0x22b46c{static get[_0x4fbc('0x6')](){return[_0x3226a4];}[_0x4fbc('0x1')](){const _0x55c20a=this[_0x4fbc('0xe')],_0x3a394d=_0x55c20a['plugins'][_0x4fbc('0x22')]('TrackChangesEditing');_0x3a394d['enableCommand'](_0x4fbc('0x3')),_0x55c20a[_0x4fbc('0x19')][_0x4fbc('0x1c')]['on'](_0x4fbc('0xb'),re(_0x55c20a),{'priority':_0x4fbc('0x1d')}),_0x55c20a[_0x4fbc('0x19')][_0x4fbc('0x1c')]['on'](_0x4fbc('0x1f'),re(_0x55c20a),{'priority':'high'}),_0x55c20a[_0x4fbc('0x1a')][_0x4fbc('0x1c')]['on']('addMarker:suggestion',(_0x55d850,_0x4ff5fb,_0x13127d)=>{_0x13127d[_0x4fbc('0x8')][_0x4fbc('0xc')]&&re(_0x55c20a,{'showActiveMarker':!0x1})(_0x55d850,_0x4ff5fb,_0x13127d);}),_0x3a394d[_0x4fbc('0x20')][_0x4fbc('0x18')](_0x4fbc('0x17'),_0x774580=>_0x2ed43d(_0x55c20a[_0x4fbc('0x12')],'ELEMENT_LINE_BREAK',_0x774580));}}function re(_0x31d4ed,{showActiveMarker:_0x5e80f3=!0x0}={}){return(_0x139647,_0xdbe05f,_0x3705d6)=>{const _0x219947=_0x31d4ed[_0x4fbc('0x10')][_0x4fbc('0x22')](_0x4fbc('0x0'));if(!_0x3705d6[_0x4fbc('0x7')][_0x4fbc('0x9')](_0xdbe05f['markerRange'],_0x139647['name']))return;const _0x5357cb=_0x31d4ed['model'];for(const _0x201949 of _0xdbe05f[_0x4fbc('0x13')][_0x4fbc('0x16')]()){if(!_0x201949['is'](_0x4fbc('0x14'),_0x4fbc('0x17')))continue;const _0x2a6d03='deletion'==_0xdbe05f[_0x4fbc('0xf')][_0x4fbc('0x23')](':')[0x1]?_0x4fbc('0x21'):_0x4fbc('0x23'),_0x50a9d2=_0x3705d6[_0x4fbc('0x5')][_0x4fbc('0x11')](_0x4fbc('0xa'),{'class':_0x4fbc('0x24')+_0x2a6d03}),_0x346169=_0x3705d6['mapper']['toViewPosition'](_0x5357cb[_0x4fbc('0x4')](_0x201949));_0x5e80f3&&_0x219947[_0x4fbc('0x1e')][_0x4fbc('0xd')](_0xdbe05f[_0x4fbc('0xf')])&&_0x3705d6[_0x4fbc('0x5')][_0x4fbc('0x15')](_0x4fbc('0x2'),_0x50a9d2),_0x3705d6[_0x4fbc('0x5')]['insert'](_0x346169,_0x50a9d2),_0x3705d6[_0x4fbc('0x25')][_0x4fbc('0x1b')](_0x50a9d2,_0xdbe05f['markerName']);}};}
|
|
@@ -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/mention
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
11
|
-
*/
|
|
12
|
-
export default class TrackChangesStandardEditingMode 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/mention
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for standard editing mode feature from restricted editing package.
|
|
11
|
+
*/
|
|
12
|
+
export default class TrackChangesStandardEditingMode extends Plugin {
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
afterInit(): void;
|
|
17
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b46=['has','getRanges','selection','get','plugins','enableCommand','registerDescriptionCallback','commandParams','format','restrictedEditingException','TrackChangesEditing','isCollapsed','markInlineFormat','_descriptionFactory','locale','from','forceValue','document','commands','commandName','FORMAT_RESTRICTED_DISABLED','value','editor','change','afterInit'];(function(_0x52058c,_0x5b46d2){const _0x46ed43=function(_0x6558a8){while(--_0x6558a8){_0x52058c['push'](_0x52058c['shift']());}};_0x46ed43(++_0x5b46d2);}(_0x5b46,0x1bc));const _0x46ed=function(_0x52058c,_0x5b46d2){_0x52058c=_0x52058c-0x0;let _0x46ed43=_0x5b46[_0x52058c];return _0x46ed43;};import{Plugin as _0x3cd860}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x201e3c}from'./utils';import{getTranslation as _0x227da4}from'../utils/common-translations';export default class gt extends _0x3cd860{[_0x46ed('0x5')](){const _0x418439=this[_0x46ed('0x3')],_0x1dca01=_0x418439['model'],_0x146ee9=_0x418439[_0x46ed('0x14')];if(!_0x418439[_0x46ed('0xa')][_0x46ed('0x6')]('StandardEditingModeEditing'))return;const _0x292f61=_0x418439[_0x46ed('0xa')][_0x46ed('0x9')](_0x46ed('0x10')),_0x1119d0=_0x46ed('0xf'),_0x3fd49a=_0x418439[_0x46ed('0x18')][_0x46ed('0x9')](_0x1119d0);_0x292f61[_0x46ed('0xb')](_0x1119d0,(_0x4375ed,_0x17f68b={})=>{const _0x183399=_0x1dca01[_0x46ed('0x17')][_0x46ed('0x8')];if(_0x183399[_0x46ed('0x11')])return void _0x4375ed(_0x17f68b);const _0x3eb2f5=void 0x0!==_0x17f68b['forceValue']?_0x17f68b[_0x46ed('0x16')]:!_0x3fd49a[_0x46ed('0x2')];_0x1dca01[_0x46ed('0x4')](()=>{const _0x3d1907=Array[_0x46ed('0x15')](_0x183399[_0x46ed('0x7')]());for(const _0x1c4f86 of _0x3d1907){const _0x4068d4=_0x3eb2f5?[_0x1c4f86]:_0x201e3c(_0x1119d0,_0x1c4f86,_0x1dca01);for(const _0x2b53a7 of _0x4068d4)_0x292f61[_0x46ed('0x12')](_0x2b53a7,{'commandName':_0x1119d0,'commandParams':[{'forceValue':_0x3eb2f5}]});}});}),_0x292f61[_0x46ed('0x13')][_0x46ed('0xc')](_0x3302d9=>{const {data:_0x3423b8}=_0x3302d9;if(_0x3423b8&&_0x3423b8[_0x46ed('0x0')]==_0x1119d0)return _0x3423b8[_0x46ed('0xd')][0x0]['forceValue']?{'type':'format','content':_0x227da4(_0x146ee9,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x46ed('0xe'),'content':_0x227da4(_0x146ee9,_0x46ed('0x1'))};});}}
|
|
@@ -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/style
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
/**
|
|
10
|
-
* Provides track changes plugin integration for styles dropdown feature.
|
|
11
|
-
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
12
|
-
*/
|
|
13
|
-
export default class TrackChangesStylesDropdown extends Plugin {
|
|
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/style
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* Provides track changes plugin integration for styles dropdown feature.
|
|
11
|
+
* @todo Remove "any" casts after plugin has been rewritten to TS.
|
|
12
|
+
*/
|
|
13
|
+
export default class TrackChangesStylesDropdown extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
afterInit(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55bf=['style.definitions','styleName','getDefinitionsForView','commands','_getRangesWithClasses','add','getRanges','isBlock','classes','_getStyleDefinition','locale','inline','Style','document','getAncestors','markInlineFormat','block','has','push','getAttribute','element','_descriptionFactory','from','format','change','*Format:*\x20%0','get','registerDescriptionCallback','TrackChangesEditing','name','style','editor','createRangeOn','modelElements','forceValue','afterInit','isCollapsed','find','getItems','toLowerCase','includes','normalizeConfig','model','commandParams','getSelectedBlocks','plugins','DataSchema','config'];(function(_0x4792f3,_0x55bf00){const _0x2528a3=function(_0x49d065){while(--_0x49d065){_0x4792f3['push'](_0x4792f3['shift']());}};_0x2528a3(++_0x55bf00);}(_0x55bf,0x190));const _0x2528=function(_0x4792f3,_0x55bf00){_0x4792f3=_0x4792f3-0x0;let _0x2528a3=_0x55bf[_0x4792f3];return _0x2528a3;};import{Plugin as _0x5472a5}from'ckeditor5/src/core';import{getTranslation as _0x5a8586}from'../utils/common-translations';export default class mt extends _0x5472a5{[_0x2528('0x13')](){const _0x54cb8d=this[_0x2528('0xf')];if(!_0x54cb8d[_0x2528('0x1d')][_0x2528('0x1')](_0x2528('0x2c')))return;const _0x1003ac=_0x54cb8d[_0x2528('0x23')][_0x2528('0xa')](_0x2528('0xe')),_0x47961e=_0x54cb8d[_0x2528('0x1d')][_0x2528('0xa')](_0x2528('0xc')),_0x86445b=_0x54cb8d[_0x2528('0x2a')],_0x2c1784=_0x54cb8d[_0x2528('0x1d')]['get'](_0x2528('0x1e')),_0x5bad55=_0x54cb8d[_0x2528('0x1d')][_0x2528('0xa')]('StyleUtils')[_0x2528('0x19')](_0x2c1784,_0x54cb8d[_0x2528('0x1f')][_0x2528('0xa')](_0x2528('0x20')));_0x47961e['enableCommand'](_0x2528('0xe'),(_0x519bc2,{styleName:_0x51903f})=>{const _0x48f96e=_0x54cb8d[_0x2528('0x1a')][_0x2528('0x2d')]['selection'],_0x57ab4b=this[_0x2528('0x29')](_0x51903f,_0x5bad55);if(!_0x57ab4b)return;if(!_0x1003ac['enabledStyles'][_0x2528('0x18')](_0x51903f))return;if(_0x48f96e[_0x2528('0x14')]&&!_0x57ab4b[_0x2528('0x27')])return void _0x519bc2({'styleName':_0x51903f});const _0x3671f2=!_0x1003ac['value'][_0x2528('0x18')](_0x57ab4b[_0x2528('0xd')]);if(_0x57ab4b[_0x2528('0x27')]){const _0x25bd9e=function(_0x5f21f6,_0x51b3e9){const _0x505eff=new Set();for(const _0x33b7a1 of _0x5f21f6){const _0x5d6467=_0x33b7a1[_0x2528('0x2e')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2a2825 of _0x5d6467)if(_0x51b3e9['includes'](_0x2a2825['name'])){_0x505eff[_0x2528('0x25')](_0x2a2825);break;}}return _0x505eff;}(_0x48f96e[_0x2528('0x1c')](),_0x57ab4b[_0x2528('0x11')]);_0x54cb8d[_0x2528('0x1a')][_0x2528('0x8')](()=>{for(const _0x5e519f of _0x25bd9e)_0x47961e['markBlockFormat'](_0x5e519f,{'commandName':'style','commandParams':[{'styleName':_0x51903f,'forceValue':_0x3671f2}],'formatGroupId':'style:'+_0x51903f});});}else{let _0x2b34e2=Array[_0x2528('0x6')](_0x48f96e[_0x2528('0x26')]());if(!_0x3671f2){const _0x360b57=Array[_0x2528('0x6')](_0x2c1784[_0x2528('0x22')](_0x57ab4b[_0x2528('0x4')],!0x1))[0x0][_0x2528('0x1a')],_0x19579e=[];for(const _0x1a8a63 of _0x2b34e2){const _0x1829a5=this[_0x2528('0x24')](_0x54cb8d[_0x2528('0x1a')],_0x1a8a63,_0x57ab4b[_0x2528('0x28')],_0x360b57);_0x19579e[_0x2528('0x2')](..._0x1829a5);}_0x2b34e2=_0x19579e;}_0x54cb8d['model'][_0x2528('0x8')](()=>{for(const _0x48e4d7 of _0x2b34e2)_0x47961e[_0x2528('0x2f')](_0x48e4d7,{'commandName':'style','commandParams':[{'styleName':_0x51903f,'forceValue':_0x3671f2}]});});}}),_0x47961e[_0x2528('0x5')][_0x2528('0xb')](_0x390839=>{const {data:_0x574f90}=_0x390839;if(_0x574f90&&_0x2528('0xe')===_0x574f90['commandName'])return _0x574f90['commandParams'][0x0][_0x2528('0x12')]?{'type':'format','content':_0x5a8586(_0x86445b,_0x2528('0x9'),_0x574f90[_0x2528('0x1b')][0x0][_0x2528('0x21')][_0x2528('0x17')]())}:{'type':_0x2528('0x7'),'content':_0x5a8586(_0x86445b,'*Remove\x20format:*\x20%0',_0x574f90['commandParams'][0x0][_0x2528('0x21')][_0x2528('0x17')]())};});}[_0x2528('0x29')](_0x5215ee,_0x286606){let _0x338a59=_0x286606[_0x2528('0x0')][_0x2528('0x15')](_0x207848=>_0x207848['name']===_0x5215ee);return _0x338a59||(_0x338a59=_0x286606[_0x2528('0x2b')]['find'](_0x2907d7=>_0x2907d7['name']===_0x5215ee)),_0x338a59;}[_0x2528('0x24')](_0x4544f6,_0x228b00,_0x181cf8,_0x6d283d){const _0x3de029=[];for(const _0x596803 of _0x228b00[_0x2528('0x16')]()){const _0x2c4c1f=_0x596803[_0x2528('0x3')](_0x6d283d);_0x2c4c1f&&(_0x181cf8['every'](_0x2c18e1=>_0x2c4c1f['classes'][_0x2528('0x18')](_0x2c18e1))&&_0x3de029[_0x2528('0x2')](_0x4544f6[_0x2528('0x10')](_0x596803)));}return _0x3de029;}}
|