@ckeditor/ckeditor5-track-changes 29.2.0 → 32.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.
Files changed (85) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/contexts.json +8 -7
  4. package/lang/translations/cs.po +27 -23
  5. package/lang/translations/da.po +387 -0
  6. package/lang/translations/de.po +28 -24
  7. package/lang/translations/en-au.po +28 -24
  8. package/lang/translations/en.po +28 -24
  9. package/lang/translations/es.po +27 -23
  10. package/lang/translations/et.po +27 -23
  11. package/lang/translations/fr.po +28 -24
  12. package/lang/translations/gl.po +28 -24
  13. package/lang/translations/hi.po +27 -23
  14. package/lang/translations/hr.po +27 -23
  15. package/lang/translations/it.po +28 -24
  16. package/lang/translations/nl.po +27 -23
  17. package/lang/translations/pl.po +27 -23
  18. package/lang/translations/pt-br.po +49 -45
  19. package/lang/translations/sk.po +27 -23
  20. package/lang/translations/sr-latn.po +28 -24
  21. package/lang/translations/sr.po +28 -24
  22. package/lang/translations/tk.po +27 -23
  23. package/lang/translations/tr.po +27 -23
  24. package/lang/translations/zh-cn.po +28 -24
  25. package/lang/translations/zh.po +370 -0
  26. package/package.json +7 -7
  27. package/src/commands/acceptallsuggestionscommand.js +2 -2
  28. package/src/commands/acceptselectedsuggestionscommand.js +2 -2
  29. package/src/commands/acceptsuggestioncommand.js +2 -2
  30. package/src/commands/discardallsuggestionscommand.js +2 -2
  31. package/src/commands/discardselectedsuggestionscommand.js +2 -2
  32. package/src/commands/discardsuggestioncommand.js +2 -2
  33. package/src/commands/trackchangescommand.js +2 -2
  34. package/src/integrations/alignment.js +2 -2
  35. package/src/integrations/basicstyles.js +2 -2
  36. package/src/integrations/blockquote.js +2 -2
  37. package/src/integrations/codeblock.js +2 -2
  38. package/src/integrations/comments.js +2 -2
  39. package/src/integrations/deletecommand.js +2 -2
  40. package/src/integrations/entercommand.js +2 -2
  41. package/src/integrations/font.js +2 -2
  42. package/src/integrations/heading.js +2 -2
  43. package/src/integrations/highlight.js +2 -2
  44. package/src/integrations/horizontalline.js +2 -2
  45. package/src/integrations/image.js +2 -2
  46. package/src/integrations/indent.js +2 -2
  47. package/src/integrations/inputcommand.js +2 -2
  48. package/src/integrations/link.js +2 -2
  49. package/src/integrations/list.js +2 -2
  50. package/src/integrations/mediaembed.js +2 -2
  51. package/src/integrations/mention.js +2 -2
  52. package/src/integrations/pagebreak.js +2 -2
  53. package/src/integrations/paragraph.js +2 -2
  54. package/src/integrations/removeformat.js +2 -2
  55. package/src/integrations/restrictededitingmode.js +2 -2
  56. package/src/integrations/shiftentercommand.js +2 -2
  57. package/src/integrations/standardeditingmode.js +2 -2
  58. package/src/integrations/table.js +2 -2
  59. package/src/integrations/tableclipboard.js +2 -2
  60. package/src/integrations/tableheadings.js +2 -2
  61. package/src/integrations/tablemergesplit.js +2 -2
  62. package/src/integrations/title.js +2 -2
  63. package/src/integrations/undo.js +2 -2
  64. package/src/integrations/utils.js +2 -2
  65. package/src/suggestion.js +2 -2
  66. package/src/suggestiondescriptionfactory.js +2 -2
  67. package/src/trackchanges.js +2 -2
  68. package/src/trackchangesdata.js +2 -2
  69. package/src/trackchangesediting.js +2 -2
  70. package/src/trackchangesui.js +2 -2
  71. package/src/ui/suggestioncontroller.js +2 -2
  72. package/src/ui/view/basesuggestionthreadview.js +2 -2
  73. package/src/ui/view/suggestionthreadview.js +2 -2
  74. package/src/utils/getselectedsuggestions.js +2 -2
  75. package/src/utils/hashobject.js +2 -2
  76. package/src/utils/normalizedescription.js +2 -2
  77. package/src/utils/sortsuggestions.js +2 -2
  78. package/theme/icons/track-changes-accept.svg +1 -1
  79. package/theme/icons/track-changes-discard.svg +1 -1
  80. package/theme/icons/track-changes.svg +1 -1
  81. package/theme/suggestion.css +10 -0
  82. package/theme/suggestionmarker.css +1 -1
  83. package/src/integrations/exportpdf.js +0 -23
  84. package/src/integrations/exportword.js +0 -23
  85. package/src/integrations/selectall.js +0 -23
