@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.
- package/LICENSE.md +2 -2
- package/README.md +2 -2
- package/lang/contexts.json +8 -7
- package/lang/translations/cs.po +27 -23
- package/lang/translations/da.po +387 -0
- package/lang/translations/de.po +28 -24
- package/lang/translations/en-au.po +28 -24
- package/lang/translations/en.po +28 -24
- package/lang/translations/es.po +27 -23
- package/lang/translations/et.po +27 -23
- package/lang/translations/fr.po +28 -24
- package/lang/translations/gl.po +28 -24
- package/lang/translations/hi.po +27 -23
- package/lang/translations/hr.po +27 -23
- package/lang/translations/it.po +28 -24
- package/lang/translations/nl.po +27 -23
- package/lang/translations/pl.po +27 -23
- package/lang/translations/pt-br.po +49 -45
- package/lang/translations/sk.po +27 -23
- package/lang/translations/sr-latn.po +28 -24
- package/lang/translations/sr.po +28 -24
- package/lang/translations/tk.po +27 -23
- package/lang/translations/tr.po +27 -23
- package/lang/translations/zh-cn.po +28 -24
- package/lang/translations/zh.po +370 -0
- package/package.json +7 -7
- package/src/commands/acceptallsuggestionscommand.js +2 -2
- package/src/commands/acceptselectedsuggestionscommand.js +2 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardallsuggestionscommand.js +2 -2
- package/src/commands/discardselectedsuggestionscommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/getselectedsuggestions.js +2 -2
- package/src/utils/hashobject.js +2 -2
- package/src/utils/normalizedescription.js +2 -2
- package/src/utils/sortsuggestions.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/theme/suggestion.css +10 -0
- package/theme/suggestionmarker.css +1 -1
- package/src/integrations/exportpdf.js +0 -23
- package/src/integrations/exportword.js +0 -23
- 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": "
|
|
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": "^
|
|
30
|
-
"@ckeditor/ckeditor5-comments": "^
|
|
31
|
-
"@ckeditor/ckeditor5-font": "^
|
|
32
|
-
"@ckeditor/ckeditor5-image": "^
|
|
33
|
-
"@ckeditor/ckeditor5-table": "^
|
|
34
|
-
"ckeditor5": "^
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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 -
|
|
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
|
|
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;}
|