@ckeditor/ckeditor5-track-changes 37.0.1 → 38.0.0-rc.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/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 +2 -0
- package/lang/translations/ar.po +15 -1
- package/lang/translations/az.po +11 -1
- package/lang/translations/bg.po +11 -1
- package/lang/translations/bn.po +11 -1
- package/lang/translations/ca.po +11 -1
- package/lang/translations/cs.po +13 -1
- package/lang/translations/da.po +11 -1
- package/lang/translations/de.po +11 -1
- package/lang/translations/el.po +11 -1
- package/lang/translations/en-au.po +31 -21
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +12 -1
- package/lang/translations/et.po +11 -1
- package/lang/translations/fi.po +11 -1
- package/lang/translations/fr.po +12 -1
- package/lang/translations/gl.po +11 -1
- package/lang/translations/he.po +13 -1
- package/lang/translations/hi.po +11 -1
- package/lang/translations/hr.po +34 -23
- package/lang/translations/hu.po +11 -1
- package/lang/translations/id.po +10 -1
- package/lang/translations/it.po +12 -1
- package/lang/translations/ja.po +10 -1
- package/lang/translations/ko.po +10 -1
- package/lang/translations/lt.po +13 -1
- package/lang/translations/lv.po +12 -1
- package/lang/translations/ms.po +10 -1
- package/lang/translations/nl.po +11 -1
- package/lang/translations/no.po +11 -1
- package/lang/translations/pl.po +13 -1
- package/lang/translations/pt-br.po +12 -1
- package/lang/translations/pt.po +12 -1
- package/lang/translations/ro.po +12 -1
- package/lang/translations/ru.po +13 -1
- package/lang/translations/sk.po +13 -1
- package/lang/translations/sr-latn.po +15 -4
- package/lang/translations/sr.po +33 -22
- package/lang/translations/sv.po +11 -1
- package/lang/translations/th.po +10 -1
- package/lang/translations/tk.po +11 -1
- package/lang/translations/tr.po +11 -1
- package/lang/translations/tt.po +10 -1
- package/lang/translations/uk.po +13 -1
- package/lang/translations/ur.po +11 -1
- package/lang/translations/vi.po +10 -1
- package/lang/translations/zh-cn.po +10 -1
- package/lang/translations/zh.po +10 -1
- 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/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.d.ts +13 -0
- package/src/integrations/formatpainter.js +23 -0
- 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/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.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.d.ts +13 -0
- package/src/integrations/tableofcontents.js +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -0
- package/src/integrations/template.js +23 -0
- 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.d.ts +23 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +23 -5
- 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/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/lang/translations/uk.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Ukrainian (https://
|
|
15
|
+
"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
|
|
16
16
|
"Language: uk\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
|
18
18
|
|
|
@@ -152,6 +152,10 @@ msgctxt "A suggestion for setting the font size to %0."
|
|
|
152
152
|
msgid "*Set font size:* %0"
|
|
153
153
|
msgstr "*Установити розмір шрифту:* %0"
|
|
154
154
|
|
|
155
|
+
msgctxt "A suggestion for setting multiple inline formatting to %0"
|
|
156
|
+
msgid "*Set format to:* %0"
|
|
157
|
+
msgstr "*Встановити формат на:* %0"
|
|
158
|
+
|
|
155
159
|
msgctxt "A suggestion for highlighting text."
|
|
156
160
|
msgid "*Set highlight:* %0"
|
|
157
161
|
msgstr "*Установити виділення:* %0"
|
|
@@ -388,6 +392,14 @@ msgstr[1] "0% стовпці таблиці *з текстом* %1"
|
|
|
388
392
|
msgstr[2] "0% стовпців таблиці *з текстом* %1"
|
|
389
393
|
msgstr[3] "0% стовпців таблиці *з текстом* %1"
|
|
390
394
|
|
|
395
|
+
msgctxt "The table of contents element name displayed in the suggestion."
|
|
396
|
+
msgid "ELEMENT_TABLE_OF_CONTENTS"
|
|
397
|
+
msgid_plural "%0 tables of contents"
|
|
398
|
+
msgstr[0] "зміст"
|
|
399
|
+
msgstr[1] "зміст"
|
|
400
|
+
msgstr[2] "зміст"
|
|
401
|
+
msgstr[3] "зміст"
|
|
402
|
+
|
|
391
403
|
msgctxt "The table row element name displayed in the suggestion."
|
|
392
404
|
msgid "ELEMENT_TABLE_ROW"
|
|
393
405
|
msgid_plural "%0 table rows"
|
package/lang/translations/ur.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Urdu (https://
|
|
15
|
+
"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
|
|
16
16
|
"Language: ur\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
18
|
|
|
@@ -152,6 +152,10 @@ msgctxt "A suggestion for setting the font size to %0."
|
|
|
152
152
|
msgid "*Set font size:* %0"
|
|
153
153
|
msgstr ""
|
|
154
154
|
|
|
155
|
+
msgctxt "A suggestion for setting multiple inline formatting to %0"
|
|
156
|
+
msgid "*Set format to:* %0"
|
|
157
|
+
msgstr ""
|
|
158
|
+
|
|
155
159
|
msgctxt "A suggestion for highlighting text."
|
|
156
160
|
msgid "*Set highlight:* %0"
|
|
157
161
|
msgstr ""
|
|
@@ -356,6 +360,12 @@ msgid_plural "%0 table columns *with text* %1"
|
|
|
356
360
|
msgstr[0] ""
|
|
357
361
|
msgstr[1] ""
|
|
358
362
|
|
|
363
|
+
msgctxt "The table of contents element name displayed in the suggestion."
|
|
364
|
+
msgid "ELEMENT_TABLE_OF_CONTENTS"
|
|
365
|
+
msgid_plural "%0 tables of contents"
|
|
366
|
+
msgstr[0] ""
|
|
367
|
+
msgstr[1] ""
|
|
368
|
+
|
|
359
369
|
msgctxt "The table row element name displayed in the suggestion."
|
|
360
370
|
msgid "ELEMENT_TABLE_ROW"
|
|
361
371
|
msgid_plural "%0 table rows"
|
package/lang/translations/vi.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Vietnamese (https://
|
|
15
|
+
"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
16
|
"Language: vi\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
|
@@ -152,6 +152,10 @@ msgctxt "A suggestion for setting the font size to %0."
|
|
|
152
152
|
msgid "*Set font size:* %0"
|
|
153
153
|
msgstr "*Đặt lại kích cỡ phông chữ:* %0"
|
|
154
154
|
|
|
155
|
+
msgctxt "A suggestion for setting multiple inline formatting to %0"
|
|
156
|
+
msgid "*Set format to:* %0"
|
|
157
|
+
msgstr "*Đặt định dạng thành:* %0"
|
|
158
|
+
|
|
155
159
|
msgctxt "A suggestion for highlighting text."
|
|
156
160
|
msgid "*Set highlight:* %0"
|
|
157
161
|
msgstr "*Đặt văn bản tô sáng:* %0"
|
|
@@ -340,6 +344,11 @@ msgid "ELEMENT_TABLE_COLUMN_WITH_TEXT"
|
|
|
340
344
|
msgid_plural "%0 table columns *with text* %1"
|
|
341
345
|
msgstr[0] "cột trong bảng *có văn bản* %1"
|
|
342
346
|
|
|
347
|
+
msgctxt "The table of contents element name displayed in the suggestion."
|
|
348
|
+
msgid "ELEMENT_TABLE_OF_CONTENTS"
|
|
349
|
+
msgid_plural "%0 tables of contents"
|
|
350
|
+
msgstr[0] "mục lục"
|
|
351
|
+
|
|
343
352
|
msgctxt "The table row element name displayed in the suggestion."
|
|
344
353
|
msgid "ELEMENT_TABLE_ROW"
|
|
345
354
|
msgid_plural "%0 table rows"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Chinese (China) (https://
|
|
15
|
+
"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
16
|
"Language: zh_CN\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
|
@@ -152,6 +152,10 @@ msgctxt "A suggestion for setting the font size to %0."
|
|
|
152
152
|
msgid "*Set font size:* %0"
|
|
153
153
|
msgstr "*设置字号:* %0"
|
|
154
154
|
|
|
155
|
+
msgctxt "A suggestion for setting multiple inline formatting to %0"
|
|
156
|
+
msgid "*Set format to:* %0"
|
|
157
|
+
msgstr "*设置格式为:* %0"
|
|
158
|
+
|
|
155
159
|
msgctxt "A suggestion for highlighting text."
|
|
156
160
|
msgid "*Set highlight:* %0"
|
|
157
161
|
msgstr "*设置高亮:* %0"
|
|
@@ -340,6 +344,11 @@ msgid "ELEMENT_TABLE_COLUMN_WITH_TEXT"
|
|
|
340
344
|
msgid_plural "%0 table columns *with text* %1"
|
|
341
345
|
msgstr[0] "%0 表格列 *含文本* %1"
|
|
342
346
|
|
|
347
|
+
msgctxt "The table of contents element name displayed in the suggestion."
|
|
348
|
+
msgid "ELEMENT_TABLE_OF_CONTENTS"
|
|
349
|
+
msgid_plural "%0 tables of contents"
|
|
350
|
+
msgstr[0] "目录"
|
|
351
|
+
|
|
343
352
|
msgctxt "The table row element name displayed in the suggestion."
|
|
344
353
|
msgid "ELEMENT_TABLE_ROW"
|
|
345
354
|
msgid_plural "%0 table rows"
|
package/lang/translations/zh.po
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#
|
|
13
13
|
msgid ""
|
|
14
14
|
msgstr ""
|
|
15
|
-
"Language-Team: Chinese (Taiwan) (https://
|
|
15
|
+
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
|
|
16
16
|
"Language: zh_TW\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
18
|
|
|
@@ -152,6 +152,10 @@ msgctxt "A suggestion for setting the font size to %0."
|
|
|
152
152
|
msgid "*Set font size:* %0"
|
|
153
153
|
msgstr "*設定字型大小:*%0"
|
|
154
154
|
|
|
155
|
+
msgctxt "A suggestion for setting multiple inline formatting to %0"
|
|
156
|
+
msgid "*Set format to:* %0"
|
|
157
|
+
msgstr "*設定格式為:*%0"
|
|
158
|
+
|
|
155
159
|
msgctxt "A suggestion for highlighting text."
|
|
156
160
|
msgid "*Set highlight:* %0"
|
|
157
161
|
msgstr "*設定亮顯:*%0"
|
|
@@ -340,6 +344,11 @@ msgid "ELEMENT_TABLE_COLUMN_WITH_TEXT"
|
|
|
340
344
|
msgid_plural "%0 table columns *with text* %1"
|
|
341
345
|
msgstr[0] "表格行*帶文字* %1"
|
|
342
346
|
|
|
347
|
+
msgctxt "The table of contents element name displayed in the suggestion."
|
|
348
|
+
msgid "ELEMENT_TABLE_OF_CONTENTS"
|
|
349
|
+
msgid_plural "%0 tables of contents"
|
|
350
|
+
msgstr[0] "內容目錄"
|
|
351
|
+
|
|
343
352
|
msgctxt "The table row element name displayed in the suggestion."
|
|
344
353
|
msgid "ELEMENT_TABLE_ROW"
|
|
345
354
|
msgid_plural "%0 table rows"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "38.0.0-rc.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"postversion": "npm run build"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"ckeditor5": "^37.0
|
|
45
|
-
"ckeditor5-collaboration": "^
|
|
44
|
+
"ckeditor5": "^37.1.0",
|
|
45
|
+
"ckeditor5-collaboration": "^38.0.0-rc.0",
|
|
46
46
|
"lodash-es": "^4.17.11"
|
|
47
47
|
},
|
|
48
48
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d6f=['editor','TrackChangesEditing','model','refresh','acceptSuggestion','execute','_suggestions','getRanges','track-changes-accept-suggestion-not-found','_isEnabledBasedOnSelection','get','plugins'];(function(_0x2983b6,_0x5d6fdc){const _0x1dc1d5=function(_0x3f464e){while(--_0x3f464e){_0x2983b6['push'](_0x2983b6['shift']());}};_0x1dc1d5(++_0x5d6fdc);}(_0x5d6f,0x112));const _0x1dc1=function(_0x2983b6,_0x5d6fdc){_0x2983b6=_0x2983b6-0x0;let _0x1dc1d5=_0x5d6f[_0x2983b6];return _0x1dc1d5;};import{Command as _0x543426}from'ckeditor5/src/core';import{CKEditorError as _0x5321b3}from'ckeditor5/src/utils';export default class M extends _0x543426{constructor(_0x281093,_0x27890e){super(_0x281093),this[_0x1dc1('0x8')]=_0x27890e,this[_0x1dc1('0x5')](),this[_0x1dc1('0xb')]=!0x1;}[_0x1dc1('0x5')](){this['isEnabled']=!0x0;}[_0x1dc1('0x7')](_0x4ff346){const _0x44de7e=this[_0x1dc1('0x8')][_0x1dc1('0x0')](_0x4ff346);if(!_0x44de7e)throw new _0x5321b3(_0x1dc1('0xa'),this);const _0x40deaf=_0x44de7e[_0x1dc1('0x9')]();this[_0x1dc1('0x2')][_0x1dc1('0x4')]['canEditAt'](_0x40deaf)&&this[_0x1dc1('0x2')][_0x1dc1('0x1')][_0x1dc1('0x0')](_0x1dc1('0x3'))[_0x1dc1('0x6')](_0x44de7e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x562d=['execute','get','_suggestions','track-changes-discard-suggestion-not-found','isEnabled','canEditAt','_isEnabledBasedOnSelection','TrackChangesEditing','refresh','plugins','getRanges','editor','model'];(function(_0x5e8472,_0x562d05){const _0x1823c5=function(_0x47cf5d){while(--_0x47cf5d){_0x5e8472['push'](_0x5e8472['shift']());}};_0x1823c5(++_0x562d05);}(_0x562d,0x1f1));const _0x1823=function(_0x5e8472,_0x562d05){_0x5e8472=_0x5e8472-0x0;let _0x1823c5=_0x562d[_0x5e8472];return _0x1823c5;};import{Command as _0x1606a4}from'ckeditor5/src/core';import{CKEditorError as _0x5d140f}from'ckeditor5/src/utils';export default class $ extends _0x1606a4{constructor(_0x48d949,_0x57715e){super(_0x48d949),this[_0x1823('0xc')]=_0x57715e,this[_0x1823('0x5')](),this[_0x1823('0x3')]=!0x1;}[_0x1823('0x5')](){this[_0x1823('0x1')]=!0x0;}[_0x1823('0xa')](_0x4d2134){const _0x31a6cd=this[_0x1823('0xc')][_0x1823('0xb')](_0x4d2134);if(!_0x31a6cd)throw new _0x5d140f(_0x1823('0x0'),this);const _0x339818=_0x31a6cd[_0x1823('0x7')]();this[_0x1823('0x8')][_0x1823('0x9')][_0x1823('0x2')](_0x339818)&&this[_0x1823('0x8')][_0x1823('0x6')][_0x1823('0xb')](_0x1823('0x4'))['discardSuggestion'](_0x31a6cd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8d5b=['canEditAt','_suggestions','_command','values','getRanges','some','isEnabled','isInContent','model','refresh','execute','editor'];(function(_0x30ebea,_0x8d5b17){const _0x133768=function(_0x3dc327){while(--_0x3dc327){_0x30ebea['push'](_0x30ebea['shift']());}};_0x133768(++_0x8d5b17);}(_0x8d5b,0x131));const _0x1337=function(_0x30ebea,_0x8d5b17){_0x30ebea=_0x30ebea-0x0;let _0x133768=_0x8d5b[_0x30ebea];return _0x133768;};import{Command as _0x2ecfb0}from'ckeditor5/src/core';import{sortSuggestions as _0x4714a9,executeCommandForSuggestions as _0x1e7553}from'../utils/utils';export default class N extends _0x2ecfb0{constructor(_0x35b850,_0x1ad543,_0x377b83){super(_0x35b850),this[_0x1337('0x9')]=_0x1ad543,this[_0x1337('0x8')]=_0x377b83,this[_0x1337('0x4')](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5d6373=Array['from'](this['_suggestions'][_0x1337('0xa')]())[_0x1337('0x0')](_0x1bdf5e=>_0x1bdf5e[_0x1337('0x2')]);this[_0x1337('0x1')]=this['_command'][_0x1337('0x1')]&&_0x5d6373;}[_0x1337('0x5')](){const _0x1f579a=_0x4714a9(Array['from'](this[_0x1337('0x8')]['values']()));for(const _0x5acfeb of _0x1f579a){const _0x284873=_0x5acfeb[_0x1337('0xb')]();if(!this[_0x1337('0x6')]['model'][_0x1337('0x7')](_0x284873))return;}_0x1e7553(this[_0x1337('0x6')][_0x1337('0x3')],this[_0x1337('0x9')],_0x1f579a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8b56=['canEditAt','from','_command','model','isEnabled','_suggestions','_isEnabledBasedOnSelection','getRanges','editor','refresh','size','_selectedSuggestions'];(function(_0x2ade34,_0x8b56e6){const _0x38cd86=function(_0x3f933f){while(--_0x3f933f){_0x2ade34['push'](_0x2ade34['shift']());}};_0x38cd86(++_0x8b56e6);}(_0x8b56,0x118));const _0x38cd=function(_0x2ade34,_0x8b56e6){_0x2ade34=_0x2ade34-0x0;let _0x38cd86=_0x8b56[_0x2ade34];return _0x38cd86;};import{Command as _0x3c283f}from'ckeditor5/src/core';import{sortSuggestions as _0x191a05,getSelectedSuggestions as _0x5de4a4,executeCommandForSuggestions as _0x4ee481}from'../utils/utils';export default class R extends _0x3c283f{constructor(_0x24922b,_0x1c5c0d,_0x4ed323){super(_0x24922b),this[_0x38cd('0xa')]=_0x1c5c0d,this[_0x38cd('0x1')]=_0x4ed323,this[_0x38cd('0x7')]=new Set(),this[_0x38cd('0x5')](),this[_0x38cd('0x2')]=!0x1;}[_0x38cd('0x5')](){const _0x49b17f=this[_0x38cd('0x4')]['model']['document']['selection'],_0x58d94f=Array['from'](this[_0x38cd('0x1')]['values']());this[_0x38cd('0x7')]=_0x5de4a4(_0x49b17f,_0x58d94f),this[_0x38cd('0x0')]=this[_0x38cd('0xa')]['isEnabled']&&!!this['_selectedSuggestions'][_0x38cd('0x6')];}['execute'](){const _0x160c59=_0x191a05(Array[_0x38cd('0x9')](this[_0x38cd('0x7')]));for(const _0x3b3387 of _0x160c59){const _0x52ab5a=_0x3b3387[_0x38cd('0x3')]();if(!this[_0x38cd('0x4')][_0x38cd('0xb')][_0x38cd('0x8')](_0x52ab5a))return;}_0x4ee481(this['editor'][_0x38cd('0xb')],this['_command'],_0x160c59);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11e5=['value','TrackChangesCommand','execute','_disableUnsupportedCommands','clearForceDisabled','editor','forceDisabled','_enabledCommands','_isEnabledBasedOnSelection','commands','refresh','has','isEnabled','_enableCommands'];(function(_0x296df7,_0x11e5ec){const _0x52fac5=function(_0xb6bfec){while(--_0xb6bfec){_0x296df7['push'](_0x296df7['shift']());}};_0x52fac5(++_0x11e5ec);}(_0x11e5,0x112));const _0x52fa=function(_0x296df7,_0x11e5ec){_0x296df7=_0x296df7-0x0;let _0x52fac5=_0x11e5[_0x296df7];return _0x52fac5;};import{Command as _0x2354c5}from'ckeditor5/src/core';export default class _ extends _0x2354c5{constructor(_0x11d3de,_0x363c8b){super(_0x11d3de),this[_0x52fa('0xd')]=_0x363c8b,this[_0x52fa('0x6')]=!0x1,this[_0x52fa('0x2')](),this[_0x52fa('0x0')]=!0x1;}['refresh'](){this[_0x52fa('0x4')]=!0x0;}[_0x52fa('0x8')](){this[_0x52fa('0x6')]=!this[_0x52fa('0x6')],this['value']?this[_0x52fa('0x9')]():this[_0x52fa('0x5')]();}[_0x52fa('0x9')](){for(const _0x37f8e9 of this[_0x52fa('0xb')]['commands'][_0x52fa('0x1')]())_0x37f8e9['affectsData']&&!this[_0x52fa('0xd')]['has'](_0x37f8e9)&&_0x37f8e9[_0x52fa('0xc')](_0x52fa('0x7'));}[_0x52fa('0x5')](){for(const _0x4ca82b of this[_0x52fa('0xb')][_0x52fa('0x1')][_0x52fa('0x1')]())_0x4ca82b['affectsData']&&!this[_0x52fa('0xd')][_0x52fa('0x3')](_0x4ca82b)&&_0x4ca82b[_0x52fa('0xa')]('TrackChangesCommand');}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as TrackChanges, type SuggestionData } from './trackchanges';
|
|
2
2
|
export { default as TrackChangesData } from './trackchangesdata';
|
|
3
3
|
export { default as TrackChangesEditing } from './trackchangesediting';
|
|
4
|
-
export { SuggestionJSON } from './suggestion';
|
|
4
|
+
export type { SuggestionJSON } from './suggestion';
|
|
5
5
|
export { default as BaseSuggestionThreadView } from './ui/view/basesuggestionthreadview';
|
|
6
6
|
export type { TrackChangesConfig } from './trackchangesconfig';
|
|
7
7
|
export type { default as AcceptSuggestionCommand } from './commands/acceptsuggestioncommand';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x502b=['AlignmentEditing','FORMAT_ALIGN_TO_RIGHT','format','schema','checkAttribute','contentLanguageDirection','document','commandName','left','commandParams','enableCommand','has','locale','right','selection','alignment','editor','FORMAT_ALIGN_TO_LEFT','FORMAT_JUSTIFY_TEXT','filter','plugins','model','center','from','value','get','FORMAT_ALIGN_TO_CENTER','getAttribute'];(function(_0x4f5b02,_0x502bd6){const _0x326a95=function(_0x4e88fd){while(--_0x4e88fd){_0x4f5b02['push'](_0x4f5b02['shift']());}};_0x326a95(++_0x502bd6);}(_0x502b,0x1b1));const _0x326a=function(_0x4f5b02,_0x502bd6){_0x4f5b02=_0x4f5b02-0x0;let _0x326a95=_0x502b[_0x4f5b02];return _0x326a95;};import{Plugin as _0xadd55}from'ckeditor5/src/core';import{getTranslation as _0x305eb4}from'../utils/common-translations';export default class x extends _0xadd55{['afterInit'](){const _0x185c91=this[_0x326a('0x3')],_0x3eddc2=_0x185c91[_0x326a('0x1b')];if(!_0x185c91[_0x326a('0x7')][_0x326a('0x1a')](_0x326a('0xf')))return;const _0x2a01af=_0x185c91[_0x326a('0x7')][_0x326a('0xc')]('TrackChangesEditing');_0x2a01af[_0x326a('0x19')](_0x326a('0x2'),(_0x257acf,_0xfb6f25={})=>{let _0x34a1b2=_0xfb6f25[_0x326a('0xb')];_0xfb6f25[_0x326a('0xb')]||(_0x34a1b2='ltr'===_0x185c91['locale'][_0x326a('0x14')]?_0x326a('0x17'):_0x326a('0x0'));const _0x5db98e=Array[_0x326a('0xa')](this[_0x326a('0x3')][_0x326a('0x8')][_0x326a('0x15')][_0x326a('0x1')]['getSelectedBlocks']())[_0x326a('0x6')](_0xa47c78=>function(_0x3eec5a,_0x33d247,_0x5485fa){const _0x4a2d4a=_0x3eec5a[_0x326a('0xe')](_0x326a('0x2'))||null;return _0x33d247[_0x326a('0x13')](_0x3eec5a,'alignment')&&_0x5485fa!=_0x4a2d4a;}(_0xa47c78,this['editor'][_0x326a('0x8')][_0x326a('0x12')],_0x34a1b2));_0x185c91[_0x326a('0x8')]['change'](()=>{for(const _0x5087f0 of _0x5db98e)_0x2a01af['markBlockFormat'](_0x5087f0,{'commandName':_0x326a('0x2'),'commandParams':[{'value':_0x34a1b2}]});});}),_0x2a01af['_descriptionFactory']['registerDescriptionCallback'](_0x123176=>{const {data:_0x27882e}=_0x123176;if(_0x27882e&&_0x326a('0x2')==_0x27882e[_0x326a('0x16')]){const _0x27aaf0=_0x27882e[_0x326a('0x18')][0x0][_0x326a('0xb')];return{'type':_0x326a('0x11'),'content':_0x305eb4(_0x3eddc2,'*Format:*\x20%0',function(_0x2faa19){switch(_0x2faa19){case _0x326a('0x17'):return _0x305eb4(_0x3eddc2,_0x326a('0x4'));case _0x326a('0x0'):return _0x305eb4(_0x3eddc2,_0x326a('0x10'));case _0x326a('0x9'):return _0x305eb4(_0x3eddc2,_0x326a('0xd'));case'justify':return _0x305eb4(_0x3eddc2,_0x326a('0x5'));}}(_0x27aaf0))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ac7=['*Remove\x20format:*\x20%0','format','FORMAT_STRIKETHROUGH','StrikethroughEditing','isCollapsed','toLowerCase','enableCommand','FORMAT_SUPERSCRIPT','selection','slice','value','afterInit','registerDescriptionCallback','TrackChangesEditing','code','superscript','_descriptionFactory','get','commandParams','FORMAT_BOLD','italic','SubscriptEditing','markInlineFormat','strikethrough','FORMAT_ITALIC','commandName','from','underline','subscript','editor','locale','SuperscriptEditing','document','getRanges','forceValue','has'];(function(_0x532cd0,_0x1ac740){const _0x1d300f=function(_0xb449f5){while(--_0xb449f5){_0x532cd0['push'](_0x532cd0['shift']());}};_0x1d300f(++_0x1ac740);}(_0x1ac7,0x1c1));const _0x1d30=function(_0x532cd0,_0x1ac740){_0x532cd0=_0x532cd0-0x0;let _0x1d300f=_0x1ac7[_0x532cd0];return _0x1d300f;};import{Plugin as _0x1d1e47}from'ckeditor5/src/core';import{getTranslation as _0x1408cb}from'../utils/common-translations';import{getRangesWithAttribute as _0x40334b}from'./utils';const Kt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing',_0x1d30('0x16'),_0x1d30('0x4'),_0x1d30('0xe')];export default class U extends _0x1d1e47{[_0x1d30('0x1e')](){const _0x119c75=this[_0x1d30('0xc')],_0x1bf58f=_0x119c75['model'],_0x41fab0=_0x119c75['plugins'][_0x1d30('0x0')](_0x1d30('0x20')),_0xd91159=_0x119c75[_0x1d30('0xd')];for(const _0x5a5b48 of Kt){if(!_0x119c75['plugins'][_0x1d30('0x12')](_0x5a5b48))continue;const _0x43504c=_0x5a5b48[_0x1d30('0x1c')](0x0,-0x7)[_0x1d30('0x18')](),_0x1eff5e=_0x119c75['commands']['get'](_0x43504c);_0x41fab0[_0x1d30('0x19')](_0x43504c,(_0x596ad3,_0x1e753a={})=>{const _0x5c1bb2=_0x1bf58f[_0x1d30('0xf')][_0x1d30('0x1b')];if(_0x5c1bb2[_0x1d30('0x17')])return void _0x596ad3(_0x1e753a);const _0x48b727=void 0x0!==_0x1e753a[_0x1d30('0x11')]?_0x1e753a[_0x1d30('0x11')]:!_0x1eff5e[_0x1d30('0x1d')];_0x1bf58f['change'](()=>{const _0x60ab3c=Array[_0x1d30('0x9')](_0x5c1bb2[_0x1d30('0x10')]());for(const _0x54fc36 of _0x60ab3c){const _0x266c69=_0x48b727?[_0x54fc36]:_0x40334b(_0x43504c,_0x54fc36,_0x1bf58f);for(const _0x249c41 of _0x266c69)_0x41fab0[_0x1d30('0x5')](_0x249c41,{'commandName':_0x43504c,'commandParams':[{'forceValue':_0x48b727}]});}});});}function _0x37ff77(_0x1cedd1,_0x146fbd){_0x41fab0[_0x1d30('0x23')][_0x1d30('0x1f')](_0x19e69d=>{const {data:_0x5d0f04}=_0x19e69d;if(_0x5d0f04&&_0x5d0f04[_0x1d30('0x8')]===_0x1cedd1)return _0x5d0f04[_0x1d30('0x1')][0x0][_0x1d30('0x11')]?{'type':_0x1d30('0x14'),'content':_0x1408cb(_0xd91159,'*Format:*\x20%0',_0x146fbd)}:{'type':_0x1d30('0x14'),'content':_0x1408cb(_0xd91159,_0x1d30('0x13'),_0x146fbd)};});}_0x37ff77('bold',_0x1408cb(_0xd91159,_0x1d30('0x2'))),_0x37ff77(_0x1d30('0x3'),_0x1408cb(_0xd91159,_0x1d30('0x7'))),_0x37ff77(_0x1d30('0xa'),_0x1408cb(_0xd91159,'FORMAT_UNDERLINE')),_0x37ff77(_0x1d30('0x21'),_0x1408cb(_0xd91159,'FORMAT_CODE')),_0x37ff77(_0x1d30('0x6'),_0x1408cb(_0xd91159,_0x1d30('0x15'))),_0x37ff77(_0x1d30('0xb'),_0x1408cb(_0xd91159,'FORMAT_SUBSCRIPT')),_0x37ff77(_0x1d30('0x22'),_0x1408cb(_0xd91159,_0x1d30('0x1a')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cec=['markBlockFormat','parent','forceValue','_descriptionFactory','commandParams','blockQuote','get','locale','commands','schema','model','change','*Format:*\x20%0','filter','format','name','getSelectedBlocks','registerDescriptionCallback','from','checkChild','value','editor','plugins','afterInit','has'];(function(_0x272ad2,_0x5cec15){const _0x5b5738=function(_0x4c8ca6){while(--_0x4c8ca6){_0x272ad2['push'](_0x272ad2['shift']());}};_0x5b5738(++_0x5cec15);}(_0x5cec,0x108));const _0x5b57=function(_0x272ad2,_0x5cec15){_0x272ad2=_0x272ad2-0x0;let _0x5b5738=_0x5cec[_0x272ad2];return _0x5b5738;};import{Plugin as _0x3b44ba}from'ckeditor5/src/core';import{getTranslation as _0x15d694}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x572510}from'../utils/utils';export default class j extends _0x3b44ba{[_0x5b57('0x9')](){const _0x14aa72=this[_0x5b57('0x7')],_0x5bf12b=_0x14aa72[_0x5b57('0x12')];if(!_0x14aa72[_0x5b57('0x8')][_0x5b57('0xa')]('BlockQuoteEditing'))return;const _0x57bbaa=_0x14aa72[_0x5b57('0x8')][_0x5b57('0x11')]('TrackChangesEditing'),_0x34842a=this[_0x5b57('0x7')][_0x5b57('0x13')]['get']('blockQuote');_0x57bbaa['enableCommand'](_0x5b57('0x10'),(_0x305dae,_0xb7d204={})=>{const _0x1da3fb=this['editor'][_0x5b57('0x15')]['document']['selection'],_0x351779=_0xb7d204&&void 0x0!==_0xb7d204['forceValue']?_0xb7d204[_0x5b57('0xd')]:!_0x34842a[_0x5b57('0x6')];let _0x2ff502=[];if(_0x351779){const _0x22dd05=Array['from'](_0x1da3fb['getSelectedBlocks']())[_0x5b57('0x18')](_0x40b9ee=>Xt(_0x40b9ee)||function(_0x1026e0,_0x31820d){const _0x265e7a=_0x31820d[_0x5b57('0x5')](_0x1026e0[_0x5b57('0xc')],_0x5b57('0x10')),_0x453f72=_0x31820d[_0x5b57('0x5')](['$root',_0x5b57('0x10')],_0x1026e0);return _0x265e7a&&_0x453f72;}(_0x40b9ee,this[_0x5b57('0x7')][_0x5b57('0x15')][_0x5b57('0x14')]));_0x2ff502=_0x572510(_0x22dd05,_0x14aa72['model']);}else{const _0x2d646e=Array[_0x5b57('0x4')](_0x1da3fb[_0x5b57('0x2')]())['filter'](_0x1161d2=>Xt(_0x1161d2));_0x2ff502=_0x572510(_0x2d646e,_0x14aa72['model']);}_0x14aa72['model'][_0x5b57('0x16')](()=>{for(const _0x5e4a16 of _0x2ff502)_0x57bbaa[_0x5b57('0xb')](_0x5e4a16,{'commandName':_0x5b57('0x10'),'commandParams':[{'forceValue':_0x351779}]});});}),_0x57bbaa[_0x5b57('0xe')][_0x5b57('0x3')](_0x27c28f=>{const {data:_0x4238c5}=_0x27c28f;if(_0x4238c5&&_0x5b57('0x10')==_0x4238c5['commandName']){const _0x4e6abf=_0x15d694(_0x5bf12b,'ELEMENT_BLOCK_QUOTE');return _0x4238c5[_0x5b57('0xf')][0x0][_0x5b57('0xd')]?{'type':_0x5b57('0x0'),'content':_0x15d694(_0x5bf12b,_0x5b57('0x17'),_0x4e6abf)}:{'type':_0x5b57('0x0'),'content':_0x15d694(_0x5bf12b,'*Remove\x20format:*\x20%0',_0x4e6abf)};}});}}function Xt(_0x2decb4){return _0x5b57('0x10')==_0x2decb4[_0x5b57('0xc')][_0x5b57('0x1')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26b2=['commands','ckbox','editor','plugins','enableCommand','get'];(function(_0x421beb,_0x26b292){const _0x3af174=function(_0x2b9e32){while(--_0x2b9e32){_0x421beb['push'](_0x421beb['shift']());}};_0x3af174(++_0x26b292);}(_0x26b2,0x179));const _0x3af1=function(_0x421beb,_0x26b292){_0x421beb=_0x421beb-0x0;let _0x3af174=_0x26b2[_0x421beb];return _0x3af174;};import{Plugin as _0xc927df}from'ckeditor5/src/core';export default class E extends _0xc927df{['afterInit'](){const _0x2db343=this[_0x3af1('0x3')];_0x2db343[_0x3af1('0x1')]['get'](_0x3af1('0x2'))&&_0x2db343[_0x3af1('0x4')][_0x3af1('0x0')]('TrackChangesEditing')[_0x3af1('0x5')](_0x3af1('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d98=['change','getSelectedBlocks','isLimit','afterInit','enableCommand','language','codeBlock','model','document','editor','languages','has','commandParams','label','ELEMENT_CODE_BLOCK','_descriptionFactory','selection','from','*Format:*\x20%0','schema','rootElement','plugins','indentCodeBlock','value','commandName','CodeBlock','forceValue','filter','get','format','blockName','parent'];(function(_0x1c49e7,_0x4d9837){const _0x5538ec=function(_0x484aa2){while(--_0x484aa2){_0x1c49e7['push'](_0x1c49e7['shift']());}};_0x5538ec(++_0x4d9837);}(_0x4d98,0xda));const _0x5538=function(_0x1c49e7,_0x4d9837){_0x1c49e7=_0x1c49e7-0x0;let _0x5538ec=_0x4d98[_0x1c49e7];return _0x5538ec;};import{Plugin as _0x133f29}from'ckeditor5/src/core';import{getTranslation as _0x4b0093}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x831f4a}from'../utils/utils';export default class O extends _0x133f29{[_0x5538('0x9')](){const _0xfce8d=this[_0x5538('0xf')];if(!_0xfce8d[_0x5538('0x1b')][_0x5538('0x11')](_0x5538('0x1f')))return;const _0x5f0bb6=_0xfce8d[_0x5538('0x1b')]['get']('TrackChangesEditing'),_0x596279=_0xfce8d['locale'],_0x116a03=_0xfce8d['config'][_0x5538('0x2')](_0x5538('0xc'))[_0x5538('0x10')],_0x1bbe1f=_0xfce8d['commands']['get'](_0x5538('0xc'));_0x5f0bb6['enableCommand'](_0x5538('0x1c')),_0x5f0bb6[_0x5538('0xa')]('outdentCodeBlock'),_0x5f0bb6['enableCommand'](_0x5538('0xc'),(_0x4f19bd,_0x36caf2={})=>{const _0x448332=_0xfce8d[_0x5538('0xd')],_0x59f5f9=_0xfce8d[_0x5538('0xd')][_0x5538('0xe')][_0x5538('0x16')],_0x76553a=_0x36caf2&&void 0x0!==_0x36caf2[_0x5538('0x0')]?_0x36caf2['forceValue']:!_0x1bbe1f[_0x5538('0x1d')];let _0x3c3286;_0x36caf2['language']||(_0x36caf2[_0x5538('0xb')]=_0x116a03[0x0][_0x5538('0xb')]),_0x3c3286=_0x76553a?Array[_0x5538('0x17')](_0x59f5f9[_0x5538('0x7')]())[_0x5538('0x1')](_0x5a8586=>oo(_0x5a8586)||function(_0x1f4724,_0x508bf0){if(_0x1f4724['is'](_0x5538('0x1a'))||_0x508bf0[_0x5538('0x8')](_0x1f4724))return!0x1;return _0x508bf0['checkChild'](_0x1f4724[_0x5538('0x5')],_0x5538('0xc'));}(_0x5a8586,_0x448332[_0x5538('0x19')])):Array['from'](_0x59f5f9[_0x5538('0x7')]())[_0x5538('0x1')](_0x2008a9=>oo(_0x2008a9));const _0x29fa84=_0x831f4a(_0x3c3286,_0x448332);_0x448332[_0x5538('0x6')](()=>{for(const _0x8683f4 of _0x29fa84)_0x5f0bb6['markBlockFormat'](_0x8683f4,{'commandName':_0x5538('0xc'),'commandParams':[{..._0x36caf2,'forceValue':_0x76553a}],'formatGroupId':_0x5538('0x4')});});}),(_0x5f0bb6['_descriptionFactory']['registerElementLabel'](_0x5538('0xc'),_0x302e9c=>_0x4b0093(_0x596279,_0x5538('0x14'),_0x302e9c)),_0x5f0bb6[_0x5538('0x15')]['registerDescriptionCallback'](_0x4ff4d9=>{const _0x13dbee=_0x596279['t'],{type:_0x13d15d,data:_0x45476a}=_0x4ff4d9;if('formatBlock'==_0x13d15d&&_0x45476a&&_0x5538('0xc')==_0x45476a[_0x5538('0x1e')]){const _0x152600=_0x45476a[_0x5538('0x12')][0x0][_0x5538('0xb')],_0xd108d7=_0x13dbee(_0x116a03['find'](_0x2b821c=>_0x2b821c[_0x5538('0xb')]===_0x152600)[_0x5538('0x13')]);return _0x45476a[_0x5538('0x12')][0x0][_0x5538('0x0')]?{'type':_0x5538('0x3'),'content':_0x4b0093(_0x596279,_0x5538('0x18'),_0x4b0093(_0x596279,_0x5538('0x14'),0x1)+'\x20('+_0xd108d7+')')}:{'type':_0x5538('0x3'),'content':_0x4b0093(_0x596279,'*Remove\x20format:*\x20%0',_0x4b0093(_0x596279,_0x5538('0x14'),0x1))};}}));}}function oo(_0x5bbfa0){return _0x5538('0xc')==_0x5bbfa0['name'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bda=['plugins','enableCommand','afterInit','CommentsEditing','addCommentThread','editor'];(function(_0x1dbb8e,_0x3bda4e){const _0x4a7aee=function(_0x1ae0df){while(--_0x1ae0df){_0x1dbb8e['push'](_0x1dbb8e['shift']());}};_0x4a7aee(++_0x3bda4e);}(_0x3bda,0xe0));const _0x4a7a=function(_0x1dbb8e,_0x3bda4e){_0x1dbb8e=_0x1dbb8e-0x0;let _0x4a7aee=_0x3bda[_0x1dbb8e];return _0x4a7aee;};import{Plugin as _0x9feea2}from'ckeditor5/src/core';export default class F extends _0x9feea2{[_0x4a7a('0x0')](){const _0x355d40=this[_0x4a7a('0x3')];if(!_0x355d40[_0x4a7a('0x4')]['has'](_0x4a7a('0x1')))return;_0x355d40[_0x4a7a('0x4')]['get']('TrackChangesEditing')[_0x4a7a('0x5')](_0x4a7a('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46fa=['init','bind','buffer','getFirstRange','setSelection','downcastDispatcher','TrackChangesEditing','batch','isCollapsed','forward','editing','createRange','start','modifySelection','model','options','$graveyard','lock','plugins','high','delete','unit','writer','root','requires','selection','mapper','deleteForward','markerNameToElements','merge','remove','enqueueChange','addMarker:suggestion:deletion','showSuggestionHighlights','markerName','end','unbindElementFromMarkerName','data','enableCommand','unlock','detach'];(function(_0x4f447b,_0x46fabc){const _0x47cb29=function(_0x5018ac){while(--_0x5018ac){_0x4f447b['push'](_0x4f447b['shift']());}};_0x47cb29(++_0x46fabc);}(_0x46fa,0x1b1));const _0x47cb=function(_0x4f447b,_0x46fabc){_0x4f447b=_0x4f447b-0x0;let _0x47cb29=_0x46fa[_0x4f447b];return _0x47cb29;};import{Plugin as _0x5069b8}from'ckeditor5/src/core';import{LiveRange as _0x1550a7}from'ckeditor5/src/engine';import{Delete as _0x19a187}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x379f42}from'./utils';export default class G extends _0x5069b8{static get[_0x47cb('0x1')](){return[_0x19a187];}[_0x47cb('0x12')](){const _0x5e5226=this['editor'],_0x12da32=_0x5e5226[_0x47cb('0x24')]['get'](_0x47cb('0x18'));_0x12da32['enableCommand'](_0x47cb('0x26'));const _0xdb51ea=_0x5e5226['commands']['get']('deleteForward');_0x12da32[_0x47cb('0xf')](_0x47cb('0x4'),(_0x255024,_0x3b7d95={})=>{const _0x5ddc90=_0x5e5226[_0x47cb('0x20')]['createSelection'](_0x5e5226[_0x47cb('0x20')]['document'][_0x47cb('0x2')]);_0x5ddc90[_0x47cb('0x1a')]&&_0x5e5226['model'][_0x47cb('0x1f')](_0x5ddc90,{'direction':_0x47cb('0x1b'),'unit':_0x3b7d95[_0x47cb('0x27')]});const _0x392b96=_0x5ddc90[_0x47cb('0x15')](),_0x3d2e1f=_0x1550a7['fromRange'](_0x392b96);let _0x22463e;_0x255024(_0x3b7d95),_0x22463e=_0x47cb('0x22')==_0x3d2e1f[_0x47cb('0x0')]['rootName']?_0x5e5226[_0x47cb('0x20')]['createRange'](_0x392b96[_0x47cb('0x1e')]):_0x5e5226['model']['createRange'](_0x3d2e1f['start'],_0x3d2e1f['end']),_0x3d2e1f[_0x47cb('0x11')](),_0x5e5226[_0x47cb('0x20')][_0x47cb('0x8')](_0xdb51ea[_0x47cb('0x14')][_0x47cb('0x19')],_0x5962dd=>{_0xdb51ea['buffer'][_0x47cb('0x23')](),_0x5962dd[_0x47cb('0x16')](_0x5962dd[_0x47cb('0x1d')](_0x22463e[_0x47cb('0xc')])),_0xdb51ea[_0x47cb('0x14')][_0x47cb('0x10')]();});}),_0x5e5226[_0x47cb('0x1c')]['downcastDispatcher']['on'](_0x47cb('0x9'),_0x379f42(_0x5e5226,_0x47cb('0x6')),{'priority':_0x47cb('0x25')}),_0x5e5226[_0x47cb('0xe')][_0x47cb('0x17')]['on']('addMarker:suggestion:deletion',(_0x12d9f8,_0x2af431,_0x54fbee)=>{_0x54fbee[_0x47cb('0x21')][_0x47cb('0xa')]&&_0x379f42(_0x5e5226,_0x47cb('0x6'),{'showActiveMarker':!0x1})[_0x47cb('0x13')](this)(_0x12d9f8,_0x2af431,_0x54fbee);},{'priority':_0x47cb('0x25')}),_0x5e5226[_0x47cb('0x1c')][_0x47cb('0x17')]['on']('removeMarker:suggestion:deletion',(_0x488c1d,_0x59e5cc,_0xc871a2)=>{const _0x244ebb=_0xc871a2[_0x47cb('0x3')][_0x47cb('0x5')](_0x59e5cc[_0x47cb('0xb')]);if(_0x244ebb)for(const _0x9812b0 of _0x244ebb)_0x9812b0['is']('uiElement')&&(_0xc871a2[_0x47cb('0x3')][_0x47cb('0xd')](_0x9812b0,_0x59e5cc[_0x47cb('0xb')]),_0xc871a2[_0x47cb('0x28')][_0x47cb('0x7')](_0x9812b0));},{'priority':_0x47cb('0x25')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24de=['splitListItemAfter','schema','previousSibling','nextSibling','listType','detach','DocumentListEditing','indentList','fromRange','containsItem','*Merge:*\x20%0','listIndent','refresh','get','push','before','commandName','isObject','after','documentList','start','from','mergeListItemForward','isFirstBlockOfListItem','getAttribute','_descriptionFactory','value','next','forceValue','ELEMENT_BULLETED_LIST','nodeAfter','hasAttribute','plugins','splitListItemBefore','getSelectedBlocks','ELEMENT_NUMBERED_LIST','bulletedList','createPositionAt','ELEMENT_LIST_ITEM','outdentList','multipleBlocks','getFirstRange','ELEMENT_','add','listItemId','locale','numberedList','change','*Format:*\x20insert\x20into\x20%0','setSelection','commands','enableCommand','markBlockFormat','commandParams','editor','registerElementLabel','end','markMultiRangeBlockFormat','_suggestionFactory','createRange','format','map','afterInit','*Change\x20to:*\x20%0','selection','findIndex','*Format:*\x20remove\x20from\x20%0','execute','TrackChangesEditing','length','formatBlock','document','model'];(function(_0x454897,_0x24de2f){const _0x49aa01=function(_0x4fb2cf){while(--_0x4fb2cf){_0x454897['push'](_0x454897['shift']());}};_0x49aa01(++_0x24de2f);}(_0x24de,0x187));const _0x49aa=function(_0x454897,_0x24de2f){_0x454897=_0x454897-0x0;let _0x49aa01=_0x24de[_0x454897];return _0x49aa01;};import{Plugin as _0x572430}from'ckeditor5/src/core';import{getTranslation as _0x11d706}from'../utils/common-translations';import{LiveRange as _0x827786}from'ckeditor5/src/engine';export default class L extends _0x572430{[_0x49aa('0x24')](){const _0x24bd05=this[_0x49aa('0x1c')];if(!_0x24bd05[_0x49aa('0x6')]['has'](_0x49aa('0x35')))return;const _0x2d3f68=_0x24bd05[_0x49aa('0x13')],_0x44c3fb=_0x24bd05[_0x49aa('0x6')]['get'](_0x49aa('0x2a')),_0x55e765=_0x24bd05[_0x49aa('0x6')][_0x49aa('0x3c')]('DocumentListUtils');function _0xa1fd21(_0x42b2a9){return()=>{const _0x2f9f9b=_0x24bd05[_0x49aa('0x18')][_0x49aa('0x3c')](_0x42b2a9);let _0x527fba=Array[_0x49aa('0x44')](_0x24bd05[_0x49aa('0x2e')]['document'][_0x49aa('0x26')][_0x49aa('0x8')]());if(_0x479bb5(_0x42b2a9)){_0x527fba=_0x55e765['expandListBlocksToCompleteList'](_0x527fba);const _0x506a66=[];for(const _0x5d3f02 of _0x527fba)_0x55e765[_0x49aa('0x46')](_0x5d3f02)&&_0x506a66[_0x49aa('0x3d')](_0x5d3f02);_0x527fba=_0x506a66;}_0x24bd05[_0x49aa('0x2e')]['change'](()=>{_0x44c3fb[_0x49aa('0x1f')](_0x527fba,{'commandName':_0x42b2a9,'commandParams':[{'forceValue':!_0x2f9f9b[_0x49aa('0x0')]}],'formatGroupId':_0x49aa('0x33')},[],_0x49aa('0x42'));});};}function _0x2b25e1(_0x40b502){return()=>{const _0x98f944=function(_0x2b02d3){let _0x4116d2=Array[_0x49aa('0x44')](_0x2b02d3);const _0x421bdb=_0x4116d2[_0x49aa('0x27')](_0x20bfa5=>!_0x20bfa5[_0x49aa('0x5')](_0x49aa('0x12')));return _0x421bdb>-0x1&&(_0x4116d2=_0x4116d2['slice'](0x0,_0x421bdb)),_0x4116d2;}(_0x24bd05[_0x49aa('0x2e')][_0x49aa('0x2d')][_0x49aa('0x26')]['getSelectedBlocks']()),_0x1de597=_0x98f944[_0x98f944[_0x49aa('0x2b')]-0x1],_0x18020d=_0x24bd05[_0x49aa('0x2e')][_0x49aa('0x30')][_0x49aa('0x40')](_0x1de597)?_0x49aa('0x41'):'end',_0x22cf05=_0x24bd05['model'][_0x49aa('0x21')](_0x24bd05['model'][_0x49aa('0xb')](_0x98f944[0x0],_0x49aa('0x3e')),_0x24bd05['model'][_0x49aa('0xb')](_0x1de597,_0x18020d));_0x24bd05[_0x49aa('0x2e')][_0x49aa('0x15')](()=>{_0x44c3fb[_0x49aa('0x1a')](_0x22cf05,{'commandName':_0x40b502,'commandParams':[],'formatGroupId':_0x49aa('0x33')},function(_0x3f456d){const _0x253f09=new Set();for(const _0x4812c1 of _0x3f456d){let _0x23f2a8=_0x4812c1['nextSibling'];for(;_0x23f2a8&&_0x23f2a8[_0x49aa('0x47')](_0x49aa('0x3a'))>_0x4812c1[_0x49aa('0x47')](_0x49aa('0x3a'));)_0x253f09[_0x49aa('0x11')](_0x23f2a8),_0x23f2a8=_0x23f2a8[_0x49aa('0x32')];}return Array[_0x49aa('0x44')](_0x253f09);}(_0x98f944));});};}function _0x18b882(_0xf0bebe){return()=>{const _0x908ddf=_0x24bd05[_0x49aa('0x2e')][_0x49aa('0x2d')][_0x49aa('0x26')][_0x49aa('0x8')]()[_0x49aa('0x1')]()[_0x49aa('0x0')],_0x2dd1e3=_0x24bd05[_0x49aa('0x2e')]['createPositionAt'](_0x908ddf,_0x49aa('0x3e')),_0x141b51=_0x24bd05['model'][_0x49aa('0xb')](_0x908ddf,0x0),_0xd94cf4=_0x24bd05[_0x49aa('0x2e')][_0x49aa('0x21')](_0x2dd1e3,_0x141b51);_0x24bd05['model'][_0x49aa('0x15')](()=>{_0x44c3fb[_0x49aa('0x1a')](_0xd94cf4,{'commandName':_0xf0bebe,'commandParams':[],'formatGroupId':'listType'});});};}function _0x479bb5(_0x26a274){const _0x561092=_0x24bd05[_0x49aa('0x18')][_0x49aa('0x3c')](_0x49aa('0xa'))[_0x49aa('0x0')],_0x51442d=_0x24bd05[_0x49aa('0x18')]['get'](_0x49aa('0x14'))[_0x49aa('0x0')];return _0x49aa('0x14')===_0x26a274?_0x561092:_0x51442d;}_0x44c3fb['enableCommand'](_0x49aa('0x14'),_0xa1fd21(_0x49aa('0x14'))),_0x44c3fb[_0x49aa('0x19')](_0x49aa('0xa'),_0xa1fd21('bulletedList')),_0x44c3fb['enableCommand'](_0x49aa('0x36'),_0x2b25e1('indentList')),_0x44c3fb[_0x49aa('0x19')](_0x49aa('0xd'),_0x2b25e1(_0x49aa('0xd'))),_0x44c3fb['enableCommand'](_0x49aa('0x2f'),_0x18b882(_0x49aa('0x2f'))),_0x44c3fb['enableCommand'](_0x49aa('0x7'),_0x18b882(_0x49aa('0x7'))),_0x44c3fb[_0x49aa('0x48')][_0x49aa('0x1d')](function(_0x1c719a){const _0x2d6e10=!_0x24bd05[_0x49aa('0x2e')][_0x49aa('0x30')]['isObject'](_0x1c719a),_0x270aa0=_0x1c719a[_0x49aa('0x31')],_0x4f7ef2=_0x1c719a[_0x49aa('0x32')],_0x5aeb5e=_0x1c719a[_0x49aa('0x47')]('listItemId'),_0x421e67=!_0x270aa0||_0x270aa0['getAttribute'](_0x49aa('0x12'))!==_0x5aeb5e,_0x1bcdea=!_0x4f7ef2||_0x4f7ef2['getAttribute'](_0x49aa('0x12'))!==_0x5aeb5e;return _0x2d6e10&&Boolean(_0x5aeb5e)&&_0x421e67&&_0x1bcdea;},_0x340bfe=>_0x11d706(_0x2d3f68,_0x49aa('0xc'),_0x340bfe)),_0x44c3fb[_0x49aa('0x48')]['registerDescriptionCallback'](function(_0x18667d){const {data:_0x8d7762}=_0x18667d;if(!_0x8d7762)return;let _0x6dd071,_0x2a7b34,_0x2fa51d,_0x175538;switch(_0x8d7762[_0x49aa('0x3f')]){case _0x49aa('0xa'):_0x2fa51d=_0x8d7762['commandParams'][0x0][_0x49aa('0x2')],_0x175538=_0x479bb5(_0x8d7762[_0x49aa('0x3f')]),_0x6dd071=_0x2fa51d?_0x49aa('0x16'):_0x49aa('0x28'),_0x175538&&(_0x6dd071=_0x49aa('0x25')),_0x2a7b34={'type':_0x49aa('0x22'),'content':_0x11d706(_0x2d3f68,_0x6dd071,_0x11d706(_0x2d3f68,_0x49aa('0x3')))};break;case'numberedList':_0x2fa51d=_0x8d7762['commandParams'][0x0][_0x49aa('0x2')],_0x175538=_0x479bb5(_0x8d7762[_0x49aa('0x3f')]),_0x6dd071=_0x2fa51d?_0x49aa('0x16'):_0x49aa('0x28'),_0x175538&&(_0x6dd071=_0x49aa('0x25')),_0x2a7b34={'type':_0x49aa('0x22'),'content':_0x11d706(_0x2d3f68,_0x6dd071,_0x11d706(_0x2d3f68,_0x49aa('0x9')))};break;case _0x49aa('0x36'):_0x6dd071='*Indent:*\x20%0',_0x2a7b34={'type':_0x49aa('0x22'),'content':_0x11d706(_0x2d3f68,_0x6dd071,_0x11d706(_0x2d3f68,_0x49aa('0xc')))};break;case _0x49aa('0xd'):_0x6dd071=function(_0x2ff112){const _0xd6afa=_0x2ff112[_0x49aa('0xf')]();let _0x129fa0=_0xd6afa[_0x49aa('0x43')][_0x49aa('0x4')];for(;_0x129fa0&&_0xd6afa[_0x49aa('0x38')](_0x129fa0);){if(_0x129fa0[_0x49aa('0x47')](_0x49aa('0x3a'))>0x0)return!0x1;_0x129fa0=_0x129fa0[_0x49aa('0x32')];}return!0x0;}(_0x18667d)?_0x11d706(_0x2d3f68,_0x49aa('0x28'),_0x11d706(_0x2d3f68,function(_0x3d16fe){const _0x3c6757=_0x3d16fe[_0x49aa('0xf')]()[_0x49aa('0x43')][_0x49aa('0x4')];return _0x49aa('0x10')+_0x3c6757[_0x49aa('0x47')](_0x49aa('0x33'))['toUpperCase']()+'_LIST';}(_0x18667d))):_0x11d706(_0x2d3f68,'*Outdent:*\x20%0',_0x11d706(_0x2d3f68,'ELEMENT_LIST_ITEM')),_0x2a7b34={'type':_0x49aa('0x22'),'content':_0x6dd071};break;case'mergeListItemBackward':case _0x49aa('0x45'):!0x1===_0x8d7762[_0x49aa('0xe')]&&(_0x6dd071=_0x49aa('0x39'),_0x2a7b34={'type':'deletion','content':_0x11d706(_0x2d3f68,_0x6dd071,_0x11d706(_0x2d3f68,_0x49aa('0xc')))});}return _0x2a7b34;}),_0x44c3fb[_0x49aa('0x20')]['registerCustomCallback'](_0x49aa('0x2c'),_0x49aa('0x42'),'accept',function(_0x5049d3,_0x507c39){const _0x5ba9ab=[];for(let _0x2aaa4c of _0x5049d3)_0x2aaa4c['start'][_0x49aa('0x4')]===_0x2aaa4c[_0x49aa('0x1e')]['parent']&&(_0x2aaa4c=_0x24bd05[_0x49aa('0x2e')]['createRange'](_0x24bd05['model']['createPositionAt'](_0x2aaa4c[_0x49aa('0x43')][_0x49aa('0x4')],0x0))),_0x5ba9ab['push'](_0x2aaa4c);_0x24bd05[_0x49aa('0x2e')][_0x49aa('0x15')](_0x17a494=>{const _0x20e453=_0x24bd05['model'][_0x49aa('0x2d')][_0x49aa('0x26')],_0x20101c=Array[_0x49aa('0x44')](_0x20e453['getRanges']())[_0x49aa('0x23')](_0x3b8ccb=>_0x827786[_0x49aa('0x37')](_0x3b8ccb));_0x17a494[_0x49aa('0x17')](_0x5ba9ab),_0x24bd05['commands']['get'](_0x507c39[_0x49aa('0x3f')])[_0x49aa('0x3b')](),_0x507c39[_0x49aa('0x1b')][_0x49aa('0x3d')]({'forceDefaultExecution':!0x0}),_0x24bd05[_0x49aa('0x29')](_0x507c39[_0x49aa('0x3f')],..._0x507c39[_0x49aa('0x1b')]),_0x17a494[_0x49aa('0x17')](_0x20101c);for(const _0x5d1273 of _0x20101c)_0x5d1273[_0x49aa('0x34')]();});});}}
|