@ckeditor/ckeditor5-track-changes 33.0.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/README.md +3 -0
- package/build/track-changes.js +1 -1
- package/build/translations/az.js +1 -0
- package/build/translations/cs.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/id.js +1 -0
- package/build/translations/sk.js +1 -1
- package/lang/translations/az.po +387 -0
- package/lang/translations/cs.po +28 -28
- package/lang/translations/en-au.po +5 -5
- package/lang/translations/gl.po +3 -3
- package/lang/translations/hr.po +13 -13
- package/lang/translations/id.po +370 -0
- package/lang/translations/sk.po +57 -57
- package/package.json +3 -3
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +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
|
@@ -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"
|
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/)",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
],
|
|
28
28
|
"main": "src/index.js",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"ckeditor5": "^
|
|
31
|
-
"ckeditor5-collaboration": "^
|
|
30
|
+
"ckeditor5": "^34.0.0",
|
|
31
|
+
"ckeditor5-collaboration": "^34.0.0",
|
|
32
32
|
"lodash-es": "^4.17.11"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -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']);});}}
|
|
@@ -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']);});}}
|
|
@@ -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);}}
|
|
@@ -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']);});}}
|
|
@@ -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']);});}}
|
|
@@ -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);}}
|
|
@@ -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'));}}
|
|
@@ -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))};}});}}
|
|
@@ -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'}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x295c39}from'ckeditor5/src/core';import{TreeWalker as Qt}from'ckeditor5/src/engine';export default class x extends _0x295c39{['afterInit'](){const _0x4be724=this['editor'],{t:t}=_0x4be724['locale'];if(!_0x4be724['plugins']['has']('BlockQuoteEditing'))return;const _0x2b6305=_0x4be724['plugins']['get']('TrackChangesEditing'),_0x158426=this['editor']['commands']['get']('blockQuote');_0x2b6305['enableCommand']('blockQuote',(_0x5077c5,_0x2c151={})=>{const _0x15a710=this['editor']['model']['document']['selection'],_0x108cc1=_0x2c151&&void 0x0!==_0x2c151['forceValue']?_0x2c151['forceValue']:!_0x158426['value'];let _0x4bdfc6=[];if(_0x108cc1){const _0x37c09a=Array['from'](_0x15a710['getSelectedBlocks']())['filter'](_0x4a3514=>Bt(_0x4a3514)||function(_0x101434,_0x14a6bf){const _0x3ade75=_0x14a6bf['checkChild'](_0x101434['parent'],'blockQuote'),_0x416f4e=_0x14a6bf['checkChild'](['$root','blockQuote'],_0x101434);return _0x3ade75&&_0x416f4e;}(_0x4a3514,this['editor']['model']['schema']));_0x4bdfc6=Lt(_0x37c09a,_0x4be724['model']);}else{const _0x13a703=Array['from'](_0x15a710['getSelectedBlocks']())['filter'](_0x182719=>Bt(_0x182719));_0x4bdfc6=Lt(_0x13a703,_0x4be724['model']);}_0x4be724['model']['change'](()=>{for(const _0x40bc3b of _0x4bdfc6)_0x2b6305['markBlockFormat'](_0x40bc3b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x108cc1}]});});}),_0x2b6305['_descriptionFactory']['registerDescriptionCallback'](_0x17cadf=>{const {data:_0x48735e}=_0x17cadf;if(_0x48735e&&'blockQuote'==_0x48735e['commandName']){const _0xd3373d=t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});return _0x48735e['commandParams'][0x0]['forceValue']?{'type':'format','content':t('*Format:*\x20%0',_0xd3373d)}:{'type':'format','content':t('*Remove\x20format:*\x20%0',_0xd3373d)};}});}}function Bt(_0x1e4fa6){return'blockQuote'==_0x1e4fa6['parent']['name'];}function Lt(_0x86b049,_0x445919){let _0x51ca46,_0x24c77e=0x0;const _0x24e5eb=[],_0x261b09=_0x445919['schema'];for(;_0x24c77e<_0x86b049['length'];){const _0x110c53=_0x86b049[_0x24c77e],_0x26fbdc=_0x86b049[_0x24c77e+0x1];_0x51ca46||(_0x51ca46=_0x445919['createPositionBefore'](_0x110c53)),_t(_0x445919,_0x110c53,_0x26fbdc)||(_0x24e5eb['push'](_0x445919['createRange'](_0x51ca46,_0x261b09['isObject'](_0x110c53)?_0x445919['createPositionAfter'](_0x110c53):_0x445919['createPositionAt'](_0x110c53,'end'))),_0x51ca46=null),_0x24c77e++;}return _0x24e5eb;}function _t(_0x55567a,_0x13f619,_0x432c98){if(!_0x432c98)return!0x1;const _0x1e8dd3=_0x55567a['createPositionAfter'](_0x13f619),_0x419918=_0x55567a['createPositionBefore'](_0x432c98),_0x535ed6=new Qt({'boundaries':_0x55567a['createRange'](_0x1e8dd3,_0x419918)});for(const _0x450064 of _0x535ed6)if('text'==_0x450064['type']||_0x55567a['schema']['isLimit'](_0x450064['item']))return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4c07e4}from'ckeditor5/src/core';export default class O extends _0x4c07e4{['afterInit'](){const _0x2685f5=this['editor'],{t:t}=_0x2685f5['locale'];if(!_0x2685f5['plugins']['has']('CodeBlock'))return;_0x2685f5['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerElementLabel']('codeBlock',_0x2c7a83=>t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2c7a83));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4b3a=['enableCommand','CommentsEditing','get','plugins','requires','editor','addCommentThread','TrackChangesEditing'];(function(_0x16b15d,_0x4b3a5a){var _0x2fcfee=function(_0x150096){while(--_0x150096){_0x16b15d['push'](_0x16b15d['shift']());}};_0x2fcfee(++_0x4b3a5a);}(_0x4b3a,0xc3));var _0x2fcf=function(_0x16b15d,_0x4b3a5a){_0x16b15d=_0x16b15d-0x0;var _0x2fcfee=_0x4b3a[_0x16b15d];return _0x2fcfee;};import{Plugin as _0x259ece}from'ckeditor5/src/core';export default class P extends _0x259ece{static get[_0x2fcf('0x1')](){return[_0x2fcf('0x6')];}['init'](){this[_0x2fcf('0x2')][_0x2fcf('0x0')][_0x2fcf('0x7')](_0x2fcf('0x4'))[_0x2fcf('0x5')](_0x2fcf('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3eef=['document','model','init','unlock','high','writer','addMarker:suggestion:deletion','mapper','start','get','markerNameToElements','forward','plugins','createSelection','setSelection','editing','fromRange','buffer','deleteForward','createRange','downcastDispatcher','detach','markerName','$graveyard','delete','removeMarker:suggestion:deletion','enableCommand','selection','batch','modifySelection','lock','getFirstRange','requires','data','options','end','unbindElementFromMarkerName','merge','uiElement'];(function(_0x1a57d0,_0x3eef2c){const _0xb2788e=function(_0x3360ea){while(--_0x3360ea){_0x1a57d0['push'](_0x1a57d0['shift']());}};_0xb2788e(++_0x3eef2c);}(_0x3eef,0xd2));const _0xb278=function(_0x1a57d0,_0x3eef2c){_0x1a57d0=_0x1a57d0-0x0;let _0xb2788e=_0x3eef[_0x1a57d0];return _0xb2788e;};import{Plugin as _0x4be9ac}from'ckeditor5/src/core';import{Delete as _0x4d83dd}from'ckeditor5/src/typing';import{LiveRange as _0x444834}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x2271c2}from'./utils';export default class G extends _0x4be9ac{static get[_0xb278('0x11')](){return[_0x4d83dd];}[_0xb278('0x1a')](){const _0x2ca1e4=this['editor'],_0x3594a2=_0x2ca1e4[_0xb278('0x24')][_0xb278('0x21')]('TrackChangesEditing');_0x3594a2[_0xb278('0xb')](_0xb278('0x9'));const _0xaf4790=_0x2ca1e4['commands'][_0xb278('0x21')]('deleteForward');_0x3594a2[_0xb278('0xb')](_0xb278('0x3'),(_0x43864f,_0x5742aa={})=>{const _0x256a0c=_0x2ca1e4[_0xb278('0x19')][_0xb278('0x25')](_0x2ca1e4[_0xb278('0x19')][_0xb278('0x18')][_0xb278('0xc')]);_0x256a0c['isCollapsed']&&_0x2ca1e4['model'][_0xb278('0xe')](_0x256a0c,{'direction':_0xb278('0x23'),'unit':_0x5742aa['unit']});const _0x3c34ce=_0x256a0c[_0xb278('0x10')](),_0x282daa=_0x444834[_0xb278('0x1')](_0x3c34ce);let _0x24fe25;_0x43864f(_0x5742aa),_0x24fe25=_0xb278('0x8')==_0x282daa['root']['rootName']?_0x2ca1e4['model'][_0xb278('0x4')](_0x3c34ce['start']):_0x2ca1e4[_0xb278('0x19')]['createRange'](_0x282daa[_0xb278('0x20')],_0x282daa[_0xb278('0x14')]),_0x282daa[_0xb278('0x6')](),_0x2ca1e4[_0xb278('0x19')]['enqueueChange'](_0xaf4790[_0xb278('0x2')][_0xb278('0xd')],_0x1d1a51=>{_0xaf4790[_0xb278('0x2')][_0xb278('0xf')](),_0x1d1a51[_0xb278('0x26')](_0x1d1a51[_0xb278('0x4')](_0x24fe25[_0xb278('0x14')])),_0xaf4790['buffer'][_0xb278('0x1b')]();});}),_0x2ca1e4[_0xb278('0x0')][_0xb278('0x5')]['on'](_0xb278('0x1e'),_0x2271c2(_0x2ca1e4,_0xb278('0x16')),{'priority':'high'}),_0x2ca1e4[_0xb278('0x12')][_0xb278('0x5')]['on']('addMarker:suggestion:deletion',(_0xfe8f79,_0x55bdbf,_0x391b72)=>{_0x391b72[_0xb278('0x13')]['showSuggestionHighlights']&&_0x2271c2(_0x2ca1e4,_0xb278('0x16'),{'showActiveMarker':!0x1})(_0xfe8f79,_0x55bdbf,_0x391b72);},{'priority':'high'}),_0x2ca1e4[_0xb278('0x0')]['downcastDispatcher']['on'](_0xb278('0xa'),(_0x4219ee,_0x4e1e51,_0x370d8f)=>{const _0x5c591e=_0x370d8f[_0xb278('0x1f')][_0xb278('0x22')](_0x4e1e51[_0xb278('0x7')]);if(_0x5c591e)for(const _0x1929a4 of _0x5c591e)_0x1929a4['is'](_0xb278('0x17'))&&(_0x370d8f['mapper'][_0xb278('0x15')](_0x1929a4,_0x4e1e51[_0xb278('0x7')]),_0x370d8f[_0xb278('0x1d')]['remove'](_0x1929a4));},{'priority':_0xb278('0x1c')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26c2=['enableCommand','editing','isAtEnd','showSuggestionHighlights','change','get','createRange','requires','isLimit','downcastDispatcher','data','selection','addMarker:suggestion:insertion','start','options','isCollapsed','high','removeMarker:suggestion:insertion','enter','init','end','ck-suggestion-marker-split','parent','model','setSelection','markerName','editor','split','getFirstRange','document','isAtStart','mapper','unbindElementFromMarkerName','schema','markerNameToElements','hasClass','nextSibling'];(function(_0x385d08,_0x26c260){const _0x2a4fce=function(_0x47ae0b){while(--_0x47ae0b){_0x385d08['push'](_0x385d08['shift']());}};_0x2a4fce(++_0x26c260);}(_0x26c2,0x150));const _0x2a4f=function(_0x385d08,_0x26c260){_0x385d08=_0x385d08-0x0;let _0x2a4fce=_0x26c2[_0x385d08];return _0x2a4fce;};import{Plugin as _0x216c60}from'ckeditor5/src/core';import{Enter as _0x4a6e6c}from'ckeditor5/src/enter';import{LiveRange as _0xecc283}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x5b485c}from'./utils';export default class F extends _0x216c60{static get[_0x2a4f('0x4')](){return[_0x4a6e6c];}[_0x2a4f('0x10')](){const _0x5a043e=this[_0x2a4f('0x17')],_0x4d75c1=_0x5a043e['plugins'][_0x2a4f('0x2')]('TrackChangesEditing');_0x4d75c1[_0x2a4f('0x22')](_0x2a4f('0xf'),_0x46b933=>{_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1')](_0x5afd18=>{const _0x4a5a9f=_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1a')][_0x2a4f('0x8')],_0x357089=_0x4a5a9f['getFirstPosition'](),_0x16489f=_0x4a5a9f[_0x2a4f('0xc')],_0x9435c6=_0xecc283['fromRange'](_0x4a5a9f[_0x2a4f('0x19')]()),_0x1b0ed3=_0x9435c6[_0x2a4f('0xa')]['parent'],_0xf8bfd2=_0x9435c6[_0x2a4f('0x11')]['parent'],_0x10f55d=!(_0x9435c6[_0x2a4f('0xa')][_0x2a4f('0x1b')]&&_0x9435c6[_0x2a4f('0x11')][_0x2a4f('0x24')]),_0x1f0384=_0x1b0ed3==_0xf8bfd2,_0x746f0e=!(_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1e')][_0x2a4f('0x5')](_0x1b0ed3)||_0x5a043e[_0x2a4f('0x14')][_0x2a4f('0x1e')][_0x2a4f('0x5')](_0xf8bfd2))&&(_0x16489f||_0x10f55d&&_0x1f0384);if(_0x46b933(),_0x746f0e){const _0x37f32c=_0x5a043e[_0x2a4f('0x14')]['createPositionAt'](_0x357089[_0x2a4f('0x13')][_0x2a4f('0x21')],0x0),_0x1fc658=_0x5afd18[_0x2a4f('0x3')](_0x357089,_0x37f32c);_0x4d75c1['markInsertion'](_0x1fc658);}else _0x5afd18[_0x2a4f('0x15')](_0x5afd18[_0x2a4f('0x3')](_0x9435c6[_0x2a4f('0x11')]));_0x9435c6['detach']();});}),_0x5a043e[_0x2a4f('0x23')][_0x2a4f('0x6')]['on'](_0x2a4f('0x9'),_0x5b485c(_0x5a043e,_0x2a4f('0x18')),{'priority':_0x2a4f('0xd')}),_0x5a043e[_0x2a4f('0x23')][_0x2a4f('0x6')]['on'](_0x2a4f('0xe'),(_0x3d6630,_0x1b3a94,_0x345c49)=>{const _0x3f49da=_0x345c49[_0x2a4f('0x1c')][_0x2a4f('0x1f')](_0x1b3a94[_0x2a4f('0x16')]);if(_0x3f49da)for(const _0x170b10 of _0x3f49da)_0x170b10[_0x2a4f('0x20')](_0x2a4f('0x12'))&&(_0x345c49[_0x2a4f('0x1c')][_0x2a4f('0x1d')](_0x170b10,_0x1b3a94[_0x2a4f('0x16')]),_0x345c49['writer']['remove'](_0x170b10));},{'priority':'high'}),_0x5a043e[_0x2a4f('0x7')][_0x2a4f('0x6')]['on'](_0x2a4f('0x9'),(_0x1cc6bb,_0x43687b,_0x3440ee)=>{_0x3440ee[_0x2a4f('0xb')][_0x2a4f('0x0')]&&_0x5b485c(_0x5a043e,_0x2a4f('0x18'),{'showActiveMarker':!0x1})(_0x1cc6bb,_0x43687b,_0x3440ee);},{'priority':'high'});}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xcbe0d0}from'ckeditor5/src/core';import{normalizeColorOptions as Ft}from'ckeditor5/src/ui';import{getRangesWithAttribute as Rt}from'./utils';const zt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class L extends _0xcbe0d0{['afterInit'](){const {t:t}=this['editor']['locale'];for(const {pluginName:_0x164a4c,commandName:_0x174f1b}of zt)this['editor']['plugins']['has'](_0x164a4c)&&this['_enableCommand'](_0x174f1b);this['editor']['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xb5d250=>{const {data:_0x226515}=_0xb5d250;if(null!=_0x226515){if('fontSize'==_0x226515['commandName']){const _0x13bc60=_0x226515['commandParams'][0x0]['value'];if(_0x13bc60){const _0x3e53bd=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12e3f0=>_0x12e3f0['model']==_0x13bc60)['title'],_0x4e46c9=this['editor']['locale']['_t'](_0x3e53bd)['toLowerCase']();return{'type':'format','content':t('*Set\x20font\x20size:*\x20%0',_0x4e46c9)};}return{'type':'format','content':t('*Reset\x20font\x20size*')};}if('fontFamily'==_0x226515['commandName']){const _0x526075=_0x226515['commandParams'][0x0]['value'];return _0x526075?{'type':'format','content':t('*Set\x20font\x20family:*\x20%0',_0x526075)}:{'type':'format','content':t('*Reset\x20font\x20family*')};}if('fontColor'==_0x226515['commandName']){const _0x292979=_0x226515['commandParams'][0x0]['value'];if(_0x292979){const _0x3965c1=Ft(this['editor']['config']['get']('fontColor.colors'))['find'](_0x267d1c=>_0x267d1c['model']==_0x292979);let _0x5c12ae=_0x292979,_0x207353='';return _0x3965c1&&(_0x5c12ae=_0x3965c1['label'],_0x207353=this['editor']['locale']['_t'](_0x5c12ae)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20color:*\x20%0',_0x207353)['trim'](),'color':{'value':_0x292979,'title':_0x207353||_0x5c12ae}};}return{'type':'format','content':t('*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x226515['commandName']){const _0x18e398=_0x226515['commandParams'][0x0]['value'];if(_0x18e398){const _0x4dfa19=Ft(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x570eb5=>_0x570eb5['model']==_0x18e398);let _0x1798f7=_0x18e398,_0x2a4ad1='';return _0x4dfa19&&(_0x1798f7=_0x4dfa19['label'],_0x2a4ad1=this['editor']['locale']['_t'](_0x1798f7)['toLowerCase']()),{'type':'format','content':t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a4ad1)['trim'](),'color':{'value':_0x18e398,'title':_0x2a4ad1||_0x1798f7}};}return{'type':'format','content':t('*Reset\x20font\x20background\x20color*')};}}});}['_enableCommand'](_0x32b725){const _0x2aa470=this['editor'];_0x2aa470['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x32b725,(_0x112504,_0xc7c0b={})=>{const _0x47aba8=_0x2aa470['model']['document']['selection'],_0x495e5b=_0xc7c0b['value'];_0x47aba8['isCollapsed']?_0x112504(_0xc7c0b):_0x2aa470['model']['change'](()=>{const _0x12fccc=Array['from'](_0x47aba8['getRanges']());for(const _0x932277 of _0x12fccc){const _0x1637f8=_0x495e5b?[_0x932277]:Rt(_0x32b725,_0x932277,_0x2aa470['model']);for(const _0x59038f of _0x1637f8)_0x2aa470['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x59038f,{'commandName':_0x32b725,'commandParams':[{'value':_0x495e5b}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xb47d62}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x32ec1d}from'./utils';export default class q extends _0xb47d62{['afterInit'](){const _0x36004d=this['editor'],{t:t}=_0x36004d['locale'],_0x4279be=_0x36004d['config']['get']('heading.options');if(!_0x36004d['plugins']['has']('HeadingEditing'))return;const _0x117ed7=_0x36004d['plugins']['get']('TrackChangesEditing');_0x117ed7['enableCommand']('heading',(_0x2ad656,_0x5a3605)=>{const _0xe95430=_0x5a3605['value'],_0x4445ab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1cece6=>function(_0x3d23e,_0xfd7b23,_0x5d223c){return _0x5d223c['checkChild'](_0x3d23e['parent'],_0xfd7b23)&&!_0x5d223c['isObject'](_0x3d23e)&&_0x3d23e['name']!=_0xfd7b23;}(_0x1cece6,_0xe95430,this['editor']['model']['schema']));_0x36004d['model']['change'](()=>{for(const _0x1608d0 of _0x4445ab)_0x117ed7['markBlockFormat'](_0x1608d0,{'commandName':'heading','commandParams':[_0x5a3605],'formatGroupId':'blockName'},_0x32ec1d(_0x1608d0));});});for(const _0x21663b of _0x4279be)'paragraph'!=_0x21663b['model']&&_0x117ed7['_descriptionFactory']['registerElementLabel'](_0x21663b['model'],_0x4210f4=>{const _0x49bdba=tn(_0x21663b['model']);return null!==_0x49bdba?_0x3746ad(_0x4210f4,_0x49bdba):_0xcd77d7(_0x4210f4,_0x21663b['title']);});function _0x3746ad(_0x5b23cf,_0x11af11){return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},[_0x5b23cf,_0x11af11]);}function _0xcd77d7(_0x38e7b4,_0x521355){return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},[_0x38e7b4,_0x521355]);}_0x117ed7['_descriptionFactory']['registerDescriptionCallback'](_0x5bd689=>{const {type:_0x201986,data:_0x48d3ca}=_0x5bd689;if('formatBlock'==_0x201986&&_0x48d3ca&&'heading'==_0x48d3ca['commandName']){const _0x580367=_0x48d3ca['commandParams'][0x0]['value'],_0x437f4d=tn(_0x580367);if(null!==_0x437f4d)return{'type':'format','content':t('*Change\x20to:*\x20%0',_0x3746ad(0x1,_0x437f4d))};const _0x3ee6f1=_0x4279be['find'](_0xb19343=>_0xb19343['model']===_0x580367)['title'];return{'type':'format','content':t('*Change\x20to:*\x20%0',_0xcd77d7(0x1,_0x3ee6f1))};}});}}function tn(_0xb976f8){const _0x46ca4e=_0xb976f8['match'](/^heading(\d+)$/);return _0x46ca4e?_0x46ca4e[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x445cd4}from'ckeditor5/src/core';import{getRangesWithAttribute as Rt}from'./utils';export default class H extends _0x445cd4{['afterInit'](){const _0x23a06d=this['editor'];if(!_0x23a06d['plugins']['has']('HighlightEditing'))return;const _0xda63aa=_0x23a06d['plugins']['get']('TrackChangesEditing');_0xda63aa['enableCommand']('highlight',(_0x3be3f6,_0x45f48e={})=>{const _0x1fb076=_0x23a06d['model']['document']['selection'],_0x54c517=_0x1fb076['getAttribute']('highlight');let _0x1db34a=_0x45f48e['value'],_0x242d2c=[];if(_0x1fb076['isCollapsed']){const _0x5a1fae=_0x1fb076['getFirstPosition']();if(!_0x1fb076['hasAttribute']('highlight'))return void _0x3be3f6(_0x45f48e);{const _0x5971ab=_0x2cb28b=>_0x2cb28b['item']['getAttribute']('highlight')===_0x54c517,_0x44b6ff=_0x5a1fae['getLastMatchingPosition'](_0x5971ab,{'direction':'backward'}),_0xd5564=_0x5a1fae['getLastMatchingPosition'](_0x5971ab);_0x242d2c=[_0x23a06d['model']['createRange'](_0x44b6ff,_0xd5564)],_0x1db34a==_0x54c517&&(_0x1db34a=null);}}else for(const _0x3fd12c of _0x1fb076['getRanges']())_0x1db34a?_0x242d2c['push'](_0x3fd12c):_0x242d2c['push'](...Rt('highlight',_0x3fd12c,_0x23a06d['model']));_0x23a06d['model']['change'](()=>{for(const _0x57c7e7 of _0x242d2c)_0xda63aa['markInlineFormat'](_0x57c7e7,{'commandName':'highlight','commandParams':[{'value':_0x1db34a}]});});});const {t:t}=_0x23a06d['locale'];_0xda63aa['_descriptionFactory']['registerDescriptionCallback'](_0x3e8bee=>{const {type:_0x3db140,data:_0x27946a}=_0x3e8bee;if('formatInline'==_0x3db140&&_0x27946a&&'highlight'==_0x27946a['commandName']){const _0x5f42d5=_0x27946a['commandParams'][0x0]['value'];if(_0x5f42d5){const _0x2e9346=_0x23a06d['config']['get']('highlight.options')['find'](_0x5da34b=>_0x5da34b['model']==_0x5f42d5),_0x56f92b=_0x23a06d['locale']['_t'](_0x2e9346['title'])['toLowerCase']();return{'type':'format','content':t('*Set\x20highlight:*\x20%0',_0x56f92b),'color':{'value':_0x2e9346['color'],'title':_0x2e9346['title']}};}return{'type':'format','content':t('*Remove\x20highlight*',t({'string':'highlight','id':'FORMAT_HIGHLIGHT'}))};}});}}
|