@ckeditor/ckeditor5-track-changes 35.2.0 → 35.2.1
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 +1 -1
- package/package.json +4 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/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/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.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/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/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/getrangesofblockgroups.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "35.2.
|
|
3
|
+
"version": "35.2.1",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
],
|
|
28
28
|
"main": "src/index.js",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"ckeditor5": "^35.2.
|
|
31
|
-
"ckeditor5-collaboration": "^35.2.
|
|
30
|
+
"ckeditor5": "^35.2.1",
|
|
31
|
+
"ckeditor5-collaboration": "^35.2.1",
|
|
32
32
|
"lodash-es": "^4.17.11",
|
|
33
|
-
"@ckeditor/ckeditor5-style": "^35.2.
|
|
33
|
+
"@ckeditor/ckeditor5-style": "^35.2.1"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5644=['values','isInContent','execute','editor','model','some','isEnabled','_suggestions','refresh','from','change','_acceptSuggestionCommand'];(function(_0x7218d8,_0x5644f2){const _0x19781d=function(_0x2730d2){while(--_0x2730d2){_0x7218d8['push'](_0x7218d8['shift']());}};_0x19781d(++_0x5644f2);}(_0x5644,0x81));const _0x1978=function(_0x7218d8,_0x5644f2){_0x7218d8=_0x7218d8-0x0;let _0x19781d=_0x5644[_0x7218d8];return _0x19781d;};import{Command as _0x264d48}from'ckeditor5/src/core';import _0x234351 from'../utils/sortsuggestions';export default class R extends _0x264d48{constructor(_0x2038e2,_0x3bbcb5,_0xa006fc){super(_0x2038e2),this[_0x1978('0x2')]=_0x3bbcb5,this[_0x1978('0xa')]=_0xa006fc,this[_0x1978('0xb')]();}[_0x1978('0xb')](){const _0x14a65d=this['_acceptSuggestionCommand'];this[_0x1978('0x9')]=_0x14a65d[_0x1978('0x9')]&&Array[_0x1978('0x0')](this[_0x1978('0xa')]['values']())[_0x1978('0x8')](_0x17c11e=>_0x17c11e[_0x1978('0x4')]);}['execute'](){this[_0x1978('0x6')][_0x1978('0x7')][_0x1978('0x1')](()=>{const _0x1def05=_0x234351(Array[_0x1978('0x0')](this['_suggestions'][_0x1978('0x3')]()));for(const _0xe671f9 of _0x1def05)_0xe671f9[_0x1978('0x4')]&&this[_0x1978('0x2')][_0x1978('0x5')](_0xe671f9['id']);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x482e=['values','editor','size','_selectedSuggestions','from','_acceptSuggestionCommand','_suggestions','selection','refresh','model','execute'];(function(_0x44c26e,_0x482e70){const _0xabbdaa=function(_0x2623a6){while(--_0x2623a6){_0x44c26e['push'](_0x44c26e['shift']());}};_0xabbdaa(++_0x482e70);}(_0x482e,0x185));const _0xabbd=function(_0x44c26e,_0x482e70){_0x44c26e=_0x44c26e-0x0;let _0xabbdaa=_0x482e[_0x44c26e];return _0xabbdaa;};import{Command as _0x1636b3}from'ckeditor5/src/core';import _0x387221 from'../utils/sortsuggestions';import _0xebcf1a from'../utils/getselectedsuggestions';export default class j extends _0x1636b3{constructor(_0x12d202,_0x747e87,_0x5d0853){super(_0x12d202),this[_0xabbd('0x1')]=_0x747e87,this[_0xabbd('0x2')]=_0x5d0853,this[_0xabbd('0xa')]=new Set(),this['refresh']();}[_0xabbd('0x4')](){const _0x561a20=this['_acceptSuggestionCommand'],_0x277e53=this[_0xabbd('0x8')][_0xabbd('0x5')]['document'][_0xabbd('0x3')],_0xe38dbe=Array['from'](this[_0xabbd('0x2')][_0xabbd('0x7')]());this[_0xabbd('0xa')]=_0xebcf1a(_0x277e53,_0xe38dbe),this['isEnabled']=_0x561a20['isEnabled']&&!!this[_0xabbd('0xa')][_0xabbd('0x9')];}[_0xabbd('0x6')](){this[_0xabbd('0x8')][_0xabbd('0x5')]['change'](()=>{const _0x8ab27d=_0x387221(Array[_0xabbd('0x0')](this[_0xabbd('0xa')]));for(const _0x39ed4d of _0x8ab27d)this[_0xabbd('0x1')][_0xabbd('0x6')](_0x39ed4d['id']);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bb7=['editor','get','_suggestions','plugins','TrackChangesEditing','refresh','isEnabled'];(function(_0x2d67ab,_0x3bb7d4){const _0x1c8051=function(_0x4bd310){while(--_0x4bd310){_0x2d67ab['push'](_0x2d67ab['shift']());}};_0x1c8051(++_0x3bb7d4);}(_0x3bb7,0x122));const _0x1c80=function(_0x2d67ab,_0x3bb7d4){_0x2d67ab=_0x2d67ab-0x0;let _0x1c8051=_0x3bb7[_0x2d67ab];return _0x1c8051;};import{Command as _0x801437}from'ckeditor5/src/core';import{CKEditorError as _0x11b0ec}from'ckeditor5/src/utils';export default class $ extends _0x801437{constructor(_0x338dcc,_0x18574a){super(_0x338dcc),this[_0x1c80('0x6')]=_0x18574a,this[_0x1c80('0x2')]();}[_0x1c80('0x2')](){this[_0x1c80('0x3')]=!0x0;}['execute'](_0x19ecb6){const _0x2fd127=this[_0x1c80('0x6')]['get'](_0x19ecb6);if(!_0x2fd127)throw new _0x11b0ec('track-changes-accept-suggestion-not-found',this);this[_0x1c80('0x4')][_0x1c80('0x0')][_0x1c80('0x5')](_0x1c80('0x1'))['acceptSuggestion'](_0x2fd127);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55a8=['_suggestions','refresh','isEnabled','execute','_discardSuggestionCommand','isInContent','from','editor','model','values'];(function(_0x5c6878,_0x55a889){const _0x35c287=function(_0x56ee86){while(--_0x56ee86){_0x5c6878['push'](_0x5c6878['shift']());}};_0x35c287(++_0x55a889);}(_0x55a8,0x1e8));const _0x35c2=function(_0x5c6878,_0x55a889){_0x5c6878=_0x5c6878-0x0;let _0x35c287=_0x55a8[_0x5c6878];return _0x35c287;};import{Command as _0x312d50}from'ckeditor5/src/core';export default class x extends _0x312d50{constructor(_0x5b90ab,_0x438637,_0x54e25b){super(_0x5b90ab),this[_0x35c2('0x6')]=_0x438637,this[_0x35c2('0x2')]=_0x54e25b,this[_0x35c2('0x3')]();}[_0x35c2('0x3')](){const _0x48a59e=this[_0x35c2('0x6')];this[_0x35c2('0x4')]=_0x48a59e[_0x35c2('0x4')]&&Array[_0x35c2('0x8')](this[_0x35c2('0x2')][_0x35c2('0x1')]())['some'](_0x206f1a=>_0x206f1a['isInContent']);}[_0x35c2('0x5')](){this[_0x35c2('0x9')][_0x35c2('0x0')]['change'](()=>{for(const _0x13216f of this[_0x35c2('0x2')][_0x35c2('0x1')]())_0x13216f[_0x35c2('0x7')]&&this['_discardSuggestionCommand']['execute'](_0x13216f['id']);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1467=['refresh','values','execute','_selectedSuggestions','from','size','model','_discardSuggestionCommand','change','_suggestions','editor','isEnabled'];(function(_0x231d4d,_0x146780){const _0x5b08e9=function(_0xe5b785){while(--_0xe5b785){_0x231d4d['push'](_0x231d4d['shift']());}};_0x5b08e9(++_0x146780);}(_0x1467,0xf7));const _0x5b08=function(_0x231d4d,_0x146780){_0x231d4d=_0x231d4d-0x0;let _0x5b08e9=_0x1467[_0x231d4d];return _0x5b08e9;};import{Command as _0x24b891}from'ckeditor5/src/core';import _0xa94fa9 from'../utils/getselectedsuggestions';export default class U extends _0x24b891{constructor(_0xb09cda,_0x2af079,_0x34bd91){super(_0xb09cda),this[_0x5b08('0x0')]=_0x2af079,this['_suggestions']=_0x34bd91,this[_0x5b08('0x8')]=new Set(),this['refresh']();}[_0x5b08('0x5')](){const _0x3716fe=this[_0x5b08('0x0')],_0x213188=this[_0x5b08('0x3')][_0x5b08('0xb')]['document']['selection'],_0x4cfb70=Array[_0x5b08('0x9')](this[_0x5b08('0x2')][_0x5b08('0x6')]());this[_0x5b08('0x8')]=_0xa94fa9(_0x213188,_0x4cfb70),this[_0x5b08('0x4')]=_0x3716fe[_0x5b08('0x4')]&&!!this['_selectedSuggestions'][_0x5b08('0xa')];}[_0x5b08('0x7')](){this[_0x5b08('0x3')][_0x5b08('0xb')][_0x5b08('0x1')](()=>{for(const _0x1a76b0 of this[_0x5b08('0x8')])this[_0x5b08('0x0')]['execute'](_0x1a76b0['id']);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5042=['refresh','plugins','_suggestions','editor','get','discardSuggestion','execute','isEnabled','track-changes-discard-suggestion-not-found'];(function(_0x502b8b,_0x504287){const _0x3917b6=function(_0x2ae64e){while(--_0x2ae64e){_0x502b8b['push'](_0x502b8b['shift']());}};_0x3917b6(++_0x504287);}(_0x5042,0x1b5));const _0x3917=function(_0x502b8b,_0x504287){_0x502b8b=_0x502b8b-0x0;let _0x3917b6=_0x5042[_0x502b8b];return _0x3917b6;};import{Command as _0x466f45}from'ckeditor5/src/core';import{CKEditorError as _0x7733a6}from'ckeditor5/src/utils';export default class N extends _0x466f45{constructor(_0x4c2faf,_0x2cb4b7){super(_0x4c2faf),this[_0x3917('0x6')]=_0x2cb4b7,this[_0x3917('0x4')]();}[_0x3917('0x4')](){this[_0x3917('0x2')]=!0x0;}[_0x3917('0x1')](_0x57dfce){const _0x44ed51=this[_0x3917('0x6')][_0x3917('0x8')](_0x57dfce);if(!_0x44ed51)throw new _0x7733a6(_0x3917('0x3'),this);this[_0x3917('0x7')][_0x3917('0x5')][_0x3917('0x8')]('TrackChangesEditing')[_0x3917('0x0')](_0x44ed51);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a60=['commands','TrackChangesCommand','affectsData','value','editor','_enabledCommands','forceDisabled','execute','has','refresh','_disableUnsupportedCommands','_enableCommands'];(function(_0xd57485,_0x2a6031){const _0x38647e=function(_0x32b048){while(--_0x32b048){_0xd57485['push'](_0xd57485['shift']());}};_0x38647e(++_0x2a6031);}(_0x2a60,0x9c));const _0x3864=function(_0xd57485,_0x2a6031){_0xd57485=_0xd57485-0x0;let _0x38647e=_0x2a60[_0xd57485];return _0x38647e;};import{Command as _0x33229f}from'ckeditor5/src/core';export default class M extends _0x33229f{constructor(_0xf5be59,_0x21d117){super(_0xf5be59),this['_enabledCommands']=_0x21d117,this[_0x3864('0x3')]=!0x1,this[_0x3864('0x9')]();}[_0x3864('0x9')](){this['isEnabled']=!0x0;}[_0x3864('0x7')](){this[_0x3864('0x3')]=!this[_0x3864('0x3')],this['value']?this['_disableUnsupportedCommands']():this[_0x3864('0xb')]();}[_0x3864('0xa')](){for(const _0x25288f of this[_0x3864('0x4')]['commands']['commands']())_0x25288f['affectsData']&&!this[_0x3864('0x5')][_0x3864('0x8')](_0x25288f)&&_0x25288f[_0x3864('0x6')](_0x3864('0x1'));}['_enableCommands'](){for(const _0x52e8e7 of this[_0x3864('0x4')][_0x3864('0x0')][_0x3864('0x0')]())_0x52e8e7[_0x3864('0x2')]&&!this['_enabledCommands'][_0x3864('0x8')](_0x52e8e7)&&_0x52e8e7['clearForceDisabled'](_0x3864('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b5f=['justify','schema','FORMAT_ALIGN_TO_CENTER','alignment','left','registerDescriptionCallback','right','plugins','afterInit','TrackChangesEditing','markBlockFormat','selection','FORMAT_ALIGN_TO_LEFT','_descriptionFactory','filter','editor','locale','ltr','commandName','has','value','document','model','change','from','center','get','format','enableCommand','getAttribute','FORMAT_JUSTIFY_TEXT'];(function(_0x2b8a3a,_0x1b5f1f){const _0x453ef8=function(_0x6b2ed5){while(--_0x6b2ed5){_0x2b8a3a['push'](_0x2b8a3a['shift']());}};_0x453ef8(++_0x1b5f1f);}(_0x1b5f,0x11b));const _0x453e=function(_0x2b8a3a,_0x1b5f1f){_0x2b8a3a=_0x2b8a3a-0x0;let _0x453ef8=_0x1b5f[_0x2b8a3a];return _0x453ef8;};import{Plugin as _0x14a90b}from'ckeditor5/src/core';import{getTranslation as _0x5a862f}from'../utils/common-translations';export default class E extends _0x14a90b{[_0x453e('0x4')](){const _0x52e340=this['editor'],_0x2ccfb0=_0x52e340[_0x453e('0xc')];if(!_0x52e340[_0x453e('0x3')][_0x453e('0xf')]('AlignmentEditing'))return;const _0x26b284=_0x52e340[_0x453e('0x3')][_0x453e('0x16')](_0x453e('0x5'));_0x26b284[_0x453e('0x18')](_0x453e('0x1e'),(_0x2bdb31,_0x45978a={})=>{let _0x3c416f=_0x45978a[_0x453e('0x10')];_0x45978a[_0x453e('0x10')]||(_0x3c416f=_0x453e('0xd')===_0x52e340['locale']['contentLanguageDirection']?_0x453e('0x0'):_0x453e('0x2'));const _0x56d062=Array[_0x453e('0x14')](this['editor'][_0x453e('0x12')][_0x453e('0x11')][_0x453e('0x7')]['getSelectedBlocks']())[_0x453e('0xa')](_0x91c21e=>function(_0x4b45cc,_0x39d76a,_0x2aac85){const _0x3b9e41=_0x4b45cc[_0x453e('0x19')](_0x453e('0x1e'))||null;return _0x39d76a['checkAttribute'](_0x4b45cc,_0x453e('0x1e'))&&_0x2aac85!=_0x3b9e41;}(_0x91c21e,this[_0x453e('0xb')]['model'][_0x453e('0x1c')],_0x3c416f));_0x52e340[_0x453e('0x12')][_0x453e('0x13')](()=>{for(const _0x7e5753 of _0x56d062)_0x26b284[_0x453e('0x6')](_0x7e5753,{'commandName':_0x453e('0x1e'),'commandParams':[{'value':_0x3c416f}]});});}),_0x26b284[_0x453e('0x9')][_0x453e('0x1')](_0x435a7e=>{const {data:_0x3494ed}=_0x435a7e;if(_0x3494ed&&_0x453e('0x1e')==_0x3494ed[_0x453e('0xe')]){const _0x52710e=_0x3494ed['commandParams'][0x0][_0x453e('0x10')];return{'type':_0x453e('0x17'),'content':_0x5a862f(_0x2ccfb0,'*Format:*\x20%0',function(_0x387e41){switch(_0x387e41){case _0x453e('0x0'):return _0x5a862f(_0x2ccfb0,_0x453e('0x8'));case'right':return _0x5a862f(_0x2ccfb0,'FORMAT_ALIGN_TO_RIGHT');case _0x453e('0x15'):return _0x5a862f(_0x2ccfb0,_0x453e('0x1d'));case _0x453e('0x1b'):return _0x5a862f(_0x2ccfb0,_0x453e('0x1a'));}}(_0x52710e))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29f3=['*Format:*\x20%0','FORMAT_UNDERLINE','subscript','CodeEditing','change','commandParams','commands','SuperscriptEditing','_descriptionFactory','ItalicEditing','slice','BoldEditing','afterInit','isCollapsed','SubscriptEditing','superscript','format','model','code','StrikethroughEditing','selection','value','strikethrough','get','FORMAT_SUPERSCRIPT','enableCommand','UnderlineEditing','FORMAT_STRIKETHROUGH','from','markInlineFormat','forceValue','underline','locale','toLowerCase','commandName','FORMAT_SUBSCRIPT','FORMAT_BOLD','TrackChangesEditing'];(function(_0x2e54df,_0x29f3cb){const _0x2768f4=function(_0x481b2f){while(--_0x481b2f){_0x2e54df['push'](_0x2e54df['shift']());}};_0x2768f4(++_0x29f3cb);}(_0x29f3,0x126));const _0x2768=function(_0x2e54df,_0x29f3cb){_0x2e54df=_0x2e54df-0x0;let _0x2768f4=_0x29f3[_0x2e54df];return _0x2768f4;};import{Plugin as _0x28dc85}from'ckeditor5/src/core';import{getTranslation as _0x3e4b16}from'../utils/common-translations';import{getRangesWithAttribute as _0x5db607}from'./utils';const Ft=[_0x2768('0x15'),_0x2768('0x13'),_0x2768('0x24'),_0x2768('0xd'),_0x2768('0x1d'),_0x2768('0x18'),_0x2768('0x11')];export default class O extends _0x28dc85{[_0x2768('0x16')](){const _0x465c9f=this['editor'],_0x2e8aec=_0x465c9f[_0x2768('0x1b')],_0x3843ec=_0x465c9f['plugins'][_0x2768('0x21')](_0x2768('0x9')),_0x16b471=_0x465c9f[_0x2768('0x4')];for(const _0x5b2525 of Ft){if(!_0x465c9f['plugins']['has'](_0x5b2525))continue;const _0x59b1f5=_0x5b2525[_0x2768('0x14')](0x0,-0x7)[_0x2768('0x5')](),_0x8586ba=_0x465c9f[_0x2768('0x10')][_0x2768('0x21')](_0x59b1f5);_0x3843ec[_0x2768('0x23')](_0x59b1f5,(_0x24901d,_0x285235={})=>{const _0xe91331=_0x2e8aec['document'][_0x2768('0x1e')];if(_0xe91331[_0x2768('0x17')])return void _0x24901d(_0x285235);const _0xb19fa8=void 0x0!==_0x285235['forceValue']?_0x285235[_0x2768('0x2')]:!_0x8586ba[_0x2768('0x1f')];_0x2e8aec[_0x2768('0xe')](()=>{const _0x5d1a0d=Array[_0x2768('0x0')](_0xe91331['getRanges']());for(const _0x5a32ac of _0x5d1a0d){const _0x1e3131=_0xb19fa8?[_0x5a32ac]:_0x5db607(_0x59b1f5,_0x5a32ac,_0x2e8aec);for(const _0x208288 of _0x1e3131)_0x3843ec[_0x2768('0x1')](_0x208288,{'commandName':_0x59b1f5,'commandParams':[{'forceValue':_0xb19fa8}]});}});});}function _0x651463(_0xe888eb,_0x401dda){_0x3843ec[_0x2768('0x12')]['registerDescriptionCallback'](_0x3c011c=>{const {data:_0x147f99}=_0x3c011c;if(_0x147f99&&_0x147f99[_0x2768('0x6')]===_0xe888eb)return _0x147f99[_0x2768('0xf')][0x0]['forceValue']?{'type':_0x2768('0x1a'),'content':_0x3e4b16(_0x16b471,_0x2768('0xa'),_0x401dda)}:{'type':_0x2768('0x1a'),'content':_0x3e4b16(_0x16b471,'*Remove\x20format:*\x20%0',_0x401dda)};});}_0x651463('bold',_0x3e4b16(_0x16b471,_0x2768('0x8'))),_0x651463('italic',_0x3e4b16(_0x16b471,'FORMAT_ITALIC')),_0x651463(_0x2768('0x3'),_0x3e4b16(_0x16b471,_0x2768('0xb'))),_0x651463(_0x2768('0x1c'),_0x3e4b16(_0x16b471,'FORMAT_CODE')),_0x651463(_0x2768('0x20'),_0x3e4b16(_0x16b471,_0x2768('0x25'))),_0x651463(_0x2768('0xc'),_0x3e4b16(_0x16b471,_0x2768('0x7'))),_0x651463(_0x2768('0x19'),_0x3e4b16(_0x16b471,_0x2768('0x22')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd66d=['forceValue','getSelectedBlocks','ELEMENT_BLOCK_QUOTE','get','registerDescriptionCallback','*Format:*\x20%0','model','plugins','markBlockFormat','document','_descriptionFactory','commands','schema','filter','commandName','BlockQuoteEditing','from','commandParams','*Remove\x20format:*\x20%0','blockQuote','value','locale','format','checkChild','TrackChangesEditing','editor','change','selection','has'];(function(_0x8432ed,_0xd66d02){const _0x1ff051=function(_0x351a05){while(--_0x351a05){_0x8432ed['push'](_0x8432ed['shift']());}};_0x1ff051(++_0xd66d02);}(_0xd66d,0x86));const _0x1ff0=function(_0x8432ed,_0xd66d02){_0x8432ed=_0x8432ed-0x0;let _0x1ff051=_0xd66d[_0x8432ed];return _0x1ff051;};import{Plugin as _0x38d8d9}from'ckeditor5/src/core';import{getTranslation as _0x842546}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x46ef70}from'../utils/getrangesofblockgroups';export default class P extends _0x38d8d9{['afterInit'](){const _0xf94650=this[_0x1ff0('0x7')],_0x229645=_0xf94650[_0x1ff0('0x3')];if(!_0xf94650[_0x1ff0('0x12')][_0x1ff0('0xa')](_0x1ff0('0x1a')))return;const _0x1da891=_0xf94650[_0x1ff0('0x12')][_0x1ff0('0xe')](_0x1ff0('0x6')),_0x434ea1=this[_0x1ff0('0x7')][_0x1ff0('0x16')]['get']('blockQuote');_0x1da891['enableCommand'](_0x1ff0('0x1'),(_0x5f1dc0,_0x255d5e={})=>{const _0x497c1f=this[_0x1ff0('0x7')][_0x1ff0('0x11')][_0x1ff0('0x14')][_0x1ff0('0x9')],_0x8e24a1=_0x255d5e&&void 0x0!==_0x255d5e['forceValue']?_0x255d5e[_0x1ff0('0xb')]:!_0x434ea1[_0x1ff0('0x2')];let _0x1a0a40=[];if(_0x8e24a1){const _0x17efb8=Array[_0x1ff0('0x1b')](_0x497c1f['getSelectedBlocks']())[_0x1ff0('0x18')](_0x16524b=>to(_0x16524b)||function(_0x149062,_0x291399){const _0x500c92=_0x291399['checkChild'](_0x149062['parent'],_0x1ff0('0x1')),_0x3193df=_0x291399[_0x1ff0('0x5')](['$root',_0x1ff0('0x1')],_0x149062);return _0x500c92&&_0x3193df;}(_0x16524b,this[_0x1ff0('0x7')][_0x1ff0('0x11')][_0x1ff0('0x17')]));_0x1a0a40=_0x46ef70(_0x17efb8,_0xf94650['model']);}else{const _0x1e04b5=Array[_0x1ff0('0x1b')](_0x497c1f[_0x1ff0('0xc')]())[_0x1ff0('0x18')](_0x36c9fe=>to(_0x36c9fe));_0x1a0a40=_0x46ef70(_0x1e04b5,_0xf94650['model']);}_0xf94650[_0x1ff0('0x11')][_0x1ff0('0x8')](()=>{for(const _0x45a7e3 of _0x1a0a40)_0x1da891[_0x1ff0('0x13')](_0x45a7e3,{'commandName':_0x1ff0('0x1'),'commandParams':[{'forceValue':_0x8e24a1}]});});}),_0x1da891[_0x1ff0('0x15')][_0x1ff0('0xf')](_0x2bb912=>{const {data:_0x5ef836}=_0x2bb912;if(_0x5ef836&&_0x1ff0('0x1')==_0x5ef836[_0x1ff0('0x19')]){const _0x27956c=_0x842546(_0x229645,_0x1ff0('0xd'));return _0x5ef836[_0x1ff0('0x1c')][0x0][_0x1ff0('0xb')]?{'type':_0x1ff0('0x4'),'content':_0x842546(_0x229645,_0x1ff0('0x10'),_0x27956c)}:{'type':_0x1ff0('0x4'),'content':_0x842546(_0x229645,_0x1ff0('0x0'),_0x27956c)};}});}}function to(_0x1e69c9){return'blockQuote'==_0x1e69c9['parent']['name'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x596c=['enableCommand','get','editor','plugins','ckbox','TrackChangesEditing'];(function(_0x4f8f4f,_0x596c9c){const _0x92cc60=function(_0x13266a){while(--_0x13266a){_0x4f8f4f['push'](_0x4f8f4f['shift']());}};_0x92cc60(++_0x596c9c);}(_0x596c,0x1b2));const _0x92cc=function(_0x4f8f4f,_0x596c9c){_0x4f8f4f=_0x4f8f4f-0x0;let _0x92cc60=_0x596c[_0x4f8f4f];return _0x92cc60;};import{Plugin as _0x174a81}from'ckeditor5/src/core';export default class G extends _0x174a81{['afterInit'](){const _0x5b5a35=this[_0x92cc('0x0')];_0x5b5a35['commands'][_0x92cc('0x5')](_0x92cc('0x2'))&&_0x5b5a35[_0x92cc('0x1')][_0x92cc('0x5')](_0x92cc('0x3'))[_0x92cc('0x4')](_0x92cc('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28f9=['rootElement','getSelectedBlocks','_descriptionFactory','from','locale','plugins','ELEMENT_CODE_BLOCK','blockName','label','enableCommand','languages','codeBlock','markBlockFormat','checkChild','isLimit','name','schema','TrackChangesEditing','commands','format','has','commandName','find','parent','document','language','outdentCodeBlock','selection','change','*Format:*\x20%0','afterInit','CodeBlock','get','forceValue','filter','*Remove\x20format:*\x20%0','commandParams','indentCodeBlock','editor'];(function(_0xa4799d,_0x28f9ef){const _0x4bdc57=function(_0x13de9e){while(--_0x13de9e){_0xa4799d['push'](_0xa4799d['shift']());}};_0x4bdc57(++_0x28f9ef);}(_0x28f9,0x8f));const _0x4bdc=function(_0xa4799d,_0x28f9ef){_0xa4799d=_0xa4799d-0x0;let _0x4bdc57=_0x28f9[_0xa4799d];return _0x4bdc57;};import{Plugin as _0x1fd936}from'ckeditor5/src/core';import{getTranslation as _0x608f18}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x52fa69}from'../utils/getrangesofblockgroups';export default class F extends _0x1fd936{[_0x4bdc('0x4')](){const _0x4364d7=this[_0x4bdc('0xc')];if(!_0x4364d7['plugins'][_0x4bdc('0x21')](_0x4bdc('0x5')))return;const _0x2281cb=_0x4364d7[_0x4bdc('0x12')]['get'](_0x4bdc('0x1e')),_0x1603ae=_0x4364d7[_0x4bdc('0x11')],_0x541d4e=_0x4364d7['config'][_0x4bdc('0x6')](_0x4bdc('0x18'))[_0x4bdc('0x17')],_0x42f2ee=_0x4364d7[_0x4bdc('0x1f')][_0x4bdc('0x6')](_0x4bdc('0x18'));_0x2281cb[_0x4bdc('0x16')](_0x4bdc('0xb')),_0x2281cb[_0x4bdc('0x16')](_0x4bdc('0x0')),_0x2281cb['enableCommand'](_0x4bdc('0x18'),(_0x2ef09f,_0x674f57={})=>{const _0x1c96ef=_0x4364d7['model'],_0xf33721=_0x4364d7['model'][_0x4bdc('0x25')][_0x4bdc('0x1')],_0x15740a=_0x674f57&&void 0x0!==_0x674f57['forceValue']?_0x674f57['forceValue']:!_0x42f2ee['value'];let _0x583fc3;_0x674f57[_0x4bdc('0x26')]||(_0x674f57[_0x4bdc('0x26')]=_0x541d4e[0x0]['language']),_0x583fc3=_0x15740a?Array['from'](_0xf33721['getSelectedBlocks']())[_0x4bdc('0x8')](_0x32c4c4=>co(_0x32c4c4)||function(_0x47a0f0,_0x300365){if(_0x47a0f0['is'](_0x4bdc('0xd'))||_0x300365[_0x4bdc('0x1b')](_0x47a0f0))return!0x1;return _0x300365[_0x4bdc('0x1a')](_0x47a0f0[_0x4bdc('0x24')],_0x4bdc('0x18'));}(_0x32c4c4,_0x1c96ef[_0x4bdc('0x1d')])):Array[_0x4bdc('0x10')](_0xf33721[_0x4bdc('0xe')]())['filter'](_0x19e8f8=>co(_0x19e8f8));const _0x5b50f7=_0x52fa69(_0x583fc3,_0x1c96ef);_0x1c96ef[_0x4bdc('0x2')](()=>{for(const _0x57a305 of _0x5b50f7)_0x2281cb[_0x4bdc('0x19')](_0x57a305,{'commandName':_0x4bdc('0x18'),'commandParams':[{..._0x674f57,'forceValue':_0x15740a}],'formatGroupId':_0x4bdc('0x14')});});}),(_0x2281cb['_descriptionFactory']['registerElementLabel'](_0x4bdc('0x18'),_0x5aac04=>_0x608f18(_0x1603ae,_0x4bdc('0x13'),_0x5aac04)),_0x2281cb[_0x4bdc('0xf')]['registerDescriptionCallback'](_0x23568f=>{const {type:_0x5b6bef,data:_0xc6d5e7}=_0x23568f;if('formatBlock'==_0x5b6bef&&_0xc6d5e7&&_0x4bdc('0x18')==_0xc6d5e7[_0x4bdc('0x22')]){const _0x46abeb=_0xc6d5e7[_0x4bdc('0xa')][0x0][_0x4bdc('0x26')],_0x4fe384=_0x541d4e[_0x4bdc('0x23')](_0x101dfa=>_0x101dfa[_0x4bdc('0x26')]===_0x46abeb)[_0x4bdc('0x15')],_0x12853c=_0x1603ae['_t'](_0x4fe384);return _0xc6d5e7[_0x4bdc('0xa')][0x0][_0x4bdc('0x7')]?{'type':_0x4bdc('0x20'),'content':_0x608f18(_0x1603ae,_0x4bdc('0x3'),_0x608f18(_0x1603ae,_0x4bdc('0x13'),0x1)+'\x20('+_0x12853c+')')}:{'type':'format','content':_0x608f18(_0x1603ae,_0x4bdc('0x9'),_0x608f18(_0x1603ae,_0x4bdc('0x13'),0x1))};}}));}}function co(_0x53408d){return _0x4bdc('0x18')==_0x53408d[_0x4bdc('0x1c')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42e3=['editor','CommentsEditing','enableCommand','afterInit','plugins','TrackChangesEditing','get'];(function(_0x2747e6,_0x42e37e){const _0x186a85=function(_0x126952){while(--_0x126952){_0x2747e6['push'](_0x2747e6['shift']());}};_0x186a85(++_0x42e37e);}(_0x42e3,0x109));const _0x186a=function(_0x2747e6,_0x42e37e){_0x2747e6=_0x2747e6-0x0;let _0x186a85=_0x42e3[_0x2747e6];return _0x186a85;};import{Plugin as _0x58b577}from'ckeditor5/src/core';export default class L extends _0x58b577{[_0x186a('0x4')](){const _0x5c0d0a=this[_0x186a('0x1')];if(!_0x5c0d0a[_0x186a('0x5')]['has'](_0x186a('0x2')))return;_0x5c0d0a[_0x186a('0x5')][_0x186a('0x0')](_0x186a('0x6'))[_0x186a('0x3')]('addCommentThread');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15a8=['model','high','detach','requires','modifySelection','enqueueChange','data','TrackChangesEditing','deleteForward','end','root','editing','getFirstRange','forward','lock','plugins','isCollapsed','showSuggestionHighlights','createRange','buffer','selection','start','removeMarker:suggestion:deletion','addMarker:suggestion:deletion','unbindElementFromMarkerName','document','$graveyard','remove','get','editor','setSelection','init','markerNameToElements','writer','unit','downcastDispatcher','delete','enableCommand','merge','unlock'];(function(_0x480955,_0x15a85b){const _0x25e957=function(_0x18b153){while(--_0x18b153){_0x480955['push'](_0x480955['shift']());}};_0x25e957(++_0x15a85b);}(_0x15a8,0x192));const _0x25e9=function(_0x480955,_0x15a85b){_0x480955=_0x480955-0x0;let _0x25e957=_0x15a8[_0x480955];return _0x25e957;};import{Plugin as _0x861f98}from'ckeditor5/src/core';import{Delete as _0x5c0313}from'ckeditor5/src/typing';import{LiveRange as _0x4b2d72}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x3bfdbf}from'./utils';export default class q extends _0x861f98{static get[_0x25e9('0x1')](){return[_0x5c0313];}[_0x25e9('0x1d')](){const _0x2a04cb=this[_0x25e9('0x1b')],_0x50bcb5=_0x2a04cb[_0x25e9('0xd')][_0x25e9('0x1a')](_0x25e9('0x5'));_0x50bcb5[_0x25e9('0x23')](_0x25e9('0x22'));const _0x4d5cdd=_0x2a04cb['commands'][_0x25e9('0x1a')](_0x25e9('0x6'));_0x50bcb5[_0x25e9('0x23')](_0x25e9('0x6'),(_0x3ab906,_0x1e4d22={})=>{const _0x1d4b10=_0x2a04cb[_0x25e9('0x26')]['createSelection'](_0x2a04cb[_0x25e9('0x26')][_0x25e9('0x17')][_0x25e9('0x12')]);_0x1d4b10[_0x25e9('0xe')]&&_0x2a04cb[_0x25e9('0x26')][_0x25e9('0x2')](_0x1d4b10,{'direction':_0x25e9('0xb'),'unit':_0x1e4d22[_0x25e9('0x20')]});const _0x1b6ace=_0x1d4b10[_0x25e9('0xa')](),_0x304c74=_0x4b2d72['fromRange'](_0x1b6ace);let _0x3af417;_0x3ab906(_0x1e4d22),_0x3af417=_0x25e9('0x18')==_0x304c74[_0x25e9('0x8')]['rootName']?_0x2a04cb[_0x25e9('0x26')][_0x25e9('0x10')](_0x1b6ace[_0x25e9('0x13')]):_0x2a04cb['model'][_0x25e9('0x10')](_0x304c74[_0x25e9('0x13')],_0x304c74[_0x25e9('0x7')]),_0x304c74[_0x25e9('0x0')](),_0x2a04cb['model'][_0x25e9('0x3')](_0x4d5cdd[_0x25e9('0x11')]['batch'],_0x37792f=>{_0x4d5cdd[_0x25e9('0x11')][_0x25e9('0xc')](),_0x37792f[_0x25e9('0x1c')](_0x37792f['createRange'](_0x3af417['end'])),_0x4d5cdd['buffer'][_0x25e9('0x25')]();});}),_0x2a04cb[_0x25e9('0x9')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',_0x3bfdbf(_0x2a04cb,_0x25e9('0x24')),{'priority':'high'}),_0x2a04cb[_0x25e9('0x4')][_0x25e9('0x21')]['on'](_0x25e9('0x15'),(_0x1343ff,_0x2826a7,_0x46f6b6)=>{_0x46f6b6['options'][_0x25e9('0xf')]&&_0x3bfdbf(_0x2a04cb,_0x25e9('0x24'),{'showActiveMarker':!0x1})(_0x1343ff,_0x2826a7,_0x46f6b6);},{'priority':_0x25e9('0x27')}),_0x2a04cb[_0x25e9('0x9')][_0x25e9('0x21')]['on'](_0x25e9('0x14'),(_0x129d94,_0xd07dd8,_0x3dc82b)=>{const _0x15511f=_0x3dc82b['mapper'][_0x25e9('0x1e')](_0xd07dd8['markerName']);if(_0x15511f)for(const _0x53486a of _0x15511f)_0x53486a['is']('uiElement')&&(_0x3dc82b['mapper'][_0x25e9('0x16')](_0x53486a,_0xd07dd8['markerName']),_0x3dc82b[_0x25e9('0x1f')][_0x25e9('0x19')](_0x53486a));},{'priority':_0x25e9('0x27')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34dd=['init','hasClass','downcastDispatcher','document','detach','model','setSelection','writer','createPositionAt','createRange','mapper','data','plugins','requires','high','parent','selection','showSuggestionHighlights','addMarker:suggestion:insertion','enableCommand','schema','ck-suggestion-marker-split','nextSibling','editor','TrackChangesEditing','isAtStart','start','getFirstRange','markerName','split','editing','isAtEnd','change','end','isLimit','isCollapsed'];(function(_0x582a25,_0x34dd2e){const _0x52639b=function(_0x8f3158){while(--_0x8f3158){_0x582a25['push'](_0x582a25['shift']());}};_0x52639b(++_0x34dd2e);}(_0x34dd,0x1d6));const _0x5263=function(_0x582a25,_0x34dd2e){_0x582a25=_0x582a25-0x0;let _0x52639b=_0x34dd[_0x582a25];return _0x52639b;};import{Plugin as _0x37f827}from'ckeditor5/src/core';import{Enter as _0x448fe6}from'ckeditor5/src/enter';import{LiveRange as _0x3d147b}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x544f36}from'./utils';export default class H extends _0x37f827{static get[_0x5263('0xb')](){return[_0x448fe6];}[_0x5263('0x22')](){const _0x53c334=this[_0x5263('0x15')],_0x249f5e=_0x53c334[_0x5263('0xa')]['get'](_0x5263('0x16'));_0x249f5e[_0x5263('0x11')]('enter',_0xc03142=>{_0x53c334['model'][_0x5263('0x1e')](_0x3f24c2=>{const _0x11be2c=_0x53c334[_0x5263('0x3')][_0x5263('0x1')][_0x5263('0xe')],_0x198f99=_0x11be2c['getFirstPosition'](),_0x138f5c=_0x11be2c[_0x5263('0x21')],_0x19d856=_0x3d147b['fromRange'](_0x11be2c[_0x5263('0x19')]()),_0x57d544=_0x19d856[_0x5263('0x18')][_0x5263('0xd')],_0x4522d8=_0x19d856['end']['parent'],_0x2c70e0=!(_0x19d856[_0x5263('0x18')][_0x5263('0x17')]&&_0x19d856[_0x5263('0x1f')][_0x5263('0x1d')]),_0x970cd0=_0x57d544==_0x4522d8,_0x3049ea=!(_0x53c334[_0x5263('0x3')][_0x5263('0x12')]['isLimit'](_0x57d544)||_0x53c334[_0x5263('0x3')][_0x5263('0x12')][_0x5263('0x20')](_0x4522d8))&&(_0x138f5c||_0x2c70e0&&_0x970cd0);if(_0xc03142(),_0x3049ea){const _0x1acd6c=_0x53c334[_0x5263('0x3')][_0x5263('0x6')](_0x198f99[_0x5263('0xd')][_0x5263('0x14')],0x0),_0x2c5e25=_0x3f24c2[_0x5263('0x7')](_0x198f99,_0x1acd6c);_0x249f5e['markInsertion'](_0x2c5e25);}else _0x3f24c2[_0x5263('0x4')](_0x3f24c2['createRange'](_0x19d856['end']));_0x19d856[_0x5263('0x2')]();});}),_0x53c334['editing'][_0x5263('0x0')]['on'](_0x5263('0x10'),_0x544f36(_0x53c334,_0x5263('0x1b')),{'priority':_0x5263('0xc')}),_0x53c334[_0x5263('0x1c')]['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x250f2d,_0x3662c5,_0x175e7d)=>{const _0x33f0db=_0x175e7d[_0x5263('0x8')]['markerNameToElements'](_0x3662c5[_0x5263('0x1a')]);if(_0x33f0db)for(const _0x299052 of _0x33f0db)_0x299052[_0x5263('0x23')](_0x5263('0x13'))&&(_0x175e7d['mapper']['unbindElementFromMarkerName'](_0x299052,_0x3662c5[_0x5263('0x1a')]),_0x175e7d[_0x5263('0x5')]['remove'](_0x299052));},{'priority':_0x5263('0xc')}),_0x53c334[_0x5263('0x9')][_0x5263('0x0')]['on'](_0x5263('0x10'),(_0xeda798,_0x15e69b,_0xcae1f3)=>{_0xcae1f3['options'][_0x5263('0xf')]&&_0x544f36(_0x53c334,_0x5263('0x1b'),{'showActiveMarker':!0x1})(_0xeda798,_0x15e69b,_0xcae1f3);},{'priority':_0x5263('0xc')});}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cde=['registerDescriptionCallback','get','change','editor','trim','FontSizeEditing','enableCommand','*Reset\x20font\x20color*','markInlineFormat','plugins','normalizeSizeOptions','FontFamilyEditing','*Reset\x20font\x20background\x20color*','getRanges','from','FontSize','_descriptionFactory','find','value','*Set\x20font\x20color:*\x20%0','toLowerCase','fontSize.options','commandParams','isCollapsed','FontColorEditing','format','selection','FontBackgroundColorEditing','config','TrackChangesEditing','*Set\x20font\x20size:*\x20%0','fontColor','_enableCommand','locale','*Set\x20font\x20family:*\x20%0','*Set\x20font\x20background\x20color:*\x20%0','model','title','afterInit','has','commandName','fontFamily','fontSize','*Reset\x20font\x20size*','label'];(function(_0x2a4f3d,_0x4cde23){const _0x29dfb6=function(_0x3e16da){while(--_0x3e16da){_0x2a4f3d['push'](_0x2a4f3d['shift']());}};_0x29dfb6(++_0x4cde23);}(_0x4cde,0x115));const _0x29df=function(_0x2a4f3d,_0x4cde23){_0x2a4f3d=_0x2a4f3d-0x0;let _0x29dfb6=_0x4cde[_0x2a4f3d];return _0x29dfb6;};import{Plugin as _0x57388b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x417502}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x54b1a6}from'./utils';import{getTranslation as _0x1b197f}from'../utils/common-translations';const Bt=[{'pluginName':_0x29df('0x2b'),'commandName':_0x29df('0x23')},{'pluginName':_0x29df('0x4'),'commandName':'fontFamily'},{'pluginName':_0x29df('0x11'),'commandName':_0x29df('0x18')},{'pluginName':_0x29df('0x14'),'commandName':'fontBackgroundColor'}];export default class W extends _0x57388b{[_0x29df('0x1f')](){const _0x329fbc=this[_0x29df('0x29')]['locale'];for(const {pluginName:_0xfc29cf,commandName:_0x48a058}of Bt)this['editor']['plugins'][_0x29df('0x20')](_0xfc29cf)&&this['_enableCommand'](_0x48a058);this[_0x29df('0x29')][_0x29df('0x2')]['get'](_0x29df('0x16'))[_0x29df('0x9')][_0x29df('0x26')](_0x1b235b=>{const {data:_0x2346ae}=_0x1b235b;if(null!=_0x2346ae){if(_0x29df('0x23')==_0x2346ae[_0x29df('0x21')]){const _0x4952ae=_0x2346ae['commandParams'][0x0][_0x29df('0xb')];if(_0x4952ae){const _0x1cf178=this[_0x29df('0x29')][_0x29df('0x2')][_0x29df('0x27')](_0x29df('0x8'))[_0x29df('0x3')](this[_0x29df('0x29')][_0x29df('0x15')][_0x29df('0x27')](_0x29df('0xe')))[_0x29df('0xa')](_0x4bb1a5=>_0x4bb1a5[_0x29df('0x1d')]==_0x4952ae)[_0x29df('0x1e')],_0x131af6=this[_0x29df('0x29')][_0x29df('0x1a')]['_t'](_0x1cf178)['toLowerCase']();return{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x17'),_0x131af6)};}return{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x24'))};}if(_0x29df('0x22')==_0x2346ae[_0x29df('0x21')]){const _0x4601d0=_0x2346ae[_0x29df('0xf')][0x0][_0x29df('0xb')];return _0x4601d0?{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x1b'),_0x4601d0)}:{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,'*Reset\x20font\x20family*')};}if(_0x29df('0x18')==_0x2346ae['commandName']){const _0x304f99=_0x2346ae[_0x29df('0xf')][0x0][_0x29df('0xb')];if(_0x304f99){const _0x201c8c=_0x417502(this[_0x29df('0x29')][_0x29df('0x15')][_0x29df('0x27')]('fontColor.colors'))['find'](_0x4bf800=>_0x4bf800[_0x29df('0x1d')]==_0x304f99);let _0x650a7c=_0x304f99,_0x24525e='';return _0x201c8c&&(_0x650a7c=_0x201c8c['label'],_0x24525e=_0x329fbc['_t'](_0x650a7c)['toLowerCase']()),{'type':'format','content':_0x1b197f(_0x329fbc,_0x29df('0xc'),_0x24525e)[_0x29df('0x2a')](),'color':{'value':_0x304f99,'title':_0x24525e||_0x650a7c}};}return{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x0'))};}if('fontBackgroundColor'==_0x2346ae[_0x29df('0x21')]){const _0x4a5d5e=_0x2346ae[_0x29df('0xf')][0x0][_0x29df('0xb')];if(_0x4a5d5e){const _0x219237=_0x417502(this['editor'][_0x29df('0x15')][_0x29df('0x27')]('fontBackgroundColor.colors'))[_0x29df('0xa')](_0x127202=>_0x127202[_0x29df('0x1d')]==_0x4a5d5e);let _0x449ff9=_0x4a5d5e,_0x7a893e='';return _0x219237&&(_0x449ff9=_0x219237[_0x29df('0x25')],_0x7a893e=_0x329fbc['_t'](_0x449ff9)[_0x29df('0xd')]()),{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x1c'),_0x7a893e)[_0x29df('0x2a')](),'color':{'value':_0x4a5d5e,'title':_0x7a893e||_0x449ff9}};}return{'type':'format','content':_0x1b197f(_0x329fbc,_0x29df('0x5'))};}}});}[_0x29df('0x19')](_0x487021){const _0x288ab8=this['editor'];_0x288ab8[_0x29df('0x2')][_0x29df('0x27')](_0x29df('0x16'))[_0x29df('0x2c')](_0x487021,(_0x39ee80,_0x190c5e={})=>{const _0x3b5c90=_0x288ab8[_0x29df('0x1d')]['document'][_0x29df('0x13')],_0xe65f62=_0x190c5e['value'];_0x3b5c90[_0x29df('0x10')]?_0x39ee80(_0x190c5e):_0x288ab8['model'][_0x29df('0x28')](()=>{const _0x4cc9a7=Array[_0x29df('0x7')](_0x3b5c90[_0x29df('0x6')]());for(const _0x310bc6 of _0x4cc9a7){const _0x55a83f=_0xe65f62?[_0x310bc6]:_0x54b1a6(_0x487021,_0x310bc6,_0x288ab8[_0x29df('0x1d')]);for(const _0xdb40c6 of _0x55a83f)_0x288ab8[_0x29df('0x2')][_0x29df('0x27')](_0x29df('0x16'))[_0x29df('0x1')](_0xdb40c6,{'commandName':_0x487021,'commandParams':[{'value':_0xe65f62}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22f1=['find','change','format','parent','selection','blockName','heading.options','getSelectedBlocks','name','*Change\x20to:*\x20%0','heading','isObject','commandName','document','get','HeadingEditing','editor','paragraph','match','checkChild','TrackChangesEditing','enableCommand','registerElementLabel','ELEMENT_HEADING','plugins','model','registerDescriptionCallback','markBlockFormat','locale','value','_descriptionFactory','afterInit','ELEMENT_HEADING_CUSTOM','schema','title'];(function(_0x480cdf,_0x22f16c){const _0x3b1062=function(_0xa7d8af){while(--_0xa7d8af){_0x480cdf['push'](_0x480cdf['shift']());}};_0x3b1062(++_0x22f16c);}(_0x22f1,0x192));const _0x3b10=function(_0x480cdf,_0x22f16c){_0x480cdf=_0x480cdf-0x0;let _0x3b1062=_0x22f1[_0x480cdf];return _0x3b1062;};import{Plugin as _0x3fa2b0}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3df704}from'./utils';import{getTranslation as _0x2b2a79}from'../utils/common-translations';export default class z extends _0x3fa2b0{[_0x3b10('0xe')](){const _0xc8f3e7=this[_0x3b10('0x22')],_0x5edc75=_0xc8f3e7[_0x3b10('0xb')],_0x2aae56=_0xc8f3e7['config'][_0x3b10('0x20')](_0x3b10('0x18'));if(!_0xc8f3e7['plugins']['has'](_0x3b10('0x21')))return;const _0x22cf4a=_0xc8f3e7[_0x3b10('0x7')][_0x3b10('0x20')](_0x3b10('0x3'));_0x22cf4a[_0x3b10('0x4')](_0x3b10('0x1c'),(_0x413054,_0x9725)=>{const _0x20032a=_0x9725[_0x3b10('0xc')],_0x31248f=Array['from'](this[_0x3b10('0x22')][_0x3b10('0x8')][_0x3b10('0x1f')][_0x3b10('0x16')][_0x3b10('0x19')]())['filter'](_0x2a8469=>function(_0x5d4a19,_0x477e41,_0x176e2a){return _0x176e2a[_0x3b10('0x2')](_0x5d4a19[_0x3b10('0x15')],_0x477e41)&&!_0x176e2a[_0x3b10('0x1d')](_0x5d4a19)&&_0x5d4a19[_0x3b10('0x1a')]!=_0x477e41;}(_0x2a8469,_0x20032a,this[_0x3b10('0x22')][_0x3b10('0x8')][_0x3b10('0x10')]));_0xc8f3e7[_0x3b10('0x8')][_0x3b10('0x13')](()=>{for(const _0x16c20d of _0x31248f)_0x22cf4a[_0x3b10('0xa')](_0x16c20d,{'commandName':'heading','commandParams':[_0x9725],'formatGroupId':_0x3b10('0x17')},_0x3df704(_0x16c20d));});});for(const _0x4ed57b of _0x2aae56)_0x3b10('0x0')!=_0x4ed57b[_0x3b10('0x8')]&&_0x22cf4a[_0x3b10('0xd')][_0x3b10('0x5')](_0x4ed57b[_0x3b10('0x8')],_0x4669d9=>{const _0x2bf628=Ht(_0x4ed57b[_0x3b10('0x8')]);return null!==_0x2bf628?_0x2bf032(_0x4669d9,_0x2bf628):_0x51a9e4(_0x4669d9,_0x4ed57b[_0x3b10('0x11')]);});function _0x2bf032(_0x51a69d,_0x5869fc){return _0x2b2a79(_0x5edc75,_0x3b10('0x6'),[_0x51a69d,_0x5869fc]);}function _0x51a9e4(_0x222a9a,_0x5c614f){return _0x2b2a79(_0x5edc75,_0x3b10('0xf'),[_0x222a9a,_0x5c614f]);}_0x22cf4a[_0x3b10('0xd')][_0x3b10('0x9')](_0x41be38=>{const {type:_0xc526cb,data:_0x19d76f}=_0x41be38;if('formatBlock'==_0xc526cb&&_0x19d76f&&_0x3b10('0x1c')==_0x19d76f[_0x3b10('0x1e')]){const _0x2931bd=_0x19d76f['commandParams'][0x0][_0x3b10('0xc')],_0x2cd251=Ht(_0x2931bd);if(null!==_0x2cd251)return{'type':_0x3b10('0x14'),'content':_0x2b2a79(_0x5edc75,_0x3b10('0x1b'),_0x2bf032(0x1,_0x2cd251))};const _0x9fcfc2=_0x2aae56[_0x3b10('0x12')](_0x2abac2=>_0x2abac2[_0x3b10('0x8')]===_0x2931bd)[_0x3b10('0x11')];return{'type':_0x3b10('0x14'),'content':_0x2b2a79(_0x5edc75,_0x3b10('0x1b'),_0x51a9e4(0x1,_0x9fcfc2))};}});}}function Ht(_0x5861e6){const _0x2b86bc=_0x5861e6[_0x3b10('0x1')](/^heading(\d+)$/);return _0x2b86bc?_0x2b86bc[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1066=['item','commandParams','format','plugins','hasAttribute','afterInit','document','registerDescriptionCallback','getAttribute','find','selection','markInlineFormat','color','FORMAT_HIGHLIGHT','config','_descriptionFactory','value','toLowerCase','getFirstPosition','model','TrackChangesEditing','highlight','push','editor','enableCommand','title','has','HighlightEditing','getLastMatchingPosition','get','highlight.options','*Remove\x20highlight*','commandName','formatInline','isCollapsed','*Set\x20highlight:*\x20%0','locale'];(function(_0x43a8e8,_0x106615){const _0x11cacd=function(_0x18f15d){while(--_0x18f15d){_0x43a8e8['push'](_0x43a8e8['shift']());}};_0x11cacd(++_0x106615);}(_0x1066,0x180));const _0x11ca=function(_0x43a8e8,_0x106615){_0x43a8e8=_0x43a8e8-0x0;let _0x11cacd=_0x1066[_0x43a8e8];return _0x11cacd;};import{Plugin as _0x5b9a26}from'ckeditor5/src/core';import{getTranslation as _0x33ef89}from'../utils/common-translations';import{getRangesWithAttribute as _0x525697}from'./utils';export default class J extends _0x5b9a26{[_0x11ca('0x1c')](){const _0x55df15=this[_0x11ca('0x9')];if(!_0x55df15[_0x11ca('0x1a')][_0x11ca('0xc')](_0x11ca('0xd')))return;const _0xf0ae90=_0x55df15[_0x11ca('0x1a')][_0x11ca('0xf')](_0x11ca('0x6'));_0xf0ae90[_0x11ca('0xa')](_0x11ca('0x7'),(_0x57d922,_0x13d88c={})=>{const _0x5ae243=_0x55df15[_0x11ca('0x5')][_0x11ca('0x1d')][_0x11ca('0x21')],_0x9a797b=_0x5ae243[_0x11ca('0x1f')]('highlight');let _0xa64045=_0x13d88c['value'],_0x71d5c6=[];if(_0x5ae243[_0x11ca('0x14')]){const _0x2b07ab=_0x5ae243[_0x11ca('0x4')]();if(!_0x5ae243[_0x11ca('0x1b')](_0x11ca('0x7')))return void _0x57d922(_0x13d88c);{const _0x1a715c=_0x25996b=>_0x25996b[_0x11ca('0x17')][_0x11ca('0x1f')]('highlight')===_0x9a797b,_0x484310=_0x2b07ab[_0x11ca('0xe')](_0x1a715c,{'direction':'backward'}),_0x5d2036=_0x2b07ab[_0x11ca('0xe')](_0x1a715c);_0x71d5c6=[_0x55df15['model']['createRange'](_0x484310,_0x5d2036)],_0xa64045==_0x9a797b&&(_0xa64045=null);}}else for(const _0x4463fe of _0x5ae243['getRanges']())_0xa64045?_0x71d5c6[_0x11ca('0x8')](_0x4463fe):_0x71d5c6[_0x11ca('0x8')](..._0x525697(_0x11ca('0x7'),_0x4463fe,_0x55df15[_0x11ca('0x5')]));_0x55df15[_0x11ca('0x5')]['change'](()=>{for(const _0x3f95b6 of _0x71d5c6)_0xf0ae90[_0x11ca('0x22')](_0x3f95b6,{'commandName':_0x11ca('0x7'),'commandParams':[{'value':_0xa64045}]});});});const _0x5bede0=_0x55df15[_0x11ca('0x16')];_0xf0ae90[_0x11ca('0x1')][_0x11ca('0x1e')](_0x24882a=>{const {type:_0x369d84,data:_0x48a54a}=_0x24882a;if(_0x11ca('0x13')==_0x369d84&&_0x48a54a&&_0x11ca('0x7')==_0x48a54a[_0x11ca('0x12')]){const _0x4d352f=_0x48a54a[_0x11ca('0x18')][0x0][_0x11ca('0x2')];if(_0x4d352f){const _0x5dc8e9=_0x55df15[_0x11ca('0x0')]['get'](_0x11ca('0x10'))[_0x11ca('0x20')](_0xc8ba6=>_0xc8ba6[_0x11ca('0x5')]==_0x4d352f),_0x532090=_0x5bede0['_t'](_0x5dc8e9[_0x11ca('0xb')])[_0x11ca('0x3')]();return{'type':_0x11ca('0x19'),'content':_0x33ef89(_0x5bede0,_0x11ca('0x15'),_0x532090),'color':{'value':_0x5dc8e9[_0x11ca('0x23')],'title':_0x5dc8e9[_0x11ca('0xb')]}};}return{'type':'format','content':_0x33ef89(_0x5bede0,_0x11ca('0x11'),_0x33ef89(_0x5bede0,_0x11ca('0x24')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bd6=['editor','createEmptyElement','ELEMENT_HORIZONTAL_LINE','createPositionAt','get','createContainerElement','for','ck-horizontal-line','HorizontalLineEditing','elementToStructure','TrackChangesEditing','registerElementLabel','has','showSuggestionHighlights','horizontalLine','enableCommand','plugins','insert','locale','afterInit'];(function(_0x3f01ed,_0x5bd641){const _0x4d0f0e=function(_0x51c8a5){while(--_0x51c8a5){_0x3f01ed['push'](_0x3f01ed['shift']());}};_0x4d0f0e(++_0x5bd641);}(_0x5bd6,0x16c));const _0x4d0f=function(_0x3f01ed,_0x5bd641){_0x3f01ed=_0x3f01ed-0x0;let _0x4d0f0e=_0x5bd6[_0x3f01ed];return _0x4d0f0e;};import{Plugin as _0x5bfe56}from'ckeditor5/src/core';import{getTranslation as _0x54addf}from'../utils/common-translations';export default class K extends _0x5bfe56{[_0x4d0f('0xf')](){const _0x294de6=this[_0x4d0f('0x10')];if(!_0x294de6[_0x4d0f('0xc')][_0x4d0f('0x8')](_0x4d0f('0x4')))return;_0x294de6[_0x4d0f('0xc')][_0x4d0f('0x0')](_0x4d0f('0x6'))[_0x4d0f('0xb')]('horizontalLine');const _0x3546f3=_0x294de6[_0x4d0f('0xc')][_0x4d0f('0x0')](_0x4d0f('0x6')),_0x5d4e1d=_0x294de6[_0x4d0f('0xe')];_0x3546f3['_descriptionFactory'][_0x4d0f('0x7')](_0x4d0f('0xa'),_0x4f4128=>_0x54addf(_0x5d4e1d,_0x4d0f('0x12'),_0x4f4128)),_0x294de6['conversion'][_0x4d0f('0x2')]('dataDowncast')[_0x4d0f('0x5')]({'model':_0x4d0f('0xa'),'view':(_0x5c8104,{writer:_0x32e44c,options:_0x4e541c})=>{if(!_0x4e541c[_0x4d0f('0x9')])return;const _0x3d2662=_0x32e44c[_0x4d0f('0x1')]('div'),_0x274582=_0x32e44c[_0x4d0f('0x11')]('hr');return _0x32e44c['addClass'](_0x4d0f('0x3'),_0x3d2662),_0x32e44c[_0x4d0f('0xd')](_0x32e44c[_0x4d0f('0x13')](_0x3d2662,0x0),_0x274582),_0x3d2662;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f66=['*Change\x20%0\x20content*','get','format','getCustomProperty','ELEMENT_HTML_EMBED','enableCommand','plugins','_descriptionFactory','document','registerDescriptionCallback','editor','cancel','registerElementLabel','selection','value','getSelectedElement','commandName','view','TrackChangesEditing','rawHtml','getAttribute','htmlEmbed','rawHtmlApi'];(function(_0x1ed779,_0x2f66f7){const _0x2a6e19=function(_0x1a7c00){while(--_0x1a7c00){_0x1ed779['push'](_0x1ed779['shift']());}};_0x2a6e19(++_0x2f66f7);}(_0x2f66,0xe5));const _0x2a6e=function(_0x1ed779,_0x2f66f7){_0x1ed779=_0x1ed779-0x0;let _0x2a6e19=_0x2f66[_0x1ed779];return _0x2a6e19;};import{Plugin as _0x2a0c9c}from'ckeditor5/src/core';import{getTranslation as _0x1fe819}from'../utils/common-translations';export default class Q extends _0x2a0c9c{['afterInit'](){const _0x21ffb4=this[_0x2a6e('0xb')];if(!_0x21ffb4[_0x2a6e('0x7')]['has']('HtmlEmbed'))return;const _0x2a0c41=_0x21ffb4[_0x2a6e('0x7')][_0x2a6e('0x2')](_0x2a6e('0x13')),_0x5f1d49=_0x21ffb4['locale'],_0x2f63de=_0x21ffb4['editing'][_0x2a6e('0x12')][_0x2a6e('0x9')][_0x2a6e('0xe')];_0x2a0c41[_0x2a6e('0x8')][_0x2a6e('0xd')](_0x2a6e('0x14'),_0x51c542=>_0x1fe819(_0x5f1d49,_0x2a6e('0x5'),_0x51c542)),_0x21ffb4['plugins'][_0x2a6e('0x2')](_0x2a6e('0x13'))[_0x2a6e('0x6')]('htmlEmbed',(_0x5e566c,_0x220f11)=>{const _0x10e0ed=_0x21ffb4['model'],_0xef55b2=_0x10e0ed['document']['selection'];_0x10e0ed['change'](()=>{const _0x164192=function(_0x24643d){const _0x5aa03c=_0x24643d[_0x2a6e('0x10')]();if(_0x5aa03c&&_0x5aa03c['is']('element',_0x2a6e('0x14')))return _0x24643d['getSelectedElement']();return null;}(_0xef55b2);if(!_0x164192)return void _0x5e566c(null);const _0x1b5b04=_0x164192[_0x2a6e('0x15')](_0x2a6e('0xf'))||'';if(void 0x0===_0x220f11)return;if(_0x220f11===_0x1b5b04)return;_0x2a0c41['markBlockFormat'](_0x164192,{'commandName':_0x2a6e('0x16'),'commandParams':[_0x220f11]}),_0x2f63de['getSelectedElement']()[_0x2a6e('0x4')](_0x2a6e('0x0'))[_0x2a6e('0xc')]();});}),_0x2a0c41[_0x2a6e('0x8')][_0x2a6e('0xa')](_0x51d674=>{const {data:_0x1c9a67}=_0x51d674;if(_0x1c9a67&&_0x2a6e('0x16')==_0x1c9a67[_0x2a6e('0x11')]){const _0x3b307e=_0x1fe819(_0x5f1d49,_0x2a6e('0x5'));return{'type':_0x2a6e('0x3'),'content':_0x1fe819(_0x5f1d49,_0x2a6e('0x1'),_0x3b307e)};}});}}
|