@ckeditor/ckeditor5-track-changes 39.0.1 → 39.0.2
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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- package/build/track-changes.js +1 -1
- package/lang/translations/ar.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/fi.po +1 -0
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +1 -0
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- 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/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.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.d.ts +29 -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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1699=['*Remove\x20format:*\x20%0','markInlineFormat','commands','code','TrackChangesEditing','UnderlineEditing','ItalicEditing','_descriptionFactory','document','editor','value','slice','forceValue','bold','CodeEditing','strikethrough','has','isCollapsed','FORMAT_CODE','underline','commandName','SuperscriptEditing','toLowerCase','superscript','italic','get','FORMAT_BOLD','FORMAT_SUPERSCRIPT','*Format:*\x20%0','commandParams','FORMAT_UNDERLINE','FORMAT_SUBSCRIPT','plugins','enableCommand','format','model','selection','getRanges'];(function(_0x435c9d,_0x16997c){const _0x34b4cc=function(_0x5374cc){while(--_0x5374cc){_0x435c9d['push'](_0x435c9d['shift']());}};_0x34b4cc(++_0x16997c);}(_0x1699,0x17f));const _0x34b4=function(_0x435c9d,_0x16997c){_0x435c9d=_0x435c9d-0x0;let _0x34b4cc=_0x1699[_0x435c9d];return _0x34b4cc;};import{Plugin as _0x3c60f7}from'ckeditor5/src/core';import{getTranslation as _0x1b249d}from'../utils/common-translations';import{getRangesWithAttribute as _0x4b103b}from'./utils';const Yt=['BoldEditing',_0x34b4('0x3'),_0x34b4('0x2'),_0x34b4('0xb'),'StrikethroughEditing','SubscriptEditing',_0x34b4('0x12')];export default class x extends _0x3c60f7{['afterInit'](){const _0x18a309=this[_0x34b4('0x6')],_0x508df8=_0x18a309[_0x34b4('0x20')],_0x16cb27=_0x18a309[_0x34b4('0x1d')][_0x34b4('0x16')](_0x34b4('0x1')),_0x245aad=_0x18a309['locale'];for(const _0x1fee64 of Yt){if(!_0x18a309['plugins'][_0x34b4('0xd')](_0x1fee64))continue;const _0x297e6d=_0x1fee64[_0x34b4('0x8')](0x0,-0x7)[_0x34b4('0x13')](),_0x29d7d7=_0x18a309[_0x34b4('0x25')][_0x34b4('0x16')](_0x297e6d);_0x16cb27[_0x34b4('0x1e')](_0x297e6d,(_0x4e3d52,_0xc04fda={})=>{const _0x225ff9=_0x508df8[_0x34b4('0x5')][_0x34b4('0x21')];if(_0x225ff9[_0x34b4('0xe')])return void _0x4e3d52(_0xc04fda);const _0xbb1910=void 0x0!==_0xc04fda['forceValue']?_0xc04fda['forceValue']:!_0x29d7d7[_0x34b4('0x7')];_0x508df8['change'](()=>{const _0x128287=Array['from'](_0x225ff9[_0x34b4('0x22')]());for(const _0x1f1835 of _0x128287){const _0x3c1186=_0xbb1910?[_0x1f1835]:_0x4b103b(_0x297e6d,_0x1f1835,_0x508df8);for(const _0x56e52f of _0x3c1186)_0x16cb27[_0x34b4('0x24')](_0x56e52f,{'commandName':_0x297e6d,'commandParams':[{'forceValue':_0xbb1910}]});}});});}function _0x1ee5dd(_0x193996,_0x31cccd){_0x16cb27[_0x34b4('0x4')]['registerDescriptionCallback'](_0xd5aa8c=>{const {data:_0x1220b7}=_0xd5aa8c;if(_0x1220b7&&_0x1220b7[_0x34b4('0x11')]===_0x193996)return _0x1220b7[_0x34b4('0x1a')][0x0][_0x34b4('0x9')]?{'type':_0x34b4('0x1f'),'content':_0x1b249d(_0x245aad,_0x34b4('0x19'),_0x31cccd)}:{'type':_0x34b4('0x1f'),'content':_0x1b249d(_0x245aad,_0x34b4('0x23'),_0x31cccd)};});}_0x1ee5dd(_0x34b4('0xa'),_0x1b249d(_0x245aad,_0x34b4('0x17'))),_0x1ee5dd(_0x34b4('0x15'),_0x1b249d(_0x245aad,'FORMAT_ITALIC')),_0x1ee5dd(_0x34b4('0x10'),_0x1b249d(_0x245aad,_0x34b4('0x1b'))),_0x1ee5dd(_0x34b4('0x0'),_0x1b249d(_0x245aad,_0x34b4('0xf'))),_0x1ee5dd(_0x34b4('0xc'),_0x1b249d(_0x245aad,'FORMAT_STRIKETHROUGH')),_0x1ee5dd('subscript',_0x1b249d(_0x245aad,_0x34b4('0x1c'))),_0x1ee5dd(_0x34b4('0x14'),_0x1b249d(_0x245aad,_0x34b4('0x18')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x125c=['editor','_descriptionFactory','markBlockFormat','change','*Remove\x20format:*\x20%0','enableCommand','selection','document','locale','registerDescriptionCallback','filter','parent','*Format:*\x20%0','model','schema','value','checkChild','commandName','get','name','afterInit','forceValue','getSelectedBlocks','BlockQuoteEditing','$root','plugins','commands','ELEMENT_BLOCK_QUOTE','blockQuote','commandParams','from','format'];(function(_0x5cbce4,_0x125c37){const _0x1203f2=function(_0x50bd8f){while(--_0x50bd8f){_0x5cbce4['push'](_0x5cbce4['shift']());}};_0x1203f2(++_0x125c37);}(_0x125c,0x1e9));const _0x1203=function(_0x5cbce4,_0x125c37){_0x5cbce4=_0x5cbce4-0x0;let _0x1203f2=_0x125c[_0x5cbce4];return _0x1203f2;};import{Plugin as _0x279446}from'ckeditor5/src/core';import{getTranslation as _0x257a31}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x39bedf}from'../utils/utils';export default class U extends _0x279446{[_0x1203('0xb')](){const _0x57fa4b=this[_0x1203('0x17')],_0x4bb782=_0x57fa4b[_0x1203('0x1f')];if(!_0x57fa4b[_0x1203('0x10')]['has'](_0x1203('0xe')))return;const _0x3aa946=_0x57fa4b['plugins'][_0x1203('0x9')]('TrackChangesEditing'),_0x1dab37=this['editor'][_0x1203('0x11')][_0x1203('0x9')]('blockQuote');_0x3aa946[_0x1203('0x1c')]('blockQuote',(_0x17888f,_0x48ce30={})=>{const _0x35ccd6=this['editor'][_0x1203('0x4')][_0x1203('0x1e')][_0x1203('0x1d')],_0x22de87=_0x48ce30&&void 0x0!==_0x48ce30[_0x1203('0xc')]?_0x48ce30['forceValue']:!_0x1dab37[_0x1203('0x6')];let _0x2eff16=[];if(_0x22de87){const _0x3c169d=Array[_0x1203('0x15')](_0x35ccd6[_0x1203('0xd')]())[_0x1203('0x1')](_0x307b96=>to(_0x307b96)||function(_0x27a367,_0x488ddf){const _0x38cf29=_0x488ddf['checkChild'](_0x27a367[_0x1203('0x2')],_0x1203('0x13')),_0x2db063=_0x488ddf[_0x1203('0x7')]([_0x1203('0xf'),_0x1203('0x13')],_0x27a367);return _0x38cf29&&_0x2db063;}(_0x307b96,this['editor']['model'][_0x1203('0x5')]));_0x2eff16=_0x39bedf(_0x3c169d,_0x57fa4b[_0x1203('0x4')]);}else{const _0x4d7f63=Array['from'](_0x35ccd6['getSelectedBlocks']())[_0x1203('0x1')](_0x15308d=>to(_0x15308d));_0x2eff16=_0x39bedf(_0x4d7f63,_0x57fa4b[_0x1203('0x4')]);}_0x57fa4b[_0x1203('0x4')][_0x1203('0x1a')](()=>{for(const _0x658e3d of _0x2eff16)_0x3aa946[_0x1203('0x19')](_0x658e3d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x22de87}]});});}),_0x3aa946[_0x1203('0x18')][_0x1203('0x0')](_0x2d5a35=>{const {data:_0x65b490}=_0x2d5a35;if(_0x65b490&&'blockQuote'==_0x65b490[_0x1203('0x8')]){const _0x30ccd6=_0x257a31(_0x4bb782,_0x1203('0x12'));return _0x65b490[_0x1203('0x14')][0x0][_0x1203('0xc')]?{'type':'format','content':_0x257a31(_0x4bb782,_0x1203('0x3'),_0x30ccd6)}:{'type':_0x1203('0x16'),'content':_0x257a31(_0x4bb782,_0x1203('0x1b'),_0x30ccd6)};}});}}function to(_0x2e439a){return'blockQuote'==_0x2e439a[_0x1203('0x2')][_0x1203('0xa')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f3b=['ckbox','editor','afterInit','enableCommand','plugins','get','TrackChangesEditing'];(function(_0x504979,_0x5f3b8b){const _0x3154b2=function(_0x45de1b){while(--_0x45de1b){_0x504979['push'](_0x504979['shift']());}};_0x3154b2(++_0x5f3b8b);}(_0x5f3b,0x1b5));const _0x3154=function(_0x504979,_0x5f3b8b){_0x504979=_0x504979-0x0;let _0x3154b2=_0x5f3b[_0x504979];return _0x3154b2;};import{Plugin as _0x449524}from'ckeditor5/src/core';export default class O extends _0x449524{[_0x3154('0x6')](){const _0x379f60=this[_0x3154('0x5')];_0x379f60['commands'][_0x3154('0x2')](_0x3154('0x4'))&&_0x379f60[_0x3154('0x1')][_0x3154('0x2')](_0x3154('0x3'))[_0x3154('0x0')](_0x3154('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46a7=['selection','TrackChangesEditing','model','_descriptionFactory','registerElementLabel','ELEMENT_CODE_BLOCK','codeBlock','formatBlock','commandParams','registerDescriptionCallback','parent','plugins','CodeBlock','commandName','from','indentCodeBlock','checkChild','isLimit','value','locale','enableCommand','editor','languages','filter','config','*Format:*\x20%0','getSelectedBlocks','forceValue','change','commands','markBlockFormat','name','outdentCodeBlock','schema','format','language','get'];(function(_0x189c8a,_0x46a795){const _0x3d787f=function(_0x1ef98c){while(--_0x1ef98c){_0x189c8a['push'](_0x189c8a['shift']());}};_0x3d787f(++_0x46a795);}(_0x46a7,0xcb));const _0x3d78=function(_0x189c8a,_0x46a795){_0x189c8a=_0x189c8a-0x0;let _0x3d787f=_0x46a7[_0x189c8a];return _0x3d787f;};import{Plugin as _0x50eae2}from'ckeditor5/src/core';import{getTranslation as _0xf9b2be}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x2b8321}from'../utils/utils';export default class E extends _0x50eae2{['afterInit'](){const _0x1d5100=this[_0x3d78('0x3')];if(!_0x1d5100[_0x3d78('0x1e')]['has'](_0x3d78('0x1f')))return;const _0x456ab6=_0x1d5100['plugins']['get'](_0x3d78('0x14')),_0x49e4db=_0x1d5100[_0x3d78('0x1')],_0x70ff40=_0x1d5100[_0x3d78('0x6')][_0x3d78('0x12')](_0x3d78('0x19'))[_0x3d78('0x4')],_0x1627ab=_0x1d5100[_0x3d78('0xb')][_0x3d78('0x12')](_0x3d78('0x19'));_0x456ab6[_0x3d78('0x2')](_0x3d78('0x22')),_0x456ab6[_0x3d78('0x2')](_0x3d78('0xe')),_0x456ab6[_0x3d78('0x2')](_0x3d78('0x19'),(_0x2e50e,_0x49bf1f={})=>{const _0x44335a=_0x1d5100[_0x3d78('0x15')],_0x5508a1=_0x1d5100['model']['document'][_0x3d78('0x13')],_0x248159=_0x49bf1f&&void 0x0!==_0x49bf1f[_0x3d78('0x9')]?_0x49bf1f[_0x3d78('0x9')]:!_0x1627ab[_0x3d78('0x0')];let _0x503d8f;_0x49bf1f[_0x3d78('0x11')]||(_0x49bf1f[_0x3d78('0x11')]=_0x70ff40[0x0][_0x3d78('0x11')]),_0x503d8f=_0x248159?Array[_0x3d78('0x21')](_0x5508a1[_0x3d78('0x8')]())[_0x3d78('0x5')](_0x444d22=>oo(_0x444d22)||function(_0x3da053,_0x5f4d2f){if(_0x3da053['is']('rootElement')||_0x5f4d2f[_0x3d78('0x24')](_0x3da053))return!0x1;return _0x5f4d2f[_0x3d78('0x23')](_0x3da053[_0x3d78('0x1d')],_0x3d78('0x19'));}(_0x444d22,_0x44335a[_0x3d78('0xf')])):Array[_0x3d78('0x21')](_0x5508a1[_0x3d78('0x8')]())[_0x3d78('0x5')](_0x45a99b=>oo(_0x45a99b));const _0x2ef28b=_0x2b8321(_0x503d8f,_0x44335a);_0x44335a[_0x3d78('0xa')](()=>{for(const _0x2cfe10 of _0x2ef28b)_0x456ab6[_0x3d78('0xc')](_0x2cfe10,{'commandName':_0x3d78('0x19'),'commandParams':[{..._0x49bf1f,'forceValue':_0x248159}],'formatGroupId':'blockName'});});}),(_0x456ab6[_0x3d78('0x16')][_0x3d78('0x17')](_0x3d78('0x19'),_0x292262=>_0xf9b2be(_0x49e4db,_0x3d78('0x18'),_0x292262)),_0x456ab6[_0x3d78('0x16')][_0x3d78('0x1c')](_0x1844e5=>{const _0xf7fe0f=_0x49e4db['t'],{type:_0x3c24d8,data:_0xe6cbf0}=_0x1844e5;if(_0x3d78('0x1a')==_0x3c24d8&&_0xe6cbf0&&'codeBlock'==_0xe6cbf0[_0x3d78('0x20')]){const _0x4f047b=_0xe6cbf0[_0x3d78('0x1b')][0x0][_0x3d78('0x11')],_0xced5dd=_0xf7fe0f(_0x70ff40['find'](_0x6c078=>_0x6c078[_0x3d78('0x11')]===_0x4f047b)['label']);return _0xe6cbf0[_0x3d78('0x1b')][0x0][_0x3d78('0x9')]?{'type':_0x3d78('0x10'),'content':_0xf9b2be(_0x49e4db,_0x3d78('0x7'),_0xf9b2be(_0x49e4db,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xced5dd+')')}:{'type':'format','content':_0xf9b2be(_0x49e4db,'*Remove\x20format:*\x20%0',_0xf9b2be(_0x49e4db,_0x3d78('0x18'),0x1))};}}));}}function oo(_0x3377cf){return _0x3d78('0x19')==_0x3377cf[_0x3d78('0xd')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc9f0=['TrackChangesEditing','plugins','get','has','CommentsEditing'];(function(_0x1e158a,_0xc9f08c){const _0x3c4e95=function(_0x5b4482){while(--_0x5b4482){_0x1e158a['push'](_0x1e158a['shift']());}};_0x3c4e95(++_0xc9f08c);}(_0xc9f0,0xe2));const _0x3c4e=function(_0x1e158a,_0xc9f08c){_0x1e158a=_0x1e158a-0x0;let _0x3c4e95=_0xc9f0[_0x1e158a];return _0x3c4e95;};import{Plugin as _0x54a212}from'ckeditor5/src/core';export default class F extends _0x54a212{['afterInit'](){const _0x3a97ea=this['editor'];if(!_0x3a97ea[_0x3c4e('0x0')][_0x3c4e('0x2')](_0x3c4e('0x3')))return;_0x3a97ea[_0x3c4e('0x0')][_0x3c4e('0x1')](_0x3c4e('0x4'))['enableCommand']('addCommentThread');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f5c=['editing','uiElement','selection','forward','deleteForward','showSuggestionHighlights','plugins','downcastDispatcher','buffer','model','root','removeMarker:suggestion:deletion','enableCommand','requires','document','data','merge','createRange','mapper','markerNameToElements','lock','remove','end','enqueueChange','createSelection','markerName','getFirstRange','$graveyard','high','start','editor','fromRange','writer','addMarker:suggestion:deletion','init','batch','rootName','isCollapsed','get','detach','TrackChangesEditing','bind','commands','unit','unbindElementFromMarkerName','options','unlock','setSelection'];(function(_0x582ecd,_0x1f5c70){const _0x4d2fbc=function(_0x1649b6){while(--_0x1649b6){_0x582ecd['push'](_0x582ecd['shift']());}};_0x4d2fbc(++_0x1f5c70);}(_0x1f5c,0x1d6));const _0x4d2f=function(_0x582ecd,_0x1f5c70){_0x582ecd=_0x582ecd-0x0;let _0x4d2fbc=_0x1f5c[_0x582ecd];return _0x4d2fbc;};import{Plugin as _0x4bd066}from'ckeditor5/src/core';import{LiveRange as _0x100225}from'ckeditor5/src/engine';import{Delete as _0x341415}from'ckeditor5/src/typing';import{downcastSplitMergeMarker as _0x1b7263}from'./utils';export default class G extends _0x4bd066{static get[_0x4d2f('0x17')](){return[_0x341415];}[_0x4d2f('0x2c')](){const _0x2a09dd=this[_0x4d2f('0x28')],_0xbdd0cf=_0x2a09dd[_0x4d2f('0x10')][_0x4d2f('0x0')](_0x4d2f('0x2'));_0xbdd0cf[_0x4d2f('0x16')]('delete');const _0x1bc820=_0x2a09dd[_0x4d2f('0x4')][_0x4d2f('0x0')](_0x4d2f('0xe'));_0xbdd0cf['enableCommand'](_0x4d2f('0xe'),(_0x3c2365,_0x52df15={})=>{const _0x1b2272=_0x2a09dd[_0x4d2f('0x13')][_0x4d2f('0x22')](_0x2a09dd[_0x4d2f('0x13')][_0x4d2f('0x18')][_0x4d2f('0xc')]);_0x1b2272[_0x4d2f('0x2f')]&&_0x2a09dd['model']['modifySelection'](_0x1b2272,{'direction':_0x4d2f('0xd'),'unit':_0x52df15[_0x4d2f('0x5')]});const _0x30fa13=_0x1b2272[_0x4d2f('0x24')](),_0x58a8b2=_0x100225[_0x4d2f('0x29')](_0x30fa13);let _0x331178;_0x3c2365(_0x52df15),_0x331178=_0x4d2f('0x25')==_0x58a8b2[_0x4d2f('0x14')][_0x4d2f('0x2e')]?_0x2a09dd[_0x4d2f('0x13')]['createRange'](_0x30fa13['start']):_0x2a09dd[_0x4d2f('0x13')][_0x4d2f('0x1b')](_0x58a8b2[_0x4d2f('0x27')],_0x58a8b2[_0x4d2f('0x20')]),_0x58a8b2[_0x4d2f('0x1')](),_0x2a09dd[_0x4d2f('0x13')][_0x4d2f('0x21')](_0x1bc820[_0x4d2f('0x12')][_0x4d2f('0x2d')],_0x536bdb=>{_0x1bc820[_0x4d2f('0x12')][_0x4d2f('0x1e')](),_0x536bdb[_0x4d2f('0x9')](_0x536bdb[_0x4d2f('0x1b')](_0x331178['end'])),_0x1bc820[_0x4d2f('0x12')][_0x4d2f('0x8')]();});}),_0x2a09dd[_0x4d2f('0xa')][_0x4d2f('0x11')]['on'](_0x4d2f('0x2b'),_0x1b7263(_0x2a09dd,'merge'),{'priority':_0x4d2f('0x26')}),_0x2a09dd[_0x4d2f('0x19')][_0x4d2f('0x11')]['on']('addMarker:suggestion:deletion',(_0x15024a,_0x5f2314,_0x5f1564)=>{_0x5f1564[_0x4d2f('0x7')][_0x4d2f('0xf')]&&_0x1b7263(_0x2a09dd,_0x4d2f('0x1a'),{'showActiveMarker':!0x1})[_0x4d2f('0x3')](this)(_0x15024a,_0x5f2314,_0x5f1564);},{'priority':'high'}),_0x2a09dd[_0x4d2f('0xa')][_0x4d2f('0x11')]['on'](_0x4d2f('0x15'),(_0x283740,_0x493b63,_0x1e9232)=>{const _0x31bc1f=_0x1e9232[_0x4d2f('0x1c')][_0x4d2f('0x1d')](_0x493b63['markerName']);if(_0x31bc1f)for(const _0x5cae96 of _0x31bc1f)_0x5cae96['is'](_0x4d2f('0xb'))&&(_0x1e9232[_0x4d2f('0x1c')][_0x4d2f('0x6')](_0x5cae96,_0x493b63[_0x4d2f('0x23')]),_0x1e9232[_0x4d2f('0x2a')][_0x4d2f('0x1f')](_0x5cae96));},{'priority':_0x4d2f('0x26')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5037=['splitListItemAfter','listIndent','add','isFirstBlockOfListItem','execute','*Change\x20to:*\x20%0','editor','listItemId','forceValue','*Outdent:*\x20%0','ELEMENT_LIST_ITEM','refresh','expandListBlocksToCompleteList','containsItem','slice','push','markBlockFormat','mergeListItemForward','parent','*Format:*\x20remove\x20from\x20%0','bulletedList','commandParams','map','format','document','numberedList','end','commands','model','plugins','ELEMENT_','ELEMENT_BULLETED_LIST','value','getSelectedBlocks','outdentList','start','selection','getAttribute','_suggestionFactory','listType','*Format:*\x20insert\x20into\x20%0','enableCommand','TrackChangesEditing','before','registerCustomCallback','documentList','indentList','formatBlock','nextSibling','afterInit','hasAttribute','nodeAfter','_descriptionFactory','getRanges','accept','length','get','createRange','ELEMENT_NUMBERED_LIST','schema','setSelection','from','detach','locale','after','DocumentListUtils','fromRange','previousSibling','isObject','DocumentListEditing','change','createPositionAt','getFirstRange','has','*Indent:*\x20%0','commandName'];(function(_0x5600a4,_0x5037a1){const _0x4494bc=function(_0x2a0917){while(--_0x2a0917){_0x5600a4['push'](_0x5600a4['shift']());}};_0x4494bc(++_0x5037a1);}(_0x5037,0x1cd));const _0x4494=function(_0x5600a4,_0x5037a1){_0x5600a4=_0x5600a4-0x0;let _0x4494bc=_0x5037[_0x5600a4];return _0x4494bc;};import{Plugin as _0x1bb2fb}from'ckeditor5/src/core';import{getTranslation as _0x155d70}from'../utils/common-translations';import{LiveRange as _0x234bbe}from'ckeditor5/src/engine';export default class L extends _0x1bb2fb{[_0x4494('0x2c')](){const _0x422813=this[_0x4494('0x1')];if(!_0x422813[_0x4494('0x18')][_0x4494('0x44')](_0x4494('0x40')))return;const _0x898cc4=_0x422813[_0x4494('0x3a')],_0x112bc2=_0x422813['plugins'][_0x4494('0x33')](_0x4494('0x25')),_0x43aa91=_0x422813[_0x4494('0x18')]['get'](_0x4494('0x3c'));function _0xdaae87(_0x964ce1){return()=>{const _0x23cfb3=_0x422813[_0x4494('0x16')][_0x4494('0x33')](_0x964ce1);let _0xd529f8=Array[_0x4494('0x38')](_0x422813[_0x4494('0x17')][_0x4494('0x13')][_0x4494('0x1f')][_0x4494('0x1c')]());if(_0x532088(_0x964ce1)){_0xd529f8=_0x43aa91[_0x4494('0x7')](_0xd529f8);const _0x4d3ca1=[];for(const _0x20ac7a of _0xd529f8)_0x43aa91[_0x4494('0x4a')](_0x20ac7a)&&_0x4d3ca1[_0x4494('0xa')](_0x20ac7a);_0xd529f8=_0x4d3ca1;}_0x422813[_0x4494('0x17')][_0x4494('0x41')](()=>{_0x112bc2['markMultiRangeBlockFormat'](_0xd529f8,{'commandName':_0x964ce1,'commandParams':[{'forceValue':!_0x23cfb3[_0x4494('0x1b')]}],'formatGroupId':'listType'},[],_0x4494('0x28'));});};}function _0x50ae7b(_0x3d49d5){return()=>{const _0x2c9dcd=function(_0x26f186){let _0x306e75=Array['from'](_0x26f186);const _0x6b652d=_0x306e75['findIndex'](_0x3dfb67=>!_0x3dfb67[_0x4494('0x2d')](_0x4494('0x2')));return _0x6b652d>-0x1&&(_0x306e75=_0x306e75[_0x4494('0x9')](0x0,_0x6b652d)),_0x306e75;}(_0x422813[_0x4494('0x17')][_0x4494('0x13')]['selection'][_0x4494('0x1c')]()),_0x3aad81=_0x2c9dcd[_0x2c9dcd[_0x4494('0x32')]-0x1],_0x29e63b=_0x422813[_0x4494('0x17')][_0x4494('0x36')][_0x4494('0x3f')](_0x3aad81)?_0x4494('0x3b'):_0x4494('0x15'),_0x5d7ff1=_0x422813[_0x4494('0x17')][_0x4494('0x34')](_0x422813['model'][_0x4494('0x42')](_0x2c9dcd[0x0],_0x4494('0x26')),_0x422813[_0x4494('0x17')][_0x4494('0x42')](_0x3aad81,_0x29e63b));_0x422813['model']['change'](()=>{_0x112bc2[_0x4494('0xb')](_0x5d7ff1,{'commandName':_0x3d49d5,'commandParams':[],'formatGroupId':_0x4494('0x22')},function(_0x1a0966){const _0x4371ea=new Set();for(const _0xb5f984 of _0x1a0966){let _0x59e5a3=_0xb5f984['nextSibling'];for(;_0x59e5a3&&_0x59e5a3[_0x4494('0x20')](_0x4494('0x48'))>_0xb5f984[_0x4494('0x20')](_0x4494('0x48'));)_0x4371ea[_0x4494('0x49')](_0x59e5a3),_0x59e5a3=_0x59e5a3[_0x4494('0x2b')];}return Array['from'](_0x4371ea);}(_0x2c9dcd));});};}function _0x2568ea(_0x58073e){return()=>{const _0x2172de=_0x422813[_0x4494('0x17')]['document'][_0x4494('0x1f')][_0x4494('0x1c')]()['next']()[_0x4494('0x1b')],_0x49799b=_0x422813[_0x4494('0x17')]['createPositionAt'](_0x2172de,'before'),_0xaf37dd=_0x422813['model'][_0x4494('0x42')](_0x2172de,0x0),_0x2be34a=_0x422813[_0x4494('0x17')][_0x4494('0x34')](_0x49799b,_0xaf37dd);_0x422813[_0x4494('0x17')]['change'](()=>{_0x112bc2[_0x4494('0xb')](_0x2be34a,{'commandName':_0x58073e,'commandParams':[],'formatGroupId':_0x4494('0x22')});});};}function _0x532088(_0x9fc2fd){const _0x32385d=_0x422813[_0x4494('0x16')][_0x4494('0x33')](_0x4494('0xf'))['value'],_0x2fd023=_0x422813[_0x4494('0x16')][_0x4494('0x33')](_0x4494('0x14'))[_0x4494('0x1b')];return'numberedList'===_0x9fc2fd?_0x32385d:_0x2fd023;}_0x112bc2[_0x4494('0x24')](_0x4494('0x14'),_0xdaae87(_0x4494('0x14'))),_0x112bc2[_0x4494('0x24')](_0x4494('0xf'),_0xdaae87(_0x4494('0xf'))),_0x112bc2[_0x4494('0x24')](_0x4494('0x29'),_0x50ae7b(_0x4494('0x29'))),_0x112bc2[_0x4494('0x24')](_0x4494('0x1d'),_0x50ae7b(_0x4494('0x1d'))),_0x112bc2[_0x4494('0x24')](_0x4494('0x47'),_0x2568ea(_0x4494('0x47'))),_0x112bc2[_0x4494('0x24')]('splitListItemBefore',_0x2568ea('splitListItemBefore')),_0x112bc2[_0x4494('0x2f')]['registerElementLabel'](function(_0x36f97f){const _0x1c1921=!_0x422813[_0x4494('0x17')][_0x4494('0x36')][_0x4494('0x3f')](_0x36f97f),_0x50c5b7=_0x36f97f[_0x4494('0x3e')],_0x154d5a=_0x36f97f[_0x4494('0x2b')],_0x2e6e20=_0x36f97f[_0x4494('0x20')](_0x4494('0x2')),_0x17b19b=!_0x50c5b7||_0x50c5b7[_0x4494('0x20')](_0x4494('0x2'))!==_0x2e6e20,_0x32c0f4=!_0x154d5a||_0x154d5a[_0x4494('0x20')](_0x4494('0x2'))!==_0x2e6e20;return _0x1c1921&&Boolean(_0x2e6e20)&&_0x17b19b&&_0x32c0f4;},_0x376d43=>_0x155d70(_0x898cc4,_0x4494('0x5'),_0x376d43)),_0x112bc2[_0x4494('0x2f')]['registerDescriptionCallback'](function(_0x4682a6){const {data:_0x29b199}=_0x4682a6;if(!_0x29b199)return;let _0x527828,_0x18a240,_0x2122a5,_0x18204e;switch(_0x29b199[_0x4494('0x46')]){case _0x4494('0xf'):_0x2122a5=_0x29b199[_0x4494('0x10')][0x0]['forceValue'],_0x18204e=_0x532088(_0x29b199[_0x4494('0x46')]),_0x527828=_0x2122a5?_0x4494('0x23'):_0x4494('0xe'),_0x18204e&&(_0x527828=_0x4494('0x0')),_0x18a240={'type':_0x4494('0x12'),'content':_0x155d70(_0x898cc4,_0x527828,_0x155d70(_0x898cc4,_0x4494('0x1a')))};break;case _0x4494('0x14'):_0x2122a5=_0x29b199[_0x4494('0x10')][0x0][_0x4494('0x3')],_0x18204e=_0x532088(_0x29b199[_0x4494('0x46')]),_0x527828=_0x2122a5?'*Format:*\x20insert\x20into\x20%0':_0x4494('0xe'),_0x18204e&&(_0x527828=_0x4494('0x0')),_0x18a240={'type':'format','content':_0x155d70(_0x898cc4,_0x527828,_0x155d70(_0x898cc4,_0x4494('0x35')))};break;case _0x4494('0x29'):_0x527828=_0x4494('0x45'),_0x18a240={'type':'format','content':_0x155d70(_0x898cc4,_0x527828,_0x155d70(_0x898cc4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x527828=function(_0x30fd4b){const _0x206185=_0x30fd4b['getFirstRange']();let _0x40605d=_0x206185['start'][_0x4494('0x2e')];for(;_0x40605d&&_0x206185[_0x4494('0x8')](_0x40605d);){if(_0x40605d[_0x4494('0x20')](_0x4494('0x48'))>0x0)return!0x1;_0x40605d=_0x40605d[_0x4494('0x2b')];}return!0x0;}(_0x4682a6)?_0x155d70(_0x898cc4,'*Format:*\x20remove\x20from\x20%0',_0x155d70(_0x898cc4,function(_0x4487a6){const _0x2aa1b1=_0x4487a6[_0x4494('0x43')]()[_0x4494('0x1e')][_0x4494('0x2e')];return _0x4494('0x19')+_0x2aa1b1[_0x4494('0x20')](_0x4494('0x22'))['toUpperCase']()+'_LIST';}(_0x4682a6))):_0x155d70(_0x898cc4,_0x4494('0x4'),_0x155d70(_0x898cc4,_0x4494('0x5'))),_0x18a240={'type':_0x4494('0x12'),'content':_0x527828};break;case'mergeListItemBackward':case _0x4494('0xc'):!0x1===_0x29b199['multipleBlocks']&&(_0x527828='*Merge:*\x20%0',_0x18a240={'type':'deletion','content':_0x155d70(_0x898cc4,_0x527828,_0x155d70(_0x898cc4,'ELEMENT_LIST_ITEM'))});}return _0x18a240;}),_0x112bc2[_0x4494('0x21')][_0x4494('0x27')](_0x4494('0x2a'),_0x4494('0x28'),_0x4494('0x31'),function(_0x3b6639,_0x12eb8d){const _0x243887=[];for(let _0x45eb29 of _0x3b6639)_0x45eb29[_0x4494('0x1e')][_0x4494('0x2e')]===_0x45eb29['end'][_0x4494('0xd')]&&(_0x45eb29=_0x422813[_0x4494('0x17')][_0x4494('0x34')](_0x422813[_0x4494('0x17')][_0x4494('0x42')](_0x45eb29['start'][_0x4494('0x2e')],0x0))),_0x243887[_0x4494('0xa')](_0x45eb29);_0x422813['model'][_0x4494('0x41')](_0x3a6167=>{const _0x123468=_0x422813[_0x4494('0x17')]['document'][_0x4494('0x1f')],_0x1224a4=Array['from'](_0x123468[_0x4494('0x30')]())[_0x4494('0x11')](_0x5e1308=>_0x234bbe[_0x4494('0x3d')](_0x5e1308));_0x3a6167[_0x4494('0x37')](_0x243887),_0x422813[_0x4494('0x16')][_0x4494('0x33')](_0x12eb8d[_0x4494('0x46')])[_0x4494('0x6')](),_0x12eb8d[_0x4494('0x10')]['push']({'forceDefaultExecution':!0x0}),_0x422813[_0x4494('0x4b')](_0x12eb8d[_0x4494('0x46')],..._0x12eb8d[_0x4494('0x10')]),_0x3a6167[_0x4494('0x37')](_0x1224a4);for(const _0x2875f9 of _0x1224a4)_0x2875f9[_0x4494('0x39')]();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24e3=['_getTranslationKeyForListStyle','model','format','registerDescriptionCallback','handleListStartCommand','selection','afterInit','locale','listStyle','ELEMENT_','*Change\x20to:*\x20%0','_getSuggestionBlocks','replace','filter','listType','isListItemBlock','handleListReversedCommand','from','numbered','commandName','TrackChangesEditing','length','enableCommand','type','*Format:*\x20set\x20start\x20index\x20to\x20%0','startIndex','handleDescriptions','DocumentListPropertiesUtils','change','toUpperCase','getAttribute','_getSuggestionBlocksForListStyle','expandListBlocksToCompleteList','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20reversed','styles','bind','document','list.properties','handleListStyleCommand','listReversed','DocumentListUtils','get','config','commandParams','_LIST_','listStart','reversed','plugins','getSelectedBlocks','has','isFirstBlockOfListItem','editor'];(function(_0x5a3c5f,_0x24e328){const _0x1cf249=function(_0x478d7f){while(--_0x478d7f){_0x5a3c5f['push'](_0x5a3c5f['shift']());}};_0x1cf249(++_0x24e328);}(_0x24e3,0x1df));const _0x1cf2=function(_0x5a3c5f,_0x24e328){_0x5a3c5f=_0x5a3c5f-0x0;let _0x1cf249=_0x24e3[_0x5a3c5f];return _0x1cf249;};import{Plugin as _0x4ab4f0}from'ckeditor5/src/core';import{getTranslation as _0x544bd0}from'../utils/common-translations';export default class At extends _0x4ab4f0{[_0x1cf2('0x4')](){if(!this['editor'][_0x1cf2('0x2e')][_0x1cf2('0x30')]('DocumentListPropertiesEditing'))return;const _0x2af2c1=this[_0x1cf2('0x32')][_0x1cf2('0x29')][_0x1cf2('0x28')](_0x1cf2('0x24')),_0x16f927=this['editor']['plugins'][_0x1cf2('0x28')](_0x1cf2('0x12'));_0x2af2c1[_0x1cf2('0x21')]&&_0x16f927[_0x1cf2('0x14')](_0x1cf2('0x6'),this['handleListStyleCommand']['bind'](this)),_0x2af2c1[_0x1cf2('0x2d')]&&_0x16f927[_0x1cf2('0x14')](_0x1cf2('0x26'),this[_0x1cf2('0xe')][_0x1cf2('0x22')](this)),_0x2af2c1[_0x1cf2('0x17')]&&_0x16f927[_0x1cf2('0x14')](_0x1cf2('0x2c'),this['handleListStartCommand'][_0x1cf2('0x22')](this)),_0x16f927['_descriptionFactory'][_0x1cf2('0x1')](this[_0x1cf2('0x18')][_0x1cf2('0x22')](this));}[_0x1cf2('0x25')](_0x3ed424,_0x208ca3={}){const _0x2c13ad=this[_0x1cf2('0x32')][_0x1cf2('0x2e')]['get'](_0x1cf2('0x12')),_0x35c4da=this[_0x1cf2('0x1d')]();this[_0x1cf2('0x32')][_0x1cf2('0x34')][_0x1cf2('0x1a')](()=>{_0x2c13ad[_0x1cf2('0x1f')](_0x35c4da,{'commandName':_0x1cf2('0x6'),'commandParams':[{'type':_0x208ca3[_0x1cf2('0x15')]}],'formatGroupId':_0x1cf2('0x6')});});}[_0x1cf2('0xe')](_0x3140b8,_0x2737b2={}){const _0x596f40=this[_0x1cf2('0x32')]['plugins'][_0x1cf2('0x28')](_0x1cf2('0x12')),_0x2874d9=this[_0x1cf2('0x32')][_0x1cf2('0x2e')][_0x1cf2('0x28')](_0x1cf2('0x27')),_0x211c76=this[_0x1cf2('0x9')](_0x7267cb=>_0x2874d9[_0x1cf2('0xd')](_0x7267cb)&&_0x1cf2('0x10')===_0x7267cb[_0x1cf2('0x1c')](_0x1cf2('0xc')));null!==_0x211c76&&this[_0x1cf2('0x32')][_0x1cf2('0x34')][_0x1cf2('0x1a')](()=>{_0x596f40[_0x1cf2('0x1f')](_0x211c76,{'commandName':_0x1cf2('0x26'),'commandParams':[{'reversed':_0x2737b2[_0x1cf2('0x2d')]}],'formatGroupId':_0x1cf2('0x26')});});}[_0x1cf2('0x2')](_0x48cbf2,_0x58a747={}){const _0x4f875e=this[_0x1cf2('0x32')][_0x1cf2('0x2e')][_0x1cf2('0x28')]('TrackChangesEditing'),_0x1ed9a8=this[_0x1cf2('0x32')][_0x1cf2('0x2e')][_0x1cf2('0x28')](_0x1cf2('0x27')),_0x3d6c9d=this[_0x1cf2('0x9')](_0x5e3f4c=>_0x1ed9a8[_0x1cf2('0xd')](_0x5e3f4c)&&'numbered'===_0x5e3f4c['getAttribute']('listType'));null!==_0x3d6c9d&&this[_0x1cf2('0x32')][_0x1cf2('0x34')][_0x1cf2('0x1a')](()=>{_0x4f875e[_0x1cf2('0x1f')](_0x3d6c9d,{'commandName':_0x1cf2('0x2c'),'commandParams':[{'startIndex':_0x58a747[_0x1cf2('0x17')]}],'formatGroupId':_0x1cf2('0x2c')});});}[_0x1cf2('0x18')](_0x41b183){const _0x5eaaf2=this['editor'][_0x1cf2('0x5')],{data:_0x1ec7b7}=_0x41b183;if(!_0x1ec7b7)return;let _0x84aa16,_0x4aa5ea;switch(_0x1ec7b7[_0x1cf2('0x11')]){case _0x1cf2('0x6'):_0x84aa16=_0x1cf2('0x8'),_0x4aa5ea={'type':_0x1cf2('0x0'),'content':_0x544bd0(_0x5eaaf2,_0x84aa16,_0x544bd0(_0x5eaaf2,this[_0x1cf2('0x33')](_0x1ec7b7['commandParams'][0x0][_0x1cf2('0x15')])))};break;case _0x1cf2('0x26'):_0x84aa16=_0x1ec7b7[_0x1cf2('0x2a')][0x0]['reversed']?_0x1cf2('0x20'):'*Format:*\x20set\x20order\x20to\x20regular',_0x4aa5ea={'type':_0x1cf2('0x0'),'content':_0x544bd0(_0x5eaaf2,_0x84aa16)};break;case'listStart':_0x84aa16=_0x1cf2('0x16'),_0x4aa5ea={'type':_0x1cf2('0x0'),'content':_0x544bd0(_0x5eaaf2,_0x84aa16,_0x1ec7b7[_0x1cf2('0x2a')][0x0][_0x1cf2('0x17')])};}return _0x4aa5ea;}[_0x1cf2('0x1d')](){const _0x365b0c=this[_0x1cf2('0x32')][_0x1cf2('0x2e')][_0x1cf2('0x28')](_0x1cf2('0x27'));let _0x14ce4e=Array[_0x1cf2('0xf')](this[_0x1cf2('0x32')]['model'][_0x1cf2('0x23')][_0x1cf2('0x3')]['getSelectedBlocks']());return _0x14ce4e['push'](..._0x365b0c[_0x1cf2('0x1e')](_0x14ce4e)),_0x14ce4e=[...new Set(_0x14ce4e)],_0x14ce4e;}[_0x1cf2('0x9')](_0x5c2645){const _0x252a9=this[_0x1cf2('0x32')]['plugins'][_0x1cf2('0x28')]('DocumentListUtils');let _0x202be0=Array['from'](this[_0x1cf2('0x32')][_0x1cf2('0x34')]['document'][_0x1cf2('0x3')][_0x1cf2('0x2f')]())[_0x1cf2('0xb')](_0x5c2645);if(!_0x202be0[_0x1cf2('0x13')])return null;_0x202be0=_0x252a9[_0x1cf2('0x1e')](_0x202be0);const _0x5791e6=[];for(const _0x340ade of _0x202be0)_0x252a9[_0x1cf2('0x31')](_0x340ade)&&_0x5791e6['push'](_0x340ade);return _0x5791e6;}[_0x1cf2('0x33')](_0x349bec){return _0x1cf2('0x7')+this[_0x1cf2('0x32')][_0x1cf2('0x2e')][_0x1cf2('0x28')](_0x1cf2('0x19'))['getListTypeFromListStyleType'](_0x349bec)[_0x1cf2('0x1b')]()+_0x1cf2('0x2b')+_0x349bec[_0x1cf2('0x1b')]()[_0x1cf2('0xa')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x300d=['enter','setSelection','addMarker:suggestion:insertion','detach','downcastDispatcher','createRange','options','fire','getFirstRange','getFirstPosition','remove','init','commands','model','change','removeMarker:suggestion:insertion','mapper','document','split','createPositionAt','enableCommand','ck-suggestion-marker-split','selection','get','markInsertion','afterExecute','high','editor','markerName','data','editing','TrackChangesEditing','fromRange','bind'];(function(_0x361cc6,_0x300dec){const _0x30dfb0=function(_0x195ee6){while(--_0x195ee6){_0x361cc6['push'](_0x361cc6['shift']());}};_0x30dfb0(++_0x300dec);}(_0x300d,0x147));const _0x30df=function(_0x361cc6,_0x300dec){_0x361cc6=_0x361cc6-0x0;let _0x30dfb0=_0x300d[_0x361cc6];return _0x30dfb0;};import{Plugin as _0x59ed21}from'ckeditor5/src/core';import{Enter as _0x4c060a}from'ckeditor5/src/enter';import{LiveRange as _0x4bf400}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x280c48}from'./utils';export default class q extends _0x59ed21{static get['requires'](){return[_0x4c060a];}[_0x30df('0x18')](){const _0x3cff60=this[_0x30df('0x6')],_0x3d917b=_0x3cff60['plugins'][_0x30df('0x2')](_0x30df('0xa')),_0x12c5b3=_0x3cff60[_0x30df('0x19')]['get'](_0x30df('0xd'));_0x3d917b[_0x30df('0x21')](_0x30df('0xd'),()=>{_0x3cff60[_0x30df('0x1a')][_0x30df('0x1b')](_0x5015d1=>{const _0x295ca6=_0x3cff60[_0x30df('0x1a')][_0x30df('0x1e')][_0x30df('0x1')],_0x1e1088=_0x295ca6[_0x30df('0x16')](),_0x5a96b4=_0x4bf400[_0x30df('0xb')](_0x295ca6[_0x30df('0x15')]());if(_0x12c5b3['enterBlock'](_0x5015d1)){const _0x47f944=_0x3cff60['model'][_0x30df('0x20')](_0x1e1088['parent']['nextSibling'],0x0),_0x8a9024=_0x5015d1[_0x30df('0x12')](_0x1e1088,_0x47f944);_0x3d917b[_0x30df('0x3')](_0x8a9024);}else _0x5015d1[_0x30df('0xe')](_0x5015d1[_0x30df('0x12')](_0x5a96b4['end']));_0x5a96b4[_0x30df('0x10')](),_0x12c5b3[_0x30df('0x14')](_0x30df('0x4'),{'writer':_0x5015d1});});}),_0x3cff60[_0x30df('0x9')]['downcastDispatcher']['on'](_0x30df('0xf'),_0x280c48(_0x3cff60,_0x30df('0x1f')),{'priority':_0x30df('0x5')}),_0x3cff60['editing'][_0x30df('0x11')]['on'](_0x30df('0x1c'),(_0x18b322,_0xe17cc,_0x1666e5)=>{const _0x3e1e1e=_0x1666e5[_0x30df('0x1d')]['markerNameToElements'](_0xe17cc[_0x30df('0x7')]);if(_0x3e1e1e)for(const _0x2dc4ef of _0x3e1e1e)_0x2dc4ef['hasClass'](_0x30df('0x0'))&&(_0x1666e5[_0x30df('0x1d')]['unbindElementFromMarkerName'](_0x2dc4ef,_0xe17cc['markerName']),_0x1666e5['writer'][_0x30df('0x17')](_0x2dc4ef));},{'priority':_0x30df('0x5')}),_0x3cff60[_0x30df('0x8')][_0x30df('0x11')]['on']('addMarker:suggestion:insertion',(_0x435d75,_0x466b92,_0x1340ea)=>{_0x1340ea[_0x30df('0x13')]['showSuggestionHighlights']&&_0x280c48(_0x3cff60,_0x30df('0x1f'),{'showActiveMarker':!0x1})[_0x30df('0xc')](this)(_0x435d75,_0x466b92,_0x1340ea);},{'priority':_0x30df('0x5')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd41a=['filter','findNext','FindAndReplaceUtils','replaceAll','afterInit','markers','model','getIntersection','handleFindCommand','get','replace','start','plugins','string','findByTextCallback','_isInDeletionRange','bind','editor','end','getRange','TrackChangesEditing','find','enableCommand','FindAndReplaceEditing','createPositionAt','has'];(function(_0x50dbdb,_0xd41af7){const _0x2ee859=function(_0x16f613){while(--_0x16f613){_0x50dbdb['push'](_0x50dbdb['shift']());}};_0x2ee859(++_0xd41af7);}(_0xd41a,0x1b7));const _0x2ee8=function(_0x50dbdb,_0xd41af7){_0x50dbdb=_0x50dbdb-0x0;let _0x2ee859=_0xd41a[_0x50dbdb];return _0x2ee859;};import{Plugin as _0x480969}from'ckeditor5/src/core';export default class z extends _0x480969{[_0x2ee8('0x7')](){if(!this['editor'][_0x2ee8('0xf')][_0x2ee8('0x2')](_0x2ee8('0x0')))return;const _0x1b6c25=this[_0x2ee8('0x14')][_0x2ee8('0xf')][_0x2ee8('0xc')](_0x2ee8('0x17'));_0x1b6c25[_0x2ee8('0x19')](_0x2ee8('0x18'),this[_0x2ee8('0xb')][_0x2ee8('0x13')](this)),_0x1b6c25[_0x2ee8('0x19')](_0x2ee8('0x4')),_0x1b6c25[_0x2ee8('0x19')]('findPrevious'),_0x1b6c25[_0x2ee8('0x19')](_0x2ee8('0xd')),_0x1b6c25[_0x2ee8('0x19')](_0x2ee8('0x6'));}[_0x2ee8('0xb')](_0x603a99,_0x18a66d,_0x224c05={}){const _0x346511=this[_0x2ee8('0x14')][_0x2ee8('0xf')][_0x2ee8('0xc')](_0x2ee8('0x5'));void 0x0!==_0x224c05&&_0x603a99(_0x41ca92=>(_0x2ee8('0x10')==typeof _0x18a66d?_0x346511[_0x2ee8('0x11')](_0x18a66d,_0x224c05):_0x18a66d)(_0x41ca92)[_0x2ee8('0x3')](_0x3461e6=>!0x1===this[_0x2ee8('0x12')](_0x3461e6,_0x41ca92['item'])),_0x224c05);}['_isInDeletionRange'](_0x590e13,_0x268ca2){const _0x4985f9=this[_0x2ee8('0x14')][_0x2ee8('0x9')]['createRange'](this['editor'][_0x2ee8('0x9')][_0x2ee8('0x1')](_0x268ca2,_0x590e13[_0x2ee8('0xe')]),this[_0x2ee8('0x14')][_0x2ee8('0x9')][_0x2ee8('0x1')](_0x268ca2,_0x590e13[_0x2ee8('0x15')]));for(const _0x169127 of this[_0x2ee8('0x14')]['model'][_0x2ee8('0x8')]['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4985f9[_0x2ee8('0xa')](_0x169127[_0x2ee8('0x16')]()))return!0x0;return!0x1;}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x171f=['commandName','afterInit','TrackChangesEditing','find','*Set\x20font\x20family:*\x20%0','get','registerDescriptionCallback','title','FontFamilyEditing','getRanges','enableCommand','fontFamily','markInlineFormat','from','*Reset\x20font\x20background\x20color*','commandParams','fontBackgroundColor.colors','FontSizeEditing','*Reset\x20font\x20family*','isCollapsed','format','label','plugins','fontBackgroundColor','fontSize','normalizeSizeOptions','document','fontColor','toLowerCase','has','fontColor.colors','editor','model','change','locale','trim','config','_enableCommand','*Reset\x20font\x20color*','value'];(function(_0x18da7b,_0x171f4a){const _0x305948=function(_0x47c15a){while(--_0x47c15a){_0x18da7b['push'](_0x18da7b['shift']());}};_0x305948(++_0x171f4a);}(_0x171f,0xcc));const _0x3059=function(_0x18da7b,_0x171f4a){_0x18da7b=_0x18da7b-0x0;let _0x305948=_0x171f[_0x18da7b];return _0x305948;};import{Plugin as _0x17631a}from'ckeditor5/src/core';import{normalizeColorOptions as _0x290148}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x27527c}from'./utils';import{getTranslation as _0x5d2fa6}from'../utils/common-translations';const eo=[{'pluginName':_0x3059('0xd'),'commandName':_0x3059('0x14')},{'pluginName':_0x3059('0x4'),'commandName':_0x3059('0x7')},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];export default class H extends _0x17631a{[_0x3059('0x25')](){const _0x42b74a=this[_0x3059('0x1b')][_0x3059('0x1e')];for(const {pluginName:_0x4789f4,commandName:_0x52bd71}of eo)this['editor']['plugins'][_0x3059('0x19')](_0x4789f4)&&this[_0x3059('0x21')](_0x52bd71);this[_0x3059('0x1b')][_0x3059('0x12')][_0x3059('0x1')](_0x3059('0x26'))['_descriptionFactory'][_0x3059('0x2')](_0x278201=>{const _0x1ec522=_0x42b74a['t'],{data:_0x5c8ab7}=_0x278201;if(null!=_0x5c8ab7){if(_0x3059('0x14')==_0x5c8ab7[_0x3059('0x24')]){const _0x418bdf=_0x5c8ab7[_0x3059('0xb')][0x0][_0x3059('0x23')];if(_0x418bdf){const _0x37aebd=_0x1ec522(this[_0x3059('0x1b')][_0x3059('0x12')][_0x3059('0x1')]('FontSize')[_0x3059('0x15')](this[_0x3059('0x1b')][_0x3059('0x20')]['get']('fontSize.options'))[_0x3059('0x27')](_0x1f4178=>_0x1f4178[_0x3059('0x1c')]==_0x418bdf)[_0x3059('0x3')])[_0x3059('0x18')]();return{'type':_0x3059('0x10'),'content':_0x5d2fa6(_0x42b74a,'*Set\x20font\x20size:*\x20%0',_0x37aebd)};}return{'type':_0x3059('0x10'),'content':_0x5d2fa6(_0x42b74a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5c8ab7['commandName']){const _0xc0e94e=_0x5c8ab7[_0x3059('0xb')][0x0][_0x3059('0x23')];return _0xc0e94e?{'type':_0x3059('0x10'),'content':_0x5d2fa6(_0x42b74a,_0x3059('0x0'),_0xc0e94e)}:{'type':_0x3059('0x10'),'content':_0x5d2fa6(_0x42b74a,_0x3059('0xe'))};}if(_0x3059('0x17')==_0x5c8ab7[_0x3059('0x24')]){const _0x26aded=_0x5c8ab7[_0x3059('0xb')][0x0][_0x3059('0x23')];if(_0x26aded){const _0x2fc6fc=_0x290148(this[_0x3059('0x1b')]['config'][_0x3059('0x1')](_0x3059('0x1a')))['find'](_0x4d4060=>_0x4d4060['model']==_0x26aded);let _0x4bfe9c=_0x26aded,_0x48c1e5='';return _0x2fc6fc&&(_0x4bfe9c=_0x2fc6fc[_0x3059('0x11')],_0x48c1e5=_0x1ec522(_0x4bfe9c)['toLowerCase']()),{'type':_0x3059('0x10'),'content':_0x5d2fa6(_0x42b74a,'*Set\x20font\x20color:*\x20%0',_0x48c1e5)[_0x3059('0x1f')](),'color':{'value':_0x26aded,'title':_0x48c1e5||_0x4bfe9c}};}return{'type':'format','content':_0x5d2fa6(_0x42b74a,_0x3059('0x22'))};}if(_0x3059('0x13')==_0x5c8ab7[_0x3059('0x24')]){const _0x233675=_0x5c8ab7['commandParams'][0x0][_0x3059('0x23')];if(_0x233675){const _0x3065a5=_0x290148(this[_0x3059('0x1b')][_0x3059('0x20')][_0x3059('0x1')](_0x3059('0xc')))[_0x3059('0x27')](_0x1362d8=>_0x1362d8[_0x3059('0x1c')]==_0x233675);let _0x342d6f=_0x233675,_0x6d1d24='';return _0x3065a5&&(_0x342d6f=_0x3065a5['label'],_0x6d1d24=_0x1ec522(_0x342d6f)[_0x3059('0x18')]()),{'type':_0x3059('0x10'),'content':_0x5d2fa6(_0x42b74a,'*Set\x20font\x20background\x20color:*\x20%0',_0x6d1d24)[_0x3059('0x1f')](),'color':{'value':_0x233675,'title':_0x6d1d24||_0x342d6f}};}return{'type':_0x3059('0x10'),'content':_0x5d2fa6(_0x42b74a,_0x3059('0xa'))};}}});}['_enableCommand'](_0x1a1d21){const _0x21c6c2=this[_0x3059('0x1b')];_0x21c6c2[_0x3059('0x12')][_0x3059('0x1')](_0x3059('0x26'))[_0x3059('0x6')](_0x1a1d21,(_0x4300c4,_0x14e9bf={})=>{const _0x1b1e60=_0x21c6c2[_0x3059('0x1c')][_0x3059('0x16')]['selection'],_0x41afc8=_0x14e9bf['value'];_0x1b1e60[_0x3059('0xf')]?_0x4300c4(_0x14e9bf):_0x21c6c2[_0x3059('0x1c')][_0x3059('0x1d')](()=>{const _0x14a2f7=Array[_0x3059('0x9')](_0x1b1e60[_0x3059('0x5')]());for(const _0x102221 of _0x14a2f7){const _0x1c5844=_0x41afc8?[_0x102221]:_0x27527c(_0x1a1d21,_0x102221,_0x21c6c2[_0x3059('0x1c')]);for(const _0x179685 of _0x1c5844)_0x21c6c2['plugins'][_0x3059('0x1')](_0x3059('0x26'))[_0x3059('0x8')](_0x179685,{'commandName':_0x1a1d21,'commandParams':[{'value':_0x41afc8}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ac2=['backward','commandParams','split','format','fontColor','entries','isFormatting','*Remove\x20all\x20formatting*','config','forward','isCollapsed','commands','title','createRange','*Set\x20format\x20to:*\x20%0','selection','fontColor.colors','markInlineFormat','boolean','toUpperCase','afterInit','from','get','pasteFormat','FontSize','modifySelection','model','getRanges','label','normalizeSizeOptions','keys','plugins','getLastPosition','enableCommand','isBlock','fontSize','createSelection','change','word','copyFormat','_descriptionFactory','getSelectedBlocks','TrackChangesEditing','fontBackgroundColor','schema','toLowerCase','fontSize.options','length','slice','find','locale'];(function(_0x159ce8,_0x5ac238){const _0x5742c5=function(_0x13ba99){while(--_0x13ba99){_0x159ce8['push'](_0x159ce8['shift']());}};_0x5742c5(++_0x5ac238);}(_0x5ac2,0xbe));const _0x5742=function(_0x159ce8,_0x5ac238){_0x159ce8=_0x159ce8-0x0;let _0x5742c5=_0x5ac2[_0x159ce8];return _0x5742c5;};import{Plugin as _0x3271c0}from'ckeditor5/src/core';import{normalizeColorOptions as _0x47e905}from'ckeditor5/src/ui';import{first as _0x2085d8}from'ckeditor5/src/utils';import{getTranslation as _0x4cf1a0}from'../utils/common-translations';export default class W extends _0x3271c0{[_0x5742('0x22')](){const _0x2353f0=this['editor'],_0xc96111=_0x2353f0['model'],_0x4ceee9=_0xc96111['document'][_0x5742('0x1d')],_0x386087=_0x2353f0[_0x5742('0x2d')][_0x5742('0x24')](_0x5742('0x5')),_0x516d82=_0x2353f0[_0x5742('0xd')],_0x29faf7=_0x2353f0['commands']['get'](_0x5742('0x2')),_0x339828=_0x2353f0[_0x5742('0x19')][_0x5742('0x24')](_0x5742('0x25'));_0x29faf7&&_0x339828&&(_0x386087[_0x5742('0x2f')]('pasteFormat',(_0xe0d885,_0x9764c4={})=>{const _0x30deb5=_0x9764c4;_0xc96111[_0x5742('0x0')](()=>{const _0x1d4eef=Array[_0x5742('0x23')](_0x4ceee9[_0x5742('0x29')]()),_0x6c10e1=_0x4ceee9[_0x5742('0x18')]?[co(_0xc96111,_0x4ceee9)]:_0x1d4eef,_0x547836=!!_0x2085d8(function*(_0x50414f,_0x2bffe8){const _0x356494=_0xf3bad8=>!!_0x2085d8(function*(_0x2aa018,_0x17005a){for(const [_0x6fb9e2]of _0x2aa018['getAttributes']()){const _0x5a3dc4=_0x17005a['getAttributeProperties'](_0x6fb9e2);_0x5a3dc4&&_0x5a3dc4[_0x5742('0x14')]&&(yield _0x6fb9e2);}}(_0xf3bad8,_0x2bffe8));for(const _0x24dd5a of _0x50414f[_0x5742('0x29')]())for(const _0x2332b6 of _0x24dd5a['getItems']())!_0x2bffe8[_0x5742('0x30')](_0x2332b6)&&_0x356494(_0x2332b6)&&(yield _0x2332b6);for(const _0x2db78c of _0x50414f[_0x5742('0x4')]())_0x356494(_0x2db78c)&&(yield _0x2db78c);_0x356494(_0x50414f)&&(yield _0x50414f);}(_0x4ceee9,_0xc96111[_0x5742('0x7')]));if(_0x547836||0x0!==Object[_0x5742('0x2c')](_0x30deb5)[_0x5742('0xa')])for(const _0x4d1728 of _0x6c10e1)_0x386087[_0x5742('0x1f')](_0x4d1728,{'commandName':'pasteFormat','commandParams':[_0x30deb5]});});}),_0x386087[_0x5742('0x3')]['registerDescriptionCallback'](_0x4f926a=>{const {data:_0x1355b9}=_0x4f926a;if(_0x1355b9&&'pasteFormat'===_0x1355b9['commandName']){const _0x342131=[],_0x29fbdc=_0x1355b9[_0x5742('0xf')][0x0];for(const [_0x3586d3,_0x239f57]of Object[_0x5742('0x13')](_0x29fbdc))_0x342131['push'](io(_0x2353f0,_0x3586d3,_0x239f57));return _0x342131[_0x5742('0xa')]?{'type':_0x5742('0x11'),'content':_0x4cf1a0(_0x516d82,_0x5742('0x1c'),_0x342131['join'](',\x20'))}:{'type':_0x5742('0x11'),'content':_0x4cf1a0(_0x516d82,_0x5742('0x15'))};}}),_0x2353f0[_0x5742('0x2d')]['get']('TrackChangesEditing')[_0x5742('0x2f')](_0x5742('0x2')));}}function co(_0x458366,_0x2a8b5a){const _0x27199b=_0x458366[_0x5742('0x32')](_0x2a8b5a);_0x458366[_0x5742('0x27')](_0x27199b,{'unit':_0x5742('0x1'),'direction':_0x5742('0xe')});const _0xd72894=_0x27199b['getFirstPosition']();_0x458366['modifySelection'](_0x27199b,{'unit':_0x5742('0x1'),'direction':_0x5742('0x17')});const _0x28076a=_0x27199b[_0x5742('0x2e')]();return _0x458366[_0x5742('0x1b')](_0xd72894,_0x28076a);}function io(_0x160efe,_0x1c67d5,_0x185a55){const _0x5769d1=_0x160efe[_0x5742('0xd')]['t'],_0x58be60=_0x1c67d5[_0x5742('0x10')](/(?=[A-Z])/)['join']('\x20'),_0x34e122=_0x5769d1(_0x58be60['charAt'](0x0)[_0x5742('0x21')]()+_0x58be60[_0x5742('0xb')](0x1))[_0x5742('0x8')]();if(_0x5742('0x20')==typeof _0x185a55)return _0x34e122;if(_0x5742('0x12')===_0x1c67d5||_0x5742('0x6')===_0x1c67d5){const _0x9a0762=_0x47e905(_0x160efe[_0x5742('0x16')]['get'](_0x5742('0x1e')))[_0x5742('0xc')](_0x1de77c=>_0x1de77c[_0x5742('0x28')]==_0x185a55);return _0x34e122+'\x20('+(_0x9a0762?_0x5769d1(_0x9a0762[_0x5742('0x2a')])[_0x5742('0x8')]():_0x185a55)+')';}if(_0x5742('0x31')===_0x1c67d5&&isNaN(parseFloat(_0x185a55))){const _0x3a8fb7=_0x160efe[_0x5742('0x2d')][_0x5742('0x24')](_0x5742('0x26'))[_0x5742('0x2b')](_0x160efe[_0x5742('0x16')][_0x5742('0x24')](_0x5742('0x9')))[_0x5742('0xc')](_0x314343=>_0x314343[_0x5742('0x28')]==_0x185a55);return _0x34e122+'\x20('+(_0x3a8fb7?_0x5769d1(_0x3a8fb7[_0x5742('0x1a')])[_0x5742('0x8')]():_0x185a55)+')';}return _0x34e122+'\x20('+_0x185a55+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27e2=['title','get','blockName','heading','commandName','find','isObject','registerDescriptionCallback','change','from','editor','heading.options','name','value','locale','parent','filter','paragraph','getSelectedBlocks','*Change\x20to:*\x20%0','has','ELEMENT_HEADING','selection','config','plugins','_descriptionFactory','format','checkChild','enableCommand','ELEMENT_HEADING_CUSTOM','commandParams','HeadingEditing','match','model'];(function(_0x56607d,_0x27e20d){const _0x109c44=function(_0x3a8d8a){while(--_0x3a8d8a){_0x56607d['push'](_0x56607d['shift']());}};_0x109c44(++_0x27e20d);}(_0x27e2,0x1cf));const _0x109c=function(_0x56607d,_0x27e20d){_0x56607d=_0x56607d-0x0;let _0x109c44=_0x27e2[_0x56607d];return _0x109c44;};import{Plugin as _0x207161}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2b211d}from'./utils';import{getTranslation as _0x1773f8}from'../utils/common-translations';export default class J extends _0x207161{['afterInit'](){const _0x4e887e=this['editor'],_0x3d56e9=_0x4e887e[_0x109c('0x1b')],_0x373788=_0x4e887e[_0x109c('0x2')]['get'](_0x109c('0x18'));if(!_0x4e887e[_0x109c('0x3')][_0x109c('0x21')](_0x109c('0xa')))return;const _0x443517=_0x4e887e[_0x109c('0x3')][_0x109c('0xe')]('TrackChangesEditing');_0x443517[_0x109c('0x7')]('heading',(_0x4a6d11,_0x4a12e3)=>{const _0x5f2193=_0x4a12e3[_0x109c('0x1a')],_0x20c77d=Array[_0x109c('0x16')](this['editor']['model']['document'][_0x109c('0x1')][_0x109c('0x1f')]())[_0x109c('0x1d')](_0x11ed6a=>function(_0x4f2288,_0x4a3cad,_0x246fef){return _0x246fef[_0x109c('0x6')](_0x4f2288[_0x109c('0x1c')],_0x4a3cad)&&!_0x246fef[_0x109c('0x13')](_0x4f2288)&&_0x4f2288[_0x109c('0x19')]!=_0x4a3cad;}(_0x11ed6a,_0x5f2193,this[_0x109c('0x17')][_0x109c('0xc')]['schema']));_0x4e887e[_0x109c('0xc')][_0x109c('0x15')](()=>{for(const _0x2bfa46 of _0x20c77d)_0x443517['markBlockFormat'](_0x2bfa46,{'commandName':_0x109c('0x10'),'commandParams':[_0x4a12e3],'formatGroupId':_0x109c('0xf')},_0x2b211d(_0x2bfa46));});});for(const _0x4ae6a8 of _0x373788)_0x109c('0x1e')!=_0x4ae6a8[_0x109c('0xc')]&&_0x443517[_0x109c('0x4')]['registerElementLabel'](_0x4ae6a8[_0x109c('0xc')],_0x3a63df=>{const _0x32084f=nn(_0x4ae6a8['model']);return null!==_0x32084f?_0x2678d3(_0x3a63df,_0x32084f):_0x431936(_0x3a63df,_0x4ae6a8[_0x109c('0xd')]);});function _0x2678d3(_0xaa94c0,_0x105b7e){return _0x1773f8(_0x3d56e9,_0x109c('0x0'),[_0xaa94c0,_0x105b7e]);}function _0x431936(_0x5230e3,_0x5ee30a){return _0x1773f8(_0x3d56e9,_0x109c('0x8'),[_0x5230e3,_0x5ee30a]);}_0x443517['_descriptionFactory'][_0x109c('0x14')](_0x42e515=>{const {type:_0x5cd8a6,data:_0x101e54}=_0x42e515;if('formatBlock'==_0x5cd8a6&&_0x101e54&&_0x109c('0x10')==_0x101e54[_0x109c('0x11')]){const _0x1cc5e2=_0x101e54[_0x109c('0x9')][0x0][_0x109c('0x1a')],_0x15fda7=nn(_0x1cc5e2);if(null!==_0x15fda7)return{'type':_0x109c('0x5'),'content':_0x1773f8(_0x3d56e9,_0x109c('0x20'),_0x2678d3(0x1,_0x15fda7))};const _0x42f060=_0x373788[_0x109c('0x12')](_0x2d46d3=>_0x2d46d3[_0x109c('0xc')]===_0x1cc5e2)['title'];return{'type':_0x109c('0x5'),'content':_0x1773f8(_0x3d56e9,_0x109c('0x20'),_0x431936(0x1,_0x42f060))};}});}}function nn(_0x336586){const _0x361ed9=_0x336586[_0x109c('0xb')](/^heading(\d+)$/);return _0x361ed9?_0x361ed9[0x1]:null;}
|