@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231115.0 → 0.0.0-nightly-20231117.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/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +3 -3
- package/lang/translations/ar.po +19 -19
- package/lang/translations/bg.po +19 -19
- package/lang/translations/bn.po +19 -19
- package/lang/translations/ca.po +19 -19
- package/lang/translations/cs.po +19 -19
- package/lang/translations/da.po +19 -19
- package/lang/translations/de.po +19 -19
- package/lang/translations/el.po +19 -19
- package/lang/translations/es.po +19 -19
- package/lang/translations/et.po +19 -19
- package/lang/translations/fi.po +19 -19
- package/lang/translations/fr.po +19 -19
- package/lang/translations/he.po +19 -19
- package/lang/translations/hi.po +19 -19
- package/lang/translations/hu.po +19 -19
- package/lang/translations/id.po +19 -19
- package/lang/translations/it.po +19 -19
- package/lang/translations/ja.po +19 -19
- package/lang/translations/ko.po +19 -19
- package/lang/translations/lt.po +19 -19
- package/lang/translations/lv.po +19 -19
- package/lang/translations/ms.po +19 -19
- package/lang/translations/nl.po +19 -19
- package/lang/translations/no.po +19 -19
- package/lang/translations/pl.po +19 -19
- package/lang/translations/pt-br.po +19 -19
- package/lang/translations/pt.po +19 -19
- package/lang/translations/ro.po +19 -19
- package/lang/translations/ru.po +19 -19
- package/lang/translations/sk.po +19 -19
- package/lang/translations/sr.po +19 -19
- package/lang/translations/sv.po +19 -19
- package/lang/translations/th.po +19 -19
- package/lang/translations/tr.po +19 -19
- package/lang/translations/uk.po +19 -19
- package/lang/translations/vi.po +19 -19
- package/lang/translations/zh-cn.po +19 -19
- package/lang/translations/zh.po +19 -19
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/integrations/aiassistant.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/ckbox.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/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.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/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.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/listproperties.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/style.d.ts +0 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.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.d.ts +7 -4
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +0 -67
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -19
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +14 -23
- 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.d.ts +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -155,7 +155,7 @@ msgstr "*设置字号:* %0"
|
|
|
155
155
|
|
|
156
156
|
msgctxt "A suggestion for setting multiple inline formatting %0"
|
|
157
157
|
msgid "*Set format:* %0"
|
|
158
|
-
msgstr ""
|
|
158
|
+
msgstr "*设置格式:* %0"
|
|
159
159
|
|
|
160
160
|
msgctxt "A suggestion for setting multiple inline formatting to %0"
|
|
161
161
|
msgid "*Set format to:* %0"
|
|
@@ -219,27 +219,27 @@ msgstr "放弃建议"
|
|
|
219
219
|
|
|
220
220
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves an insertion suggestion."
|
|
221
221
|
msgid "LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"
|
|
222
|
-
msgstr ""
|
|
222
|
+
msgstr "离开插入建议。"
|
|
223
223
|
|
|
224
224
|
msgctxt "A message read out by assistive technologies the moment the user selection enters an insertion suggestion."
|
|
225
225
|
msgid "ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"
|
|
226
|
-
msgstr ""
|
|
226
|
+
msgstr "进入插入建议。"
|
|
227
227
|
|
|
228
228
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves a deletion suggestion."
|
|
229
229
|
msgid "LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"
|
|
230
|
-
msgstr ""
|
|
230
|
+
msgstr "离开删除建议。"
|
|
231
231
|
|
|
232
232
|
msgctxt "A message read out by assistive technologies the moment the user selection enters a deletion suggestion."
|
|
233
233
|
msgid "ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"
|
|
234
|
-
msgstr ""
|
|
234
|
+
msgstr "进入删除建议。"
|
|
235
235
|
|
|
236
236
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves a formatting suggestion."
|
|
237
237
|
msgid "LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"
|
|
238
|
-
msgstr ""
|
|
238
|
+
msgstr "离开格式建议。"
|
|
239
239
|
|
|
240
240
|
msgctxt "A message read out by assistive technologies the moment the user selection enters a formatting suggestion."
|
|
241
241
|
msgid "ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"
|
|
242
|
-
msgstr ""
|
|
242
|
+
msgstr "进入格式建议。"
|
|
243
243
|
|
|
244
244
|
msgctxt "The block quote element name displayed in the suggestion."
|
|
245
245
|
msgid "ELEMENT_BLOCK_QUOTE"
|
|
@@ -251,7 +251,7 @@ msgstr "项目符号列表"
|
|
|
251
251
|
|
|
252
252
|
msgctxt "The default styled bulleted list element name displayed in the suggestion."
|
|
253
253
|
msgid "ELEMENT_BULLETED_LIST_DEFAULT"
|
|
254
|
-
msgstr ""
|
|
254
|
+
msgstr "项目符号列表(默认)"
|
|
255
255
|
|
|
256
256
|
msgctxt "The circle styled bulleted list element name displayed in the suggestion."
|
|
257
257
|
msgid "ELEMENT_BULLETED_LIST_CIRCLE"
|
|
@@ -325,7 +325,7 @@ msgstr "项目编号列表"
|
|
|
325
325
|
|
|
326
326
|
msgctxt "The default styled numbered list element name displayed in the suggestion."
|
|
327
327
|
msgid "ELEMENT_NUMBERED_LIST_DEFAULT"
|
|
328
|
-
msgstr ""
|
|
328
|
+
msgstr "编号列表(默认)"
|
|
329
329
|
|
|
330
330
|
msgctxt "The decimal styled numbered list element name displayed in the suggestion."
|
|
331
331
|
msgid "ELEMENT_NUMBERED_LIST_DECIMAL"
|
|
@@ -410,7 +410,7 @@ msgstr "待办事项列表"
|
|
|
410
410
|
|
|
411
411
|
msgctxt "The alignment format name displayed in a format suggestion."
|
|
412
412
|
msgid "FORMAT_ALIGNMENT"
|
|
413
|
-
msgstr ""
|
|
413
|
+
msgstr "对齐"
|
|
414
414
|
|
|
415
415
|
msgctxt "The align to center format name displayed in a format suggestion."
|
|
416
416
|
msgid "FORMAT_ALIGN_TO_CENTER"
|
|
@@ -490,39 +490,39 @@ msgstr "下划线"
|
|
|
490
490
|
|
|
491
491
|
msgctxt "The list or block indent format name displayed in a format suggestion."
|
|
492
492
|
msgid "FORMAT_INDENT"
|
|
493
|
-
msgstr ""
|
|
493
|
+
msgstr "缩进"
|
|
494
494
|
|
|
495
495
|
msgctxt "The list reversed format name displayed in a format suggestion."
|
|
496
496
|
msgid "FORMAT_LIST_REVERSED"
|
|
497
|
-
msgstr ""
|
|
497
|
+
msgstr "列表反转"
|
|
498
498
|
|
|
499
499
|
msgctxt "The list start format name displayed in a format suggestion."
|
|
500
500
|
msgid "FORMAT_LIST_START"
|
|
501
|
-
msgstr ""
|
|
501
|
+
msgstr "列表开始"
|
|
502
502
|
|
|
503
503
|
msgctxt "The font size format name displayed in a format suggestion."
|
|
504
504
|
msgid "FORMAT_FONT_SIZE"
|
|
505
|
-
msgstr ""
|
|
505
|
+
msgstr "字体大小"
|
|
506
506
|
|
|
507
507
|
msgctxt "The font family format name displayed in a format suggestion."
|
|
508
508
|
msgid "FORMAT_FONT_FAMILY"
|
|
509
|
-
msgstr ""
|
|
509
|
+
msgstr "字体类型"
|
|
510
510
|
|
|
511
511
|
msgctxt "The font color format name displayed in a format suggestion."
|
|
512
512
|
msgid "FORMAT_FONT_COLOR"
|
|
513
|
-
msgstr ""
|
|
513
|
+
msgstr "字体颜色"
|
|
514
514
|
|
|
515
515
|
msgctxt "The font background color format name displayed in a format suggestion."
|
|
516
516
|
msgid "FORMAT_FONT_BACKGROUND"
|
|
517
|
-
msgstr ""
|
|
517
|
+
msgstr "字体背景颜色"
|
|
518
518
|
|
|
519
519
|
msgctxt "The image width change format name displayed in a format suggestion."
|
|
520
520
|
msgid "FORMAT_IMAGE_WIDTH"
|
|
521
|
-
msgstr ""
|
|
521
|
+
msgstr "图片大小"
|
|
522
522
|
|
|
523
523
|
msgctxt "The style format name displayed in a format suggestion."
|
|
524
524
|
msgid "FORMAT_STYLE"
|
|
525
|
-
msgstr ""
|
|
525
|
+
msgstr "样式"
|
|
526
526
|
|
|
527
527
|
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
528
528
|
msgid "PENDING_ACTION_SUGGESTION"
|
package/lang/translations/zh.po
CHANGED
|
@@ -155,7 +155,7 @@ msgstr "*設定字型大小:*%0"
|
|
|
155
155
|
|
|
156
156
|
msgctxt "A suggestion for setting multiple inline formatting %0"
|
|
157
157
|
msgid "*Set format:* %0"
|
|
158
|
-
msgstr ""
|
|
158
|
+
msgstr "*設定格式:* %0"
|
|
159
159
|
|
|
160
160
|
msgctxt "A suggestion for setting multiple inline formatting to %0"
|
|
161
161
|
msgid "*Set format to:* %0"
|
|
@@ -219,27 +219,27 @@ msgstr "捨棄建議"
|
|
|
219
219
|
|
|
220
220
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves an insertion suggestion."
|
|
221
221
|
msgid "LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"
|
|
222
|
-
msgstr ""
|
|
222
|
+
msgstr "正在離開插入建議。"
|
|
223
223
|
|
|
224
224
|
msgctxt "A message read out by assistive technologies the moment the user selection enters an insertion suggestion."
|
|
225
225
|
msgid "ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"
|
|
226
|
-
msgstr ""
|
|
226
|
+
msgstr "正在進入插入建議。"
|
|
227
227
|
|
|
228
228
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves a deletion suggestion."
|
|
229
229
|
msgid "LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"
|
|
230
|
-
msgstr ""
|
|
230
|
+
msgstr "正在離開刪除建議。"
|
|
231
231
|
|
|
232
232
|
msgctxt "A message read out by assistive technologies the moment the user selection enters a deletion suggestion."
|
|
233
233
|
msgid "ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"
|
|
234
|
-
msgstr ""
|
|
234
|
+
msgstr "正在進入刪除建議。"
|
|
235
235
|
|
|
236
236
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves a formatting suggestion."
|
|
237
237
|
msgid "LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"
|
|
238
|
-
msgstr ""
|
|
238
|
+
msgstr "正在離開格式建議。"
|
|
239
239
|
|
|
240
240
|
msgctxt "A message read out by assistive technologies the moment the user selection enters a formatting suggestion."
|
|
241
241
|
msgid "ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"
|
|
242
|
-
msgstr ""
|
|
242
|
+
msgstr "正在進入格式建議。"
|
|
243
243
|
|
|
244
244
|
msgctxt "The block quote element name displayed in the suggestion."
|
|
245
245
|
msgid "ELEMENT_BLOCK_QUOTE"
|
|
@@ -251,7 +251,7 @@ msgstr "項目符號清單"
|
|
|
251
251
|
|
|
252
252
|
msgctxt "The default styled bulleted list element name displayed in the suggestion."
|
|
253
253
|
msgid "ELEMENT_BULLETED_LIST_DEFAULT"
|
|
254
|
-
msgstr ""
|
|
254
|
+
msgstr "項目符號清單(預設)"
|
|
255
255
|
|
|
256
256
|
msgctxt "The circle styled bulleted list element name displayed in the suggestion."
|
|
257
257
|
msgid "ELEMENT_BULLETED_LIST_CIRCLE"
|
|
@@ -325,7 +325,7 @@ msgstr "編號清單"
|
|
|
325
325
|
|
|
326
326
|
msgctxt "The default styled numbered list element name displayed in the suggestion."
|
|
327
327
|
msgid "ELEMENT_NUMBERED_LIST_DEFAULT"
|
|
328
|
-
msgstr ""
|
|
328
|
+
msgstr "編號清單(預設)"
|
|
329
329
|
|
|
330
330
|
msgctxt "The decimal styled numbered list element name displayed in the suggestion."
|
|
331
331
|
msgid "ELEMENT_NUMBERED_LIST_DECIMAL"
|
|
@@ -410,7 +410,7 @@ msgstr "待辦事項清單"
|
|
|
410
410
|
|
|
411
411
|
msgctxt "The alignment format name displayed in a format suggestion."
|
|
412
412
|
msgid "FORMAT_ALIGNMENT"
|
|
413
|
-
msgstr ""
|
|
413
|
+
msgstr "對齊"
|
|
414
414
|
|
|
415
415
|
msgctxt "The align to center format name displayed in a format suggestion."
|
|
416
416
|
msgid "FORMAT_ALIGN_TO_CENTER"
|
|
@@ -490,39 +490,39 @@ msgstr "底線"
|
|
|
490
490
|
|
|
491
491
|
msgctxt "The list or block indent format name displayed in a format suggestion."
|
|
492
492
|
msgid "FORMAT_INDENT"
|
|
493
|
-
msgstr ""
|
|
493
|
+
msgstr "縮排"
|
|
494
494
|
|
|
495
495
|
msgctxt "The list reversed format name displayed in a format suggestion."
|
|
496
496
|
msgid "FORMAT_LIST_REVERSED"
|
|
497
|
-
msgstr ""
|
|
497
|
+
msgstr "清單反轉"
|
|
498
498
|
|
|
499
499
|
msgctxt "The list start format name displayed in a format suggestion."
|
|
500
500
|
msgid "FORMAT_LIST_START"
|
|
501
|
-
msgstr ""
|
|
501
|
+
msgstr "清單起始"
|
|
502
502
|
|
|
503
503
|
msgctxt "The font size format name displayed in a format suggestion."
|
|
504
504
|
msgid "FORMAT_FONT_SIZE"
|
|
505
|
-
msgstr ""
|
|
505
|
+
msgstr "字型大小"
|
|
506
506
|
|
|
507
507
|
msgctxt "The font family format name displayed in a format suggestion."
|
|
508
508
|
msgid "FORMAT_FONT_FAMILY"
|
|
509
|
-
msgstr ""
|
|
509
|
+
msgstr "字型家族"
|
|
510
510
|
|
|
511
511
|
msgctxt "The font color format name displayed in a format suggestion."
|
|
512
512
|
msgid "FORMAT_FONT_COLOR"
|
|
513
|
-
msgstr ""
|
|
513
|
+
msgstr "字型顏色"
|
|
514
514
|
|
|
515
515
|
msgctxt "The font background color format name displayed in a format suggestion."
|
|
516
516
|
msgid "FORMAT_FONT_BACKGROUND"
|
|
517
|
-
msgstr ""
|
|
517
|
+
msgstr "字型背景顏色"
|
|
518
518
|
|
|
519
519
|
msgctxt "The image width change format name displayed in a format suggestion."
|
|
520
520
|
msgid "FORMAT_IMAGE_WIDTH"
|
|
521
|
-
msgstr ""
|
|
521
|
+
msgstr "圖片大小"
|
|
522
522
|
|
|
523
523
|
msgctxt "The style format name displayed in a format suggestion."
|
|
524
524
|
msgid "FORMAT_STYLE"
|
|
525
|
-
msgstr ""
|
|
525
|
+
msgstr "樣式"
|
|
526
526
|
|
|
527
527
|
msgctxt "The label for the alert shown when closing the editor with an unsaved track changes change."
|
|
528
528
|
msgid "PENDING_ACTION_SUGGESTION"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231117.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20231117.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231117.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bcb=['canEditAt','acceptSuggestion','TrackChangesEditing','track-changes-accept-suggestion-not-found','getRanges','refresh','get','execute','isEnabled','editor','plugins'];(function(_0x187c6d,_0x4bcbbb){const _0x59fdd7=function(_0x1348c8){while(--_0x1348c8){_0x187c6d['push'](_0x187c6d['shift']());}};_0x59fdd7(++_0x4bcbbb);}(_0x4bcb,0xca));const _0x59fd=function(_0x187c6d,_0x4bcbbb){_0x187c6d=_0x187c6d-0x0;let _0x59fdd7=_0x4bcb[_0x187c6d];return _0x59fdd7;};import{Command as _0x51e453}from'ckeditor5/src/core';import{CKEditorError as _0x47e341}from'ckeditor5/src/utils';export default class B extends _0x51e453{constructor(_0x112b4d,_0x4483fb){super(_0x112b4d),this['_suggestions']=_0x4483fb,this[_0x59fd('0x1')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x59fd('0x1')](){this[_0x59fd('0x4')]=!0x0;}[_0x59fd('0x3')](_0x1f333f){const _0x47b583=this['_suggestions'][_0x59fd('0x2')](_0x1f333f);if(!_0x47b583)throw new _0x47e341(_0x59fd('0xa'),this);const _0x4ad581=_0x47b583[_0x59fd('0x0')]();this[_0x59fd('0x5')]['model'][_0x59fd('0x7')](_0x4ad581)&&this[_0x59fd('0x5')][_0x59fd('0x6')][_0x59fd('0x2')](_0x59fd('0x9'))[_0x59fd('0x8')](_0x47b583);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cb4=['refresh','editor','_isEnabledBasedOnSelection','model','get','TrackChangesEditing','track-changes-discard-suggestion-not-found','getRanges','plugins','discardSuggestion','_suggestions','isEnabled','canEditAt','execute'];(function(_0x1afb25,_0x4cb4d0){const _0xa87deb=function(_0x16fcd4){while(--_0x16fcd4){_0x1afb25['push'](_0x1afb25['shift']());}};_0xa87deb(++_0x4cb4d0);}(_0x4cb4,0xd5));const _0xa87d=function(_0x1afb25,_0x4cb4d0){_0x1afb25=_0x1afb25-0x0;let _0xa87deb=_0x4cb4[_0x1afb25];return _0xa87deb;};import{Command as _0x2b960c}from'ckeditor5/src/core';import{CKEditorError as _0x173541}from'ckeditor5/src/utils';export default class x extends _0x2b960c{constructor(_0x31f8a2,_0x5feabe){super(_0x31f8a2),this['_suggestions']=_0x5feabe,this[_0xa87d('0xb')](),this[_0xa87d('0xd')]=!0x1;}[_0xa87d('0xb')](){this[_0xa87d('0x8')]=!0x0;}[_0xa87d('0xa')](_0x5e074b){const _0x6f66fa=this[_0xa87d('0x7')]['get'](_0x5e074b);if(!_0x6f66fa)throw new _0x173541(_0xa87d('0x3'),this);const _0x3debe4=_0x6f66fa[_0xa87d('0x4')]();this[_0xa87d('0xc')][_0xa87d('0x0')][_0xa87d('0x9')](_0x3debe4)&&this[_0xa87d('0xc')][_0xa87d('0x5')][_0xa87d('0x1')](_0xa87d('0x2'))[_0xa87d('0x6')](_0x6f66fa);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5476=['editor','_suggestions','refresh','from','some','execute','getRanges','_command','_isEnabledBasedOnSelection','isEnabled','values'];(function(_0x4ad5e2,_0x5476c7){const _0x40e7c9=function(_0x24d49c){while(--_0x24d49c){_0x4ad5e2['push'](_0x4ad5e2['shift']());}};_0x40e7c9(++_0x5476c7);}(_0x5476,0x19e));const _0x40e7=function(_0x4ad5e2,_0x5476c7){_0x4ad5e2=_0x4ad5e2-0x0;let _0x40e7c9=_0x5476[_0x4ad5e2];return _0x40e7c9;};import{Command as _0x23ea5}from'ckeditor5/src/core';import{sortSuggestions as _0x5e1da7,executeCommandForSuggestions as _0x33d38a}from'../utils/utils';export default class E extends _0x23ea5{constructor(_0x32bde8,_0x9a8461,_0x29f959){super(_0x32bde8),this[_0x40e7('0x0')]=_0x9a8461,this[_0x40e7('0x5')]=_0x29f959,this[_0x40e7('0x6')](),this[_0x40e7('0x1')]=!0x1;}[_0x40e7('0x6')](){const _0x34c33c=Array['from'](this[_0x40e7('0x5')][_0x40e7('0x3')]())[_0x40e7('0x8')](_0xb88d0a=>_0xb88d0a['isInContent']);this[_0x40e7('0x2')]=this[_0x40e7('0x0')][_0x40e7('0x2')]&&_0x34c33c;}[_0x40e7('0x9')](){const _0x5c051a=_0x5e1da7(Array[_0x40e7('0x7')](this[_0x40e7('0x5')][_0x40e7('0x3')]()));for(const _0x17613f of _0x5c051a){const _0x454356=_0x17613f[_0x40e7('0xa')]();if(!this[_0x40e7('0x4')]['model']['canEditAt'](_0x454356))return;}_0x33d38a(this[_0x40e7('0x4')]['model'],this[_0x40e7('0x0')],_0x5c051a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2427=['document','canEditAt','execute','_command','isEnabled','values','editor','selection','getRanges','from','refresh','model','_isEnabledBasedOnSelection','_suggestions','_selectedSuggestions'];(function(_0x35ed75,_0x2427d3){const _0x2ac7ce=function(_0x5aa522){while(--_0x5aa522){_0x35ed75['push'](_0x35ed75['shift']());}};_0x2ac7ce(++_0x2427d3);}(_0x2427,0x146));const _0x2ac7=function(_0x35ed75,_0x2427d3){_0x35ed75=_0x35ed75-0x0;let _0x2ac7ce=_0x2427[_0x35ed75];return _0x2ac7ce;};import{Command as _0x3f63f1}from'ckeditor5/src/core';import{sortSuggestions as _0x254cba,getSelectedSuggestions as _0xefe760,executeCommandForSuggestions as _0x29f48f}from'../utils/utils';export default class R extends _0x3f63f1{constructor(_0x595323,_0x5db26c,_0x40ddda){super(_0x595323),this[_0x2ac7('0x7')]=_0x5db26c,this[_0x2ac7('0x2')]=_0x40ddda,this[_0x2ac7('0x3')]=new Set(),this[_0x2ac7('0xe')](),this[_0x2ac7('0x1')]=!0x1;}['refresh'](){const _0x2beb4d=this[_0x2ac7('0xa')][_0x2ac7('0x0')][_0x2ac7('0x4')][_0x2ac7('0xb')],_0x2ac87d=Array['from'](this[_0x2ac7('0x2')][_0x2ac7('0x9')]());this[_0x2ac7('0x3')]=_0xefe760(_0x2beb4d,_0x2ac87d),this[_0x2ac7('0x8')]=this['_command']['isEnabled']&&!!this[_0x2ac7('0x3')]['size'];}[_0x2ac7('0x6')](){const _0x1c3c7e=_0x254cba(Array[_0x2ac7('0xd')](this[_0x2ac7('0x3')]));for(const _0x2d2595 of _0x1c3c7e){const _0x10d4b5=_0x2d2595[_0x2ac7('0xc')]();if(!this[_0x2ac7('0xa')]['model'][_0x2ac7('0x5')](_0x10d4b5))return;}_0x29f48f(this[_0x2ac7('0xa')][_0x2ac7('0x0')],this[_0x2ac7('0x7')],_0x1c3c7e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc34a=['commands','value','has','refresh','forceDisabled','_enabledCommands','_enableCommands','clearForceDisabled','_disableUnsupportedCommands','affectsData','editor'];(function(_0x5ee839,_0xc34a5a){const _0x4d82fb=function(_0x4aea39){while(--_0x4aea39){_0x5ee839['push'](_0x5ee839['shift']());}};_0x4d82fb(++_0xc34a5a);}(_0xc34a,0x1f3));const _0x4d82=function(_0x5ee839,_0xc34a5a){_0x5ee839=_0x5ee839-0x0;let _0x4d82fb=_0xc34a[_0x5ee839];return _0x4d82fb;};import{Command as _0x552e91}from'ckeditor5/src/core';export default class $ extends _0x552e91{constructor(_0x10a342,_0x29ba8c){super(_0x10a342),this[_0x4d82('0x1')]=_0x29ba8c,this[_0x4d82('0x8')]=!0x1,this[_0x4d82('0xa')](),this['_isEnabledBasedOnSelection']=!0x1;}[_0x4d82('0xa')](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this[_0x4d82('0x8')],this[_0x4d82('0x8')]?this[_0x4d82('0x4')]():this['_enableCommands']();}[_0x4d82('0x4')](){for(const _0x353eee of this[_0x4d82('0x6')][_0x4d82('0x7')][_0x4d82('0x7')]())_0x353eee['affectsData']&&!this[_0x4d82('0x1')][_0x4d82('0x9')](_0x353eee)&&_0x353eee[_0x4d82('0x0')]('TrackChangesCommand');}[_0x4d82('0x2')](){for(const _0x50d1a8 of this['editor']['commands'][_0x4d82('0x7')]())_0x50d1a8[_0x4d82('0x5')]&&!this[_0x4d82('0x1')][_0x4d82('0x9')](_0x50d1a8)&&_0x50d1a8[_0x4d82('0x3')]('TrackChangesCommand');}}
|
package/src/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
export { default as TrackChanges, type SuggestionData } from './trackchanges';
|
|
5
|
+
export { default as TrackChanges, type SuggestionData, type TrackChangesAdapter } from './trackchanges';
|
|
6
6
|
export { default as TrackChangesData } from './trackchangesdata';
|
|
7
7
|
export { default as TrackChangesEditing } from './trackchangesediting';
|
|
8
8
|
export type { SuggestionJSON } from './suggestion';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d55=['showAIAssistant','plugins','afterInit','get','TrackChangesEditing','commands','enableCommand','editor'];(function(_0x1b21d1,_0x5d55fe){const _0x9833c8=function(_0x290930){while(--_0x290930){_0x1b21d1['push'](_0x1b21d1['shift']());}};_0x9833c8(++_0x5d55fe);}(_0x5d55,0xd6));const _0x9833=function(_0x1b21d1,_0x5d55fe){_0x1b21d1=_0x1b21d1-0x0;let _0x9833c8=_0x5d55[_0x1b21d1];return _0x9833c8;};import{Plugin as _0x256c5a}from'ckeditor5/src/core';export default class j extends _0x256c5a{[_0x9833('0x4')](){const _0x5bacf5=this[_0x9833('0x1')],_0x87e7ef=_0x5bacf5[_0x9833('0x3')][_0x9833('0x5')](_0x9833('0x6'));_0x5bacf5[_0x9833('0x7')][_0x9833('0x5')](_0x9833('0x2'))&&_0x87e7ef[_0x9833('0x0')](_0x9833('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5750=['*Format:*\x20%0','FORMAT_JUSTIFY_TEXT','AlignmentEditing','FORMAT_ALIGN_TO_LEFT','center','editor','has','registerDescriptionCallback','TrackChangesEditing','_descriptionFactory','left','locale','format','get','type','commandParams','commandName','justify','plugins','registerAttributeLabel','alignment'];(function(_0x290724,_0x575057){const _0x240970=function(_0x109757){while(--_0x109757){_0x290724['push'](_0x290724['shift']());}};_0x240970(++_0x575057);}(_0x5750,0x110));const _0x2409=function(_0x290724,_0x575057){_0x290724=_0x290724-0x0;let _0x240970=_0x5750[_0x290724];return _0x240970;};import{Plugin as _0x1c5462}from'ckeditor5/src/core';import{getTranslation as _0x3bed9b}from'../utils/common-translations';export default class U extends _0x1c5462{['afterInit'](){const _0x38b9d7=this['editor'],_0x30f41b=_0x38b9d7[_0x2409('0xc')];if(!_0x38b9d7[_0x2409('0x13')][_0x2409('0x7')](_0x2409('0x3')))return;const _0x36e3ba=_0x38b9d7['plugins'][_0x2409('0xe')]('TrackChangesEditing');_0x36e3ba['_enableDefaultAttributesIntegration']('alignment',[],[_0x2409('0x0')]),_0x36e3ba[_0x2409('0xa')][_0x2409('0x14')](_0x2409('0x0'),_0x3bed9b(_0x30f41b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3387bf=this[_0x2409('0x6')],_0x3c8ea1=_0x3387bf[_0x2409('0xc')];_0x3387bf[_0x2409('0x13')]['get'](_0x2409('0x9'))['_descriptionFactory'][_0x2409('0x8')](_0x4518f1=>{if('formatBlock'!=_0x4518f1[_0x2409('0xf')])return;const {data:_0x9eb13d}=_0x4518f1;if(_0x9eb13d&&'alignment'==_0x9eb13d[_0x2409('0x11')]){const _0x5f0a89=_0x9eb13d[_0x2409('0x10')][0x0]['value'];return{'type':_0x2409('0xd'),'content':_0x3bed9b(_0x3c8ea1,_0x2409('0x1'),function(_0x472764){switch(_0x472764){case _0x2409('0xb'):return _0x3bed9b(_0x3c8ea1,_0x2409('0x4'));case'right':return _0x3bed9b(_0x3c8ea1,'FORMAT_ALIGN_TO_RIGHT');case _0x2409('0x5'):return _0x3bed9b(_0x3c8ea1,'FORMAT_ALIGN_TO_CENTER');case _0x2409('0x12'):return _0x3bed9b(_0x3c8ea1,_0x2409('0x2'));}}(_0x5f0a89))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x246f=['StrikethroughEditing','has','SubscriptEditing','ItalicEditing','underline','afterInit','SuperscriptEditing','FORMAT_UNDERLINE','toLowerCase','commandName','forceValue','slice','BoldEditing','formatInline','get','toUpperCase','*Remove\x20format:*\x20%0','FORMAT_CODE','editor','type','superscript','bold','strikethrough','*Format:*\x20%0','_enableDefaultAttributesIntegration','format','code','subscript','FORMAT_SUPERSCRIPT','_descriptionFactory','TrackChangesEditing','locale','plugins','FORMAT_SUBSCRIPT','_registerLegacyDescription','commandParams','UnderlineEditing','italic','FORMAT_'];(function(_0x28fb77,_0x246fe5){const _0x2dbcd1=function(_0x47ec6d){while(--_0x47ec6d){_0x28fb77['push'](_0x28fb77['shift']());}};_0x2dbcd1(++_0x246fe5);}(_0x246f,0x110));const _0x2dbc=function(_0x28fb77,_0x246fe5){_0x28fb77=_0x28fb77-0x0;let _0x2dbcd1=_0x246f[_0x28fb77];return _0x2dbcd1;};import{Plugin as _0x45e8f3}from'ckeditor5/src/core';import{getTranslation as _0x324d59}from'../utils/common-translations';const ti=[_0x2dbc('0xd'),_0x2dbc('0x4'),_0x2dbc('0x25'),'CodeEditing',_0x2dbc('0x1'),_0x2dbc('0x3'),_0x2dbc('0x7')];export default class O extends _0x45e8f3{[_0x2dbc('0x6')](){const _0x4fe25e=this[_0x2dbc('0x13')],_0x141400=_0x4fe25e[_0x2dbc('0x21')][_0x2dbc('0xf')]('TrackChangesEditing'),_0x4d63a9=_0x4fe25e[_0x2dbc('0x20')];for(const _0x118462 of ti){if(!_0x4fe25e[_0x2dbc('0x21')][_0x2dbc('0x2')](_0x118462))continue;const _0x49053d=_0x118462[_0x2dbc('0xc')](0x0,-0x7)[_0x2dbc('0x9')](),_0x14a603=_0x2dbc('0x0')+_0x49053d[_0x2dbc('0x10')]();_0x141400[_0x2dbc('0x19')](_0x49053d,[_0x49053d]),_0x141400['_descriptionFactory']['registerAttributeLabel'](_0x49053d,_0x324d59(_0x4d63a9,_0x14a603));}this[_0x2dbc('0x23')]();}['_registerLegacyDescription'](){const _0x5422b2=this['editor'],_0x43d57a=_0x5422b2['locale'],_0x1045f8=_0x5422b2['plugins'][_0x2dbc('0xf')](_0x2dbc('0x1f'));function _0x3178a1(_0x3067d5,_0x580d63){_0x1045f8[_0x2dbc('0x1e')]['registerDescriptionCallback'](_0x2fd76e=>{if(_0x2dbc('0xe')!=_0x2fd76e[_0x2dbc('0x14')])return;const {data:_0x58180a}=_0x2fd76e;return _0x58180a&&_0x58180a[_0x2dbc('0xa')]===_0x3067d5?_0x58180a[_0x2dbc('0x24')][0x0][_0x2dbc('0xb')]?{'type':_0x2dbc('0x1a'),'content':_0x324d59(_0x43d57a,_0x2dbc('0x18'),_0x580d63)}:{'type':_0x2dbc('0x1a'),'content':_0x324d59(_0x43d57a,_0x2dbc('0x11'),_0x580d63)}:void 0x0;});}_0x3178a1(_0x2dbc('0x16'),_0x324d59(_0x43d57a,'FORMAT_BOLD')),_0x3178a1(_0x2dbc('0x26'),_0x324d59(_0x43d57a,'FORMAT_ITALIC')),_0x3178a1(_0x2dbc('0x5'),_0x324d59(_0x43d57a,_0x2dbc('0x8'))),_0x3178a1(_0x2dbc('0x1b'),_0x324d59(_0x43d57a,_0x2dbc('0x12'))),_0x3178a1(_0x2dbc('0x17'),_0x324d59(_0x43d57a,'FORMAT_STRIKETHROUGH')),_0x3178a1(_0x2dbc('0x1c'),_0x324d59(_0x43d57a,_0x2dbc('0x22'))),_0x3178a1(_0x2dbc('0x15'),_0x324d59(_0x43d57a,_0x2dbc('0x1d')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b28=['commandName','document','forceValue','blockQuote','afterInit','enableCommand','editor','*Remove\x20format:*\x20%0','change','getSelectedBlocks','checkChild','markBlockFormat','name','from','format','plugins','registerDescriptionCallback','ELEMENT_BLOCK_QUOTE','filter','schema','locale','commands','get','commandParams','parent','_descriptionFactory','model','$root'];(function(_0x13d1a9,_0x3b2811){const _0x5eae9e=function(_0x28cbc6){while(--_0x28cbc6){_0x13d1a9['push'](_0x13d1a9['shift']());}};_0x5eae9e(++_0x3b2811);}(_0x3b28,0xb7));const _0x5eae=function(_0x13d1a9,_0x3b2811){_0x13d1a9=_0x13d1a9-0x0;let _0x5eae9e=_0x3b28[_0x13d1a9];return _0x5eae9e;};import{Plugin as _0x38265b}from'ckeditor5/src/core';import{getTranslation as _0x5f367b}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x19fad8}from'../utils/utils';export default class V extends _0x38265b{[_0x5eae('0x11')](){const _0x54ff9b=this[_0x5eae('0x13')],_0x1db4bf=_0x54ff9b[_0x5eae('0x5')];if(!_0x54ff9b[_0x5eae('0x0')]['has']('BlockQuoteEditing'))return;const _0xce2d4a=_0x54ff9b['plugins']['get']('TrackChangesEditing'),_0x1c0039=this[_0x5eae('0x13')][_0x5eae('0x6')][_0x5eae('0x7')](_0x5eae('0x10'));_0xce2d4a[_0x5eae('0x12')](_0x5eae('0x10'),(_0x48f99c,_0x21ed57={})=>{const _0x3c621f=this['editor'][_0x5eae('0xb')][_0x5eae('0xe')]['selection'],_0x53e138=_0x21ed57&&void 0x0!==_0x21ed57[_0x5eae('0xf')]?_0x21ed57[_0x5eae('0xf')]:!_0x1c0039['value'];let _0x502268=[];if(_0x53e138){const _0x31dbeb=Array[_0x5eae('0x1a')](_0x3c621f['getSelectedBlocks']())[_0x5eae('0x3')](_0x5010cb=>oo(_0x5010cb)||function(_0x26d830,_0x131c78){const _0x3212ce=_0x131c78['checkChild'](_0x26d830[_0x5eae('0x9')],_0x5eae('0x10')),_0x38932c=_0x131c78[_0x5eae('0x17')]([_0x5eae('0xc'),'blockQuote'],_0x26d830);return _0x3212ce&&_0x38932c;}(_0x5010cb,this[_0x5eae('0x13')][_0x5eae('0xb')][_0x5eae('0x4')]));_0x502268=_0x19fad8(_0x31dbeb,_0x54ff9b[_0x5eae('0xb')]);}else{const _0x4617e9=Array[_0x5eae('0x1a')](_0x3c621f[_0x5eae('0x16')]())['filter'](_0x3c0577=>oo(_0x3c0577));_0x502268=_0x19fad8(_0x4617e9,_0x54ff9b[_0x5eae('0xb')]);}_0x54ff9b[_0x5eae('0xb')][_0x5eae('0x15')](()=>{for(const _0x41dbc4 of _0x502268)_0xce2d4a[_0x5eae('0x18')](_0x41dbc4,{'commandName':_0x5eae('0x10'),'commandParams':[{'forceValue':_0x53e138}]});});}),_0xce2d4a[_0x5eae('0xa')][_0x5eae('0x1')](_0x5e4d2d=>{const {data:_0x4001e1}=_0x5e4d2d;if(_0x4001e1&&_0x5eae('0x10')==_0x4001e1[_0x5eae('0xd')]){const _0x11c83a=_0x5f367b(_0x1db4bf,_0x5eae('0x2'));return _0x4001e1[_0x5eae('0x8')][0x0]['forceValue']?{'type':_0x5eae('0x1b'),'content':_0x5f367b(_0x1db4bf,'*Set\x20format:*\x20%0',_0x11c83a)}:{'type':'format','content':_0x5f367b(_0x1db4bf,_0x5eae('0x14'),_0x11c83a)};}});}}function oo(_0x60a8ed){return'blockQuote'==_0x60a8ed[_0x5eae('0x9')][_0x5eae('0x19')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e96=['commands','afterInit','editor','enableCommand','get','ckbox','plugins'];(function(_0x107ac4,_0x5e962b){const _0x428ad6=function(_0x4b289f){while(--_0x4b289f){_0x107ac4['push'](_0x107ac4['shift']());}};_0x428ad6(++_0x5e962b);}(_0x5e96,0xa9));const _0x428a=function(_0x107ac4,_0x5e962b){_0x107ac4=_0x107ac4-0x0;let _0x428ad6=_0x5e96[_0x107ac4];return _0x428ad6;};import{Plugin as _0x4f4922}from'ckeditor5/src/core';export default class F extends _0x4f4922{[_0x428a('0x0')](){const _0x5d5ceb=this[_0x428a('0x1')];_0x5d5ceb[_0x428a('0x6')][_0x428a('0x3')]('ckbox')&&_0x5d5ceb[_0x428a('0x5')][_0x428a('0x3')]('TrackChangesEditing')[_0x428a('0x2')](_0x428a('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29ed=['model','language','filter','editor','markBlockFormat','change','indentCodeBlock','forceValue','document','toLowerCase','commands','codeBlock','enableCommand','rootElement','type','plugins','name','formatBlock','get','format','has','selection','checkChild','CodeBlock','from','locale','registerElementLabel','parent','commandParams','languages','*Remove\x20format:*\x20%0','isLimit','_descriptionFactory','getSelectedBlocks','config','find','*Set\x20format:*\x20%0','ELEMENT_CODE_BLOCK'];(function(_0x4004df,_0x29ed43){const _0x343667=function(_0x2dd6ec){while(--_0x2dd6ec){_0x4004df['push'](_0x4004df['shift']());}};_0x343667(++_0x29ed43);}(_0x29ed,0x171));const _0x3436=function(_0x4004df,_0x29ed43){_0x4004df=_0x4004df-0x0;let _0x343667=_0x29ed[_0x4004df];return _0x343667;};import{Plugin as _0x5a2618}from'ckeditor5/src/core';import{getTranslation as _0x445106}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x864eb3}from'../utils/utils';export default class G extends _0x5a2618{['afterInit'](){const _0x219f59=this[_0x3436('0xe')];if(!_0x219f59[_0x3436('0x1a')][_0x3436('0x1f')](_0x3436('0x22')))return;const _0x2df870=_0x219f59[_0x3436('0x1a')][_0x3436('0x1d')]('TrackChangesEditing'),_0x41d9b2=_0x219f59[_0x3436('0x24')],_0x481acf=_0x219f59[_0x3436('0x7')][_0x3436('0x1d')](_0x3436('0x16'))[_0x3436('0x2')],_0x138ae4=_0x219f59[_0x3436('0x15')][_0x3436('0x1d')]('codeBlock');_0x2df870['enableCommand'](_0x3436('0x11')),_0x2df870['enableCommand']('outdentCodeBlock'),_0x2df870[_0x3436('0x17')]('codeBlock',(_0x300724,_0x441ebb={})=>{const _0x185458=_0x219f59[_0x3436('0xb')],_0x48e608=_0x219f59['model'][_0x3436('0x13')][_0x3436('0x20')],_0x453b07=_0x441ebb&&void 0x0!==_0x441ebb['forceValue']?_0x441ebb[_0x3436('0x12')]:!_0x138ae4['value'];let _0x171761;_0x441ebb[_0x3436('0xc')]||(_0x441ebb['language']=_0x481acf[0x0][_0x3436('0xc')]),_0x171761=_0x453b07?Array[_0x3436('0x23')](_0x48e608[_0x3436('0x6')]())['filter'](_0x247259=>eo(_0x247259)||function(_0x24a01b,_0x124dd2){if(_0x24a01b['is'](_0x3436('0x18'))||_0x124dd2[_0x3436('0x4')](_0x24a01b))return!0x1;return _0x124dd2[_0x3436('0x21')](_0x24a01b[_0x3436('0x0')],_0x3436('0x16'));}(_0x247259,_0x185458['schema'])):Array[_0x3436('0x23')](_0x48e608['getSelectedBlocks']())[_0x3436('0xd')](_0x5c3f4e=>eo(_0x5c3f4e));const _0x1b43dd=_0x864eb3(_0x171761,_0x185458);_0x185458[_0x3436('0x10')](()=>{for(const _0x50f575 of _0x1b43dd)_0x2df870[_0x3436('0xf')](_0x50f575,{'commandName':_0x3436('0x16'),'commandParams':[{..._0x441ebb,'forceValue':_0x453b07}],'formatGroupId':'blockName'});});}),(_0x2df870[_0x3436('0x5')][_0x3436('0x25')](_0x3436('0x16'),_0x2a9be5=>_0x445106(_0x41d9b2,_0x3436('0xa'),_0x2a9be5)),_0x2df870['_descriptionFactory']['registerDescriptionCallback'](_0x33e3c2=>{if(_0x3436('0x1c')!=_0x33e3c2[_0x3436('0x19')])return;const _0x1823c3=_0x41d9b2['t'],{data:_0x2c62c2}=_0x33e3c2;if(!_0x2c62c2||_0x3436('0x16')!=_0x2c62c2['commandName'])return;const _0xc1ac4b=_0x2c62c2[_0x3436('0x1')][0x0]['language'],_0x5dac6c=_0x1823c3(_0x481acf[_0x3436('0x8')](_0xa0a9ce=>_0xa0a9ce[_0x3436('0xc')]===_0xc1ac4b)['label'])[_0x3436('0x14')]();return _0x2c62c2['commandParams'][0x0][_0x3436('0x12')]?{'type':'format','content':_0x445106(_0x41d9b2,_0x3436('0x9'),_0x445106(_0x41d9b2,_0x3436('0xa'),0x1)+'\x20('+_0x5dac6c+')')}:{'type':_0x3436('0x1e'),'content':_0x445106(_0x41d9b2,_0x3436('0x3'),_0x445106(_0x41d9b2,_0x3436('0xa'),0x1))};}));}}function eo(_0x3b323e){return'codeBlock'==_0x3b323e[_0x3436('0x1b')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2055=['afterInit','plugins','get','has','TrackChangesEditing','CommentsEditing'];(function(_0x342d8b,_0x2055c0){const _0x3c8d03=function(_0x4a0d1f){while(--_0x4a0d1f){_0x342d8b['push'](_0x342d8b['shift']());}};_0x3c8d03(++_0x2055c0);}(_0x2055,0x13f));const _0x3c8d=function(_0x342d8b,_0x2055c0){_0x342d8b=_0x342d8b-0x0;let _0x3c8d03=_0x2055[_0x342d8b];return _0x3c8d03;};import{Plugin as _0x410e3f}from'ckeditor5/src/core';export default class L extends _0x410e3f{[_0x3c8d('0x5')](){const _0x239085=this['editor'];if(!_0x239085[_0x3c8d('0x0')][_0x3c8d('0x2')](_0x3c8d('0x4')))return;_0x239085['plugins'][_0x3c8d('0x1')](_0x3c8d('0x3'))['enableCommand']('addCommentThread');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f64=['init','removeMarker:suggestion:deletion','fromRange','addMarker:suggestion:deletion','markerName','model','editing','merge','enableCommand','plugins','createRange','start','mapper','end','root','getFirstRange','markerNameToElements','data','unlock','writer','commands','TrackChangesEditing','get','modifySelection','unbindElementFromMarkerName','detach','high','document','downcastDispatcher','uiElement','deleteForward','forward','delete'];(function(_0x2310c2,_0x1f647c){const _0x241dd7=function(_0x5852f7){while(--_0x5852f7){_0x2310c2['push'](_0x2310c2['shift']());}};_0x241dd7(++_0x1f647c);}(_0x1f64,0xf7));const _0x241d=function(_0x2310c2,_0x1f647c){_0x2310c2=_0x2310c2-0x0;let _0x241dd7=_0x1f64[_0x2310c2];return _0x241dd7;};import{Plugin as _0x592490}from'ckeditor5/src/core';import{LiveRange as _0x11c7ee}from'ckeditor5/src/engine';import{Delete as _0x5ac8e5}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x3fa9cc}from'./utils';export default class H extends _0x592490{static get['requires'](){return[_0x5ac8e5];}[_0x241d('0x11')](){const _0x21d2c2=this['editor'],_0x29f957=_0x21d2c2[_0x241d('0x1a')][_0x241d('0x6')](_0x241d('0x5'));_0x29f957[_0x241d('0x19')](_0x241d('0x10'));const _0x448e9b=_0x21d2c2[_0x241d('0x4')][_0x241d('0x6')](_0x241d('0xe'));_0x29f957[_0x241d('0x19')](_0x241d('0xe'),(_0x2058d8,_0x18376b={})=>{const _0x39e357=_0x21d2c2[_0x241d('0x16')]['createSelection'](_0x21d2c2[_0x241d('0x16')][_0x241d('0xb')]['selection']);_0x39e357['isCollapsed']&&_0x21d2c2[_0x241d('0x16')][_0x241d('0x7')](_0x39e357,{'direction':_0x241d('0xf'),'unit':_0x18376b['unit']});const _0x207f1f=_0x39e357[_0x241d('0x20')](),_0x2d05f5=_0x11c7ee[_0x241d('0x13')](_0x207f1f);let _0x3e1c6c;_0x2058d8(_0x18376b),_0x3e1c6c='$graveyard'==_0x2d05f5[_0x241d('0x1f')]['rootName']?_0x21d2c2['model'][_0x241d('0x1b')](_0x207f1f[_0x241d('0x1c')]):_0x21d2c2[_0x241d('0x16')][_0x241d('0x1b')](_0x2d05f5[_0x241d('0x1c')],_0x2d05f5['end']),_0x2d05f5[_0x241d('0x9')](),_0x21d2c2[_0x241d('0x16')]['enqueueChange'](_0x448e9b['buffer']['batch'],_0x559f10=>{_0x448e9b['buffer']['lock'](),_0x559f10['setSelection'](_0x559f10[_0x241d('0x1b')](_0x3e1c6c[_0x241d('0x1e')])),_0x448e9b['buffer'][_0x241d('0x2')]();});}),_0x21d2c2[_0x241d('0x17')][_0x241d('0xc')]['on'](_0x241d('0x14'),_0x3fa9cc(_0x21d2c2,_0x241d('0x18')),{'priority':_0x241d('0xa')}),_0x21d2c2[_0x241d('0x1')][_0x241d('0xc')]['on'](_0x241d('0x14'),(_0x434c0f,_0x5d2b22,_0x7e486d)=>{_0x7e486d['options']['showSuggestionHighlights']&&_0x3fa9cc(_0x21d2c2,_0x241d('0x18'),{'showActiveMarker':!0x1})['bind'](this)(_0x434c0f,_0x5d2b22,_0x7e486d);},{'priority':_0x241d('0xa')}),_0x21d2c2[_0x241d('0x17')][_0x241d('0xc')]['on'](_0x241d('0x12'),(_0x23658a,_0x5d41a5,_0x1623ba)=>{const _0x1a90ea=_0x1623ba[_0x241d('0x1d')][_0x241d('0x0')](_0x5d41a5[_0x241d('0x15')]);if(_0x1a90ea)for(const _0x15a517 of _0x1a90ea)_0x15a517['is'](_0x241d('0xd'))&&(_0x1623ba[_0x241d('0x1d')][_0x241d('0x8')](_0x15a517,_0x5d41a5[_0x241d('0x15')]),_0x1623ba[_0x241d('0x3')]['remove'](_0x15a517));},{'priority':'high'});}}
|