@ckeditor/ckeditor5-track-changes 31.1.0 → 34.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 +5 -2
- package/build/track-changes.js +5 -0
- package/build/translations/az.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +3 -0
- package/lang/contexts.json +1 -1
- package/lang/translations/az.po +387 -0
- package/lang/translations/cs.po +32 -32
- package/lang/translations/da.po +2 -2
- package/lang/translations/de.po +2 -2
- package/lang/translations/el.po +387 -0
- package/lang/translations/en-au.po +7 -7
- package/lang/translations/en.po +2 -2
- package/lang/translations/es.po +37 -37
- package/lang/translations/et.po +2 -2
- package/lang/translations/fr.po +2 -2
- package/lang/translations/gl.po +5 -5
- package/lang/translations/hi.po +2 -2
- package/lang/translations/hr.po +15 -15
- package/lang/translations/id.po +370 -0
- package/lang/translations/it.po +4 -4
- package/lang/translations/nl.po +2 -2
- package/lang/translations/pl.po +2 -2
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/sk.po +59 -59
- package/lang/translations/sr-latn.po +4 -4
- package/lang/translations/sr.po +4 -4
- package/lang/translations/tk.po +2 -2
- package/lang/translations/tr.po +2 -2
- package/lang/translations/zh-cn.po +2 -2
- package/lang/translations/zh.po +2 -2
- package/package.json +4 -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/index.js +23 -0
- 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/integrations/horizontalline.css +0 -15
- package/theme/integrations/image.css +0 -55
- package/theme/integrations/mediaembed.css +0 -19
- package/theme/integrations/pagebreak.css +0 -15
- package/theme/integrations/table.css +0 -147
- package/theme/suggestion.css +0 -87
- package/theme/suggestionmarker.css +0 -161
package/lang/translations/sk.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -58,7 +58,7 @@ msgstr "*Odstrániť formátovanie:* %0"
|
|
|
58
58
|
|
|
59
59
|
msgctxt "A suggestion for removing the highlight."
|
|
60
60
|
msgid "*Remove highlight*"
|
|
61
|
-
msgstr ""
|
|
61
|
+
msgstr "*Odstrániť zvýraznenie*"
|
|
62
62
|
|
|
63
63
|
msgctxt "A suggestion for removing image text alternative."
|
|
64
64
|
msgid "*Remove image text alternative*"
|
|
@@ -114,7 +114,7 @@ msgstr "*Nastaviť veľkosť písma:* %0"
|
|
|
114
114
|
|
|
115
115
|
msgctxt "A suggestion for highlighting text."
|
|
116
116
|
msgid "*Set highlight:* %0"
|
|
117
|
-
msgstr ""
|
|
117
|
+
msgstr "*Nastaviť zvýraznenie:* %0"
|
|
118
118
|
|
|
119
119
|
msgctxt "A suggestion for setting image text alternative to %0."
|
|
120
120
|
msgid "*Set image text alternative:* %0"
|
|
@@ -178,7 +178,7 @@ msgstr "Odrážkový zoznam"
|
|
|
178
178
|
|
|
179
179
|
msgctxt "The caption element name displayed in the suggestion."
|
|
180
180
|
msgid "ELEMENT_CAPTION"
|
|
181
|
-
msgstr ""
|
|
181
|
+
msgstr "titulok"
|
|
182
182
|
|
|
183
183
|
msgctxt "The code block element name displayed in the suggestion."
|
|
184
184
|
msgid "ELEMENT_CODE_BLOCK"
|
|
@@ -199,10 +199,10 @@ msgstr[3] "%0 nadpisov (level %1)"
|
|
|
199
199
|
msgctxt "The heading element name displayed in the suggestion with a custom title."
|
|
200
200
|
msgid "ELEMENT_HEADING_CUSTOM"
|
|
201
201
|
msgid_plural "%0 headings (%1)"
|
|
202
|
-
msgstr[0] ""
|
|
203
|
-
msgstr[1] ""
|
|
204
|
-
msgstr[2] ""
|
|
205
|
-
msgstr[3] ""
|
|
202
|
+
msgstr[0] "%0 nadpis (%1)"
|
|
203
|
+
msgstr[1] "%0 nadpisy (%1)"
|
|
204
|
+
msgstr[2] "%0 nadpisov (%1)"
|
|
205
|
+
msgstr[3] "%0 nadpisov (%1)"
|
|
206
206
|
|
|
207
207
|
msgctxt "The horizontal line element name displayed in the suggestion."
|
|
208
208
|
msgid "ELEMENT_HORIZONTAL_LINE"
|
|
@@ -223,34 +223,34 @@ msgstr[3] "%0 obrázkov"
|
|
|
223
223
|
msgctxt "The inline image element name displayed in the suggestion."
|
|
224
224
|
msgid "ELEMENT_INLINE_IMAGE"
|
|
225
225
|
msgid_plural "%0 images"
|
|
226
|
-
msgstr[0] ""
|
|
227
|
-
msgstr[1] ""
|
|
228
|
-
msgstr[2] ""
|
|
229
|
-
msgstr[3] ""
|
|
226
|
+
msgstr[0] "%0 obrázok"
|
|
227
|
+
msgstr[1] "%0 obrázky"
|
|
228
|
+
msgstr[2] "%0 obrázkov"
|
|
229
|
+
msgstr[3] "%0 obrázkov"
|
|
230
230
|
|
|
231
231
|
msgctxt "The line break element name displayed in the suggestion."
|
|
232
232
|
msgid "ELEMENT_LINE_BREAK"
|
|
233
233
|
msgid_plural "%0 line breaks"
|
|
234
|
-
msgstr[0] ""
|
|
235
|
-
msgstr[1] ""
|
|
236
|
-
msgstr[2] ""
|
|
237
|
-
msgstr[3] ""
|
|
234
|
+
msgstr[0] "%0 zalomenie riadku"
|
|
235
|
+
msgstr[1] "%0 zalomenie riadkov"
|
|
236
|
+
msgstr[2] "%0 zalomenie riadkov"
|
|
237
|
+
msgstr[3] "%0 zalomenie riadkov"
|
|
238
238
|
|
|
239
239
|
msgctxt "The list item element name displayed in the suggestion."
|
|
240
240
|
msgid "ELEMENT_LIST_ITEM"
|
|
241
241
|
msgid_plural "%0 list items"
|
|
242
|
-
msgstr[0] ""
|
|
243
|
-
msgstr[1] ""
|
|
244
|
-
msgstr[2] ""
|
|
245
|
-
msgstr[3] ""
|
|
242
|
+
msgstr[0] "%0 položka zoznamu"
|
|
243
|
+
msgstr[1] "%0 položky zoznamu"
|
|
244
|
+
msgstr[2] "%0 položiek zoznamu"
|
|
245
|
+
msgstr[3] "%0 položiek zoznamu"
|
|
246
246
|
|
|
247
247
|
msgctxt "The media element name displayed in the suggestion."
|
|
248
248
|
msgid "ELEMENT_MEDIA"
|
|
249
249
|
msgid_plural "%0 media items"
|
|
250
|
-
msgstr[0] ""
|
|
251
|
-
msgstr[1] ""
|
|
252
|
-
msgstr[2] ""
|
|
253
|
-
msgstr[3] ""
|
|
250
|
+
msgstr[0] "%0 mediálny súbor"
|
|
251
|
+
msgstr[1] "%0 mediálne súbory"
|
|
252
|
+
msgstr[2] "%0 mediálnych súborov"
|
|
253
|
+
msgstr[3] "%0 mediálnych súborov"
|
|
254
254
|
|
|
255
255
|
msgctxt "The numbered list element name displayed in the suggestion."
|
|
256
256
|
msgid "ELEMENT_NUMBERED_LIST"
|
|
@@ -259,66 +259,66 @@ msgstr "číslovaný zoznam"
|
|
|
259
259
|
msgctxt "The page break element name displayed in the suggestion."
|
|
260
260
|
msgid "ELEMENT_PAGE_BREAK"
|
|
261
261
|
msgid_plural "%0 page breaks"
|
|
262
|
-
msgstr[0] ""
|
|
263
|
-
msgstr[1] ""
|
|
264
|
-
msgstr[2] ""
|
|
265
|
-
msgstr[3] ""
|
|
262
|
+
msgstr[0] "%0 zalomenie strany"
|
|
263
|
+
msgstr[1] "%0 zalomenie strán"
|
|
264
|
+
msgstr[2] "%0 zalomenie strán"
|
|
265
|
+
msgstr[3] "%0 zalomenie strán"
|
|
266
266
|
|
|
267
267
|
msgctxt "The paragraph element name displayed in the suggestion."
|
|
268
268
|
msgid "ELEMENT_PARAGRAPH"
|
|
269
269
|
msgid_plural "%0 paragraphs"
|
|
270
|
-
msgstr[0] ""
|
|
271
|
-
msgstr[1] ""
|
|
272
|
-
msgstr[2] ""
|
|
273
|
-
msgstr[3] ""
|
|
270
|
+
msgstr[0] "%0 odstavec"
|
|
271
|
+
msgstr[1] "%0 odstavce"
|
|
272
|
+
msgstr[2] "%0 odstavcov"
|
|
273
|
+
msgstr[3] "%0 odstavcov"
|
|
274
274
|
|
|
275
275
|
msgctxt "The space element name displayed in the suggestion."
|
|
276
276
|
msgid "ELEMENT_SPACE"
|
|
277
277
|
msgid_plural "%0 spaces"
|
|
278
|
-
msgstr[0] ""
|
|
279
|
-
msgstr[1] ""
|
|
280
|
-
msgstr[2] ""
|
|
281
|
-
msgstr[3] ""
|
|
278
|
+
msgstr[0] "%0 medzera"
|
|
279
|
+
msgstr[1] "%0 medzery"
|
|
280
|
+
msgstr[2] "%0 medzier"
|
|
281
|
+
msgstr[3] "%0 medzier"
|
|
282
282
|
|
|
283
283
|
msgctxt "The table element name displayed in the suggestion."
|
|
284
284
|
msgid "ELEMENT_TABLE"
|
|
285
285
|
msgid_plural "%0 tables"
|
|
286
|
-
msgstr[0] ""
|
|
287
|
-
msgstr[1] ""
|
|
288
|
-
msgstr[2] ""
|
|
289
|
-
msgstr[3] ""
|
|
286
|
+
msgstr[0] "%0 tabuľka"
|
|
287
|
+
msgstr[1] "%0 tabulky"
|
|
288
|
+
msgstr[2] "%0 tabuliek"
|
|
289
|
+
msgstr[3] "%0 tabuliek"
|
|
290
290
|
|
|
291
291
|
msgctxt "The table column element name displayed in the suggestion."
|
|
292
292
|
msgid "ELEMENT_TABLE_COLUMN"
|
|
293
293
|
msgid_plural "%0 table columns"
|
|
294
|
-
msgstr[0] ""
|
|
295
|
-
msgstr[1] ""
|
|
296
|
-
msgstr[2] ""
|
|
297
|
-
msgstr[3] ""
|
|
294
|
+
msgstr[0] "%0 stĺpec tabuľky"
|
|
295
|
+
msgstr[1] "%0 stĺpce tabuľky"
|
|
296
|
+
msgstr[2] "%0 stĺpcov tabuľky"
|
|
297
|
+
msgstr[3] "%0 stĺpcov tabuľky"
|
|
298
298
|
|
|
299
299
|
msgctxt "The table column with text element name displayed in the suggestion."
|
|
300
300
|
msgid "ELEMENT_TABLE_COLUMN_WITH_TEXT"
|
|
301
301
|
msgid_plural "%0 table columns *with text* %1"
|
|
302
|
-
msgstr[0] ""
|
|
303
|
-
msgstr[1] ""
|
|
304
|
-
msgstr[2] ""
|
|
305
|
-
msgstr[3] ""
|
|
302
|
+
msgstr[0] "%0 stĺpec tabuľky *s textom* %1"
|
|
303
|
+
msgstr[1] "%0 stĺpce tabuľky *s textom* %1"
|
|
304
|
+
msgstr[2] "%0 stĺpcov tabuľky *s textom* %1"
|
|
305
|
+
msgstr[3] "%0 stĺpcov tabuľky *s textom* %1"
|
|
306
306
|
|
|
307
307
|
msgctxt "The table row element name displayed in the suggestion."
|
|
308
308
|
msgid "ELEMENT_TABLE_ROW"
|
|
309
309
|
msgid_plural "%0 table rows"
|
|
310
|
-
msgstr[0] ""
|
|
311
|
-
msgstr[1] ""
|
|
312
|
-
msgstr[2] ""
|
|
313
|
-
msgstr[3] ""
|
|
310
|
+
msgstr[0] "%0 riadok tabuľky"
|
|
311
|
+
msgstr[1] "%0 riadky tabuľky"
|
|
312
|
+
msgstr[2] "%0 riadkov tabuľky"
|
|
313
|
+
msgstr[3] "%0 riadkov tabuľky"
|
|
314
314
|
|
|
315
315
|
msgctxt "The table row with text element name displayed in the suggestion."
|
|
316
316
|
msgid "ELEMENT_TABLE_ROW_WITH_TEXT"
|
|
317
317
|
msgid_plural "%0 table rows *with text* %1"
|
|
318
|
-
msgstr[0] ""
|
|
319
|
-
msgstr[1] ""
|
|
320
|
-
msgstr[2] ""
|
|
321
|
-
msgstr[3] ""
|
|
318
|
+
msgstr[0] "%0 riadok tabuľky *s textom* %1"
|
|
319
|
+
msgstr[1] "%0 riadky tabuľky *s textom* %1"
|
|
320
|
+
msgstr[2] "%0 riadkov tabuľky *s textom* %1"
|
|
321
|
+
msgstr[3] "%0 riadkov tabuľky *s textom* %1"
|
|
322
322
|
|
|
323
323
|
msgctxt "The table with text element name displayed in the suggestion."
|
|
324
324
|
msgid "ELEMENT_TABLE_WITH_TEXT"
|
|
@@ -382,11 +382,11 @@ msgstr "Klasický riadok"
|
|
|
382
382
|
|
|
383
383
|
msgctxt "The label for area disabled in restricted editing area in a format suggestion."
|
|
384
384
|
msgid "FORMAT_RESTRICTED_DISABLED"
|
|
385
|
-
msgstr ""
|
|
385
|
+
msgstr "*Zakázať v režime obmedzených úprav*"
|
|
386
386
|
|
|
387
387
|
msgctxt "The label for area enabled in restricted editing area in a format suggestion."
|
|
388
388
|
msgid "FORMAT_RESTRICTED_ENABLED"
|
|
389
|
-
msgstr ""
|
|
389
|
+
msgstr "*Povoliť v režime obmedzených úprav*"
|
|
390
390
|
|
|
391
391
|
msgctxt "The side image format name displayed in a format suggestion."
|
|
392
392
|
msgid "FORMAT_SIDE_IMAGE"
|
|
@@ -408,7 +408,7 @@ msgctxt "The underline format name displayed in a format suggestion."
|
|
|
408
408
|
msgid "FORMAT_UNDERLINE"
|
|
409
409
|
msgstr "podčiarknuť"
|
|
410
410
|
|
|
411
|
-
msgctxt "The label for the alert shown when closing the editor with an unsaved
|
|
411
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
412
412
|
msgid "PENDING_ACTION_SUGGESTION"
|
|
413
413
|
msgstr "Neuložená zmena v návrhu."
|
|
414
414
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -58,7 +58,7 @@ msgstr "*Ukloni format:* %0"
|
|
|
58
58
|
|
|
59
59
|
msgctxt "A suggestion for removing the highlight."
|
|
60
60
|
msgid "*Remove highlight*"
|
|
61
|
-
msgstr ""
|
|
61
|
+
msgstr "*Ukloni isticanje*"
|
|
62
62
|
|
|
63
63
|
msgctxt "A suggestion for removing image text alternative."
|
|
64
64
|
msgid "*Remove image text alternative*"
|
|
@@ -114,7 +114,7 @@ msgstr "*Podesi veličinu fontova:* %0"
|
|
|
114
114
|
|
|
115
115
|
msgctxt "A suggestion for highlighting text."
|
|
116
116
|
msgid "*Set highlight:* %0"
|
|
117
|
-
msgstr ""
|
|
117
|
+
msgstr "*Podesite isticanje:* %0"
|
|
118
118
|
|
|
119
119
|
msgctxt "A suggestion for setting image text alternative to %0."
|
|
120
120
|
msgid "*Set image text alternative:* %0"
|
|
@@ -391,7 +391,7 @@ msgctxt "The underline format name displayed in a format suggestion."
|
|
|
391
391
|
msgid "FORMAT_UNDERLINE"
|
|
392
392
|
msgstr "podvući"
|
|
393
393
|
|
|
394
|
-
msgctxt "The label for the alert shown when closing the editor with an unsaved
|
|
394
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
395
395
|
msgid "PENDING_ACTION_SUGGESTION"
|
|
396
396
|
msgstr "Nesačuvana promena predloga."
|
|
397
397
|
|
package/lang/translations/sr.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -58,7 +58,7 @@ msgstr "*Уклони формат:* %0"
|
|
|
58
58
|
|
|
59
59
|
msgctxt "A suggestion for removing the highlight."
|
|
60
60
|
msgid "*Remove highlight*"
|
|
61
|
-
msgstr ""
|
|
61
|
+
msgstr "*Уклони истицање* "
|
|
62
62
|
|
|
63
63
|
msgctxt "A suggestion for removing image text alternative."
|
|
64
64
|
msgid "*Remove image text alternative*"
|
|
@@ -114,7 +114,7 @@ msgstr "*Подеси величину фонта:* %0"
|
|
|
114
114
|
|
|
115
115
|
msgctxt "A suggestion for highlighting text."
|
|
116
116
|
msgid "*Set highlight:* %0"
|
|
117
|
-
msgstr ""
|
|
117
|
+
msgstr "*Подесите истицање:* %0 "
|
|
118
118
|
|
|
119
119
|
msgctxt "A suggestion for setting image text alternative to %0."
|
|
120
120
|
msgid "*Set image text alternative:* %0"
|
|
@@ -391,7 +391,7 @@ msgctxt "The underline format name displayed in a format suggestion."
|
|
|
391
391
|
msgid "FORMAT_UNDERLINE"
|
|
392
392
|
msgstr "подвући"
|
|
393
393
|
|
|
394
|
-
msgctxt "The label for the alert shown when closing the editor with an unsaved
|
|
394
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
395
395
|
msgid "PENDING_ACTION_SUGGESTION"
|
|
396
396
|
msgstr "Несачувана промена предлога"
|
|
397
397
|
|
package/lang/translations/tk.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -374,7 +374,7 @@ msgctxt "The underline format name displayed in a format suggestion."
|
|
|
374
374
|
msgid "FORMAT_UNDERLINE"
|
|
375
375
|
msgstr "aşagy çyzykly"
|
|
376
376
|
|
|
377
|
-
msgctxt "The label for the alert shown when closing the editor with an unsaved
|
|
377
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
378
378
|
msgid "PENDING_ACTION_SUGGESTION"
|
|
379
379
|
msgstr "Teklipde saklanmadyk üýtgeşiklik."
|
|
380
380
|
|
package/lang/translations/tr.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -374,7 +374,7 @@ msgctxt "The underline format name displayed in a format suggestion."
|
|
|
374
374
|
msgid "FORMAT_UNDERLINE"
|
|
375
375
|
msgstr "alttan çizili"
|
|
376
376
|
|
|
377
|
-
msgctxt "The label for the alert shown when closing the editor with an unsaved
|
|
377
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
378
378
|
msgid "PENDING_ACTION_SUGGESTION"
|
|
379
379
|
msgstr "Öneride kaydedilmemiş değişiklik."
|
|
380
380
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -357,7 +357,7 @@ msgctxt "The underline format name displayed in a format suggestion."
|
|
|
357
357
|
msgid "FORMAT_UNDERLINE"
|
|
358
358
|
msgstr "下划线"
|
|
359
359
|
|
|
360
|
-
msgctxt "The label for the alert shown when closing the editor with an unsaved
|
|
360
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
361
361
|
msgid "PENDING_ACTION_SUGGESTION"
|
|
362
362
|
msgstr "建议中有未保存内容"
|
|
363
363
|
|
package/lang/translations/zh.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -357,7 +357,7 @@ msgctxt "The underline format name displayed in a format suggestion."
|
|
|
357
357
|
msgid "FORMAT_UNDERLINE"
|
|
358
358
|
msgstr ""
|
|
359
359
|
|
|
360
|
-
msgctxt "The label for the alert shown when closing the editor with an unsaved
|
|
360
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
361
361
|
msgid "PENDING_ACTION_SUGGESTION"
|
|
362
362
|
msgstr ""
|
|
363
363
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.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/)",
|
|
@@ -25,13 +25,10 @@
|
|
|
25
25
|
"realtime",
|
|
26
26
|
"framework"
|
|
27
27
|
],
|
|
28
|
+
"main": "src/index.js",
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"@ckeditor/ckeditor5-font": "^31.1.0",
|
|
32
|
-
"@ckeditor/ckeditor5-image": "^31.1.0",
|
|
33
|
-
"@ckeditor/ckeditor5-table": "^31.1.0",
|
|
34
|
-
"ckeditor5": "^31.1.0",
|
|
30
|
+
"ckeditor5": "^34.0.0",
|
|
31
|
+
"ckeditor5-collaboration": "^34.0.0",
|
|
35
32
|
"lodash-es": "^4.17.11"
|
|
36
33
|
}
|
|
37
34
|
}
|
|
@@ -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 _0x3324=['execute','editor','change','model','refresh','from','_acceptSuggestionCommand','_suggestions','isInContent','some','isEnabled','values'];(function(_0x9aea55,_0x332476){const _0x1ace01=function(_0x368b33){while(--_0x368b33){_0x9aea55['push'](_0x9aea55['shift']());}};_0x1ace01(++_0x332476);}(_0x3324,0x8c));const _0x1ace=function(_0x9aea55,_0x332476){_0x9aea55=_0x9aea55-0x0;let _0x1ace01=_0x3324[_0x9aea55];return _0x1ace01;};import{Command as _0x143fb9}from'ckeditor5/src/core';import _0x52889a from'../utils/sortsuggestions';export default class $ extends _0x143fb9{constructor(_0x2d4f77,_0x239c40,_0x27da80){super(_0x2d4f77),this[_0x1ace('0xa')]=_0x239c40,this[_0x1ace('0xb')]=_0x27da80,this[_0x1ace('0x8')]();}[_0x1ace('0x8')](){const _0x897fdc=this[_0x1ace('0xa')];this[_0x1ace('0x2')]=_0x897fdc[_0x1ace('0x2')]&&Array['from'](this[_0x1ace('0xb')][_0x1ace('0x3')]())[_0x1ace('0x1')](_0x75b929=>_0x75b929['isInContent']);}[_0x1ace('0x4')](){this[_0x1ace('0x5')][_0x1ace('0x7')][_0x1ace('0x6')](()=>{const _0x145ac2=_0x52889a(Array[_0x1ace('0x9')](this['_suggestions'][_0x1ace('0x3')]()));for(const _0x2f75d0 of _0x145ac2)_0x2f75d0[_0x1ace('0x0')]&&this[_0x1ace('0xa')][_0x1ace('0x4')](_0x2f75d0['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 _0x541c=['refresh','change','_acceptSuggestionCommand','isEnabled','_selectedSuggestions','execute','model','editor','_suggestions','from','values'];(function(_0x86b0cc,_0x541c9c){const _0x26fae8=function(_0x408513){while(--_0x408513){_0x86b0cc['push'](_0x86b0cc['shift']());}};_0x26fae8(++_0x541c9c);}(_0x541c,0x87));const _0x26fa=function(_0x86b0cc,_0x541c9c){_0x86b0cc=_0x86b0cc-0x0;let _0x26fae8=_0x541c[_0x86b0cc];return _0x26fae8;};import{Command as _0x4ad9ce}from'ckeditor5/src/core';import _0x2aec14 from'../utils/sortsuggestions';import _0x3e4c41 from'../utils/getselectedsuggestions';export default class N extends _0x4ad9ce{constructor(_0x2b3e3e,_0xc14774,_0x1f4001){super(_0x2b3e3e),this[_0x26fa('0xa')]=_0xc14774,this[_0x26fa('0x5')]=_0x1f4001,this[_0x26fa('0x1')]=new Set(),this[_0x26fa('0x8')]();}[_0x26fa('0x8')](){const _0x1cbd88=this[_0x26fa('0xa')],_0x3b532c=this['editor'][_0x26fa('0x3')]['document']['selection'],_0x40da78=Array[_0x26fa('0x6')](this[_0x26fa('0x5')][_0x26fa('0x7')]());this[_0x26fa('0x1')]=_0x3e4c41(_0x3b532c,_0x40da78),this['isEnabled']=_0x1cbd88[_0x26fa('0x0')]&&!!this['_selectedSuggestions']['size'];}[_0x26fa('0x2')](){this[_0x26fa('0x4')][_0x26fa('0x3')][_0x26fa('0x9')](()=>{const _0xc53bfb=_0x2aec14(Array[_0x26fa('0x6')](this[_0x26fa('0x1')]));for(const _0x25e8be of _0xc53bfb)this[_0x26fa('0xa')][_0x26fa('0x2')](_0x25e8be['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 _0xda1b=['get','TrackChangesEditing','execute','acceptSuggestion','track-changes-accept-suggestion-not-found','isEnabled','_suggestions','refresh','plugins'];(function(_0x4ac7cf,_0xda1ba4){const _0xa24b15=function(_0x54a30d){while(--_0x54a30d){_0x4ac7cf['push'](_0x4ac7cf['shift']());}};_0xa24b15(++_0xda1ba4);}(_0xda1b,0x19e));const _0xa24b=function(_0x4ac7cf,_0xda1ba4){_0x4ac7cf=_0x4ac7cf-0x0;let _0xa24b15=_0xda1b[_0x4ac7cf];return _0xa24b15;};import{Command as _0x290b78}from'ckeditor5/src/core';import{CKEditorError as _0x5382d4}from'ckeditor5/src/utils';export default class B extends _0x290b78{constructor(_0x447d1a,_0x51b606){super(_0x447d1a),this['_suggestions']=_0x51b606,this[_0xa24b('0x7')]();}[_0xa24b('0x7')](){this[_0xa24b('0x5')]=!0x0;}[_0xa24b('0x2')](_0x129157){const _0x131b1e=this[_0xa24b('0x6')][_0xa24b('0x0')](_0x129157);if(!_0x131b1e)throw new _0x5382d4(_0xa24b('0x4'),this);this['editor'][_0xa24b('0x8')][_0xa24b('0x0')](_0xa24b('0x1'))[_0xa24b('0x3')](_0x131b1e);}}
|
|
@@ -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 _0x3f5e=['model','change','some','_suggestions','isEnabled','isInContent','refresh','_discardSuggestionCommand','values','editor','execute'];(function(_0x2239ee,_0x3f5e6b){const _0x5c4e42=function(_0xba76a0){while(--_0xba76a0){_0x2239ee['push'](_0x2239ee['shift']());}};_0x5c4e42(++_0x3f5e6b);}(_0x3f5e,0xf3));const _0x5c4e=function(_0x2239ee,_0x3f5e6b){_0x2239ee=_0x2239ee-0x0;let _0x5c4e42=_0x3f5e[_0x2239ee];return _0x5c4e42;};import{Command as _0x251253}from'ckeditor5/src/core';export default class R extends _0x251253{constructor(_0x496e04,_0x4b2fc3,_0x337870){super(_0x496e04),this[_0x5c4e('0x6')]=_0x4b2fc3,this[_0x5c4e('0x2')]=_0x337870,this[_0x5c4e('0x5')]();}[_0x5c4e('0x5')](){const _0x22a770=this[_0x5c4e('0x6')];this[_0x5c4e('0x3')]=_0x22a770[_0x5c4e('0x3')]&&Array['from'](this[_0x5c4e('0x2')][_0x5c4e('0x7')]())[_0x5c4e('0x1')](_0x31a20e=>_0x31a20e[_0x5c4e('0x4')]);}[_0x5c4e('0x9')](){this[_0x5c4e('0x8')][_0x5c4e('0xa')][_0x5c4e('0x0')](()=>{for(const _0x212dcb of this[_0x5c4e('0x2')][_0x5c4e('0x7')]())_0x212dcb[_0x5c4e('0x4')]&&this[_0x5c4e('0x6')]['execute'](_0x212dcb['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 _0x3f70=['from','editor','model','_discardSuggestionCommand','_selectedSuggestions','refresh','_suggestions','isEnabled','selection','document','values','size','execute'];(function(_0x1f2de6,_0x3f7091){const _0x4529f2=function(_0x36e3bf){while(--_0x36e3bf){_0x1f2de6['push'](_0x1f2de6['shift']());}};_0x4529f2(++_0x3f7091);}(_0x3f70,0xe7));const _0x4529=function(_0x1f2de6,_0x3f7091){_0x1f2de6=_0x1f2de6-0x0;let _0x4529f2=_0x3f70[_0x1f2de6];return _0x4529f2;};import{Command as _0x23c23b}from'ckeditor5/src/core';import _0x356cd1 from'../utils/getselectedsuggestions';export default class j extends _0x23c23b{constructor(_0x5af174,_0x1c7e1f,_0x51b2fc){super(_0x5af174),this[_0x4529('0x6')]=_0x1c7e1f,this[_0x4529('0x9')]=_0x51b2fc,this[_0x4529('0x7')]=new Set(),this[_0x4529('0x8')]();}[_0x4529('0x8')](){const _0x3b29ca=this[_0x4529('0x6')],_0x36f17d=this[_0x4529('0x4')][_0x4529('0x5')][_0x4529('0xc')][_0x4529('0xb')],_0x1ce34f=Array[_0x4529('0x3')](this[_0x4529('0x9')][_0x4529('0x0')]());this[_0x4529('0x7')]=_0x356cd1(_0x36f17d,_0x1ce34f),this['isEnabled']=_0x3b29ca[_0x4529('0xa')]&&!!this[_0x4529('0x7')][_0x4529('0x1')];}[_0x4529('0x2')](){this['editor'][_0x4529('0x5')]['change'](()=>{for(const _0x2c9648 of this[_0x4529('0x7')])this[_0x4529('0x6')][_0x4529('0x2')](_0x2c9648['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 _0x5772=['track-changes-discard-suggestion-not-found','isEnabled','execute','plugins','get','_suggestions','TrackChangesEditing','refresh'];(function(_0xf5d6e8,_0x57722d){const _0x5ef4fe=function(_0x1b3f1a){while(--_0x1b3f1a){_0xf5d6e8['push'](_0xf5d6e8['shift']());}};_0x5ef4fe(++_0x57722d);}(_0x5772,0xa4));const _0x5ef4=function(_0xf5d6e8,_0x57722d){_0xf5d6e8=_0xf5d6e8-0x0;let _0x5ef4fe=_0x5772[_0xf5d6e8];return _0x5ef4fe;};import{Command as _0x411890}from'ckeditor5/src/core';import{CKEditorError as _0x3348f0}from'ckeditor5/src/utils';export default class M extends _0x411890{constructor(_0x5d43d7,_0x216996){super(_0x5d43d7),this[_0x5ef4('0x1')]=_0x216996,this['refresh']();}[_0x5ef4('0x3')](){this[_0x5ef4('0x5')]=!0x0;}[_0x5ef4('0x6')](_0x5db06e){const _0x2b7bb1=this[_0x5ef4('0x1')][_0x5ef4('0x0')](_0x5db06e);if(!_0x2b7bb1)throw new _0x3348f0(_0x5ef4('0x4'),this);this['editor'][_0x5ef4('0x7')]['get'](_0x5ef4('0x2'))['discardSuggestion'](_0x2b7bb1);}}
|
|
@@ -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 _0x1b31=['execute','value','_enabledCommands','clearForceDisabled','isEnabled','refresh','has','editor','_disableUnsupportedCommands','affectsData','forceDisabled','commands','TrackChangesCommand','_enableCommands'];(function(_0x20251b,_0x1b31c7){const _0xcd56c2=function(_0x1b275e){while(--_0x1b275e){_0x20251b['push'](_0x20251b['shift']());}};_0xcd56c2(++_0x1b31c7);}(_0x1b31,0xeb));const _0xcd56=function(_0x20251b,_0x1b31c7){_0x20251b=_0x20251b-0x0;let _0xcd56c2=_0x1b31[_0x20251b];return _0xcd56c2;};import{Command as _0x1e8d67}from'ckeditor5/src/core';export default class _ extends _0x1e8d67{constructor(_0x1b5428,_0x5ed5b0){super(_0x1b5428),this[_0xcd56('0x5')]=_0x5ed5b0,this[_0xcd56('0x4')]=!0x1,this[_0xcd56('0x8')]();}[_0xcd56('0x8')](){this[_0xcd56('0x7')]=!0x0;}[_0xcd56('0x3')](){this[_0xcd56('0x4')]=!this[_0xcd56('0x4')],this[_0xcd56('0x4')]?this[_0xcd56('0xb')]():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x216daf of this[_0xcd56('0xa')][_0xcd56('0x0')][_0xcd56('0x0')]())_0x216daf[_0xcd56('0xc')]&&!this[_0xcd56('0x5')][_0xcd56('0x9')](_0x216daf)&&_0x216daf[_0xcd56('0xd')](_0xcd56('0x1'));}[_0xcd56('0x2')](){for(const _0x22fa9d of this[_0xcd56('0xa')][_0xcd56('0x0')][_0xcd56('0x0')]())_0x22fa9d[_0xcd56('0xc')]&&!this[_0xcd56('0x5')][_0xcd56('0x9')](_0x22fa9d)&&_0x22fa9d[_0xcd56('0x6')](_0xcd56('0x1'));}}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{default as TrackChanges}from'./trackchanges';export{default as TrackChangesData}from'./trackchangesdata';export{default as BaseSuggestionThreadView}from'./ui/view/basesuggestionthreadview';
|
|
@@ -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 _0x505cc2}from'ckeditor5/src/core';export default class U extends _0x505cc2{['afterInit'](){const _0x43c806=this['editor'],{t:t}=_0x43c806['locale'];if(!_0x43c806['plugins']['has']('AlignmentEditing'))return;const _0x1ae20f=_0x43c806['plugins']['get']('TrackChangesEditing');_0x1ae20f['enableCommand']('alignment',(_0x561a24,_0x4c6bff={})=>{let _0x507ddd=_0x4c6bff['value'];_0x4c6bff['value']||(_0x507ddd='ltr'===_0x43c806['locale']['contentLanguageDirection']?'left':'right');const _0x5ce26e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x35ff8e=>function(_0x3c9d5b,_0x4e5083,_0x598d44){const _0x12d3ec=_0x3c9d5b['getAttribute']('alignment')||null;return _0x4e5083['checkAttribute'](_0x3c9d5b,'alignment')&&_0x598d44!=_0x12d3ec;}(_0x35ff8e,this['editor']['model']['schema'],_0x507ddd));_0x43c806['model']['change'](()=>{for(const _0x1fac80 of _0x5ce26e)_0x1ae20f['markBlockFormat'](_0x1fac80,{'commandName':'alignment','commandParams':[{'value':_0x507ddd}]});});}),_0x1ae20f['_descriptionFactory']['registerDescriptionCallback'](_0x11b3e5=>{const {data:_0x277982}=_0x11b3e5;if(_0x277982&&'alignment'==_0x277982['commandName']){const _0x5d7130=_0x277982['commandParams'][0x0]['value'];return{'type':'format','content':t('*Format:*\x20%0',function(_0x46385d){switch(_0x46385d){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'});}}(_0x5d7130))};}});}}
|
|
@@ -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 _0x30f407}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';const Ot=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];export default class E extends _0x30f407{['afterInit'](){const _0x1169cd=this['editor'],_0x102c3e=_0x1169cd['model'],_0x10650a=_0x1169cd['plugins']['get']('TrackChangesEditing'),{t:t}=_0x1169cd['locale'];for(const _0x10d3de of Ot){if(!_0x1169cd['plugins']['has'](_0x10d3de))continue;const _0x52d362=_0x10d3de['slice'](0x0,-0x7)['toLowerCase'](),_0x352ea9=_0x1169cd['commands']['get'](_0x52d362);_0x10650a['enableCommand'](_0x52d362,(_0xb56f15,_0x40976c={})=>{const _0x9865b6=_0x102c3e['document']['selection'];if(_0x9865b6['isCollapsed'])return void _0xb56f15(_0x40976c);const _0x3733d0=void 0x0!==_0x40976c['forceValue']?_0x40976c['forceValue']:!_0x352ea9['value'];_0x102c3e['change'](()=>{const _0x2282dc=Array['from'](_0x9865b6['getRanges']());for(const _0x3b1ca0 of _0x2282dc){const _0x2bd47e=_0x3733d0?[_0x3b1ca0]:Rt(_0x52d362,_0x3b1ca0,_0x102c3e);for(const _0x488284 of _0x2bd47e)_0x10650a['markInlineFormat'](_0x488284,{'commandName':_0x52d362,'commandParams':[{'forceValue':_0x3733d0}]});}});});}function _0x2bca21(_0x320e79,_0x16eb0f){_0x10650a['_descriptionFactory']['registerDescriptionCallback'](_0x1b79f4=>{const {data:_0x288ce4}=_0x1b79f4;if(_0x288ce4&&_0x288ce4['commandName']===_0x320e79)return _0x288ce4['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0x16eb0f)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0x16eb0f)};});}_0x2bca21('bold',t({'string':'bold','id':'FORMAT_BOLD'})),_0x2bca21('italic',t({'string':'italic','id':'FORMAT_ITALIC'})),_0x2bca21('underline',t({'string':'underline','id':'FORMAT_UNDERLINE'})),_0x2bca21('code',t({'string':'code','id':'FORMAT_CODE'})),_0x2bca21('strikethrough',t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'})),_0x2bca21('subscript',t({'string':'subscript','id':'FORMAT_SUBSCRIPT'})),_0x2bca21('superscript',t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'}));}}
|