@@ -0,0 +1,370 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Chinese (Taiwan) (https://www.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
16
+ "Language: zh_TW\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "A suggestion for changing an item to the provided one."
20
+ msgid "*Change to:* %0"
21
+ msgstr "*更改成:*%0"
22
+
23
+ msgctxt "A suggestion for checking a to-do list item."
24
+ msgid "*Check item*"
25
+ msgstr "*勾選項目*"
26
+
27
+ msgctxt "A suggestion for setting inline formatting."
28
+ msgid "*Format:* %0"
29
+ msgstr "*格式:*%0"
30
+
31
+ msgctxt "A suggestion for indenting an item."
32
+ msgid "*Indent:* %0"
33
+ msgstr "*縮排:*%0"
34
+
35
+ msgctxt "A suggestion for inserting an item."
36
+ msgid "*Insert:* %0"
37
+ msgstr "*插入:*%0"
38
+
39
+ msgctxt "A suggestion for merging cells."
40
+ msgid "*Merge cells*"
41
+ msgstr "*合併儲存格*"
42
+
43
+ msgctxt "A suggestion for merging items."
44
+ msgid "*Merge:* %0"
45
+ msgstr "*合併:*%0"
46
+
47
+ msgctxt "A suggestion for outdenting an item."
48
+ msgid "*Outdent:* %0"
49
+ msgstr "*凸排:*%0"
50
+
51
+ msgctxt "A suggestion for removing all formatting."
52
+ msgid "*Remove all formatting*"
53
+ msgstr "*清除格式設定*"
54
+
55
+ msgctxt "A suggestion for removing an inline format."
56
+ msgid "*Remove format:* %0"
57
+ msgstr "*移除格式:*%0"
58
+
59
+ msgctxt "A suggestion for removing the highlight."
60
+ msgid "*Remove highlight*"
61
+ msgstr ""
62
+
63
+ msgctxt "A suggestion for removing image text alternative."
64
+ msgid "*Remove image text alternative*"
65
+ msgstr "*移除圖片替代文字*"
66
+
67
+ msgctxt "A suggestion for removing the link."
68
+ msgid "*Remove link*"
69
+ msgstr "*移除連結*"
70
+
71
+ msgctxt "A suggestion for removing an item."
72
+ msgid "*Remove:* %0"
73
+ msgstr "*移除:*%0"
74
+
75
+ msgctxt "A suggestion for replacing table cells (table pasting)."
76
+ msgid "*Replace table cells*"
77
+ msgstr "*取代儲存格*"
78
+
79
+ msgctxt "A suggestion for resetting the font background color."
80
+ msgid "*Reset font background color*"
81
+ msgstr "*重設文字背景顏色*"
82
+
83
+ msgctxt "A suggestion for resetting the font color."
84
+ msgid "*Reset font color*"
85
+ msgstr "*重設文字顏色*"
86
+
87
+ msgctxt "A suggestion for resetting the font family."
88
+ msgid "*Reset font family*"
89
+ msgstr "*重設字型*"
90
+
91
+ msgctxt "A suggestion for resetting the font size."
92
+ msgid "*Reset font size*"
93
+ msgstr "*重設字體大小*"
94
+
95
+ msgctxt "A suggestion for resetting image width."
96
+ msgid "*Reset image width*"
97
+ msgstr "*重設圖片寬度*"
98
+
99
+ msgctxt "A suggestion for setting the font background color to %0."
100
+ msgid "*Set font background color:* %0"
101
+ msgstr "*設定文字背景顏色:*%0"
102
+
103
+ msgctxt "A suggestion for setting the font color to %0."
104
+ msgid "*Set font color:* %0"
105
+ msgstr ""
106
+
107
+ msgctxt "A suggestion for setting the font family to %0."
108
+ msgid "*Set font family:* %0"
109
+ msgstr ""
110
+
111
+ msgctxt "A suggestion for setting the font size to %0."
112
+ msgid "*Set font size:* %0"
113
+ msgstr ""
114
+
115
+ msgctxt "A suggestion for highlighting text."
116
+ msgid "*Set highlight:* %0"
117
+ msgstr ""
118
+
119
+ msgctxt "A suggestion for setting image text alternative to %0."
120
+ msgid "*Set image text alternative:* %0"
121
+ msgstr ""
122
+
123
+ msgctxt "A suggestion for setting the image width to %0."
124
+ msgid "*Set image width:* %0"
125
+ msgstr ""
126
+
127
+ msgctxt "A suggestion for setting the link URL."
128
+ msgid "*Set link:* %0"
129
+ msgstr ""
130
+
131
+ msgctxt "A suggestion for splitting cells horizontally."
132
+ msgid "*Split cell:* horizontally"
133
+ msgstr ""
134
+
135
+ msgctxt "A suggestion for splitting cells vertically."
136
+ msgid "*Split cell:* vertically"
137
+ msgstr ""
138
+
139
+ msgctxt "A suggestion for splitting the item."
140
+ msgid "*Split:* %0"
141
+ msgstr ""
142
+
143
+ msgctxt "A suggestion for unchecking a to-do list item."
144
+ msgid "*Uncheck item*"
145
+ msgstr ""
146
+
147
+ msgctxt "The label for the button which accepts all selected suggestions."
148
+ msgid "Accept all selected suggestions"
149
+ msgstr ""
150
+
151
+ msgctxt "The label for the button which accepts all suggestions."
152
+ msgid "Accept all suggestions"
153
+ msgstr ""
154
+
155
+ msgctxt "The label for the accept suggestion button."
156
+ msgid "Accept suggestion"
157
+ msgstr ""
158
+
159
+ msgctxt "The label for the button which discards all selected suggestions."
160
+ msgid "Discard all selected suggestions"
161
+ msgstr ""
162
+
163
+ msgctxt "The label for the button which discards all suggestions."
164
+ msgid "Discard all suggestions"
165
+ msgstr ""
166
+
167
+ msgctxt "The label for the discard suggestion button."
168
+ msgid "Discard suggestion"
169
+ msgstr ""
170
+
171
+ msgctxt "The block quote element name displayed in the suggestion."
172
+ msgid "ELEMENT_BLOCK_QUOTE"
173
+ msgstr ""
174
+
175
+ msgctxt "The bulleted list element name displayed in the suggestion."
176
+ msgid "ELEMENT_BULLETED_LIST"
177
+ msgstr ""
178
+
179
+ msgctxt "The caption element name displayed in the suggestion."
180
+ msgid "ELEMENT_CAPTION"
181
+ msgstr ""
182
+
183
+ msgctxt "The code block element name displayed in the suggestion."
184
+ msgid "ELEMENT_CODE_BLOCK"
185
+ msgid_plural "%0 code blocks"
186
+ msgstr[0] ""
187
+
188
+ msgctxt "The heading element name displayed in the suggestion."
189
+ msgid "ELEMENT_HEADING"
190
+ msgid_plural "%0 headings (level %1)"
191
+ msgstr[0] ""
192
+
193
+ msgctxt "The heading element name displayed in the suggestion with a custom title."
194
+ msgid "ELEMENT_HEADING_CUSTOM"
195
+ msgid_plural "%0 headings (%1)"
196
+ msgstr[0] ""
197
+
198
+ msgctxt "The horizontal line element name displayed in the suggestion."
199
+ msgid "ELEMENT_HORIZONTAL_LINE"
200
+ msgid_plural "%0 horizontal lines"
201
+ msgstr[0] ""
202
+
203
+ msgctxt "The image element name displayed in the suggestion."
204
+ msgid "ELEMENT_IMAGE"
205
+ msgid_plural "%0 images"
206
+ msgstr[0] ""
207
+
208
+ msgctxt "The inline image element name displayed in the suggestion."
209
+ msgid "ELEMENT_INLINE_IMAGE"
210
+ msgid_plural "%0 images"
211
+ msgstr[0] ""
212
+
213
+ msgctxt "The line break element name displayed in the suggestion."
214
+ msgid "ELEMENT_LINE_BREAK"
215
+ msgid_plural "%0 line breaks"
216
+ msgstr[0] ""
217
+
218
+ msgctxt "The list item element name displayed in the suggestion."
219
+ msgid "ELEMENT_LIST_ITEM"
220
+ msgid_plural "%0 list items"
221
+ msgstr[0] ""
222
+
223
+ msgctxt "The media element name displayed in the suggestion."
224
+ msgid "ELEMENT_MEDIA"
225
+ msgid_plural "%0 media items"
226
+ msgstr[0] ""
227
+
228
+ msgctxt "The numbered list element name displayed in the suggestion."
229
+ msgid "ELEMENT_NUMBERED_LIST"
230
+ msgstr ""
231
+
232
+ msgctxt "The page break element name displayed in the suggestion."
233
+ msgid "ELEMENT_PAGE_BREAK"
234
+ msgid_plural "%0 page breaks"
235
+ msgstr[0] ""
236
+
237
+ msgctxt "The paragraph element name displayed in the suggestion."
238
+ msgid "ELEMENT_PARAGRAPH"
239
+ msgid_plural "%0 paragraphs"
240
+ msgstr[0] ""
241
+
242
+ msgctxt "The space element name displayed in the suggestion."
243
+ msgid "ELEMENT_SPACE"
244
+ msgid_plural "%0 spaces"
245
+ msgstr[0] ""
246
+
247
+ msgctxt "The table element name displayed in the suggestion."
248
+ msgid "ELEMENT_TABLE"
249
+ msgid_plural "%0 tables"
250
+ msgstr[0] ""
251
+
252
+ msgctxt "The table column element name displayed in the suggestion."
253
+ msgid "ELEMENT_TABLE_COLUMN"
254
+ msgid_plural "%0 table columns"
255
+ msgstr[0] ""
256
+
257
+ msgctxt "The table column with text element name displayed in the suggestion."
258
+ msgid "ELEMENT_TABLE_COLUMN_WITH_TEXT"
259
+ msgid_plural "%0 table columns *with text* %1"
260
+ msgstr[0] ""
261
+
262
+ msgctxt "The table row element name displayed in the suggestion."
263
+ msgid "ELEMENT_TABLE_ROW"
264
+ msgid_plural "%0 table rows"
265
+ msgstr[0] ""
266
+
267
+ msgctxt "The table row with text element name displayed in the suggestion."
268
+ msgid "ELEMENT_TABLE_ROW_WITH_TEXT"
269
+ msgid_plural "%0 table rows *with text* %1"
270
+ msgstr[0] ""
271
+
272
+ msgctxt "The table with text element name displayed in the suggestion."
273
+ msgid "ELEMENT_TABLE_WITH_TEXT"
274
+ msgstr ""
275
+
276
+ msgctxt "The title element name displayed in the suggestion."
277
+ msgid "ELEMENT_TITLE"
278
+ msgstr ""
279
+
280
+ msgctxt "The to-do list element name displayed in the suggestion."
281
+ msgid "ELEMENT_TODO_LIST"
282
+ msgstr ""
283
+
284
+ msgctxt "The align to center format name displayed in a format suggestion."
285
+ msgid "FORMAT_ALIGN_TO_CENTER"
286
+ msgstr ""
287
+
288
+ msgctxt "The align to left format name displayed in a format suggestion."
289
+ msgid "FORMAT_ALIGN_TO_LEFT"
290
+ msgstr ""
291
+
292
+ msgctxt "The align to right format name displayed in a format suggestion."
293
+ msgid "FORMAT_ALIGN_TO_RIGHT"
294
+ msgstr ""
295
+
296
+ msgctxt "The bold format name displayed in a format suggestion."
297
+ msgid "FORMAT_BOLD"
298
+ msgstr ""
299
+
300
+ msgctxt "The code format name displayed in a format suggestion."
301
+ msgid "FORMAT_CODE"
302
+ msgstr ""
303
+
304
+ msgctxt "The header column format name displayed in a format suggestion."
305
+ msgid "FORMAT_HEADER_COLUMN"
306
+ msgstr ""
307
+
308
+ msgctxt "The header row format name displayed in a format suggestion."
309
+ msgid "FORMAT_HEADER_ROW"
310
+ msgstr ""
311
+
312
+ msgctxt "The highlight format name displayed in a format suggestion."
313
+ msgid "FORMAT_HIGHLIGHT"
314
+ msgstr ""
315
+
316
+ msgctxt "The italic format name displayed in a format suggestion."
317
+ msgid "FORMAT_ITALIC"
318
+ msgstr ""
319
+
320
+ msgctxt "The justify text format name displayed in a format suggestion."
321
+ msgid "FORMAT_JUSTIFY_TEXT"
322
+ msgstr ""
323
+
324
+ msgctxt "The regular column format name displayed in a format suggestion."
325
+ msgid "FORMAT_REGULAR_COLUMN"
326
+ msgstr ""
327
+
328
+ msgctxt "The regular row format name displayed in a format suggestion."
329
+ msgid "FORMAT_REGULAR_ROW"
330
+ msgstr ""
331
+
332
+ msgctxt "The label for area disabled in restricted editing area in a format suggestion."
333
+ msgid "FORMAT_RESTRICTED_DISABLED"
334
+ msgstr ""
335
+
336
+ msgctxt "The label for area enabled in restricted editing area in a format suggestion."
337
+ msgid "FORMAT_RESTRICTED_ENABLED"
338
+ msgstr ""
339
+
340
+ msgctxt "The side image format name displayed in a format suggestion."
341
+ msgid "FORMAT_SIDE_IMAGE"
342
+ msgstr ""
343
+
344
+ msgctxt "The strikethrough format name displayed in a format suggestion."
345
+ msgid "FORMAT_STRIKETHROUGH"
346
+ msgstr ""
347
+
348
+ msgctxt "The subscript format name displayed in a format suggestion."
349
+ msgid "FORMAT_SUBSCRIPT"
350
+ msgstr ""
351
+
352
+ msgctxt "The superscript format name displayed in a format suggestion."
353
+ msgid "FORMAT_SUPERSCRIPT"
354
+ msgstr ""
355
+
356
+ msgctxt "The underline format name displayed in a format suggestion."
357
+ msgid "FORMAT_UNDERLINE"
358
+ msgstr ""
359
+
360
+ msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
361
+ msgid "PENDING_ACTION_SUGGESTION"
362
+ msgstr ""
363
+
364
+ msgctxt "A suggestion for replacing one text with another."
365
+ msgid "REPLACE_TEXT"
366
+ msgstr ""
367
+
368
+ msgctxt "The label for the dropdown containing some options related to track changes."
369
+ msgid "Track changes"
370
+ msgstr ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "29.2.0",
3
+ "version": "32.0.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,12 +26,12 @@
26
26
  "framework"
27
27
  ],
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-collaboration-core": "^29.2.0",
30
- "@ckeditor/ckeditor5-comments": "^29.2.0",
31
- "@ckeditor/ckeditor5-font": "^29.2.0",
32
- "@ckeditor/ckeditor5-image": "^29.2.0",
33
- "@ckeditor/ckeditor5-table": "^29.2.0",
34
- "ckeditor5": "^29.2.0",
29
+ "@ckeditor/ckeditor5-collaboration-core": "^32.0.0",
30
+ "@ckeditor/ckeditor5-comments": "^32.0.0",
31
+ "@ckeditor/ckeditor5-font": "^32.0.0",
32
+ "@ckeditor/ckeditor5-image": "^32.0.0",
33
+ "@ckeditor/ckeditor5-table": "^32.0.0",
34
+ "ckeditor5": "^32.0.0",
35
35
  "lodash-es": "^4.17.11"
