@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240131.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 +1 -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/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.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/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.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/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240131.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"CHANGELOG.md"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"ckeditor5": "0.0.0-nightly-
|
|
44
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
43
|
+
"ckeditor5": "0.0.0-nightly-20240131.0",
|
|
44
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240131.0",
|
|
45
45
|
"lodash-es": "4.17.21"
|
|
46
46
|
},
|
|
47
47
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x210f=['_suggestions','get','editor','getRanges','track-changes-accept-suggestion-not-found','TrackChangesEditing','model','plugins','_isEnabledBasedOnSelection','acceptSuggestion','refresh','isEnabled','canEditAt'];(function(_0x1c4c16,_0x210fd4){const _0x38e8ee=function(_0x4fcd95){while(--_0x4fcd95){_0x1c4c16['push'](_0x1c4c16['shift']());}};_0x38e8ee(++_0x210fd4);}(_0x210f,0xda));const _0x38e8=function(_0x1c4c16,_0x210fd4){_0x1c4c16=_0x1c4c16-0x0;let _0x38e8ee=_0x210f[_0x1c4c16];return _0x38e8ee;};import{Command as _0x35f778}from'ckeditor5/src/core.js';import{CKEditorError as _0x3fd39c}from'ckeditor5/src/utils.js';export default class $ extends _0x35f778{constructor(_0x34a941,_0x4eb709){super(_0x34a941),this[_0x38e8('0x3')]=_0x4eb709,this[_0x38e8('0x0')](),this[_0x38e8('0xb')]=!0x1;}['refresh'](){this[_0x38e8('0x1')]=!0x0;}['execute'](_0x1926de){const _0x16af4c=this['_suggestions'][_0x38e8('0x4')](_0x1926de);if(!_0x16af4c)throw new _0x3fd39c(_0x38e8('0x7'),this);const _0x147831=_0x16af4c[_0x38e8('0x6')]();this[_0x38e8('0x5')][_0x38e8('0x9')][_0x38e8('0x2')](_0x147831)&&this[_0x38e8('0x5')][_0x38e8('0xa')]['get'](_0x38e8('0x8'))[_0x38e8('0xc')](_0x16af4c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x245d=['execute','canEditAt','discardSuggestion','track-changes-discard-suggestion-not-found','model','getRanges','TrackChangesEditing','editor','_suggestions','_isEnabledBasedOnSelection','get','refresh','isEnabled'];(function(_0x9cbbd7,_0x245d7b){const _0x52f754=function(_0x1713b7){while(--_0x1713b7){_0x9cbbd7['push'](_0x9cbbd7['shift']());}};_0x52f754(++_0x245d7b);}(_0x245d,0x8d));const _0x52f7=function(_0x9cbbd7,_0x245d7b){_0x9cbbd7=_0x9cbbd7-0x0;let _0x52f754=_0x245d[_0x9cbbd7];return _0x52f754;};import{Command as _0x1e9efb}from'ckeditor5/src/core.js';import{CKEditorError as _0x4b713b}from'ckeditor5/src/utils.js';export default class B extends _0x1e9efb{constructor(_0x24919f,_0x3f6b50){super(_0x24919f),this['_suggestions']=_0x3f6b50,this['refresh'](),this[_0x52f7('0xb')]=!0x1;}[_0x52f7('0x0')](){this[_0x52f7('0x1')]=!0x0;}[_0x52f7('0x2')](_0x4e2873){const _0x1a3809=this[_0x52f7('0xa')][_0x52f7('0xc')](_0x4e2873);if(!_0x1a3809)throw new _0x4b713b(_0x52f7('0x5'),this);const _0xcbdd61=_0x1a3809[_0x52f7('0x7')]();this[_0x52f7('0x9')][_0x52f7('0x6')][_0x52f7('0x3')](_0xcbdd61)&&this['editor']['plugins']['get'](_0x52f7('0x8'))[_0x52f7('0x4')](_0x1a3809);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10bf=['canEditAt','values','execute','_suggestions','_command','from','isEnabled','model','editor','some','getRanges','_isEnabledBasedOnSelection','refresh'];(function(_0x258f4d,_0x10bf66){const _0x2db3c6=function(_0x346a33){while(--_0x346a33){_0x258f4d['push'](_0x258f4d['shift']());}};_0x2db3c6(++_0x10bf66);}(_0x10bf,0x101));const _0x2db3=function(_0x258f4d,_0x10bf66){_0x258f4d=_0x258f4d-0x0;let _0x2db3c6=_0x10bf[_0x258f4d];return _0x2db3c6;};import{Command as _0x1b08ec}from'ckeditor5/src/core.js';import{sortSuggestions as _0xd57064,executeCommandForSuggestions as _0x3d183e}from'../utils/utils.js';export default class x extends _0x1b08ec{constructor(_0x12846b,_0x218df1,_0x32bf8f){super(_0x12846b),this[_0x2db3('0x7')]=_0x218df1,this[_0x2db3('0x6')]=_0x32bf8f,this[_0x2db3('0x2')](),this[_0x2db3('0x1')]=!0x1;}[_0x2db3('0x2')](){const _0x36675e=Array[_0x2db3('0x8')](this[_0x2db3('0x6')]['values']())[_0x2db3('0xc')](_0x13639d=>_0x13639d['isInContent']);this[_0x2db3('0x9')]=this[_0x2db3('0x7')][_0x2db3('0x9')]&&_0x36675e;}[_0x2db3('0x5')](){const _0x45eb7e=_0xd57064(Array['from'](this['_suggestions'][_0x2db3('0x4')]()));for(const _0x3870bd of _0x45eb7e){const _0xe98a69=_0x3870bd[_0x2db3('0x0')]();if(!this[_0x2db3('0xb')][_0x2db3('0xa')][_0x2db3('0x3')](_0xe98a69))return;}_0x3d183e(this['editor']['model'],this[_0x2db3('0x7')],_0x45eb7e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e7f=['selection','_command','execute','document','refresh','_selectedSuggestions','getRanges','isEnabled','values','editor','canEditAt','_isEnabledBasedOnSelection','_suggestions','model'];(function(_0x5a5c7f,_0x1e7fe3){const _0x3217f5=function(_0x39fc66){while(--_0x39fc66){_0x5a5c7f['push'](_0x5a5c7f['shift']());}};_0x3217f5(++_0x1e7fe3);}(_0x1e7f,0x7b));const _0x3217=function(_0x5a5c7f,_0x1e7fe3){_0x5a5c7f=_0x5a5c7f-0x0;let _0x3217f5=_0x1e7f[_0x5a5c7f];return _0x3217f5;};import{Command as _0x2a9dcd}from'ckeditor5/src/core.js';import{sortSuggestions as _0x1f6f67,getSelectedSuggestions as _0x3e679e,executeCommandForSuggestions as _0x3758d5}from'../utils/utils.js';export default class R extends _0x2a9dcd{constructor(_0x48d73d,_0x5b2dc9,_0x49e746){super(_0x48d73d),this[_0x3217('0x4')]=_0x5b2dc9,this['_suggestions']=_0x49e746,this[_0x3217('0x8')]=new Set(),this[_0x3217('0x7')](),this[_0x3217('0x0')]=!0x1;}['refresh'](){const _0x6477e4=this[_0x3217('0xc')][_0x3217('0x2')][_0x3217('0x6')][_0x3217('0x3')],_0x56592c=Array['from'](this[_0x3217('0x1')][_0x3217('0xb')]());this[_0x3217('0x8')]=_0x3e679e(_0x6477e4,_0x56592c),this[_0x3217('0xa')]=this[_0x3217('0x4')][_0x3217('0xa')]&&!!this[_0x3217('0x8')]['size'];}[_0x3217('0x5')](){const _0xc2d9b=_0x1f6f67(Array['from'](this[_0x3217('0x8')]));for(const _0x1bee28 of _0xc2d9b){const _0x578b18=_0x1bee28[_0x3217('0x9')]();if(!this[_0x3217('0xc')]['model'][_0x3217('0xd')](_0x578b18))return;}_0x3758d5(this[_0x3217('0xc')][_0x3217('0x2')],this[_0x3217('0x4')],_0xc2d9b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x224e=['_enabledCommands','refresh','forceDisabled','_isEnabledBasedOnSelection','value','clearForceDisabled','affectsData','_disableUnsupportedCommands','editor','commands','has','isEnabled','TrackChangesCommand','_enableCommands'];(function(_0x5bb4ab,_0x224e96){const _0x87e7a9=function(_0x2001ca){while(--_0x2001ca){_0x5bb4ab['push'](_0x5bb4ab['shift']());}};_0x87e7a9(++_0x224e96);}(_0x224e,0x1e5));const _0x87e7=function(_0x5bb4ab,_0x224e96){_0x5bb4ab=_0x5bb4ab-0x0;let _0x87e7a9=_0x224e[_0x5bb4ab];return _0x87e7a9;};import{Command as _0x14f1a7}from'ckeditor5/src/core.js';export default class M extends _0x14f1a7{constructor(_0x46dbe1,_0x366b42){super(_0x46dbe1),this[_0x87e7('0x5')]=_0x366b42,this[_0x87e7('0x9')]=!0x1,this[_0x87e7('0x6')](),this[_0x87e7('0x8')]=!0x1;}[_0x87e7('0x6')](){this[_0x87e7('0x2')]=!0x0;}['execute'](){this[_0x87e7('0x9')]=!this['value'],this[_0x87e7('0x9')]?this[_0x87e7('0xc')]():this[_0x87e7('0x4')]();}['_disableUnsupportedCommands'](){for(const _0x5f5940 of this[_0x87e7('0xd')][_0x87e7('0x0')][_0x87e7('0x0')]())_0x5f5940[_0x87e7('0xb')]&&!this[_0x87e7('0x5')][_0x87e7('0x1')](_0x5f5940)&&_0x5f5940[_0x87e7('0x7')](_0x87e7('0x3'));}[_0x87e7('0x4')](){for(const _0x425708 of this['editor']['commands'][_0x87e7('0x0')]())_0x425708['affectsData']&&!this[_0x87e7('0x5')][_0x87e7('0x1')](_0x425708)&&_0x425708[_0x87e7('0xa')]('TrackChangesCommand');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5738=['editor','plugins','afterInit','showAIAssistant','commands','get'];(function(_0x3e16ef,_0x57385e){const _0x59f247=function(_0xe3139){while(--_0xe3139){_0x3e16ef['push'](_0x3e16ef['shift']());}};_0x59f247(++_0x57385e);}(_0x5738,0x169));const _0x59f2=function(_0x3e16ef,_0x57385e){_0x3e16ef=_0x3e16ef-0x0;let _0x59f247=_0x5738[_0x3e16ef];return _0x59f247;};import{Plugin as _0x298a9e}from'ckeditor5/src/core.js';export default class E extends _0x298a9e{[_0x59f2('0x1')](){const _0x3ff64c=this[_0x59f2('0x5')],_0x439aca=_0x3ff64c[_0x59f2('0x0')][_0x59f2('0x4')]('TrackChangesEditing');_0x3ff64c[_0x59f2('0x3')][_0x59f2('0x4')](_0x59f2('0x2'))&&_0x439aca['enableCommand'](_0x59f2('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1668=['AlignmentEditing','alignment','justify','registerDescriptionCallback','format','registerAttributeLabel','get','right','FORMAT_ALIGN_TO_CENTER','_enableDefaultAttributesIntegration','formatBlock','commandName','_descriptionFactory','center','value','FORMAT_ALIGN_TO_RIGHT','has','left','_registerLegacyDescription','plugins','commandParams','FORMAT_JUSTIFY_TEXT','editor','FORMAT_ALIGN_TO_LEFT','locale','FORMAT_ALIGNMENT'];(function(_0x10f961,_0x16686b){const _0x3b5e5c=function(_0x281723){while(--_0x281723){_0x10f961['push'](_0x10f961['shift']());}};_0x3b5e5c(++_0x16686b);}(_0x1668,0xab));const _0x3b5e=function(_0x10f961,_0x16686b){_0x10f961=_0x10f961-0x0;let _0x3b5e5c=_0x1668[_0x10f961];return _0x3b5e5c;};import{Plugin as _0x5188d0}from'ckeditor5/src/core.js';import{getTranslation as _0x324f8e}from'../utils/common-translations.js';export default class V extends _0x5188d0{['afterInit'](){const _0x22b82f=this[_0x3b5e('0x7')],_0x4fad16=_0x22b82f['locale'];if(!_0x22b82f[_0x3b5e('0x4')][_0x3b5e('0x1')](_0x3b5e('0xb')))return;const _0x114a10=_0x22b82f[_0x3b5e('0x4')][_0x3b5e('0x11')]('TrackChangesEditing');_0x114a10[_0x3b5e('0x14')](_0x3b5e('0xc'),[],[_0x3b5e('0xc')]),_0x114a10[_0x3b5e('0x17')][_0x3b5e('0x10')](_0x3b5e('0xc'),_0x324f8e(_0x4fad16,_0x3b5e('0xa'))),this[_0x3b5e('0x3')]();}[_0x3b5e('0x3')](){const _0x521134=this[_0x3b5e('0x7')],_0x5e40ba=_0x521134[_0x3b5e('0x9')];_0x521134[_0x3b5e('0x4')][_0x3b5e('0x11')]('TrackChangesEditing')['_descriptionFactory'][_0x3b5e('0xe')](_0x48c67c=>{if(_0x3b5e('0x15')!=_0x48c67c['type'])return;const {data:_0x4bb8dc}=_0x48c67c;if(_0x4bb8dc&&_0x3b5e('0xc')==_0x4bb8dc[_0x3b5e('0x16')]){const _0x1b8de1=_0x4bb8dc[_0x3b5e('0x5')][0x0][_0x3b5e('0x19')];return{'type':_0x3b5e('0xf'),'content':_0x324f8e(_0x5e40ba,'*Format:*\x20%0',function(_0x5289c9){switch(_0x5289c9){case _0x3b5e('0x2'):return _0x324f8e(_0x5e40ba,_0x3b5e('0x8'));case _0x3b5e('0x12'):return _0x324f8e(_0x5e40ba,_0x3b5e('0x0'));case _0x3b5e('0x18'):return _0x324f8e(_0x5e40ba,_0x3b5e('0x13'));case _0x3b5e('0xd'):return _0x324f8e(_0x5e40ba,_0x3b5e('0x6'));}}(_0x1b8de1))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4166=['italic','FORMAT_ITALIC','CodeEditing','SuperscriptEditing','_registerLegacyDescription','FORMAT_SUBSCRIPT','SubscriptEditing','FORMAT_CODE','bold','StrikethroughEditing','FORMAT_','superscript','plugins','TrackChangesEditing','registerDescriptionCallback','FORMAT_STRIKETHROUGH','FORMAT_UNDERLINE','format','toUpperCase','locale','ItalicEditing','commandName','type','subscript','code','get','strikethrough','underline','toLowerCase','afterInit','FORMAT_SUPERSCRIPT','editor','UnderlineEditing','slice','_descriptionFactory'];(function(_0x228a4b,_0x4166ea){const _0x4a1e47=function(_0x8ec6a9){while(--_0x8ec6a9){_0x228a4b['push'](_0x228a4b['shift']());}};_0x4a1e47(++_0x4166ea);}(_0x4166,0xf5));const _0x4a1e=function(_0x228a4b,_0x4166ea){_0x228a4b=_0x228a4b-0x0;let _0x4a1e47=_0x4166[_0x228a4b];return _0x4a1e47;};import{Plugin as _0x575b34}from'ckeditor5/src/core.js';import{getTranslation as _0x92f75e}from'../utils/common-translations.js';const ti=['BoldEditing',_0x4a1e('0x14'),_0x4a1e('0x20'),_0x4a1e('0x2'),_0x4a1e('0x9'),_0x4a1e('0x6'),_0x4a1e('0x3')];export default class U extends _0x575b34{[_0x4a1e('0x1d')](){const _0x18f5af=this[_0x4a1e('0x1f')],_0x3fe964=_0x18f5af[_0x4a1e('0xc')][_0x4a1e('0x19')](_0x4a1e('0xd')),_0x51f7b7=_0x18f5af[_0x4a1e('0x13')];for(const _0x78377d of ti){if(!_0x18f5af[_0x4a1e('0xc')]['has'](_0x78377d))continue;const _0x21e1a0=_0x78377d[_0x4a1e('0x21')](0x0,-0x7)[_0x4a1e('0x1c')](),_0x2099e7=_0x4a1e('0xa')+_0x21e1a0[_0x4a1e('0x12')]();_0x3fe964['_enableDefaultAttributesIntegration'](_0x21e1a0,[_0x21e1a0]),_0x3fe964[_0x4a1e('0x22')]['registerAttributeLabel'](_0x21e1a0,_0x92f75e(_0x51f7b7,_0x2099e7));}this['_registerLegacyDescription']();}[_0x4a1e('0x4')](){const _0x1a0e5b=this[_0x4a1e('0x1f')],_0x15e836=_0x1a0e5b[_0x4a1e('0x13')],_0x5262d4=_0x1a0e5b[_0x4a1e('0xc')]['get'](_0x4a1e('0xd'));function _0x22151d(_0x3eeb67,_0xff3508){_0x5262d4[_0x4a1e('0x22')][_0x4a1e('0xe')](_0x3f82d3=>{if('formatInline'!=_0x3f82d3[_0x4a1e('0x16')])return;const {data:_0x3490d8}=_0x3f82d3;return _0x3490d8&&_0x3490d8[_0x4a1e('0x15')]===_0x3eeb67?_0x3490d8['commandParams'][0x0]['forceValue']?{'type':_0x4a1e('0x11'),'content':_0x92f75e(_0x15e836,'*Format:*\x20%0',_0xff3508)}:{'type':_0x4a1e('0x11'),'content':_0x92f75e(_0x15e836,'*Remove\x20format:*\x20%0',_0xff3508)}:void 0x0;});}_0x22151d(_0x4a1e('0x8'),_0x92f75e(_0x15e836,'FORMAT_BOLD')),_0x22151d(_0x4a1e('0x0'),_0x92f75e(_0x15e836,_0x4a1e('0x1'))),_0x22151d(_0x4a1e('0x1b'),_0x92f75e(_0x15e836,_0x4a1e('0x10'))),_0x22151d(_0x4a1e('0x18'),_0x92f75e(_0x15e836,_0x4a1e('0x7'))),_0x22151d(_0x4a1e('0x1a'),_0x92f75e(_0x15e836,_0x4a1e('0xf'))),_0x22151d(_0x4a1e('0x17'),_0x92f75e(_0x15e836,_0x4a1e('0x5'))),_0x22151d(_0x4a1e('0xb'),_0x92f75e(_0x15e836,_0x4a1e('0x1e')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1387=['format','commands','*Set\x20format:*\x20%0','editor','change','registerDescriptionCallback','from','commandParams','get','model','parent','value','plugins','schema','getSelectedBlocks','checkChild','BlockQuoteEditing','filter','forceValue','blockQuote','$root','has','locale','ELEMENT_BLOCK_QUOTE','enableCommand','afterInit','_descriptionFactory','selection','*Remove\x20format:*\x20%0'];(function(_0x5b12b4,_0x1387b6){const _0x56db36=function(_0x2aa272){while(--_0x2aa272){_0x5b12b4['push'](_0x5b12b4['shift']());}};_0x56db36(++_0x1387b6);}(_0x1387,0x1e2));const _0x56db=function(_0x5b12b4,_0x1387b6){_0x5b12b4=_0x5b12b4-0x0;let _0x56db36=_0x1387[_0x5b12b4];return _0x56db36;};import{Plugin as _0xd6852}from'ckeditor5/src/core.js';import{getTranslation as _0x182587}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x4f76b6}from'../utils/utils.js';export default class O extends _0xd6852{[_0x56db('0x7')](){const _0x9e155a=this[_0x56db('0xe')],_0xb79a53=_0x9e155a[_0x56db('0x4')];if(!_0x9e155a[_0x56db('0x17')][_0x56db('0x3')](_0x56db('0x1b')))return;const _0x1ee2eb=_0x9e155a[_0x56db('0x17')][_0x56db('0x13')]('TrackChangesEditing'),_0x370db2=this[_0x56db('0xe')][_0x56db('0xc')][_0x56db('0x13')]('blockQuote');_0x1ee2eb[_0x56db('0x6')](_0x56db('0x1'),(_0x5bb6fe,_0x2904de={})=>{const _0x374397=this['editor']['model']['document'][_0x56db('0x9')],_0x286497=_0x2904de&&void 0x0!==_0x2904de[_0x56db('0x0')]?_0x2904de[_0x56db('0x0')]:!_0x370db2[_0x56db('0x16')];let _0x34443c=[];if(_0x286497){const _0x2133e1=Array[_0x56db('0x11')](_0x374397[_0x56db('0x19')]())[_0x56db('0x1c')](_0x559724=>oo(_0x559724)||function(_0x1b8043,_0x27e837){const _0x42002f=_0x27e837[_0x56db('0x1a')](_0x1b8043[_0x56db('0x15')],_0x56db('0x1')),_0x15ce80=_0x27e837[_0x56db('0x1a')]([_0x56db('0x2'),'blockQuote'],_0x1b8043);return _0x42002f&&_0x15ce80;}(_0x559724,this[_0x56db('0xe')][_0x56db('0x14')][_0x56db('0x18')]));_0x34443c=_0x4f76b6(_0x2133e1,_0x9e155a[_0x56db('0x14')]);}else{const _0x132f6f=Array[_0x56db('0x11')](_0x374397[_0x56db('0x19')]())[_0x56db('0x1c')](_0x35fa46=>oo(_0x35fa46));_0x34443c=_0x4f76b6(_0x132f6f,_0x9e155a[_0x56db('0x14')]);}_0x9e155a[_0x56db('0x14')][_0x56db('0xf')](()=>{for(const _0x2391f8 of _0x34443c)_0x1ee2eb['markBlockFormat'](_0x2391f8,{'commandName':_0x56db('0x1'),'commandParams':[{'forceValue':_0x286497}]});});}),_0x1ee2eb[_0x56db('0x8')][_0x56db('0x10')](_0x589bb2=>{const {data:_0x132335}=_0x589bb2;if(_0x132335&&_0x56db('0x1')==_0x132335['commandName']){const _0x59e28b=_0x182587(_0xb79a53,_0x56db('0x5'));return _0x132335[_0x56db('0x12')][0x0]['forceValue']?{'type':_0x56db('0xb'),'content':_0x182587(_0xb79a53,_0x56db('0xd'),_0x59e28b)}:{'type':_0x56db('0xb'),'content':_0x182587(_0xb79a53,_0x56db('0xa'),_0x59e28b)};}});}}function oo(_0x8d5c39){return'blockQuote'==_0x8d5c39['parent']['name'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ca7=['plugins','has','get','changeCaseLower','changeCaseUpper','enableCommand','editor','CaseChange','changeCaseTitle','TrackChangesEditing','afterInit'];(function(_0xbf5b03,_0x5ca73d){const _0x5f2898=function(_0x79e8c3){while(--_0x79e8c3){_0xbf5b03['push'](_0xbf5b03['shift']());}};_0x5f2898(++_0x5ca73d);}(_0x5ca7,0x96));const _0x5f28=function(_0xbf5b03,_0x5ca73d){_0xbf5b03=_0xbf5b03-0x0;let _0x5f2898=_0x5ca7[_0xbf5b03];return _0x5f2898;};import{Plugin as _0x4664fd}from'ckeditor5/src/core.js';export default class G extends _0x4664fd{[_0x5f28('0x3')](){const _0x2a40c4=this[_0x5f28('0xa')];_0x2a40c4[_0x5f28('0x4')][_0x5f28('0x5')](_0x5f28('0x0'))&&(_0x2a40c4[_0x5f28('0x4')][_0x5f28('0x6')](_0x5f28('0x2'))[_0x5f28('0x9')](_0x5f28('0x8')),_0x2a40c4[_0x5f28('0x4')][_0x5f28('0x6')](_0x5f28('0x2'))[_0x5f28('0x9')](_0x5f28('0x7')),_0x2a40c4[_0x5f28('0x4')][_0x5f28('0x6')](_0x5f28('0x2'))['enableCommand'](_0x5f28('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeb4a=['editor','get','afterInit','plugins','TrackChangesEditing','commands','enableCommand'];(function(_0x1a74b5,_0xeb4a08){const _0x32da0e=function(_0x14961f){while(--_0x14961f){_0x1a74b5['push'](_0x1a74b5['shift']());}};_0x32da0e(++_0xeb4a08);}(_0xeb4a,0xd3));const _0x32da=function(_0x1a74b5,_0xeb4a08){_0x1a74b5=_0x1a74b5-0x0;let _0x32da0e=_0xeb4a[_0x1a74b5];return _0x32da0e;};import{Plugin as _0x28fbfd}from'ckeditor5/src/core.js';export default class F extends _0x28fbfd{[_0x32da('0x1')](){const _0x1b10fd=this[_0x32da('0x6')];_0x1b10fd[_0x32da('0x4')]['get']('ckbox')&&_0x1b10fd[_0x32da('0x2')][_0x32da('0x0')](_0x32da('0x3'))[_0x32da('0x5')]('ckbox');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1821=['selection','from','_descriptionFactory','registerDescriptionCallback','filter','name','enableCommand','commandName','*Remove\x20format:*\x20%0','value','toLowerCase','codeBlock','type','commands','getSelectedBlocks','label','languages','parent','TrackChangesEditing','model','forceValue','rootElement','ELEMENT_CODE_BLOCK','*Set\x20format:*\x20%0','blockName','language','plugins','get','schema','isLimit','commandParams','formatBlock','locale','has','registerElementLabel','format'];(function(_0xe7899c,_0x1821b4){const _0x244f5a=function(_0x5c095b){while(--_0x5c095b){_0xe7899c['push'](_0xe7899c['shift']());}};_0x244f5a(++_0x1821b4);}(_0x1821,0xa0));const _0x244f=function(_0xe7899c,_0x1821b4){_0xe7899c=_0xe7899c-0x0;let _0x244f5a=_0x1821[_0xe7899c];return _0x244f5a;};import{Plugin as _0x22c682}from'ckeditor5/src/core.js';import{getTranslation as _0x3cd707}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0x16cbf8}from'../utils/utils.js';export default class L extends _0x22c682{['afterInit'](){const _0xaaecf9=this['editor'];if(!_0xaaecf9[_0x244f('0xa')][_0x244f('0x11')]('CodeBlock'))return;const _0x4d3c08=_0xaaecf9['plugins'][_0x244f('0xb')](_0x244f('0x2')),_0x45c950=_0xaaecf9[_0x244f('0x10')],_0x286335=_0xaaecf9['config']['get'](_0x244f('0x1f'))[_0x244f('0x0')],_0x2592ba=_0xaaecf9[_0x244f('0x21')][_0x244f('0xb')]('codeBlock');_0x4d3c08[_0x244f('0x1a')]('indentCodeBlock'),_0x4d3c08[_0x244f('0x1a')]('outdentCodeBlock'),_0x4d3c08[_0x244f('0x1a')](_0x244f('0x1f'),(_0x29a7e4,_0xa419d5={})=>{const _0x5f1a9c=_0xaaecf9[_0x244f('0x3')],_0x384aba=_0xaaecf9[_0x244f('0x3')]['document'][_0x244f('0x14')],_0x42fd53=_0xa419d5&&void 0x0!==_0xa419d5[_0x244f('0x4')]?_0xa419d5[_0x244f('0x4')]:!_0x2592ba[_0x244f('0x1d')];let _0x2d45cf;_0xa419d5['language']||(_0xa419d5[_0x244f('0x9')]=_0x286335[0x0][_0x244f('0x9')]),_0x2d45cf=_0x42fd53?Array[_0x244f('0x15')](_0x384aba[_0x244f('0x22')]())['filter'](_0x1fc090=>eo(_0x1fc090)||function(_0x5ec85b,_0x3c50ea){if(_0x5ec85b['is'](_0x244f('0x5'))||_0x3c50ea[_0x244f('0xd')](_0x5ec85b))return!0x1;return _0x3c50ea['checkChild'](_0x5ec85b[_0x244f('0x1')],_0x244f('0x1f'));}(_0x1fc090,_0x5f1a9c[_0x244f('0xc')])):Array[_0x244f('0x15')](_0x384aba[_0x244f('0x22')]())[_0x244f('0x18')](_0x671f0c=>eo(_0x671f0c));const _0x33b23a=_0x16cbf8(_0x2d45cf,_0x5f1a9c);_0x5f1a9c['change'](()=>{for(const _0x197079 of _0x33b23a)_0x4d3c08['markBlockFormat'](_0x197079,{'commandName':_0x244f('0x1f'),'commandParams':[{..._0xa419d5,'forceValue':_0x42fd53}],'formatGroupId':_0x244f('0x8')});});}),(_0x4d3c08['_descriptionFactory'][_0x244f('0x12')](_0x244f('0x1f'),_0x443989=>_0x3cd707(_0x45c950,_0x244f('0x6'),_0x443989)),_0x4d3c08[_0x244f('0x16')][_0x244f('0x17')](_0x4b07f2=>{if(_0x244f('0xf')!=_0x4b07f2[_0x244f('0x20')])return;const _0x15f385=_0x45c950['t'],{data:_0x1d98b5}=_0x4b07f2;if(!_0x1d98b5||_0x244f('0x1f')!=_0x1d98b5[_0x244f('0x1b')])return;const _0x2c0b03=_0x1d98b5[_0x244f('0xe')][0x0]['language'],_0x1db95e=_0x15f385(_0x286335['find'](_0x4ab428=>_0x4ab428[_0x244f('0x9')]===_0x2c0b03)[_0x244f('0x23')])[_0x244f('0x1e')]();return _0x1d98b5[_0x244f('0xe')][0x0][_0x244f('0x4')]?{'type':_0x244f('0x13'),'content':_0x3cd707(_0x45c950,_0x244f('0x7'),_0x3cd707(_0x45c950,_0x244f('0x6'),0x1)+'\x20('+_0x1db95e+')')}:{'type':'format','content':_0x3cd707(_0x45c950,_0x244f('0x1c'),_0x3cd707(_0x45c950,_0x244f('0x6'),0x1))};}));}}function eo(_0x2c9030){return _0x244f('0x1f')==_0x2c9030[_0x244f('0x19')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe478=['has','plugins','TrackChangesEditing','afterInit','addCommentThread','editor'];(function(_0x39905b,_0xe4788c){const _0x1edf48=function(_0x5a760f){while(--_0x5a760f){_0x39905b['push'](_0x39905b['shift']());}};_0x1edf48(++_0xe4788c);}(_0xe478,0x156));const _0x1edf=function(_0x39905b,_0xe4788c){_0x39905b=_0x39905b-0x0;let _0x1edf48=_0xe478[_0x39905b];return _0x1edf48;};import{Plugin as _0x2325ec}from'ckeditor5/src/core.js';export default class H extends _0x2325ec{[_0x1edf('0x3')](){const _0xba66f=this[_0x1edf('0x5')];if(!_0xba66f['plugins'][_0x1edf('0x0')]('CommentsEditing'))return;_0xba66f[_0x1edf('0x1')]['get'](_0x1edf('0x2'))['enableCommand'](_0x1edf('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ba8=['createRange','delete','high','requires','forward','setSelection','markerNameToElements','addMarker:suggestion:deletion','bind','document','init','editing','model','rootName','lock','buffer','createSelection','batch','options','root','downcastDispatcher','remove','selection','uiElement','merge','showSuggestionHighlights','modifySelection','data','fromRange','commands','mapper','start','unlock','unbindElementFromMarkerName','enqueueChange','$graveyard','deleteForward'];(function(_0x3baa36,_0x1ba8d7){const _0x36d2ba=function(_0x3aa340){while(--_0x3aa340){_0x3baa36['push'](_0x3baa36['shift']());}};_0x36d2ba(++_0x1ba8d7);}(_0x1ba8,0x15e));const _0x36d2=function(_0x3baa36,_0x1ba8d7){_0x3baa36=_0x3baa36-0x0;let _0x36d2ba=_0x1ba8[_0x3baa36];return _0x36d2ba;};import{Plugin as _0x41666e}from'ckeditor5/src/core.js';import{LiveRange as _0x4c79d3}from'ckeditor5/src/engine.js';import{Delete as _0xa6be3a}from'ckeditor5/src/typing.js';import{downcastSplitMergeMarker as _0x1ed844}from'./utils.js';export default class q extends _0x41666e{static get[_0x36d2('0x17')](){return[_0xa6be3a];}[_0x36d2('0x1e')](){const _0x12061d=this['editor'],_0x4a3700=_0x12061d['plugins']['get']('TrackChangesEditing');_0x4a3700['enableCommand'](_0x36d2('0x15'));const _0x468595=_0x12061d[_0x36d2('0xc')]['get'](_0x36d2('0x13'));_0x4a3700['enableCommand']('deleteForward',(_0xd94ac9,_0x44db52={})=>{const _0x486600=_0x12061d[_0x36d2('0x20')][_0x36d2('0x24')](_0x12061d[_0x36d2('0x20')][_0x36d2('0x1d')][_0x36d2('0x5')]);_0x486600['isCollapsed']&&_0x12061d[_0x36d2('0x20')][_0x36d2('0x9')](_0x486600,{'direction':_0x36d2('0x18'),'unit':_0x44db52['unit']});const _0x5b962f=_0x486600['getFirstRange'](),_0x27c49e=_0x4c79d3[_0x36d2('0xb')](_0x5b962f);let _0x526d97;_0xd94ac9(_0x44db52),_0x526d97=_0x36d2('0x12')==_0x27c49e[_0x36d2('0x2')][_0x36d2('0x21')]?_0x12061d['model'][_0x36d2('0x14')](_0x5b962f[_0x36d2('0xe')]):_0x12061d[_0x36d2('0x20')][_0x36d2('0x14')](_0x27c49e[_0x36d2('0xe')],_0x27c49e['end']),_0x27c49e['detach'](),_0x12061d[_0x36d2('0x20')][_0x36d2('0x11')](_0x468595[_0x36d2('0x23')][_0x36d2('0x0')],_0x53fc9b=>{_0x468595[_0x36d2('0x23')][_0x36d2('0x22')](),_0x53fc9b[_0x36d2('0x19')](_0x53fc9b[_0x36d2('0x14')](_0x526d97['end'])),_0x468595[_0x36d2('0x23')][_0x36d2('0xf')]();});}),_0x12061d[_0x36d2('0x1f')]['downcastDispatcher']['on'](_0x36d2('0x1b'),_0x1ed844(_0x12061d,_0x36d2('0x7')),{'priority':_0x36d2('0x16')}),_0x12061d[_0x36d2('0xa')][_0x36d2('0x3')]['on'](_0x36d2('0x1b'),(_0x5aa49e,_0x28b097,_0x2a1b3e)=>{_0x2a1b3e[_0x36d2('0x1')][_0x36d2('0x8')]&&_0x1ed844(_0x12061d,_0x36d2('0x7'),{'showActiveMarker':!0x1})[_0x36d2('0x1c')](this)(_0x5aa49e,_0x28b097,_0x2a1b3e);},{'priority':'high'}),_0x12061d[_0x36d2('0x1f')][_0x36d2('0x3')]['on']('removeMarker:suggestion:deletion',(_0x3fea3a,_0x22f8c9,_0x4a80e9)=>{const _0x34122d=_0x4a80e9[_0x36d2('0xd')][_0x36d2('0x1a')](_0x22f8c9['markerName']);if(_0x34122d)for(const _0x565a98 of _0x34122d)_0x565a98['is'](_0x36d2('0x6'))&&(_0x4a80e9[_0x36d2('0xd')][_0x36d2('0x10')](_0x565a98,_0x22f8c9['markerName']),_0x4a80e9['writer'][_0x36d2('0x4')](_0x565a98));},{'priority':_0x36d2('0x16')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22ac=['markerNameToElements','createRange','markInsertion','fromRange','unbindElementFromMarkerName','bind','requires','high','enter','markerName','writer','downcastDispatcher','showSuggestionHighlights','remove','init','createPositionAt','split','plugins','addMarker:suggestion:insertion','end','detach','change','getFirstRange','data','fire','setSelection','afterExecute','mapper','options','TrackChangesEditing','enterBlock','document','getFirstPosition','model','hasClass','editing'];(function(_0x3827ab,_0x22acce){const _0x2ed3d6=function(_0xb0b4a){while(--_0xb0b4a){_0x3827ab['push'](_0x3827ab['shift']());}};_0x2ed3d6(++_0x22acce);}(_0x22ac,0x150));const _0x2ed3=function(_0x3827ab,_0x22acce){_0x3827ab=_0x3827ab-0x0;let _0x2ed3d6=_0x22ac[_0x3827ab];return _0x2ed3d6;};import{Plugin as _0x86c778}from'ckeditor5/src/core.js';import{Enter as _0x53fd6a}from'ckeditor5/src/enter.js';import{LiveRange as _0x3c9a8c}from'ckeditor5/src/engine.js';import{downcastSplitMergeMarker as _0x3ad8d7}from'./utils.js';export default class W extends _0x86c778{static get[_0x2ed3('0x1e')](){return[_0x53fd6a];}[_0x2ed3('0x2')](){const _0x4d69df=this['editor'],_0x2f9782=_0x4d69df[_0x2ed3('0x5')]['get'](_0x2ed3('0x11')),_0x1d7640=_0x4d69df['commands']['get'](_0x2ed3('0x20'));_0x2f9782['enableCommand']('enter',()=>{_0x4d69df[_0x2ed3('0x15')][_0x2ed3('0x9')](_0x1eed11=>{const _0x25a34e=_0x4d69df[_0x2ed3('0x15')][_0x2ed3('0x13')]['selection'],_0x235b62=_0x25a34e[_0x2ed3('0x14')](),_0x172540=_0x3c9a8c[_0x2ed3('0x1b')](_0x25a34e[_0x2ed3('0xa')]());if(_0x1d7640[_0x2ed3('0x12')](_0x1eed11)){const _0x1e8743=_0x4d69df[_0x2ed3('0x15')][_0x2ed3('0x3')](_0x235b62['parent']['nextSibling'],0x0),_0x26ec44=_0x1eed11[_0x2ed3('0x19')](_0x235b62,_0x1e8743);_0x2f9782[_0x2ed3('0x1a')](_0x26ec44);}else _0x1eed11[_0x2ed3('0xd')](_0x1eed11['createRange'](_0x172540[_0x2ed3('0x7')]));_0x172540[_0x2ed3('0x8')](),_0x1d7640[_0x2ed3('0xc')](_0x2ed3('0xe'),{'writer':_0x1eed11});});}),_0x4d69df[_0x2ed3('0x17')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',_0x3ad8d7(_0x4d69df,'split'),{'priority':_0x2ed3('0x1f')}),_0x4d69df['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4c9896,_0x5557bc,_0x6f7821)=>{const _0x25ab95=_0x6f7821[_0x2ed3('0xf')][_0x2ed3('0x18')](_0x5557bc[_0x2ed3('0x21')]);if(_0x25ab95)for(const _0x393e38 of _0x25ab95)_0x393e38[_0x2ed3('0x16')]('ck-suggestion-marker-split')&&(_0x6f7821[_0x2ed3('0xf')][_0x2ed3('0x1c')](_0x393e38,_0x5557bc[_0x2ed3('0x21')]),_0x6f7821[_0x2ed3('0x22')][_0x2ed3('0x1')](_0x393e38));},{'priority':_0x2ed3('0x1f')}),_0x4d69df[_0x2ed3('0xb')][_0x2ed3('0x23')]['on'](_0x2ed3('0x6'),(_0x7d41e1,_0x4b91e4,_0x4ae848)=>{_0x4ae848[_0x2ed3('0x10')][_0x2ed3('0x0')]&&_0x3ad8d7(_0x4d69df,_0x2ed3('0x4'),{'showActiveMarker':!0x1})[_0x2ed3('0x1d')](this)(_0x7d41e1,_0x4b91e4,_0x4ae848);},{'priority':_0x2ed3('0x1f')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d55=['handleFindCommand','replace','createRange','enableCommand','TrackChangesEditing','string','_isInDeletionRange','get','createPositionAt','model','suggestion:deletion','editor','findPrevious','findNext','getMarkersGroup','plugins','FindAndReplaceUtils','getRange','bind','has','markers','FindAndReplaceEditing','filter','afterInit','replaceAll'];(function(_0x471c03,_0x4d550c){const _0x58e8f2=function(_0x147f06){while(--_0x147f06){_0x471c03['push'](_0x471c03['shift']());}};_0x58e8f2(++_0x4d550c);}(_0x4d55,0x18e));const _0x58e8=function(_0x471c03,_0x4d550c){_0x471c03=_0x471c03-0x0;let _0x58e8f2=_0x4d55[_0x471c03];return _0x58e8f2;};import{Plugin as _0x4ddb9e}from'ckeditor5/src/core.js';export default class J extends _0x4ddb9e{[_0x58e8('0x0')](){if(!this['editor'][_0x58e8('0x11')][_0x58e8('0x15')](_0x58e8('0x17')))return;const _0x5c95f6=this[_0x58e8('0xd')][_0x58e8('0x11')][_0x58e8('0x9')](_0x58e8('0x6'));_0x5c95f6[_0x58e8('0x5')]('find',this[_0x58e8('0x2')][_0x58e8('0x14')](this)),_0x5c95f6[_0x58e8('0x5')](_0x58e8('0xf')),_0x5c95f6[_0x58e8('0x5')](_0x58e8('0xe')),_0x5c95f6['enableCommand'](_0x58e8('0x3')),_0x5c95f6[_0x58e8('0x5')](_0x58e8('0x1'));}['handleFindCommand'](_0x2a2931,_0x486c7e,_0x4ad884={}){const _0x638a24=this[_0x58e8('0xd')][_0x58e8('0x11')][_0x58e8('0x9')](_0x58e8('0x12'));return _0x2a2931(_0x5a48f7=>(_0x58e8('0x7')==typeof _0x486c7e?_0x638a24['findByTextCallback'](_0x486c7e,_0x4ad884):_0x486c7e)(_0x5a48f7)[_0x58e8('0x18')](_0x146c61=>!0x1===this[_0x58e8('0x8')](_0x146c61,_0x5a48f7['item'])),_0x4ad884);}[_0x58e8('0x8')](_0x354974,_0x230b58){const _0x3f8c6d=this['editor'][_0x58e8('0xb')][_0x58e8('0x4')](this[_0x58e8('0xd')][_0x58e8('0xb')][_0x58e8('0xa')](_0x230b58,_0x354974['start']),this[_0x58e8('0xd')][_0x58e8('0xb')][_0x58e8('0xa')](_0x230b58,_0x354974['end']));for(const _0x2d29bd of this[_0x58e8('0xd')][_0x58e8('0xb')][_0x58e8('0x16')][_0x58e8('0x10')](_0x58e8('0xc')))if(null!==_0x3f8c6d['getIntersection'](_0x2d29bd[_0x58e8('0x13')]()))return!0x0;return!0x1;}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3abb=['_registerLegacyDescription','label','get','type','format','registerAttributeLabel','commandParams','FontFamilyEditing','*Reset\x20font\x20size*','locale','title','FORMAT_FONT_BACKGROUND','toLowerCase','fontColor','trim','FontSizeEditing','fontBackgroundColor.colors','fontFamily','FontBackgroundColorEditing','fontBackgroundColor','*Set\x20font\x20size:*\x20%0','TrackChangesEditing','*Reset\x20font\x20color*','has','plugins','commandName','FontSize','formatInline','*Set\x20font\x20background\x20color:*\x20%0','fontSize','config','model','*Reset\x20font\x20family*','_descriptionFactory','FontColorEditing','fontSize.options','editor','*Set\x20font\x20color:*\x20%0','value','_enableDefaultAttributesIntegration','*Reset\x20font\x20background\x20color*','*Set\x20font\x20family:*\x20%0'];(function(_0x1d6b7,_0x3abb80){const _0x1f0e78=function(_0x8e9d04){while(--_0x8e9d04){_0x1d6b7['push'](_0x1d6b7['shift']());}};_0x1f0e78(++_0x3abb80);}(_0x3abb,0x64));const _0x1f0e=function(_0x1d6b7,_0x3abb80){_0x1d6b7=_0x1d6b7-0x0;let _0x1f0e78=_0x3abb[_0x1d6b7];return _0x1f0e78;};import{Plugin as _0x36f66c}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x3dd1b6}from'ckeditor5/src/ui.js';import{getTranslation as _0xd23eff}from'../utils/common-translations.js';const ro=[{'pluginName':_0x1f0e('0x29'),'commandName':_0x1f0e('0xd')},{'pluginName':_0x1f0e('0x21'),'commandName':_0x1f0e('0x1')},{'pluginName':_0x1f0e('0x12'),'commandName':_0x1f0e('0x27')},{'pluginName':_0x1f0e('0x2'),'commandName':_0x1f0e('0x3')}];export default class Q extends _0x36f66c{['afterInit'](){const _0xd309bb=this['editor'][_0x1f0e('0x23')],_0x4f8a17=this['editor']['plugins'][_0x1f0e('0x1c')]('TrackChangesEditing');for(const {pluginName:_0x2a9464,commandName:_0x1f3a29}of ro)this[_0x1f0e('0x14')]['plugins'][_0x1f0e('0x7')](_0x2a9464)&&_0x4f8a17[_0x1f0e('0x17')](_0x1f3a29,[_0x1f3a29]);_0xd309bb['t'],(_0x4f8a17[_0x1f0e('0x11')][_0x1f0e('0x1f')](_0x1f0e('0xd'),_0xd23eff(_0xd309bb,'FORMAT_FONT_SIZE')),_0x4f8a17['_descriptionFactory'][_0x1f0e('0x1f')](_0x1f0e('0x1'),_0xd23eff(_0xd309bb,'FORMAT_FONT_FAMILY')),_0x4f8a17[_0x1f0e('0x11')][_0x1f0e('0x1f')]('fontColor',_0xd23eff(_0xd309bb,'FORMAT_FONT_COLOR')),_0x4f8a17[_0x1f0e('0x11')][_0x1f0e('0x1f')](_0x1f0e('0x3'),_0xd23eff(_0xd309bb,_0x1f0e('0x25'))),this[_0x1f0e('0x1a')]());}[_0x1f0e('0x1a')](){const _0x4a9d16=this['editor'],_0x76bb1b=_0x4a9d16[_0x1f0e('0x23')];_0x4a9d16[_0x1f0e('0x8')][_0x1f0e('0x1c')](_0x1f0e('0x5'))[_0x1f0e('0x11')]['registerDescriptionCallback'](_0x20c425=>{const _0x1a949a=_0x76bb1b['t'];if(_0x1f0e('0xb')!=_0x20c425[_0x1f0e('0x1d')])return;const {data:_0x29277a}=_0x20c425;if(null!=_0x29277a){if('fontSize'==_0x29277a['commandName']){const _0x15b7c6=_0x29277a[_0x1f0e('0x20')][0x0]['value'];if(_0x15b7c6){const _0x1564da=_0x1a949a(this[_0x1f0e('0x14')]['plugins'][_0x1f0e('0x1c')](_0x1f0e('0xa'))['normalizeSizeOptions'](this[_0x1f0e('0x14')][_0x1f0e('0xe')][_0x1f0e('0x1c')](_0x1f0e('0x13')))['find'](_0x1dbcf2=>_0x1dbcf2['model']==_0x15b7c6)[_0x1f0e('0x24')])['toLowerCase']();return{'type':_0x1f0e('0x1e'),'content':_0xd23eff(_0x76bb1b,_0x1f0e('0x4'),_0x1564da)};}return{'type':_0x1f0e('0x1e'),'content':_0xd23eff(_0x76bb1b,_0x1f0e('0x22'))};}if(_0x1f0e('0x1')==_0x29277a[_0x1f0e('0x9')]){const _0x1d259b=_0x29277a['commandParams'][0x0][_0x1f0e('0x16')];return _0x1d259b?{'type':_0x1f0e('0x1e'),'content':_0xd23eff(_0x76bb1b,_0x1f0e('0x19'),_0x1d259b)}:{'type':_0x1f0e('0x1e'),'content':_0xd23eff(_0x76bb1b,_0x1f0e('0x10'))};}if(_0x1f0e('0x27')==_0x29277a[_0x1f0e('0x9')]){const _0xf21cdc=_0x29277a[_0x1f0e('0x20')][0x0][_0x1f0e('0x16')];if(_0xf21cdc){const _0x1327df=_0x3dd1b6(this['editor'][_0x1f0e('0xe')]['get']('fontColor.colors'))['find'](_0x3d6959=>_0x3d6959[_0x1f0e('0xf')]==_0xf21cdc);let _0x5db164=_0xf21cdc,_0x5906cf='';return _0x1327df&&(_0x5db164=_0x1327df[_0x1f0e('0x1b')],_0x5906cf=_0x1a949a(_0x5db164)['toLowerCase']()),{'type':_0x1f0e('0x1e'),'content':_0xd23eff(_0x76bb1b,_0x1f0e('0x15'),_0x5906cf)[_0x1f0e('0x28')](),'color':{'value':_0xf21cdc,'title':_0x5906cf||_0x5db164}};}return{'type':_0x1f0e('0x1e'),'content':_0xd23eff(_0x76bb1b,_0x1f0e('0x6'))};}if(_0x1f0e('0x3')==_0x29277a[_0x1f0e('0x9')]){const _0x48963d=_0x29277a[_0x1f0e('0x20')][0x0][_0x1f0e('0x16')];if(_0x48963d){const _0x3037ce=_0x3dd1b6(this[_0x1f0e('0x14')][_0x1f0e('0xe')]['get'](_0x1f0e('0x0')))['find'](_0x549da9=>_0x549da9[_0x1f0e('0xf')]==_0x48963d);let _0x5233dc=_0x48963d,_0x44fb7e='';return _0x3037ce&&(_0x5233dc=_0x3037ce[_0x1f0e('0x1b')],_0x44fb7e=_0x1a949a(_0x5233dc)[_0x1f0e('0x26')]()),{'type':_0x1f0e('0x1e'),'content':_0xd23eff(_0x76bb1b,_0x1f0e('0xc'),_0x44fb7e)[_0x1f0e('0x28')](),'color':{'value':_0x48963d,'title':_0x44fb7e||_0x5233dc}};}return{'type':'format','content':_0xd23eff(_0x76bb1b,_0x1f0e('0x18'))};}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x291f=['formatInline','TrackChangesEditing','find','fontSize.options','get','toUpperCase','type','pasteFormat','push','*Set\x20format\x20to:*\x20%0','entries','fontSize','title','afterInit','split','model','commandName','plugins','*Remove\x20all\x20formatting*','locale','_descriptionFactory','copyFormat','join','_registerLegacyDescription','fontBackgroundColor','commands','FontSize','editor','slice','length','format','toLowerCase','fontColor.colors','config','formatBlock'];(function(_0x2018ad,_0x291fa){const _0x50e509=function(_0x4bb321){while(--_0x4bb321){_0x2018ad['push'](_0x2018ad['shift']());}};_0x50e509(++_0x291fa);}(_0x291f,0xea));const _0x50e5=function(_0x2018ad,_0x291fa){_0x2018ad=_0x2018ad-0x0;let _0x50e509=_0x291f[_0x2018ad];return _0x50e509;};import{Plugin as _0x5a8e05}from'ckeditor5/src/core.js';import{normalizeColorOptions as _0x24d854}from'ckeditor5/src/ui.js';import{getTranslation as _0x386910}from'../utils/common-translations.js';export default class X extends _0x5a8e05{[_0x50e5('0x18')](){const _0x5081d1=this[_0x50e5('0x3')],_0x165be4=_0x5081d1[_0x50e5('0x1c')][_0x50e5('0xf')](_0x50e5('0xc')),_0x599d85=_0x5081d1[_0x50e5('0x1')][_0x50e5('0xf')](_0x50e5('0x20')),_0x2537c5=_0x5081d1['commands']['get'](_0x50e5('0x12'));_0x599d85&&_0x2537c5&&(_0x165be4['_enableDefaultAttributesIntegration'](_0x50e5('0x12')),_0x165be4['enableCommand'](_0x50e5('0x20')),this[_0x50e5('0x22')]());}[_0x50e5('0x22')](){const _0x55d8ee=this[_0x50e5('0x3')],_0x3d3de4=_0x55d8ee[_0x50e5('0x1e')];_0x55d8ee[_0x50e5('0x1c')][_0x50e5('0xf')](_0x50e5('0xc'))[_0x50e5('0x1f')]['registerDescriptionCallback'](_0x48d1b1=>{if(_0x50e5('0xa')!=_0x48d1b1['type']&&_0x50e5('0xb')!=_0x48d1b1[_0x50e5('0x11')])return;const {data:_0x741287}=_0x48d1b1;if(_0x741287&&_0x50e5('0x12')===_0x741287[_0x50e5('0x1b')]){const _0x567c88=[],_0x449a6a=_0x741287['commandParams'][0x0];for(const [_0x2f9577,_0x27ae70]of Object[_0x50e5('0x15')](_0x449a6a))_0x567c88[_0x50e5('0x13')](so(_0x55d8ee,_0x2f9577,_0x27ae70));return _0x567c88[_0x50e5('0x5')]?{'type':_0x50e5('0x6'),'content':_0x386910(_0x3d3de4,_0x50e5('0x14'),_0x567c88['join'](',\x20'))}:{'type':'format','content':_0x386910(_0x3d3de4,_0x50e5('0x1d'))};}});}}function so(_0x5af801,_0x4a433f,_0x26cb52){const _0x4999dc=_0x5af801['locale']['t'],_0x4620c8=_0x4a433f[_0x50e5('0x19')](/(?=[A-Z])/)[_0x50e5('0x21')]('\x20'),_0x401408=_0x4999dc(_0x4620c8['charAt'](0x0)[_0x50e5('0x10')]()+_0x4620c8[_0x50e5('0x4')](0x1))[_0x50e5('0x7')]();if('boolean'==typeof _0x26cb52)return _0x401408;if('fontColor'===_0x4a433f||_0x50e5('0x0')===_0x4a433f){const _0x60859f=_0x24d854(_0x5af801[_0x50e5('0x9')][_0x50e5('0xf')](_0x50e5('0x8')))[_0x50e5('0xd')](_0x5bea28=>_0x5bea28[_0x50e5('0x1a')]==_0x26cb52);return _0x401408+'\x20('+(_0x60859f?_0x4999dc(_0x60859f['label'])[_0x50e5('0x7')]():_0x26cb52)+')';}if(_0x50e5('0x16')===_0x4a433f&&isNaN(parseFloat(_0x26cb52))){const _0x44dafb=_0x5af801[_0x50e5('0x1c')]['get'](_0x50e5('0x2'))['normalizeSizeOptions'](_0x5af801[_0x50e5('0x9')][_0x50e5('0xf')](_0x50e5('0xe')))[_0x50e5('0xd')](_0x30e79d=>_0x30e79d['model']==_0x26cb52);return _0x401408+'\x20('+(_0x44dafb?_0x4999dc(_0x44dafb[_0x50e5('0x17')])[_0x50e5('0x7')]():_0x26cb52)+')';}return _0x401408+'\x20('+_0x26cb52+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b11=['_getHeadingLevel','config','commandName','view','registerDescriptionCallback','has','ELEMENT_HEADING_CUSTOM','plugins','ELEMENT_HEADING','editor','format','heading','commandParams','*Change\x20to:*\x20%0','value','model','title','afterInit','_enableDefaultAttributesIntegration','HeadingEditing','_headingOptions','match','type','formatBlock','TrackChangesEditing','heading.options','registerElementLabel','paragraph','get','find','_descriptionFactory','_registerLegacyDescription'];(function(_0x28ec83,_0x1b1101){const _0x2fc226=function(_0x557ab8){while(--_0x557ab8){_0x28ec83['push'](_0x28ec83['shift']());}};_0x2fc226(++_0x1b1101);}(_0x1b11,0x110));const _0x2fc2=function(_0x28ec83,_0x1b1101){_0x28ec83=_0x28ec83-0x0;let _0x2fc226=_0x1b11[_0x28ec83];return _0x2fc226;};import{Plugin as _0x20e3e2}from'ckeditor5/src/core.js';import{getTranslation as _0x333764}from'../utils/common-translations.js';export default class Y extends _0x20e3e2{[_0x2fc2('0x1')](){const _0xeaa252=this['editor'];if(!_0xeaa252[_0x2fc2('0x17')][_0x2fc2('0x15')](_0x2fc2('0x3')))return;this[_0x2fc2('0x4')]=_0xeaa252[_0x2fc2('0x11')][_0x2fc2('0xc')](_0x2fc2('0x9'));const _0x4376d7=_0xeaa252['locale'],_0x502e90=_0xeaa252[_0x2fc2('0x17')][_0x2fc2('0xc')]('TrackChangesEditing');_0x502e90[_0x2fc2('0x2')]('heading');for(const _0x4e9b30 of this['_headingOptions'])_0x2fc2('0xb')!=_0x4e9b30[_0x2fc2('0x1f')]&&_0x502e90[_0x2fc2('0xe')][_0x2fc2('0xa')](_0x4e9b30[_0x2fc2('0x1f')],_0x1340a0=>{const _0x531392=this[_0x2fc2('0x10')](_0x4e9b30[_0x2fc2('0x1f')]);return null!==_0x531392?_0x2d2f8d(_0x1340a0,_0x531392):_0x1b49c1(_0x1340a0,_0x4e9b30[_0x2fc2('0x0')]);});function _0x2d2f8d(_0x2a39d5,_0x42caad){return _0x333764(_0x4376d7,_0x2fc2('0x18'),[_0x2a39d5,_0x42caad]);}function _0x1b49c1(_0x3a9a0c,_0x3eb548){return _0x333764(_0x4376d7,_0x2fc2('0x16'),[_0x3a9a0c,_0x3eb548]);}this['_registerLegacyDescription']();}[_0x2fc2('0xf')](){const _0x29b4d5=this[_0x2fc2('0x19')],_0x545e20=_0x29b4d5['locale'];function _0x5d56ba(_0x5758a9,_0x1aa7e6){return _0x333764(_0x545e20,_0x2fc2('0x16'),[_0x5758a9,_0x1aa7e6]);}_0x29b4d5[_0x2fc2('0x17')][_0x2fc2('0xc')](_0x2fc2('0x8'))[_0x2fc2('0xe')][_0x2fc2('0x14')](_0xe2050a=>{if(_0x2fc2('0x7')!=_0xe2050a[_0x2fc2('0x6')])return;const {data:_0x40a465}=_0xe2050a;if(_0x40a465&&_0x2fc2('0x1b')==_0x40a465[_0x2fc2('0x12')]){const _0x5aa390=_0x40a465[_0x2fc2('0x1c')][0x0][_0x2fc2('0x1e')],_0x3a0efc=this['_getHeadingLevel'](_0x5aa390);if(null!==_0x3a0efc)return{'type':_0x2fc2('0x1a'),'content':_0x333764(_0x545e20,'*Change\x20to:*\x20%0',(_0x11a15f=0x1,_0x39d68a=_0x3a0efc,_0x333764(_0x545e20,_0x2fc2('0x18'),[_0x11a15f,_0x39d68a])))};const _0x1711b2=this[_0x2fc2('0x4')][_0x2fc2('0xd')](_0x2dc212=>_0x2dc212[_0x2fc2('0x1f')]===_0x5aa390)[_0x2fc2('0x0')];return{'type':_0x2fc2('0x1a'),'content':_0x333764(_0x545e20,_0x2fc2('0x1d'),_0x5d56ba(0x1,_0x1711b2))};}var _0x11a15f,_0x39d68a;});}[_0x2fc2('0x10')](_0x5904fb){var _0x49eafe,_0x112d0b;const _0x10371b=_0x5904fb[_0x2fc2('0x5')](/^heading(\d+)/);if(_0x10371b)return _0x10371b[0x1];const _0x53494c=null===(_0x49eafe=this[_0x2fc2('0x4')])||void 0x0===_0x49eafe?void 0x0:_0x49eafe[_0x2fc2('0xd')](_0x2364a8=>_0x2364a8[_0x2fc2('0x1f')]==_0x5904fb);if(_0x53494c&&_0x53494c[_0x2fc2('0x13')]){const _0x2d88fe=_0x53494c[_0x2fc2('0x13')],_0x2fd97d=(null!==(_0x112d0b=_0x2d88fe['name'])&&void 0x0!==_0x112d0b?_0x112d0b:_0x2d88fe)['match'](/^h(\d+)/);if(_0x2fd97d)return _0x2fd97d[0x1];}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x472a=['title','registerDescriptionCallback','editor','has','highlight.options','_enableDefaultAttributesIntegration','afterInit','type','_descriptionFactory','plugins','*Set\x20highlight:*\x20%0','formatInline','color','highlight','toLowerCase','find','locale','config','FORMAT_HIGHLIGHT','commandName','get','format','_registerLegacyDescription','registerAttributeLabel','HighlightEditing','model','TrackChangesEditing'];(function(_0x3bab28,_0x472aa6){const _0x27e58a=function(_0xb6e306){while(--_0xb6e306){_0x3bab28['push'](_0x3bab28['shift']());}};_0x27e58a(++_0x472aa6);}(_0x472a,0x15e));const _0x27e5=function(_0x3bab28,_0x472aa6){_0x3bab28=_0x3bab28-0x0;let _0x27e58a=_0x472a[_0x3bab28];return _0x27e58a;};import{Plugin as _0x4b8ca5}from'ckeditor5/src/core.js';import{getTranslation as _0x43bd9d}from'../utils/common-translations.js';export default class Z extends _0x4b8ca5{[_0x27e5('0x7')](){const _0x23b2b7=this[_0x27e5('0x3')];if(!_0x23b2b7[_0x27e5('0xa')][_0x27e5('0x4')](_0x27e5('0x19')))return;const _0x4c0ab4=_0x23b2b7['plugins']['get']('TrackChangesEditing'),_0x2be5b6=_0x23b2b7[_0x27e5('0x11')];_0x4c0ab4[_0x27e5('0x6')]('highlight',['highlight']),_0x4c0ab4[_0x27e5('0x9')][_0x27e5('0x18')](_0x27e5('0xe'),_0x43bd9d(_0x2be5b6,_0x27e5('0x13'))),this[_0x27e5('0x17')]();}[_0x27e5('0x17')](){const _0x30b55d=this[_0x27e5('0x3')],_0x11fb50=_0x30b55d[_0x27e5('0x11')];_0x30b55d[_0x27e5('0xa')][_0x27e5('0x15')](_0x27e5('0x0'))[_0x27e5('0x9')][_0x27e5('0x2')](_0x139941=>{if(_0x27e5('0xc')!=_0x139941[_0x27e5('0x8')])return;const {data:_0x26b986}=_0x139941;if(_0x26b986&&_0x27e5('0xe')==_0x26b986[_0x27e5('0x14')]){const _0x2533b1=_0x11fb50['t'],_0x4c3017=_0x26b986['commandParams'][0x0]['value'];if(_0x4c3017){const _0x2b462b=_0x30b55d[_0x27e5('0x12')]['get'](_0x27e5('0x5'))[_0x27e5('0x10')](_0x2e2403=>_0x2e2403[_0x27e5('0x1a')]==_0x4c3017),_0x377f5c=_0x2533b1(_0x2b462b[_0x27e5('0x1')])[_0x27e5('0xf')]();return{'type':_0x27e5('0x16'),'content':_0x43bd9d(_0x11fb50,_0x27e5('0xb'),_0x377f5c),'color':{'value':_0x2b462b[_0x27e5('0xd')],'title':_0x2b462b[_0x27e5('0x1')]}};}return{'type':_0x27e5('0x16'),'content':_0x43bd9d(_0x11fb50,'*Remove\x20highlight*',_0x43bd9d(_0x11fb50,_0x27e5('0x13')))};}});}}
|