36
36
  }
37
37
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x4f71=['refresh','isInContent','change','some','_suggestions','from','model','execute','isEnabled','_acceptSuggestionCommand'];(function(_0x57f945,_0x4f71df){const _0x46bc8a=function(_0x3c5ce1){while(--_0x3c5ce1){_0x57f945['push'](_0x57f945['shift']());}};_0x46bc8a(++_0x4f71df);}(_0x4f71,0x1d5));const _0x46bc=function(_0x57f945,_0x4f71df){_0x57f945=_0x57f945-0x0;let _0x46bc8a=_0x4f71[_0x57f945];return _0x46bc8a;};import{Command as _0x5f01be}from'ckeditor5/src/core';import _0x204ce3 from'../utils/sortsuggestions';export default class R extends _0x5f01be{constructor(_0x4c05ac,_0x566522,_0x2a01ff){super(_0x4c05ac),this[_0x46bc('0x0')]=_0x566522,this[_0x46bc('0x5')]=_0x2a01ff,this['refresh']();}[_0x46bc('0x1')](){const _0x40d1cb=this['_acceptSuggestionCommand'];this[_0x46bc('0x9')]=_0x40d1cb[_0x46bc('0x9')]&&Array[_0x46bc('0x6')](this[_0x46bc('0x5')]['values']())[_0x46bc('0x4')](_0x3331fb=>_0x3331fb[_0x46bc('0x2')]);}[_0x46bc('0x8')](){this['editor'][_0x46bc('0x7')][_0x46bc('0x3')](()=>{const _0x43c102=_0x204ce3(Array['from'](this[_0x46bc('0x5')]['values']()));for(const _0x5aaec2 of _0x43c102)_0x5aaec2[_0x46bc('0x2')]&&this[_0x46bc('0x0')]['execute'](_0x5aaec2['id']);});}}
23
+ const _0x2efe=['isEnabled','_acceptSuggestionCommand','change','some','_suggestions','from','values','isInContent','editor','refresh'];(function(_0x2d472e,_0x2efebb){const _0xa6cc9d=function(_0x38ab81){while(--_0x38ab81){_0x2d472e['push'](_0x2d472e['shift']());}};_0xa6cc9d(++_0x2efebb);}(_0x2efe,0x122));const _0xa6cc=function(_0x2d472e,_0x2efebb){_0x2d472e=_0x2d472e-0x0;let _0xa6cc9d=_0x2efe[_0x2d472e];return _0xa6cc9d;};import{Command as _0x1322e4}from'ckeditor5/src/core';import _0x11fffb from'../utils/sortsuggestions';export default class R extends _0x1322e4{constructor(_0x327504,_0x5498da,_0x599624){super(_0x327504),this[_0xa6cc('0x1')]=_0x5498da,this[_0xa6cc('0x4')]=_0x599624,this[_0xa6cc('0x9')]();}['refresh'](){const _0x79a28f=this[_0xa6cc('0x1')];this[_0xa6cc('0x0')]=_0x79a28f[_0xa6cc('0x0')]&&Array[_0xa6cc('0x5')](this[_0xa6cc('0x4')][_0xa6cc('0x6')]())[_0xa6cc('0x3')](_0x1a91bf=>_0x1a91bf[_0xa6cc('0x7')]);}['execute'](){this[_0xa6cc('0x8')]['model'][_0xa6cc('0x2')](()=>{const _0x1ba002=_0x11fffb(Array[_0xa6cc('0x5')](this[_0xa6cc('0x4')][_0xa6cc('0x6')]()));for(const _0x33cfa3 of _0x1ba002)_0x33cfa3[_0xa6cc('0x7')]&&this[_0xa6cc('0x1')]['execute'](_0x33cfa3['id']);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x1176=['_suggestions','refresh','_selectedSuggestions','editor','_acceptSuggestionCommand','model','document','values','from','isEnabled','selection','size','execute'];(function(_0x14a48a,_0x117611){const _0x54bbaa=function(_0x34703c){while(--_0x34703c){_0x14a48a['push'](_0x14a48a['shift']());}};_0x54bbaa(++_0x117611);}(_0x1176,0xba));const _0x54bb=function(_0x14a48a,_0x117611){_0x14a48a=_0x14a48a-0x0;let _0x54bbaa=_0x1176[_0x14a48a];return _0x54bbaa;};import{Command as _0x3de3a1}from'ckeditor5/src/core';import _0x2877db from'../utils/sortsuggestions';import _0x2c34ac from'../utils/getselectedsuggestions';export default class x extends _0x3de3a1{constructor(_0xc8b82d,_0x535f7e,_0x47db10){super(_0xc8b82d),this[_0x54bb('0x0')]=_0x535f7e,this['_suggestions']=_0x47db10,this[_0x54bb('0xb')]=new Set(),this[_0x54bb('0xa')]();}[_0x54bb('0xa')](){const _0x10f092=this[_0x54bb('0x0')],_0x122b41=this[_0x54bb('0xc')][_0x54bb('0x1')][_0x54bb('0x2')][_0x54bb('0x6')],_0x309de7=Array[_0x54bb('0x4')](this[_0x54bb('0x9')][_0x54bb('0x3')]());this[_0x54bb('0xb')]=_0x2c34ac(_0x122b41,_0x309de7),this[_0x54bb('0x5')]=_0x10f092[_0x54bb('0x5')]&&!!this[_0x54bb('0xb')][_0x54bb('0x7')];}[_0x54bb('0x8')](){this[_0x54bb('0xc')][_0x54bb('0x1')]['change'](()=>{const _0x3bbf3c=_0x2877db(Array['from'](this[_0x54bb('0xb')]));for(const _0x237624 of _0x3bbf3c)this[_0x54bb('0x0')][_0x54bb('0x8')](_0x237624['id']);});}}
23
+ const _0x4dd8=['refresh','from','_selectedSuggestions','selection','_acceptSuggestionCommand','_suggestions','document','change','size','editor','execute','model'];(function(_0x4d8d3a,_0x4dd8e3){const _0x3a2ba3=function(_0x3ded0a){while(--_0x3ded0a){_0x4d8d3a['push'](_0x4d8d3a['shift']());}};_0x3a2ba3(++_0x4dd8e3);}(_0x4dd8,0x1aa));const _0x3a2b=function(_0x4d8d3a,_0x4dd8e3){_0x4d8d3a=_0x4d8d3a-0x0;let _0x3a2ba3=_0x4dd8[_0x4d8d3a];return _0x3a2ba3;};import{Command as _0x5a630a}from'ckeditor5/src/core';import _0x168cec from'../utils/sortsuggestions';import _0x5511b3 from'../utils/getselectedsuggestions';export default class E extends _0x5a630a{constructor(_0x525409,_0x15fe99,_0x295888){super(_0x525409),this[_0x3a2b('0xa')]=_0x15fe99,this[_0x3a2b('0xb')]=_0x295888,this[_0x3a2b('0x8')]=new Set(),this[_0x3a2b('0x6')]();}[_0x3a2b('0x6')](){const _0x42ef79=this['_acceptSuggestionCommand'],_0x5a8085=this[_0x3a2b('0x3')]['model'][_0x3a2b('0x0')][_0x3a2b('0x9')],_0x4c12fa=Array[_0x3a2b('0x7')](this[_0x3a2b('0xb')]['values']());this[_0x3a2b('0x8')]=_0x5511b3(_0x5a8085,_0x4c12fa),this['isEnabled']=_0x42ef79['isEnabled']&&!!this[_0x3a2b('0x8')][_0x3a2b('0x2')];}[_0x3a2b('0x4')](){this[_0x3a2b('0x3')][_0x3a2b('0x5')][_0x3a2b('0x1')](()=>{const _0xa6f88b=_0x168cec(Array[_0x3a2b('0x7')](this['_selectedSuggestions']));for(const _0x11b20d of _0xa6f88b)this[_0x3a2b('0xa')]['execute'](_0x11b20d['id']);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x1f55=['acceptSuggestion','editor','TrackChangesEditing','refresh','execute','get','plugins','_suggestions'];(function(_0x59f0c0,_0x1f5596){const _0x27dacf=function(_0x9b9cf7){while(--_0x9b9cf7){_0x59f0c0['push'](_0x59f0c0['shift']());}};_0x27dacf(++_0x1f5596);}(_0x1f55,0x1de));const _0x27da=function(_0x59f0c0,_0x1f5596){_0x59f0c0=_0x59f0c0-0x0;let _0x27dacf=_0x1f55[_0x59f0c0];return _0x27dacf;};import{Command as _0x35bd52}from'ckeditor5/src/core';import{CKEditorError as _0x5850fd}from'ckeditor5/src/utils';export default class j extends _0x35bd52{constructor(_0x200a7e,_0x15e1ab){super(_0x200a7e),this[_0x27da('0x1')]=_0x15e1ab,this[_0x27da('0x5')]();}[_0x27da('0x5')](){this['isEnabled']=!0x0;}[_0x27da('0x6')](_0xac0eee){const _0x518506=this[_0x27da('0x1')][_0x27da('0x7')](_0xac0eee);if(!_0x518506)throw new _0x5850fd('track-changes-accept-suggestion-not-found',this);this[_0x27da('0x3')][_0x27da('0x0')][_0x27da('0x7')](_0x27da('0x4'))[_0x27da('0x2')](_0x518506);}}
23
+ const _0x4b0b=['isEnabled','editor','get','acceptSuggestion','TrackChangesEditing','track-changes-accept-suggestion-not-found','plugins','refresh','_suggestions'];(function(_0x300fec,_0x4b0b66){const _0x2e5a4e=function(_0x23cc63){while(--_0x23cc63){_0x300fec['push'](_0x300fec['shift']());}};_0x2e5a4e(++_0x4b0b66);}(_0x4b0b,0x12e));const _0x2e5a=function(_0x300fec,_0x4b0b66){_0x300fec=_0x300fec-0x0;let _0x2e5a4e=_0x4b0b[_0x300fec];return _0x2e5a4e;};import{Command as _0x3e20be}from'ckeditor5/src/core';import{CKEditorError as _0x300d5b}from'ckeditor5/src/utils';export default class j extends _0x3e20be{constructor(_0x37083e,_0x61779f){super(_0x37083e),this[_0x2e5a('0x3')]=_0x61779f,this['refresh']();}[_0x2e5a('0x2')](){this[_0x2e5a('0x4')]=!0x0;}['execute'](_0x3666d7){const _0x2fdc04=this[_0x2e5a('0x3')][_0x2e5a('0x6')](_0x3666d7);if(!_0x2fdc04)throw new _0x300d5b(_0x2e5a('0x0'),this);this[_0x2e5a('0x5')][_0x2e5a('0x1')][_0x2e5a('0x6')](_0x2e5a('0x8'))[_0x2e5a('0x7')](_0x2fdc04);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x3550=['execute','values','refresh','isInContent','_suggestions','isEnabled','model','from','change','some','_discardSuggestionCommand'];(function(_0x424cd9,_0x355018){const _0x5923bb=function(_0x21a4be){while(--_0x21a4be){_0x424cd9['push'](_0x424cd9['shift']());}};_0x5923bb(++_0x355018);}(_0x3550,0x17a));const _0x5923=function(_0x424cd9,_0x355018){_0x424cd9=_0x424cd9-0x0;let _0x5923bb=_0x3550[_0x424cd9];return _0x5923bb;};import{Command as _0x3b26ff}from'ckeditor5/src/core';export default class E extends _0x3b26ff{constructor(_0x33a759,_0x5d1ef5,_0x1b2922){super(_0x33a759),this[_0x5923('0x6')]=_0x5d1ef5,this[_0x5923('0x0')]=_0x1b2922,this[_0x5923('0x9')]();}[_0x5923('0x9')](){const _0x38d3a8=this[_0x5923('0x6')];this[_0x5923('0x1')]=_0x38d3a8[_0x5923('0x1')]&&Array[_0x5923('0x3')](this['_suggestions']['values']())[_0x5923('0x5')](_0x5a4688=>_0x5a4688['isInContent']);}[_0x5923('0x7')](){this['editor'][_0x5923('0x2')][_0x5923('0x4')](()=>{for(const _0x3382d2 of this['_suggestions'][_0x5923('0x8')]())_0x3382d2[_0x5923('0xa')]&&this[_0x5923('0x6')][_0x5923('0x7')](_0x3382d2['id']);});}}
23
+ const _0x38df=['execute','_discardSuggestionCommand','change','isEnabled','isInContent','editor','refresh','values','_suggestions'];(function(_0x7d7bad,_0x38dfba){const _0x327623=function(_0x5c3f2f){while(--_0x5c3f2f){_0x7d7bad['push'](_0x7d7bad['shift']());}};_0x327623(++_0x38dfba);}(_0x38df,0x84));const _0x3276=function(_0x7d7bad,_0x38dfba){_0x7d7bad=_0x7d7bad-0x0;let _0x327623=_0x38df[_0x7d7bad];return _0x327623;};import{Command as _0x4b033c}from'ckeditor5/src/core';export default class x extends _0x4b033c{constructor(_0x4e69c4,_0x4f5bd9,_0x5999aa){super(_0x4e69c4),this['_discardSuggestionCommand']=_0x4f5bd9,this[_0x3276('0x2')]=_0x5999aa,this[_0x3276('0x0')]();}['refresh'](){const _0x44a93d=this[_0x3276('0x4')];this[_0x3276('0x6')]=_0x44a93d['isEnabled']&&Array['from'](this['_suggestions']['values']())['some'](_0x51c885=>_0x51c885[_0x3276('0x7')]);}[_0x3276('0x3')](){this[_0x3276('0x8')]['model'][_0x3276('0x5')](()=>{for(const _0x452ce3 of this[_0x3276('0x2')][_0x3276('0x1')]())_0x452ce3[_0x3276('0x7')]&&this[_0x3276('0x4')][_0x3276('0x3')](_0x452ce3['id']);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x4e9f=['model','execute','editor','from','selection','change','_discardSuggestionCommand','_suggestions','refresh','isEnabled','size','_selectedSuggestions'];(function(_0x423b20,_0x4e9fe1){const _0x27bb08=function(_0x5cb097){while(--_0x5cb097){_0x423b20['push'](_0x423b20['shift']());}};_0x27bb08(++_0x4e9fe1);}(_0x4e9f,0x17a));const _0x27bb=function(_0x423b20,_0x4e9fe1){_0x423b20=_0x423b20-0x0;let _0x27bb08=_0x4e9f[_0x423b20];return _0x27bb08;};import{Command as _0x7b42ae}from'ckeditor5/src/core';import _0x215165 from'../utils/getselectedsuggestions';export default class O extends _0x7b42ae{constructor(_0x295a1f,_0x6d7e1a,_0x4c09fa){super(_0x295a1f),this[_0x27bb('0x0')]=_0x6d7e1a,this['_suggestions']=_0x4c09fa,this[_0x27bb('0x5')]=new Set(),this['refresh']();}[_0x27bb('0x2')](){const _0x10d9d5=this['_discardSuggestionCommand'],_0x954014=this[_0x27bb('0x8')]['model']['document'][_0x27bb('0xa')],_0x33b92a=Array[_0x27bb('0x9')](this[_0x27bb('0x1')]['values']());this[_0x27bb('0x5')]=_0x215165(_0x954014,_0x33b92a),this[_0x27bb('0x3')]=_0x10d9d5['isEnabled']&&!!this[_0x27bb('0x5')][_0x27bb('0x4')];}['execute'](){this[_0x27bb('0x8')][_0x27bb('0x6')][_0x27bb('0xb')](()=>{for(const _0x556538 of this[_0x27bb('0x5')])this[_0x27bb('0x0')][_0x27bb('0x7')](_0x556538['id']);});}}
23
+ const _0x533b=['_discardSuggestionCommand','refresh','_suggestions','model','isEnabled','execute','values','from','editor','size','change','_selectedSuggestions'];(function(_0x3ed688,_0x533b44){const _0x229bc0=function(_0x186648){while(--_0x186648){_0x3ed688['push'](_0x3ed688['shift']());}};_0x229bc0(++_0x533b44);}(_0x533b,0x16c));const _0x229b=function(_0x3ed688,_0x533b44){_0x3ed688=_0x3ed688-0x0;let _0x229bc0=_0x533b[_0x3ed688];return _0x229bc0;};import{Command as _0x55ff78}from'ckeditor5/src/core';import _0x2cc8e9 from'../utils/getselectedsuggestions';export default class O extends _0x55ff78{constructor(_0x160edb,_0x251e86,_0x4ae11c){super(_0x160edb),this[_0x229b('0x8')]=_0x251e86,this[_0x229b('0xa')]=_0x4ae11c,this[_0x229b('0x7')]=new Set(),this[_0x229b('0x9')]();}[_0x229b('0x9')](){const _0x39f92e=this[_0x229b('0x8')],_0x38f400=this[_0x229b('0x4')][_0x229b('0xb')]['document']['selection'],_0x9dcdd0=Array[_0x229b('0x3')](this[_0x229b('0xa')][_0x229b('0x2')]());this['_selectedSuggestions']=_0x2cc8e9(_0x38f400,_0x9dcdd0),this[_0x229b('0x0')]=_0x39f92e[_0x229b('0x0')]&&!!this[_0x229b('0x7')][_0x229b('0x5')];}[_0x229b('0x1')](){this[_0x229b('0x4')]['model'][_0x229b('0x6')](()=>{for(const _0x3e737e of this[_0x229b('0x7')])this[_0x229b('0x8')][_0x229b('0x1')](_0x3e737e['id']);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x53c2=['plugins','refresh','execute','discardSuggestion','track-changes-discard-suggestion-not-found','get','isEnabled','_suggestions'];(function(_0x119ced,_0x53c2a1){const _0x229524=function(_0x504024){while(--_0x504024){_0x119ced['push'](_0x119ced['shift']());}};_0x229524(++_0x53c2a1);}(_0x53c2,0xae));const _0x2295=function(_0x119ced,_0x53c2a1){_0x119ced=_0x119ced-0x0;let _0x229524=_0x53c2[_0x119ced];return _0x229524;};import{Command as _0x446809}from'ckeditor5/src/core';import{CKEditorError as _0x2f76c5}from'ckeditor5/src/utils';export default class U extends _0x446809{constructor(_0x3d3509,_0x5063b0){super(_0x3d3509),this[_0x2295('0x1')]=_0x5063b0,this[_0x2295('0x3')]();}[_0x2295('0x3')](){this[_0x2295('0x0')]=!0x0;}[_0x2295('0x4')](_0x474026){const _0x6c331f=this[_0x2295('0x1')][_0x2295('0x7')](_0x474026);if(!_0x6c331f)throw new _0x2f76c5(_0x2295('0x6'),this);this['editor'][_0x2295('0x2')]['get']('TrackChangesEditing')[_0x2295('0x5')](_0x6c331f);}}
23
+ const _0x53e1=['_suggestions','editor','TrackChangesEditing','refresh','discardSuggestion','track-changes-discard-suggestion-not-found','execute'];(function(_0x37f4b8,_0x53e158){const _0x1d1167=function(_0xf4dd){while(--_0xf4dd){_0x37f4b8['push'](_0x37f4b8['shift']());}};_0x1d1167(++_0x53e158);}(_0x53e1,0x14f));const _0x1d11=function(_0x37f4b8,_0x53e158){_0x37f4b8=_0x37f4b8-0x0;let _0x1d1167=_0x53e1[_0x37f4b8];return _0x1d1167;};import{Command as _0x197b12}from'ckeditor5/src/core';import{CKEditorError as _0x5b98d4}from'ckeditor5/src/utils';export default class U extends _0x197b12{constructor(_0xa31ca2,_0x3b8eb5){super(_0xa31ca2),this['_suggestions']=_0x3b8eb5,this[_0x1d11('0x4')]();}[_0x1d11('0x4')](){this['isEnabled']=!0x0;}[_0x1d11('0x0')](_0x36dba4){const _0xb7f865=this[_0x1d11('0x1')]['get'](_0x36dba4);if(!_0xb7f865)throw new _0x5b98d4(_0x1d11('0x6'),this);this[_0x1d11('0x2')]['plugins']['get'](_0x1d11('0x3'))[_0x1d11('0x5')](_0xb7f865);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x9719=['value','editor','commands','_enableCommands','TrackChangesCommand','_disableUnsupportedCommands','has','forceDisabled','isEnabled','_enabledCommands','clearForceDisabled','refresh'];(function(_0x5b1de0,_0x971908){const _0x1357de=function(_0x2ae813){while(--_0x2ae813){_0x5b1de0['push'](_0x5b1de0['shift']());}};_0x1357de(++_0x971908);}(_0x9719,0x1e3));const _0x1357=function(_0x5b1de0,_0x971908){_0x5b1de0=_0x5b1de0-0x0;let _0x1357de=_0x9719[_0x5b1de0];return _0x1357de;};import{Command as _0xb6b3fa}from'ckeditor5/src/core';export default class N extends _0xb6b3fa{constructor(_0x164bf3,_0x22c73d){super(_0x164bf3),this[_0x1357('0x6')]=_0x22c73d,this['value']=!0x1,this[_0x1357('0x8')]();}['refresh'](){this[_0x1357('0x5')]=!0x0;}['execute'](){this[_0x1357('0x9')]=!this[_0x1357('0x9')],this['value']?this[_0x1357('0x2')]():this[_0x1357('0x0')]();}[_0x1357('0x2')](){for(const _0x1a5963 of this[_0x1357('0xa')]['commands']['commands']())this[_0x1357('0x6')][_0x1357('0x3')](_0x1a5963)||_0x1a5963[_0x1357('0x4')]('TrackChangesCommand');}[_0x1357('0x0')](){for(const _0x233b1a of this[_0x1357('0xa')][_0x1357('0xb')]['commands']())this[_0x1357('0x6')]['has'](_0x233b1a)||_0x233b1a[_0x1357('0x7')](_0x1357('0x1'));}}
23
+ const _0x1b75=['isEnabled','has','_enableCommands','execute','_enabledCommands','value','refresh','_disableUnsupportedCommands','TrackChangesCommand','clearForceDisabled','commands','affectsData','editor'];(function(_0x4d4dcb,_0x1b754e){const _0x2a7fa2=function(_0x453978){while(--_0x453978){_0x4d4dcb['push'](_0x4d4dcb['shift']());}};_0x2a7fa2(++_0x1b754e);}(_0x1b75,0x1a9));const _0x2a7f=function(_0x4d4dcb,_0x1b754e){_0x4d4dcb=_0x4d4dcb-0x0;let _0x2a7fa2=_0x1b75[_0x4d4dcb];return _0x2a7fa2;};import{Command as _0x2c6505}from'ckeditor5/src/core';export default class N extends _0x2c6505{constructor(_0x1337e0,_0x43e9b1){super(_0x1337e0),this['_enabledCommands']=_0x43e9b1,this[_0x2a7f('0x9')]=!0x1,this[_0x2a7f('0xa')]();}['refresh'](){this[_0x2a7f('0x4')]=!0x0;}[_0x2a7f('0x7')](){this[_0x2a7f('0x9')]=!this[_0x2a7f('0x9')],this['value']?this[_0x2a7f('0xb')]():this[_0x2a7f('0x6')]();}[_0x2a7f('0xb')](){for(const _0x1682c5 of this[_0x2a7f('0x3')][_0x2a7f('0x1')]['commands']())_0x1682c5[_0x2a7f('0x2')]&&!this['_enabledCommands']['has'](_0x1682c5)&&_0x1682c5['forceDisabled'](_0x2a7f('0xc'));}['_enableCommands'](){for(const _0x38a159 of this[_0x2a7f('0x3')]['commands'][_0x2a7f('0x1')]())_0x38a159[_0x2a7f('0x2')]&&!this[_0x2a7f('0x8')][_0x2a7f('0x5')](_0x38a159)&&_0x38a159[_0x2a7f('0x0')]('TrackChangesCommand');}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{Plugin as _0xe0d476}from'ckeditor5/src/core';export default class P extends _0xe0d476{['afterInit'](){const _0x140be7=this['editor'],{t:t}=_0x140be7['locale'];if(!_0x140be7['plugins']['has']('AlignmentEditing'))return;const _0x2134ee=_0x140be7['plugins']['get']('TrackChangesEditing');_0x2134ee['enableCommand']('alignment',(_0x2d9fd0,_0x201f10={})=>{let _0x31f4d0=_0x201f10['value'];_0x201f10['value']||(_0x31f4d0='ltr'===_0x140be7['locale']['contentLanguageDirection']?'left':'right');const _0x31e18e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x457802=>function(_0x2d0da9,_0x217ce6,_0x5b80bf){const _0x182c60=_0x2d0da9['getAttribute']('alignment')||null;return _0x217ce6['checkAttribute'](_0x2d0da9,'alignment')&&_0x5b80bf!=_0x182c60;}(_0x457802,this['editor']['model']['schema'],_0x31f4d0));_0x140be7['model']['change'](()=>{for(const _0xe09d4a of _0x31e18e)_0x2134ee['markBlockFormat'](_0xe09d4a,{'commandName':'alignment','commandParams':[{'value':_0x31f4d0}]});});}),_0x2134ee['_descriptionFactory']['registerDescriptionCallback'](_0xe22b18=>{const {data:_0x1a841a}=_0xe22b18;if(_0x1a841a&&'alignment'==_0x1a841a['commandName']){const _0x24071c=_0x1a841a['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x5ba2e3){switch(_0x5ba2e3){case'left':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'right':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'center':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'justify':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});}}(_0x24071c))};}});}}
23
+ import{Plugin as _0xe19e6e}from'ckeditor5/src/core';export default class P extends _0xe19e6e{['afterInit'](){const _0x1508c2=this['editor'],{t:t}=_0x1508c2['locale'];if(!_0x1508c2['plugins']['has']('AlignmentEditing'))return;const _0x4173e5=_0x1508c2['plugins']['get']('TrackChangesEditing');_0x4173e5['enableCommand']('alignment',(_0xfee4c0,_0x9ff230={})=>{let _0x4e1a11=_0x9ff230['value'];_0x9ff230['value']||(_0x4e1a11='ltr'===_0x1508c2['locale']['contentLanguageDirection']?'left':'right');const _0xae699b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x141ef4=>function(_0x36011d,_0x4493d5,_0x375239){const _0x22f616=_0x36011d['getAttribute']('alignment')||null;return _0x4493d5['checkAttribute'](_0x36011d,'alignment')&&_0x375239!=_0x22f616;}(_0x141ef4,this['editor']['model']['schema'],_0x4e1a11));_0x1508c2['model']['change'](()=>{for(const _0x39960c of _0xae699b)_0x4173e5['markBlockFormat'](_0x39960c,{'commandName':'alignment','commandParams':[{'value':_0x4e1a11}]});});}),_0x4173e5['_descriptionFactory']['registerDescriptionCallback'](_0x1ca2fc=>{const {data:_0x374048}=_0x1ca2fc;if(_0x374048&&'alignment'==_0x374048['commandName']){const _0x228c06=_0x374048['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x166566){switch(_0x166566){case'left':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'right':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'center':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'justify':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});}}(_0x228c06))};}});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{Plugin as _0xafe264}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Lt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class G extends _0xafe264{['afterInit'](){const _0x12d94d=this['editor'],_0x6b4940=_0x12d94d['model'],_0x48c0da=_0x12d94d['plugins']['get']('TrackChangesEditing'),{t:t}=_0x12d94d['locale'];for(const _0x188bbf of Lt){if(!_0x12d94d['plugins']['has'](_0x188bbf))continue;const _0x14eccd=_0x188bbf['slice'](0x0,-0x7)['toLowerCase'](),_0x145a9f=_0x12d94d['commands']['get'](_0x14eccd);_0x48c0da['enableCommand'](_0x14eccd,(_0x1827f6,_0x4841ae={})=>{const _0x4b61b1=_0x6b4940['document']['selection'];if(_0x4b61b1['isCollapsed'])return void _0x1827f6(_0x4841ae);const _0x3ff839=void 0x0!==_0x4841ae['forceValue']?_0x4841ae['forceValue']:!_0x145a9f['value'];_0x6b4940['change'](()=>{const _0x1fff04=Array['from'](_0x4b61b1['getRanges']());for(const _0x6ca448 of _0x1fff04){const _0x1db1c2=_0x3ff839?[_0x6ca448]:Rt(_0x14eccd,_0x6ca448,_0x6b4940);for(const _0x379be8 of _0x1db1c2)_0x48c0da['markInlineFormat'](_0x379be8,{'commandName':_0x14eccd,'commandParams':[{'forceValue':_0x3ff839}]});}});});}function _0x5751af(_0x13189e,_0xacafd7){_0x48c0da['_descriptionFactory']['registerDescriptionCallback'](_0x4f4f5f=>{const {data:_0x1fe5da}=_0x4f4f5f;if(_0x1fe5da&&_0x1fe5da['commandName']===_0x13189e)return _0x1fe5da['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0xacafd7)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0xacafd7)};});}_0x5751af('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x5751af('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x5751af('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x5751af('code',t({'string':'code','id':'FORMAT_CODE'})),_0x5751af('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x5751af('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x5751af('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
23
+ import{Plugin as _0x19c422}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Ft=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class G extends _0x19c422{['afterInit'](){const _0x36222a=this['editor'],_0x1562ff=_0x36222a['model'],_0x5046e0=_0x36222a['plugins']['get']('TrackChangesEditing'),{t:t}=_0x36222a['locale'];for(const _0x3e2460 of Ft){if(!_0x36222a['plugins']['has'](_0x3e2460))continue;const _0x483ed5=_0x3e2460['slice'](0x0,-0x7)['toLowerCase'](),_0x2539c8=_0x36222a['commands']['get'](_0x483ed5);_0x5046e0['enableCommand'](_0x483ed5,(_0x351788,_0x2dde52={})=>{const _0x5191f3=_0x1562ff['document']['selection'];if(_0x5191f3['isCollapsed'])return void _0x351788(_0x2dde52);const _0x3b2aec=void 0x0!==_0x2dde52['forceValue']?_0x2dde52['forceValue']:!_0x2539c8['value'];_0x1562ff['change'](()=>{const _0x2177c0=Array['from'](_0x5191f3['getRanges']());for(const _0x394252 of _0x2177c0){const _0x5466ce=_0x3b2aec?[_0x394252]:Rt(_0x483ed5,_0x394252,_0x1562ff);for(const _0x1e51e7 of _0x5466ce)_0x5046e0['markInlineFormat'](_0x1e51e7,{'commandName':_0x483ed5,'commandParams':[{'forceValue':_0x3b2aec}]});}});});}function _0x38e476(_0x2dca73,_0x284945){_0x5046e0['_descriptionFactory']['registerDescriptionCallback'](_0x13fceb=>{const {data:_0x1814b1}=_0x13fceb;if(_0x1814b1&&_0x1814b1['commandName']===_0x2dca73)return _0x1814b1['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x284945)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x284945)};});}_0x38e476('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x38e476('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x38e476('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x38e476('code',t({'string':'code','id':'FORMAT_CODE'})),_0x38e476('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x38e476('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x38e476('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{Plugin as _0x2a82c4}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class F extends _0x2a82c4{['afterInit'](){const _0x21b14c=this['editor'],{t:t}=_0x21b14c['locale'];if(!_0x21b14c['plugins']['has']('BlockQuoteEditing'))return;const _0x1cd622=_0x21b14c['plugins']['get']('TrackChangesEditing'),_0x1222f3=this['editor']['commands']['get']('blockQuote');_0x1cd622['enableCommand']('blockQuote',(_0x5c4e5c,_0x22e7bd={})=>{const _0x12423e=this['editor']['model']['document']['selection'],_0x3526d5=_0x22e7bd&&void 0x0!==_0x22e7bd['forceValue']?_0x22e7bd['forceValue']:!_0x1222f3['value'];let _0x35aad9=[];if(_0x3526d5){const _0x4ce894=Array['from'](_0x12423e['getSelectedBlocks']())['filter'](_0x8616e0=>Kt(_0x8616e0)||function(_0x1cb290,_0x95af74){const _0x271555=_0x95af74['checkChild'](_0x1cb290['parent'],'blockQuote'),_0x159033=_0x95af74['checkChild'](['$root','blockQuote'],_0x1cb290);return _0x271555&&_0x159033;}(_0x8616e0,this['editor']['model']['schema']));_0x35aad9=$t(_0x4ce894,_0x21b14c['model']);}else{const _0x4f6053=Array['from'](_0x12423e['getSelectedBlocks']())['filter'](_0x2d6fc1=>Kt(_0x2d6fc1));_0x35aad9=$t(_0x4f6053,_0x21b14c['model']);}_0x21b14c['model']['change'](()=>{for(const _0xe10325 of _0x35aad9)_0x1cd622['markBlockFormat'](_0xe10325,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3526d5}]});});}),_0x1cd622['_descriptionFactory']['registerDescriptionCallback'](_0xce4d1a=>{const {data:_0x1067f5}=_0xce4d1a;if(_0x1067f5&&'blockQuote'==_0x1067f5['commandName']){const _0x5a6cac=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0x1067f5['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x5a6cac)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x5a6cac)};}});}}function Kt(_0x5a9114){return'blockQuote'==_0x5a9114['parent']['name'];}function $t(_0x530380,_0x155daa){let _0x4aa8c6,_0x333624=0x0;const _0x5840b6=[],_0x1fa2a1=_0x155daa['schema'];for(;_0x333624<_0x530380['length'];){const _0x2bd3f1=_0x530380[_0x333624],_0x44148e=_0x530380[_0x333624+0x1];_0x4aa8c6||(_0x4aa8c6=_0x155daa['createPositionBefore'](_0x2bd3f1)),Ht(_0x155daa,_0x2bd3f1,_0x44148e)||(_0x5840b6['push'](_0x155daa['createRange'](_0x4aa8c6,_0x1fa2a1['isObject'](_0x2bd3f1)?_0x155daa['createPositionAfter'](_0x2bd3f1):_0x155daa['createPositionAt'](_0x2bd3f1,'end'))),_0x4aa8c6=null),_0x333624++;}return _0x5840b6;}function Ht(_0xf9561f,_0x4478fd,_0x7c2238){if(!_0x7c2238)return!0x1;const _0x102b66=_0xf9561f['createPositionAfter'](_0x4478fd),_0x4de9a7=_0xf9561f['createPositionBefore'](_0x7c2238),_0x3b7a4c=new Qt({'boundaries':_0xf9561f['createRange'](_0x102b66,_0x4de9a7)});for(const _0x5c5b41 of _0x3b7a4c)if('text'==_0x5c5b41['type']||_0xf9561f['schema']['isLimit'](_0x5c5b41['item']))return!0x1;return!0x0;}
23
+ import{Plugin as _0x494018}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class F extends _0x494018{['afterInit'](){const _0x1e7e99=this['editor'],{t:t}=_0x1e7e99['locale'];if(!_0x1e7e99['plugins']['has']('BlockQuoteEditing'))return;const _0x3187a1=_0x1e7e99['plugins']['get']('TrackChangesEditing'),_0x513b34=this['editor']['commands']['get']('blockQuote');_0x3187a1['enableCommand']('blockQuote',(_0x1b5e14,_0x44420d={})=>{const _0x5c6125=this['editor']['model']['document']['selection'],_0x4e24c9=_0x44420d&&void 0x0!==_0x44420d['forceValue']?_0x44420d['forceValue']:!_0x513b34['value'];let _0x45ad50=[];if(_0x4e24c9){const _0xa0be2f=Array['from'](_0x5c6125['getSelectedBlocks']())['filter'](_0x1d72b2=>Bt(_0x1d72b2)||function(_0x19f51f,_0x4e76cc){const _0x10c12f=_0x4e76cc['checkChild'](_0x19f51f['parent'],'blockQuote'),_0x54acc1=_0x4e76cc['checkChild'](['$root','blockQuote'],_0x19f51f);return _0x10c12f&&_0x54acc1;}(_0x1d72b2,this['editor']['model']['schema']));_0x45ad50=Lt(_0xa0be2f,_0x1e7e99['model']);}else{const _0x307128=Array['from'](_0x5c6125['getSelectedBlocks']())['filter'](_0x192374=>Bt(_0x192374));_0x45ad50=Lt(_0x307128,_0x1e7e99['model']);}_0x1e7e99['model']['change'](()=>{for(const _0x478279 of _0x45ad50)_0x3187a1['markBlockFormat'](_0x478279,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4e24c9}]});});}),_0x3187a1['_descriptionFactory']['registerDescriptionCallback'](_0xc79c94=>{const {data:_0x38f446}=_0xc79c94;if(_0x38f446&&'blockQuote'==_0x38f446['commandName']){const _0xd91bf2=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0x38f446['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0xd91bf2)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0xd91bf2)};}});}}function Bt(_0x4cd688){return'blockQuote'==_0x4cd688['parent']['name'];}function Lt(_0x49358c,_0x94d056){let _0x45774e,_0x423834=0x0;const _0x59a61e=[],_0x38f350=_0x94d056['schema'];for(;_0x423834<_0x49358c['length'];){const _0x4d9219=_0x49358c[_0x423834],_0x169b97=_0x49358c[_0x423834+0x1];_0x45774e||(_0x45774e=_0x94d056['createPositionBefore'](_0x4d9219)),Kt(_0x94d056,_0x4d9219,_0x169b97)||(_0x59a61e['push'](_0x94d056['createRange'](_0x45774e,_0x38f350['isObject'](_0x4d9219)?_0x94d056['createPositionAfter'](_0x4d9219):_0x94d056['createPositionAt'](_0x4d9219,'end'))),_0x45774e=null),_0x423834++;}return _0x59a61e;}function Kt(_0xbd39a9,_0x3d7dc2,_0x30a15c){if(!_0x30a15c)return!0x1;const _0x2a839f=_0xbd39a9['createPositionAfter'](_0x3d7dc2),_0x353a46=_0xbd39a9['createPositionBefore'](_0x30a15c),_0x580e04=new Qt({'boundaries':_0xbd39a9['createRange'](_0x2a839f,_0x353a46)});for(const _0x39bfaa of _0x580e04)if('text'==_0x39bfaa['type']||_0xbd39a9['schema']['isLimit'](_0x39bfaa['item']))return!0x1;return!0x0;}