@ckeditor/ckeditor5-track-changes 35.3.2 → 36.0.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 +3 -2
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/contexts.json +16 -0
- package/lang/translations/ar.po +68 -4
- package/lang/translations/az.po +65 -1
- package/lang/translations/bg.po +68 -4
- package/lang/translations/bn.po +68 -4
- package/lang/translations/ca.po +68 -4
- package/lang/translations/cs.po +68 -4
- package/lang/translations/da.po +68 -4
- package/lang/translations/de.po +68 -4
- package/lang/translations/el.po +68 -4
- package/lang/translations/en-au.po +65 -1
- package/lang/translations/en.po +65 -1
- package/lang/translations/es.po +68 -4
- package/lang/translations/et.po +68 -4
- package/lang/translations/fi.po +68 -4
- package/lang/translations/fr.po +68 -4
- package/lang/translations/gl.po +65 -1
- package/lang/translations/he.po +68 -4
- package/lang/translations/hi.po +68 -4
- package/lang/translations/hr.po +65 -1
- package/lang/translations/hu.po +68 -4
- package/lang/translations/id.po +68 -4
- package/lang/translations/it.po +68 -4
- package/lang/translations/ja.po +68 -4
- package/lang/translations/ko.po +68 -4
- package/lang/translations/lt.po +68 -4
- package/lang/translations/lv.po +68 -4
- package/lang/translations/ms.po +68 -4
- package/lang/translations/nl.po +68 -4
- package/lang/translations/no.po +68 -4
- package/lang/translations/pl.po +68 -4
- package/lang/translations/pt-br.po +68 -4
- package/lang/translations/pt.po +68 -4
- package/lang/translations/ro.po +68 -4
- package/lang/translations/ru.po +68 -4
- package/lang/translations/sk.po +68 -4
- package/lang/translations/sr-latn.po +68 -4
- package/lang/translations/sr.po +69 -5
- package/lang/translations/sv.po +68 -4
- package/lang/translations/th.po +68 -4
- package/lang/translations/tk.po +65 -1
- package/lang/translations/tr.po +68 -4
- package/lang/translations/tt.po +65 -1
- package/lang/translations/uk.po +68 -4
- package/lang/translations/ur.po +65 -1
- package/lang/translations/vi.po +68 -4
- package/lang/translations/zh-cn.po +68 -4
- package/lang/translations/zh.po +68 -4
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +1 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.js +23 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.js +23 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.js +23 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.js +23 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +23 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableproperties.js +23 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f44=['registerElementLabel','ELEMENT_CODE_BLOCK','commandName','from','locale','_descriptionFactory','config','name','commandParams','isLimit','value','formatBlock','CodeBlock','outdentCodeBlock','parent','get','format','TrackChangesEditing','markBlockFormat','model','commands','registerDescriptionCallback','rootElement','indentCodeBlock','codeBlock','checkChild','language','document','plugins','label','has','enableCommand','filter','*Remove\x20format:*\x20%0','languages','find','getSelectedBlocks','afterInit','forceValue','schema'];(function(_0x4b9ac8,_0x3f440c){const _0x22dc80=function(_0xbcbb68){while(--_0xbcbb68){_0x4b9ac8['push'](_0x4b9ac8['shift']());}};_0x22dc80(++_0x3f440c);}(_0x3f44,0x1a1));const _0x22dc=function(_0x4b9ac8,_0x3f440c){_0x4b9ac8=_0x4b9ac8-0x0;let _0x22dc80=_0x3f44[_0x4b9ac8];return _0x22dc80;};import{Plugin as _0x2f35d3}from'ckeditor5/src/core';import{getTranslation as _0x35e857}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x5cd25b}from'../utils/utils';export default class G extends _0x2f35d3{[_0x22dc('0x14')](){const _0x1e6cdc=this['editor'];if(!_0x1e6cdc[_0x22dc('0xb')][_0x22dc('0xd')](_0x22dc('0x23')))return;const _0x14046b=_0x1e6cdc[_0x22dc('0xb')][_0x22dc('0x26')](_0x22dc('0x0')),_0x571e0a=_0x1e6cdc[_0x22dc('0x1b')],_0x28ffd5=_0x1e6cdc[_0x22dc('0x1d')][_0x22dc('0x26')]('codeBlock')[_0x22dc('0x11')],_0x1b11fe=_0x1e6cdc[_0x22dc('0x3')][_0x22dc('0x26')]('codeBlock');_0x14046b[_0x22dc('0xe')](_0x22dc('0x6')),_0x14046b[_0x22dc('0xe')](_0x22dc('0x24')),_0x14046b[_0x22dc('0xe')]('codeBlock',(_0x537a1b,_0x1b4e0c={})=>{const _0x479e98=_0x1e6cdc[_0x22dc('0x2')],_0x315aba=_0x1e6cdc['model'][_0x22dc('0xa')]['selection'],_0x2e0e6b=_0x1b4e0c&&void 0x0!==_0x1b4e0c[_0x22dc('0x15')]?_0x1b4e0c[_0x22dc('0x15')]:!_0x1b11fe[_0x22dc('0x21')];let _0xeefbad;_0x1b4e0c[_0x22dc('0x9')]||(_0x1b4e0c[_0x22dc('0x9')]=_0x28ffd5[0x0][_0x22dc('0x9')]),_0xeefbad=_0x2e0e6b?Array[_0x22dc('0x1a')](_0x315aba[_0x22dc('0x13')]())[_0x22dc('0xf')](_0x3abcd3=>oo(_0x3abcd3)||function(_0x51fb23,_0x40ab13){if(_0x51fb23['is'](_0x22dc('0x5'))||_0x40ab13[_0x22dc('0x20')](_0x51fb23))return!0x1;return _0x40ab13[_0x22dc('0x8')](_0x51fb23[_0x22dc('0x25')],_0x22dc('0x7'));}(_0x3abcd3,_0x479e98[_0x22dc('0x16')])):Array['from'](_0x315aba[_0x22dc('0x13')]())[_0x22dc('0xf')](_0xcc264a=>oo(_0xcc264a));const _0x4dce47=_0x5cd25b(_0xeefbad,_0x479e98);_0x479e98['change'](()=>{for(const _0x4277ea of _0x4dce47)_0x14046b[_0x22dc('0x1')](_0x4277ea,{'commandName':_0x22dc('0x7'),'commandParams':[{..._0x1b4e0c,'forceValue':_0x2e0e6b}],'formatGroupId':'blockName'});});}),(_0x14046b[_0x22dc('0x1c')][_0x22dc('0x17')](_0x22dc('0x7'),_0x5adb76=>_0x35e857(_0x571e0a,'ELEMENT_CODE_BLOCK',_0x5adb76)),_0x14046b[_0x22dc('0x1c')][_0x22dc('0x4')](_0x216d00=>{const {type:_0x12375c,data:_0x1f62ae}=_0x216d00;if(_0x22dc('0x22')==_0x12375c&&_0x1f62ae&&_0x22dc('0x7')==_0x1f62ae[_0x22dc('0x19')]){const _0x3d4149=_0x1f62ae[_0x22dc('0x1f')][0x0]['language'],_0x5ce35e=_0x28ffd5[_0x22dc('0x12')](_0x21a7f7=>_0x21a7f7[_0x22dc('0x9')]===_0x3d4149)[_0x22dc('0xc')],_0x532df0=_0x571e0a['_t'](_0x5ce35e);return _0x1f62ae[_0x22dc('0x1f')][0x0][_0x22dc('0x15')]?{'type':_0x22dc('0x27'),'content':_0x35e857(_0x571e0a,'*Format:*\x20%0',_0x35e857(_0x571e0a,_0x22dc('0x18'),0x1)+'\x20('+_0x532df0+')')}:{'type':_0x22dc('0x27'),'content':_0x35e857(_0x571e0a,_0x22dc('0x10'),_0x35e857(_0x571e0a,_0x22dc('0x18'),0x1))};}}));}}function oo(_0x54fa0a){return _0x22dc('0x7')==_0x54fa0a[_0x22dc('0x1e')];}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b03=['enableCommand','afterInit','has','plugins','editor'];(function(_0x2f0f4b,_0x4b0388){const _0x22c699=function(_0x467480){while(--_0x467480){_0x2f0f4b['push'](_0x2f0f4b['shift']());}};_0x22c699(++_0x4b0388);}(_0x4b03,0x129));const _0x22c6=function(_0x2f0f4b,_0x4b0388){_0x2f0f4b=_0x2f0f4b-0x0;let _0x22c699=_0x4b03[_0x2f0f4b];return _0x22c699;};import{Plugin as _0x222d24}from'ckeditor5/src/core';export default class L extends _0x222d24{[_0x22c6('0x4')](){const _0x4e570a=this[_0x22c6('0x2')];if(!_0x4e570a['plugins'][_0x22c6('0x0')]('CommentsEditing'))return;_0x4e570a[_0x22c6('0x1')]['get']('TrackChangesEditing')[_0x22c6('0x3')]('addCommentThread');}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb71f=['data','model','root','options','editing','showSuggestionHighlights','mapper','deleteForward','selection','createSelection','requires','merge','editor','detach','fromRange','unit','start','writer','high','unlock','end','lock','modifySelection','document','buffer','downcastDispatcher','TrackChangesEditing','isCollapsed','getFirstRange','delete','markerName','init','createRange','$graveyard','forward','addMarker:suggestion:deletion','commands','markerNameToElements','enableCommand','uiElement','setSelection','batch','remove','get'];(function(_0x18c722,_0xb71fda){const _0x3bb836=function(_0x4ab56b){while(--_0x4ab56b){_0x18c722['push'](_0x18c722['shift']());}};_0x3bb836(++_0xb71fda);}(_0xb71f,0xcc));const _0x3bb8=function(_0x18c722,_0xb71fda){_0x18c722=_0x18c722-0x0;let _0x3bb836=_0xb71f[_0x18c722];return _0x3bb836;};import{Plugin as _0x45b42f}from'ckeditor5/src/core';import{Delete as _0x24c186}from'ckeditor5/src/typing';import{LiveRange as _0x24d483}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x11b2db}from'./utils';export default class q extends _0x45b42f{static get[_0x3bb8('0x1a')](){return[_0x24c186];}[_0x3bb8('0x3')](){const _0x5d04b7=this[_0x3bb8('0x1c')],_0xc4c474=_0x5d04b7['plugins']['get'](_0x3bb8('0x2a'));_0xc4c474[_0x3bb8('0xa')](_0x3bb8('0x1'));const _0x1d8b8f=_0x5d04b7[_0x3bb8('0x8')][_0x3bb8('0xf')](_0x3bb8('0x17'));_0xc4c474['enableCommand'](_0x3bb8('0x17'),(_0x32b126,_0x4d44e7={})=>{const _0x312bc0=_0x5d04b7[_0x3bb8('0x11')][_0x3bb8('0x19')](_0x5d04b7['model'][_0x3bb8('0x27')][_0x3bb8('0x18')]);_0x312bc0[_0x3bb8('0x2b')]&&_0x5d04b7[_0x3bb8('0x11')][_0x3bb8('0x26')](_0x312bc0,{'direction':_0x3bb8('0x6'),'unit':_0x4d44e7[_0x3bb8('0x1f')]});const _0x37b8df=_0x312bc0[_0x3bb8('0x0')](),_0x3cfcd4=_0x24d483[_0x3bb8('0x1e')](_0x37b8df);let _0x4c3ed4;_0x32b126(_0x4d44e7),_0x4c3ed4=_0x3bb8('0x5')==_0x3cfcd4[_0x3bb8('0x12')]['rootName']?_0x5d04b7[_0x3bb8('0x11')][_0x3bb8('0x4')](_0x37b8df['start']):_0x5d04b7[_0x3bb8('0x11')]['createRange'](_0x3cfcd4[_0x3bb8('0x20')],_0x3cfcd4[_0x3bb8('0x24')]),_0x3cfcd4[_0x3bb8('0x1d')](),_0x5d04b7[_0x3bb8('0x11')]['enqueueChange'](_0x1d8b8f[_0x3bb8('0x28')][_0x3bb8('0xd')],_0x3f8adc=>{_0x1d8b8f[_0x3bb8('0x28')][_0x3bb8('0x25')](),_0x3f8adc[_0x3bb8('0xc')](_0x3f8adc[_0x3bb8('0x4')](_0x4c3ed4[_0x3bb8('0x24')])),_0x1d8b8f[_0x3bb8('0x28')][_0x3bb8('0x23')]();});}),_0x5d04b7[_0x3bb8('0x14')]['downcastDispatcher']['on'](_0x3bb8('0x7'),_0x11b2db(_0x5d04b7,_0x3bb8('0x1b')),{'priority':_0x3bb8('0x22')}),_0x5d04b7[_0x3bb8('0x10')][_0x3bb8('0x29')]['on'](_0x3bb8('0x7'),(_0x50aab4,_0xf88695,_0x2706b5)=>{_0x2706b5[_0x3bb8('0x13')][_0x3bb8('0x15')]&&_0x11b2db(_0x5d04b7,_0x3bb8('0x1b'),{'showActiveMarker':!0x1})(_0x50aab4,_0xf88695,_0x2706b5);},{'priority':'high'}),_0x5d04b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3a2015,_0x483647,_0x2191ed)=>{const _0x17b222=_0x2191ed[_0x3bb8('0x16')][_0x3bb8('0x9')](_0x483647[_0x3bb8('0x2')]);if(_0x17b222)for(const _0x27fabb of _0x17b222)_0x27fabb['is'](_0x3bb8('0xb'))&&(_0x2191ed[_0x3bb8('0x16')]['unbindElementFromMarkerName'](_0x27fabb,_0x483647[_0x3bb8('0x2')]),_0x2191ed[_0x3bb8('0x21')][_0x3bb8('0xe')](_0x27fabb));},{'priority':'high'});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1976=['end','commandParams','before','_descriptionFactory','format','expandListBlocksToCompleteList','listType','documentList','ELEMENT_BULLETED_LIST','isObject','bulletedList','containsItem','has','DocumentListEditing','commands','createPositionAt','parent','nextSibling','*Merge:*\x20%0','isFirstBlockOfListItem','deletion','map','mergeListItemForward','getSelectedBlocks','setSelection','mergeListItemBackward','plugins','commandName','findIndex','enableCommand','indentList','TrackChangesEditing','change','length','toUpperCase','*Format:*\x20insert\x20into\x20%0','value','listItemId','listIndent','*Indent:*\x20%0','ELEMENT_LIST_ITEM','fromRange','previousSibling','selection','_suggestionFactory','markBlockFormat','*Outdent:*\x20%0','push','*Format:*\x20remove\x20from\x20%0','model','*Change\x20to:*\x20%0','after','schema','execute','getFirstRange','createRange','formatBlock','registerDescriptionCallback','accept','getRanges','DocumentListUtils','detach','_LIST','refresh','get','getAttribute','nodeAfter','numberedList','next','forceValue','from','multipleBlocks','start','hasAttribute','document','registerCustomCallback','add'];(function(_0x3f2b00,_0x197648){const _0x25a1f3=function(_0x2ea73c){while(--_0x2ea73c){_0x3f2b00['push'](_0x3f2b00['shift']());}};_0x25a1f3(++_0x197648);}(_0x1976,0x16d));const _0x25a1=function(_0x3f2b00,_0x197648){_0x3f2b00=_0x3f2b00-0x0;let _0x25a1f3=_0x1976[_0x3f2b00];return _0x25a1f3;};import{Plugin as _0x3c06f8}from'ckeditor5/src/core';import{getTranslation as _0x1cf6cc}from'../utils/common-translations';import{LiveRange as _0x42558f}from'ckeditor5/src/engine';export default class z extends _0x3c06f8{['afterInit'](){const _0x58b6ab=this['editor'];if(!_0x58b6ab[_0x25a1('0x2e')][_0x25a1('0x20')](_0x25a1('0x21')))return;const _0x17eebf=_0x58b6ab['locale'],_0x12d855=_0x58b6ab[_0x25a1('0x2e')]['get'](_0x25a1('0x33')),_0x583837=_0x58b6ab['plugins'][_0x25a1('0x7')](_0x25a1('0x3'));function _0x4cdea4(_0xbcd137){return()=>{const _0x3997aa=_0x58b6ab[_0x25a1('0x22')]['get'](_0xbcd137);let _0x525422=Array['from'](_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x11')][_0x25a1('0x3f')][_0x25a1('0x2b')]());if(_0x954690(_0xbcd137)){_0x525422=_0x583837[_0x25a1('0x19')](_0x525422);const _0x3cb8bc=[];for(const _0x2f1fa9 of _0x525422)_0x583837[_0x25a1('0x27')](_0x2f1fa9)&&_0x3cb8bc['push'](_0x2f1fa9);_0x525422=_0x3cb8bc;}_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x34')](()=>{_0x12d855['markMultiRangeBlockFormat'](_0x525422,{'commandName':_0xbcd137,'commandParams':[{'forceValue':!_0x3997aa[_0x25a1('0x38')]}],'formatGroupId':_0x25a1('0x1a')},[],_0x25a1('0x1b'));});};}function _0x341605(_0xbb3d7){return()=>{const _0x42ca17=function(_0xb500a0){const _0x140d1b=(_0xb500a0=Array[_0x25a1('0xd')](_0xb500a0))[_0x25a1('0x30')](_0x62fd72=>!_0x62fd72[_0x25a1('0x10')](_0x25a1('0x39')));return _0x140d1b>-0x1&&(_0xb500a0=_0xb500a0['slice'](0x0,_0x140d1b)),_0xb500a0;}(_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x11')][_0x25a1('0x3f')][_0x25a1('0x2b')]()),_0x3f44c5=_0x42ca17[_0x42ca17[_0x25a1('0x35')]-0x1],_0x4de6fe=_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x48')][_0x25a1('0x1d')](_0x3f44c5)?_0x25a1('0x47'):'end',_0x23af53=_0x58b6ab[_0x25a1('0x45')]['createRange'](_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x23')](_0x42ca17[0x0],_0x25a1('0x16')),_0x58b6ab[_0x25a1('0x45')]['createPositionAt'](_0x3f44c5,_0x4de6fe));_0x58b6ab['model'][_0x25a1('0x34')](()=>{_0x12d855[_0x25a1('0x41')](_0x23af53,{'commandName':_0xbb3d7,'commandParams':[],'formatGroupId':_0x25a1('0x1a')},function(_0x1b46bd){const _0x18d26d=new Set();for(const _0x2adb32 of _0x1b46bd){let _0x598db3=_0x2adb32[_0x25a1('0x25')];for(;_0x598db3&&_0x598db3[_0x25a1('0x8')](_0x25a1('0x3a'))>_0x2adb32[_0x25a1('0x8')](_0x25a1('0x3a'));)_0x18d26d[_0x25a1('0x13')](_0x598db3),_0x598db3=_0x598db3[_0x25a1('0x25')];}return Array[_0x25a1('0xd')](_0x18d26d);}(_0x42ca17));});};}function _0x1bec41(_0x56d0b4){return()=>{const _0x2214de=_0x58b6ab['model'][_0x25a1('0x11')][_0x25a1('0x3f')]['getSelectedBlocks']()[_0x25a1('0xb')]()['value'],_0x19ba18=_0x58b6ab[_0x25a1('0x45')]['createPositionAt'](_0x2214de,_0x25a1('0x16')),_0x3d0374=_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x23')](_0x2214de,0x0),_0x3032ad=_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x4b')](_0x19ba18,_0x3d0374);_0x58b6ab['model'][_0x25a1('0x34')](()=>{_0x12d855['markBlockFormat'](_0x3032ad,{'commandName':_0x56d0b4,'commandParams':[],'formatGroupId':_0x25a1('0x1a')});});};}function _0x954690(_0x84eb27){const _0x46b616=_0x58b6ab[_0x25a1('0x22')][_0x25a1('0x7')](_0x25a1('0x1e'))[_0x25a1('0x38')],_0x2f9c27=_0x58b6ab[_0x25a1('0x22')][_0x25a1('0x7')](_0x25a1('0xa'))[_0x25a1('0x38')];return _0x25a1('0xa')===_0x84eb27?_0x46b616:_0x2f9c27;}_0x12d855['enableCommand'](_0x25a1('0xa'),_0x4cdea4(_0x25a1('0xa'))),_0x12d855[_0x25a1('0x31')](_0x25a1('0x1e'),_0x4cdea4(_0x25a1('0x1e'))),_0x12d855[_0x25a1('0x31')](_0x25a1('0x32'),_0x341605(_0x25a1('0x32'))),_0x12d855['enableCommand']('outdentList',_0x341605('outdentList')),_0x12d855['enableCommand']('splitListItemAfter',_0x1bec41('splitListItemAfter')),_0x12d855[_0x25a1('0x31')]('splitListItemBefore',_0x1bec41('splitListItemBefore')),_0x12d855[_0x25a1('0x17')]['registerElementLabel'](function(_0x4cb2f0){const _0x1a84e7=!_0x58b6ab[_0x25a1('0x45')]['schema'][_0x25a1('0x1d')](_0x4cb2f0),_0x4cf7af=_0x4cb2f0[_0x25a1('0x3e')],_0x5c0ee1=_0x4cb2f0[_0x25a1('0x25')],_0x19acee=_0x4cb2f0['getAttribute'](_0x25a1('0x39')),_0x5b4299=!_0x4cf7af||_0x4cf7af[_0x25a1('0x8')](_0x25a1('0x39'))!==_0x19acee,_0x158866=!_0x5c0ee1||_0x5c0ee1[_0x25a1('0x8')](_0x25a1('0x39'))!==_0x19acee;return _0x1a84e7&&_0x19acee&&_0x5b4299&&_0x158866;},_0xac8659=>_0x1cf6cc(_0x17eebf,_0x25a1('0x3c'),_0xac8659)),_0x12d855[_0x25a1('0x17')][_0x25a1('0x0')](function(_0x139151){const {data:_0x4626fb}=_0x139151;if(!_0x4626fb)return;let _0x541306,_0x5a0e04,_0x3519d9,_0x430214;switch(_0x4626fb[_0x25a1('0x2f')]){case _0x25a1('0x1e'):_0x3519d9=_0x4626fb[_0x25a1('0x15')][0x0][_0x25a1('0xc')],_0x430214=_0x954690(_0x4626fb[_0x25a1('0x2f')]),_0x541306=_0x3519d9?_0x25a1('0x37'):_0x25a1('0x44'),_0x430214&&(_0x541306=_0x25a1('0x46')),_0x5a0e04={'type':_0x25a1('0x18'),'content':_0x1cf6cc(_0x17eebf,_0x541306,_0x1cf6cc(_0x17eebf,_0x25a1('0x1c')))};break;case _0x25a1('0xa'):_0x3519d9=_0x4626fb['commandParams'][0x0][_0x25a1('0xc')],_0x430214=_0x954690(_0x4626fb[_0x25a1('0x2f')]),_0x541306=_0x3519d9?_0x25a1('0x37'):_0x25a1('0x44'),_0x430214&&(_0x541306=_0x25a1('0x46')),_0x5a0e04={'type':_0x25a1('0x18'),'content':_0x1cf6cc(_0x17eebf,_0x541306,_0x1cf6cc(_0x17eebf,'ELEMENT_NUMBERED_LIST'))};break;case _0x25a1('0x32'):_0x541306=_0x25a1('0x3b'),_0x5a0e04={'type':_0x25a1('0x18'),'content':_0x1cf6cc(_0x17eebf,_0x541306,_0x1cf6cc(_0x17eebf,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x541306=function(_0x53e615){const _0x49f3d1=_0x53e615['getFirstRange']();let _0x1223fa=_0x49f3d1[_0x25a1('0xf')][_0x25a1('0x9')];for(;_0x1223fa&&_0x49f3d1[_0x25a1('0x1f')](_0x1223fa);){if(_0x1223fa['getAttribute'](_0x25a1('0x3a'))>0x0)return!0x1;_0x1223fa=_0x1223fa[_0x25a1('0x25')];}return!0x0;}(_0x139151)?_0x1cf6cc(_0x17eebf,_0x25a1('0x44'),_0x1cf6cc(_0x17eebf,function(_0x368f0a){const _0x4543e6=_0x368f0a[_0x25a1('0x4a')]()[_0x25a1('0xf')][_0x25a1('0x9')];return'ELEMENT_'+_0x4543e6[_0x25a1('0x8')](_0x25a1('0x1a'))[_0x25a1('0x36')]()+_0x25a1('0x5');}(_0x139151))):_0x1cf6cc(_0x17eebf,_0x25a1('0x42'),_0x1cf6cc(_0x17eebf,'ELEMENT_LIST_ITEM')),_0x5a0e04={'type':_0x25a1('0x18'),'content':_0x541306};break;case _0x25a1('0x2d'):case _0x25a1('0x2a'):!0x1===_0x4626fb[_0x25a1('0xe')]&&(_0x541306=_0x25a1('0x26'),_0x5a0e04={'type':_0x25a1('0x28'),'content':_0x1cf6cc(_0x17eebf,_0x541306,_0x1cf6cc(_0x17eebf,'ELEMENT_LIST_ITEM'))});}return _0x5a0e04;}),_0x12d855[_0x25a1('0x40')][_0x25a1('0x12')](_0x25a1('0x4c'),'documentList',_0x25a1('0x1'),function(_0x1f2d54,_0x532fc5){const _0x433c5c=[];for(let _0xf19ed6 of _0x1f2d54)_0xf19ed6[_0x25a1('0xf')][_0x25a1('0x9')]===_0xf19ed6[_0x25a1('0x14')][_0x25a1('0x24')]&&(_0xf19ed6=_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x4b')](_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x23')](_0xf19ed6['start'][_0x25a1('0x9')],0x0))),_0x433c5c[_0x25a1('0x43')](_0xf19ed6);_0x58b6ab[_0x25a1('0x45')]['change'](_0xa72405=>{const _0x49e89f=_0x58b6ab[_0x25a1('0x45')][_0x25a1('0x11')][_0x25a1('0x3f')],_0xc5a90d=Array['from'](_0x49e89f[_0x25a1('0x2')]())[_0x25a1('0x29')](_0x11b12c=>_0x42558f[_0x25a1('0x3d')](_0x11b12c));_0xa72405['setSelection'](_0x433c5c),_0x58b6ab['commands'][_0x25a1('0x7')](_0x532fc5[_0x25a1('0x2f')])[_0x25a1('0x6')](),_0x532fc5[_0x25a1('0x15')][_0x25a1('0x43')]({'forceDefaultExecution':!0x0}),_0x58b6ab[_0x25a1('0x49')](_0x532fc5['commandName'],..._0x532fc5[_0x25a1('0x15')]),_0xa72405[_0x25a1('0x2c')](_0xc5a90d);for(const _0x18b4b5 of _0xc5a90d)_0x18b4b5[_0x25a1('0x4')]();});});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x2f98=['listStart','handleListStyleCommand','handleListReversedCommand','DocumentListUtils','startIndex','get','config','getListTypeFromListStyleType','change','DocumentListPropertiesEditing','bind','commandParams','_getSuggestionBlocks','plugins','handleDescriptions','editor','_getTranslationKeyForListStyle','*Change\x20to:*\x20%0','locale','hasAttribute','registerDescriptionCallback','TrackChangesEditing','afterInit','listReversed','expandListBlocksToCompleteList','listStyle','has','ELEMENT_','_LIST_','enableCommand','handleListStartCommand','toUpperCase','numbered','*Format:*\x20set\x20order\x20to\x20regular','markMultiRangeBlockFormat','replaceAll','reversed','isListItemBlock','push','listType','filter','format','*Format:*\x20set\x20start\x20index\x20to\x20%0','type','list.properties','from','commandName','getAttribute','model','isFirstBlockOfListItem'];(function(_0x422180,_0x2f98a0){const _0x326650=function(_0xe10119){while(--_0xe10119){_0x422180['push'](_0x422180['shift']());}};_0x326650(++_0x2f98a0);}(_0x2f98,0x17a));const _0x3266=function(_0x422180,_0x2f98a0){_0x422180=_0x422180-0x0;let _0x326650=_0x2f98[_0x422180];return _0x326650;};import{Plugin as _0x2ed9bb}from'ckeditor5/src/core';import{getTranslation as _0x281768}from'../utils/common-translations';export default class vt extends _0x2ed9bb{[_0x3266('0x2c')](){if(!this[_0x3266('0x25')][_0x3266('0x23')][_0x3266('0x30')](_0x3266('0x1f')))return;const _0x110990=this[_0x3266('0x25')][_0x3266('0x1c')][_0x3266('0x1b')](_0x3266('0x10')),_0x44d893=this[_0x3266('0x25')][_0x3266('0x23')][_0x3266('0x1b')](_0x3266('0x2b'));_0x110990['styles']&&_0x44d893[_0x3266('0x1')]('listStyle',this[_0x3266('0x17')][_0x3266('0x20')](this)),_0x110990[_0x3266('0x8')]&&_0x44d893[_0x3266('0x1')](_0x3266('0x2d'),this[_0x3266('0x18')]['bind'](this)),_0x110990[_0x3266('0x1a')]&&_0x44d893[_0x3266('0x1')](_0x3266('0x16'),this[_0x3266('0x2')][_0x3266('0x20')](this)),_0x44d893['_descriptionFactory'][_0x3266('0x2a')](this['handleDescriptions']['bind'](this));}[_0x3266('0x17')](_0x2bd987,_0x811887){const _0x4b0e90=this[_0x3266('0x25')][_0x3266('0x23')][_0x3266('0x1b')](_0x3266('0x2b')),_0x4c3c26=this[_0x3266('0x22')](_0x194303=>_0x194303[_0x3266('0x29')](_0x3266('0xb')));null!==_0x4c3c26&&this[_0x3266('0x25')][_0x3266('0x14')]['change'](()=>{_0x4b0e90[_0x3266('0x6')](_0x4c3c26,{'commandName':_0x3266('0x2f'),'commandParams':[{'type':_0x811887[_0x3266('0xf')]}],'formatGroupId':_0x3266('0x2f')});});}[_0x3266('0x18')](_0x2309ef,_0x38332c){const _0x347583=this[_0x3266('0x25')][_0x3266('0x23')][_0x3266('0x1b')](_0x3266('0x2b')),_0x1b8f6c=this[_0x3266('0x25')]['plugins'][_0x3266('0x1b')](_0x3266('0x19')),_0x3c6f63=this[_0x3266('0x22')](_0x34492e=>_0x1b8f6c[_0x3266('0x9')](_0x34492e)&&_0x3266('0x4')===_0x34492e['getAttribute'](_0x3266('0xb')));null!==_0x3c6f63&&this[_0x3266('0x25')]['model'][_0x3266('0x1e')](()=>{_0x347583[_0x3266('0x6')](_0x3c6f63,{'commandName':_0x3266('0x2d'),'commandParams':[{'reversed':_0x38332c[_0x3266('0x8')]}],'formatGroupId':_0x3266('0x2d')});});}['handleListStartCommand'](_0x46e5d1,_0x3709a2){const _0x2775ac=this[_0x3266('0x25')][_0x3266('0x23')][_0x3266('0x1b')]('TrackChangesEditing'),_0xf80cd6=this[_0x3266('0x25')][_0x3266('0x23')][_0x3266('0x1b')](_0x3266('0x19')),_0x15a1d6=this[_0x3266('0x22')](_0x47e5df=>_0xf80cd6[_0x3266('0x9')](_0x47e5df)&&_0x3266('0x4')===_0x47e5df[_0x3266('0x13')](_0x3266('0xb')));null!==_0x15a1d6&&this['editor'][_0x3266('0x14')][_0x3266('0x1e')](()=>{_0x2775ac['markMultiRangeBlockFormat'](_0x15a1d6,{'commandName':_0x3266('0x16'),'commandParams':[{'startIndex':_0x3709a2[_0x3266('0x1a')]}],'formatGroupId':_0x3266('0x16')});});}[_0x3266('0x24')](_0x57c743){const _0xb87302=this[_0x3266('0x25')][_0x3266('0x28')],{data:_0x34af36}=_0x57c743;if(!_0x34af36)return;let _0x31122e,_0x1cd23e;switch(_0x34af36[_0x3266('0x12')]){case _0x3266('0x2f'):_0x31122e=_0x3266('0x27'),_0x1cd23e={'type':'format','content':_0x281768(_0xb87302,_0x31122e,_0x281768(_0xb87302,this[_0x3266('0x26')](_0x34af36[_0x3266('0x21')][0x0]['type'])))};break;case _0x3266('0x2d'):_0x31122e=_0x34af36[_0x3266('0x21')][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':_0x3266('0x5'),_0x1cd23e={'type':_0x3266('0xd'),'content':_0x281768(_0xb87302,_0x31122e)};break;case _0x3266('0x16'):_0x31122e=_0x3266('0xe'),_0x1cd23e={'type':_0x3266('0xd'),'content':_0x281768(_0xb87302,_0x31122e,_0x34af36['commandParams'][0x0][_0x3266('0x1a')])};}return _0x1cd23e;}['_getSuggestionBlocks'](_0xff2860){const _0x5c220f=this[_0x3266('0x25')][_0x3266('0x23')]['get']('DocumentListUtils');let _0x410a6f=Array[_0x3266('0x11')](this[_0x3266('0x25')][_0x3266('0x14')]['document']['selection']['getSelectedBlocks']())[_0x3266('0xc')](_0xff2860);if(!_0x410a6f['length'])return null;_0x410a6f=_0x5c220f[_0x3266('0x2e')](_0x410a6f);const _0x15533d=[];for(const _0x3c7de8 of _0x410a6f)_0x5c220f[_0x3266('0x15')](_0x3c7de8)&&_0x15533d[_0x3266('0xa')](_0x3c7de8);return _0x15533d;}[_0x3266('0x26')](_0x4f7592){return _0x3266('0x31')+this[_0x3266('0x25')][_0x3266('0x23')][_0x3266('0x1b')]('DocumentListPropertiesUtils')[_0x3266('0x1d')](_0x4f7592)[_0x3266('0x3')]()+_0x3266('0x0')+_0x4f7592[_0x3266('0x3')]()[_0x3266('0x7')]('-','_');}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a1d=['markerNameToElements','requires','showSuggestionHighlights','model','document','writer','addMarker:suggestion:insertion','createRange','markerName','createPositionAt','markInsertion','parent','high','hasClass','commands','enableCommand','ck-suggestion-marker-split','end','afterExecute','options','editing','selection','split','downcastDispatcher','editor','TrackChangesEditing','removeMarker:suggestion:insertion','init','nextSibling','setSelection','get','remove'];(function(_0xf13762,_0x2a1de6){const _0x5394f4=function(_0x266128){while(--_0x266128){_0xf13762['push'](_0xf13762['shift']());}};_0x5394f4(++_0x2a1de6);}(_0x2a1d,0xa3));const _0x5394=function(_0xf13762,_0x2a1de6){_0xf13762=_0xf13762-0x0;let _0x5394f4=_0x2a1d[_0xf13762];return _0x5394f4;};import{Plugin as _0xbe6701}from'ckeditor5/src/core';import{Enter as _0x4f5270}from'ckeditor5/src/enter';import{LiveRange as _0xc539b4}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x44f27c}from'./utils';export default class H extends _0xbe6701{static get[_0x5394('0x1e')](){return[_0x4f5270];}[_0x5394('0x18')](){const _0x25853b=this[_0x5394('0x15')],_0x5eb8e2=_0x25853b['plugins'][_0x5394('0x1b')](_0x5394('0x16')),_0x2b882f=_0x25853b[_0x5394('0xb')][_0x5394('0x1b')]('enter');_0x5eb8e2[_0x5394('0xc')]('enter',()=>{_0x25853b[_0x5394('0x0')]['change'](_0x141039=>{const _0x52d239=_0x25853b[_0x5394('0x0')][_0x5394('0x1')][_0x5394('0x12')],_0x58d808=_0x52d239['getFirstPosition'](),_0x2cadc8=_0xc539b4['fromRange'](_0x52d239['getFirstRange']());if(_0x2b882f['enterBlock'](_0x141039)){const _0x4ad369=_0x25853b[_0x5394('0x0')][_0x5394('0x6')](_0x58d808[_0x5394('0x8')][_0x5394('0x19')],0x0),_0x481065=_0x141039[_0x5394('0x4')](_0x58d808,_0x4ad369);_0x5eb8e2[_0x5394('0x7')](_0x481065);}else _0x141039[_0x5394('0x1a')](_0x141039['createRange'](_0x2cadc8[_0x5394('0xe')]));_0x2cadc8['detach'](),_0x2b882f['fire'](_0x5394('0xf'),{'writer':_0x141039});});}),_0x25853b[_0x5394('0x11')][_0x5394('0x14')]['on'](_0x5394('0x3'),_0x44f27c(_0x25853b,_0x5394('0x13')),{'priority':_0x5394('0x9')}),_0x25853b['editing'][_0x5394('0x14')]['on'](_0x5394('0x17'),(_0x35ce67,_0x242096,_0x15108a)=>{const _0x5024e6=_0x15108a['mapper'][_0x5394('0x1d')](_0x242096['markerName']);if(_0x5024e6)for(const _0x3a35d4 of _0x5024e6)_0x3a35d4[_0x5394('0xa')](_0x5394('0xd'))&&(_0x15108a['mapper']['unbindElementFromMarkerName'](_0x3a35d4,_0x242096[_0x5394('0x5')]),_0x15108a[_0x5394('0x2')][_0x5394('0x1c')](_0x3a35d4));},{'priority':'high'}),_0x25853b['data'][_0x5394('0x14')]['on']('addMarker:suggestion:insertion',(_0x3e623c,_0x4ce530,_0x1f3ee7)=>{_0x1f3ee7[_0x5394('0x10')][_0x5394('0x1f')]&&_0x44f27c(_0x25853b,_0x5394('0x13'),{'showActiveMarker':!0x1})(_0x3e623c,_0x4ce530,_0x1f3ee7);},{'priority':_0x5394('0x9')});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x7147=['FindAndReplaceUtils','replace','getIntersection','get','findPrevious','end','start','createRange','TrackChangesEditing','suggestion:deletion','findByTextCallback','enableCommand','model','getRange','item','_isInDeletionRange','string','afterInit','markers','has','FindAndReplaceEditing','bind','editor','filter','plugins','createPositionAt','handleFindCommand'];(function(_0x3ce4b6,_0x714772){const _0x187ae3=function(_0x591ee6){while(--_0x591ee6){_0x3ce4b6['push'](_0x3ce4b6['shift']());}};_0x187ae3(++_0x714772);}(_0x7147,0x73));const _0x187a=function(_0x3ce4b6,_0x714772){_0x3ce4b6=_0x3ce4b6-0x0;let _0x187ae3=_0x7147[_0x3ce4b6];return _0x187ae3;};import{Plugin as _0x1cf471}from'ckeditor5/src/core';export default class W extends _0x1cf471{[_0x187a('0xa')](){if(!this[_0x187a('0xf')][_0x187a('0x11')][_0x187a('0xc')](_0x187a('0xd')))return;const _0x3220b6=this[_0x187a('0xf')][_0x187a('0x11')][_0x187a('0x17')](_0x187a('0x1'));_0x3220b6['enableCommand']('find',this[_0x187a('0x13')][_0x187a('0xe')](this)),_0x3220b6[_0x187a('0x4')]('findNext'),_0x3220b6[_0x187a('0x4')](_0x187a('0x18')),_0x3220b6[_0x187a('0x4')](_0x187a('0x15')),_0x3220b6[_0x187a('0x4')]('replaceAll');}[_0x187a('0x13')](_0xa32367,_0x5db8ee,_0x5c1eec){const _0x444aa0=this[_0x187a('0xf')][_0x187a('0x11')][_0x187a('0x17')](_0x187a('0x14'));void 0x0!==_0x5c1eec&&_0xa32367(_0x4c4027=>(_0x187a('0x9')==typeof _0x5db8ee?_0x444aa0[_0x187a('0x3')](_0x5db8ee,_0x5c1eec):_0x5db8ee)(_0x4c4027)[_0x187a('0x10')](_0x5c561f=>!0x1===this[_0x187a('0x8')](_0x5c561f,_0x4c4027[_0x187a('0x7')])),_0x5c1eec);}['_isInDeletionRange'](_0x35a6fe,_0x2881de){const _0x17d15f=this[_0x187a('0xf')][_0x187a('0x5')][_0x187a('0x0')](this[_0x187a('0xf')][_0x187a('0x5')][_0x187a('0x12')](_0x2881de,_0x35a6fe[_0x187a('0x1a')]),this[_0x187a('0xf')][_0x187a('0x5')]['createPositionAt'](_0x2881de,_0x35a6fe[_0x187a('0x19')]));for(const _0x9ed26d of this[_0x187a('0xf')][_0x187a('0x5')][_0x187a('0xb')]['getMarkersGroup'](_0x187a('0x2')))if(null!==_0x17d15f[_0x187a('0x16')](_0x9ed26d[_0x187a('0x6')]()))return!0x0;return!0x1;}}
|
package/src/integrations/font.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1843=['fontSize','config','toLowerCase','FontSizeEditing','document','isCollapsed','FontBackgroundColorEditing','*Reset\x20font\x20background\x20color*','fontBackgroundColor','*Set\x20font\x20size:*\x20%0','selection','enableCommand','plugins','find','editor','format','label','*Reset\x20font\x20color*','title','*Set\x20font\x20family:*\x20%0','fontFamily','get','value','model','FontSize','afterInit','TrackChangesEditing','commandName','change','fontColor.colors','_descriptionFactory','trim','getRanges','locale','commandParams','fontSize.options','fontColor','*Reset\x20font\x20size*','has','*Reset\x20font\x20family*'];(function(_0x22166c,_0x1843d9){const _0x51e6d0=function(_0x2a63e5){while(--_0x2a63e5){_0x22166c['push'](_0x22166c['shift']());}};_0x51e6d0(++_0x1843d9);}(_0x1843,0xf3));const _0x51e6=function(_0x22166c,_0x1843d9){_0x22166c=_0x22166c-0x0;let _0x51e6d0=_0x1843[_0x22166c];return _0x51e6d0;};import{Plugin as _0x5f555e}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5a8cc4}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x58c4b3}from'./utils';import{getTranslation as _0xf6b668}from'../utils/common-translations';const Yt=[{'pluginName':_0x51e6('0x0'),'commandName':_0x51e6('0x25')},{'pluginName':'FontFamilyEditing','commandName':_0x51e6('0x11')},{'pluginName':'FontColorEditing','commandName':_0x51e6('0x21')},{'pluginName':_0x51e6('0x3'),'commandName':_0x51e6('0x5')}];export default class J extends _0x5f555e{[_0x51e6('0x16')](){const _0x9cf61e=this[_0x51e6('0xb')][_0x51e6('0x1e')];for(const {pluginName:_0x2da6d9,commandName:_0x1b1f6f}of Yt)this[_0x51e6('0xb')][_0x51e6('0x9')][_0x51e6('0x23')](_0x2da6d9)&&this['_enableCommand'](_0x1b1f6f);this[_0x51e6('0xb')][_0x51e6('0x9')][_0x51e6('0x12')]('TrackChangesEditing')[_0x51e6('0x1b')]['registerDescriptionCallback'](_0x4a8081=>{const {data:_0x1b441b}=_0x4a8081;if(null!=_0x1b441b){if(_0x51e6('0x25')==_0x1b441b[_0x51e6('0x18')]){const _0x230a30=_0x1b441b['commandParams'][0x0][_0x51e6('0x13')];if(_0x230a30){const _0x20191d=this['editor']['plugins'][_0x51e6('0x12')](_0x51e6('0x15'))['normalizeSizeOptions'](this['editor']['config'][_0x51e6('0x12')](_0x51e6('0x20')))[_0x51e6('0xa')](_0x3bd907=>_0x3bd907[_0x51e6('0x14')]==_0x230a30)[_0x51e6('0xf')],_0x346ac3=this[_0x51e6('0xb')][_0x51e6('0x1e')]['_t'](_0x20191d)['toLowerCase']();return{'type':_0x51e6('0xc'),'content':_0xf6b668(_0x9cf61e,_0x51e6('0x6'),_0x346ac3)};}return{'type':_0x51e6('0xc'),'content':_0xf6b668(_0x9cf61e,_0x51e6('0x22'))};}if('fontFamily'==_0x1b441b['commandName']){const _0x5856aa=_0x1b441b[_0x51e6('0x1f')][0x0][_0x51e6('0x13')];return _0x5856aa?{'type':_0x51e6('0xc'),'content':_0xf6b668(_0x9cf61e,_0x51e6('0x10'),_0x5856aa)}:{'type':'format','content':_0xf6b668(_0x9cf61e,_0x51e6('0x24'))};}if(_0x51e6('0x21')==_0x1b441b[_0x51e6('0x18')]){const _0x21fa13=_0x1b441b[_0x51e6('0x1f')][0x0]['value'];if(_0x21fa13){const _0x96eb6e=_0x5a8cc4(this['editor'][_0x51e6('0x26')][_0x51e6('0x12')](_0x51e6('0x1a')))[_0x51e6('0xa')](_0xfb5ee3=>_0xfb5ee3[_0x51e6('0x14')]==_0x21fa13);let _0x4d2fe6=_0x21fa13,_0x36fae5='';return _0x96eb6e&&(_0x4d2fe6=_0x96eb6e[_0x51e6('0xd')],_0x36fae5=_0x9cf61e['_t'](_0x4d2fe6)['toLowerCase']()),{'type':'format','content':_0xf6b668(_0x9cf61e,'*Set\x20font\x20color:*\x20%0',_0x36fae5)['trim'](),'color':{'value':_0x21fa13,'title':_0x36fae5||_0x4d2fe6}};}return{'type':_0x51e6('0xc'),'content':_0xf6b668(_0x9cf61e,_0x51e6('0xe'))};}if(_0x51e6('0x5')==_0x1b441b[_0x51e6('0x18')]){const _0x28d967=_0x1b441b[_0x51e6('0x1f')][0x0]['value'];if(_0x28d967){const _0x4e58a9=_0x5a8cc4(this[_0x51e6('0xb')][_0x51e6('0x26')][_0x51e6('0x12')]('fontBackgroundColor.colors'))[_0x51e6('0xa')](_0x166c35=>_0x166c35[_0x51e6('0x14')]==_0x28d967);let _0x10340b=_0x28d967,_0x508af9='';return _0x4e58a9&&(_0x10340b=_0x4e58a9[_0x51e6('0xd')],_0x508af9=_0x9cf61e['_t'](_0x10340b)[_0x51e6('0x27')]()),{'type':_0x51e6('0xc'),'content':_0xf6b668(_0x9cf61e,'*Set\x20font\x20background\x20color:*\x20%0',_0x508af9)[_0x51e6('0x1c')](),'color':{'value':_0x28d967,'title':_0x508af9||_0x10340b}};}return{'type':'format','content':_0xf6b668(_0x9cf61e,_0x51e6('0x4'))};}}});}['_enableCommand'](_0x45b210){const _0x5c9a26=this[_0x51e6('0xb')];_0x5c9a26[_0x51e6('0x9')]['get'](_0x51e6('0x17'))[_0x51e6('0x8')](_0x45b210,(_0xee7f16,_0x588b23={})=>{const _0x1d1d6b=_0x5c9a26[_0x51e6('0x14')][_0x51e6('0x1')][_0x51e6('0x7')],_0x10fc37=_0x588b23[_0x51e6('0x13')];_0x1d1d6b[_0x51e6('0x2')]?_0xee7f16(_0x588b23):_0x5c9a26[_0x51e6('0x14')][_0x51e6('0x19')](()=>{const _0x26c673=Array['from'](_0x1d1d6b[_0x51e6('0x1d')]());for(const _0x2287f8 of _0x26c673){const _0x360bcc=_0x10fc37?[_0x2287f8]:_0x58c4b3(_0x45b210,_0x2287f8,_0x5c9a26[_0x51e6('0x14')]);for(const _0x1d573f of _0x360bcc)_0x5c9a26['plugins']['get']('TrackChangesEditing')['markInlineFormat'](_0x1d573f,{'commandName':_0x45b210,'commandParams':[{'value':_0x10fc37}]});}});});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x377b=['format','match','checkChild','registerElementLabel','schema','ELEMENT_HEADING_CUSTOM','locale','HeadingEditing','find','paragraph','document','ELEMENT_HEADING','registerDescriptionCallback','commandName','filter','model','get','afterInit','value','TrackChangesEditing','change','config','from','*Change\x20to:*\x20%0','heading','editor','plugins','title','parent','markBlockFormat','formatBlock','_descriptionFactory','name'];(function(_0x17fb52,_0x377b0b){const _0x5006a5=function(_0x2fea2b){while(--_0x2fea2b){_0x17fb52['push'](_0x17fb52['shift']());}};_0x5006a5(++_0x377b0b);}(_0x377b,0xc8));const _0x5006=function(_0x17fb52,_0x377b0b){_0x17fb52=_0x17fb52-0x0;let _0x5006a5=_0x377b[_0x17fb52];return _0x5006a5;};import{Plugin as _0x355c66}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xe53a5f}from'./utils';import{getTranslation as _0xf4cbdb}from'../utils/common-translations';export default class K extends _0x355c66{[_0x5006('0xf')](){const _0x3c9a06=this['editor'],_0x539926=_0x3c9a06[_0x5006('0x4')],_0xa454aa=_0x3c9a06[_0x5006('0x13')]['get']('heading.options');if(!_0x3c9a06[_0x5006('0x18')]['has'](_0x5006('0x5')))return;const _0x1b2375=_0x3c9a06[_0x5006('0x18')][_0x5006('0xe')](_0x5006('0x11'));_0x1b2375['enableCommand'](_0x5006('0x16'),(_0x437f09,_0x1e89c7)=>{const _0x525ca9=_0x1e89c7['value'],_0xd4dcf9=Array[_0x5006('0x14')](this[_0x5006('0x17')]['model'][_0x5006('0x8')]['selection']['getSelectedBlocks']())[_0x5006('0xc')](_0x1f7b4b=>function(_0x507424,_0x522378,_0x1e7de7){return _0x1e7de7[_0x5006('0x0')](_0x507424[_0x5006('0x1a')],_0x522378)&&!_0x1e7de7['isObject'](_0x507424)&&_0x507424[_0x5006('0x1e')]!=_0x522378;}(_0x1f7b4b,_0x525ca9,this[_0x5006('0x17')]['model'][_0x5006('0x2')]));_0x3c9a06[_0x5006('0xd')][_0x5006('0x12')](()=>{for(const _0x46e79a of _0xd4dcf9)_0x1b2375[_0x5006('0x1b')](_0x46e79a,{'commandName':'heading','commandParams':[_0x1e89c7],'formatGroupId':'blockName'},_0xe53a5f(_0x46e79a));});});for(const _0x195dd7 of _0xa454aa)_0x5006('0x7')!=_0x195dd7[_0x5006('0xd')]&&_0x1b2375[_0x5006('0x1d')][_0x5006('0x1')](_0x195dd7[_0x5006('0xd')],_0x389cd3=>{const _0x21754a=tn(_0x195dd7['model']);return null!==_0x21754a?_0xad9dd7(_0x389cd3,_0x21754a):_0x468d5a(_0x389cd3,_0x195dd7[_0x5006('0x19')]);});function _0xad9dd7(_0x3c45aa,_0x3b14fa){return _0xf4cbdb(_0x539926,_0x5006('0x9'),[_0x3c45aa,_0x3b14fa]);}function _0x468d5a(_0x29ebb4,_0x1a3c74){return _0xf4cbdb(_0x539926,_0x5006('0x3'),[_0x29ebb4,_0x1a3c74]);}_0x1b2375[_0x5006('0x1d')][_0x5006('0xa')](_0x15745a=>{const {type:_0x43953a,data:_0x2578a7}=_0x15745a;if(_0x5006('0x1c')==_0x43953a&&_0x2578a7&&_0x5006('0x16')==_0x2578a7[_0x5006('0xb')]){const _0x1fc6fe=_0x2578a7['commandParams'][0x0][_0x5006('0x10')],_0x24e9f2=tn(_0x1fc6fe);if(null!==_0x24e9f2)return{'type':_0x5006('0x1f'),'content':_0xf4cbdb(_0x539926,_0x5006('0x15'),_0xad9dd7(0x1,_0x24e9f2))};const _0x487cf1=_0xa454aa[_0x5006('0x6')](_0xf5536b=>_0xf5536b[_0x5006('0xd')]===_0x1fc6fe)[_0x5006('0x19')];return{'type':_0x5006('0x1f'),'content':_0xf4cbdb(_0x539926,_0x5006('0x15'),_0x468d5a(0x1,_0x487cf1))};}});}}function tn(_0x15e9c5){const _0x56b7d0=_0x15e9c5[_0x5006('0x20')](/^heading(\d+)$/);return _0x56b7d0?_0x56b7d0[0x1]:null;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30ec=['editor','FORMAT_HIGHLIGHT','push','plugins','color','config','selection','model','format','commandName','get','formatInline','item','backward','_descriptionFactory','toLowerCase','title','*Set\x20highlight:*\x20%0','markInlineFormat','getAttribute','TrackChangesEditing','has','afterInit','document','locale','hasAttribute','value','highlight'];(function(_0x464f6f,_0x30ec5e){const _0x448d86=function(_0x56e61c){while(--_0x56e61c){_0x464f6f['push'](_0x464f6f['shift']());}};_0x448d86(++_0x30ec5e);}(_0x30ec,0x18b));const _0x448d=function(_0x464f6f,_0x30ec5e){_0x464f6f=_0x464f6f-0x0;let _0x448d86=_0x30ec[_0x464f6f];return _0x448d86;};import{Plugin as _0x306e2c}from'ckeditor5/src/core';import{getTranslation as _0x21bd97}from'../utils/common-translations';import{getRangesWithAttribute as _0x5a69c7}from'./utils';export default class Q extends _0x306e2c{[_0x448d('0x13')](){const _0x463d15=this[_0x448d('0x19')];if(!_0x463d15[_0x448d('0x0')][_0x448d('0x12')]('HighlightEditing'))return;const _0x486bf2=_0x463d15['plugins'][_0x448d('0x7')](_0x448d('0x11'));_0x486bf2['enableCommand'](_0x448d('0x18'),(_0xa9604a,_0x486d4f={})=>{const _0x22d707=_0x463d15[_0x448d('0x4')][_0x448d('0x14')][_0x448d('0x3')],_0x10e923=_0x22d707[_0x448d('0x10')](_0x448d('0x18'));let _0x45d1a0=_0x486d4f[_0x448d('0x17')],_0x50007c=[];if(_0x22d707['isCollapsed']){const _0x424d18=_0x22d707['getFirstPosition']();if(!_0x22d707[_0x448d('0x16')]('highlight'))return void _0xa9604a(_0x486d4f);{const _0x396240=_0x2631ae=>_0x2631ae[_0x448d('0x9')][_0x448d('0x10')](_0x448d('0x18'))===_0x10e923,_0x4cbfb9=_0x424d18['getLastMatchingPosition'](_0x396240,{'direction':_0x448d('0xa')}),_0x442ee5=_0x424d18['getLastMatchingPosition'](_0x396240);_0x50007c=[_0x463d15[_0x448d('0x4')]['createRange'](_0x4cbfb9,_0x442ee5)],_0x45d1a0==_0x10e923&&(_0x45d1a0=null);}}else for(const _0x1b1314 of _0x22d707['getRanges']())_0x45d1a0?_0x50007c[_0x448d('0x1b')](_0x1b1314):_0x50007c[_0x448d('0x1b')](..._0x5a69c7(_0x448d('0x18'),_0x1b1314,_0x463d15[_0x448d('0x4')]));_0x463d15['model']['change'](()=>{for(const _0x3a0097 of _0x50007c)_0x486bf2[_0x448d('0xf')](_0x3a0097,{'commandName':_0x448d('0x18'),'commandParams':[{'value':_0x45d1a0}]});});});const _0x44c896=_0x463d15[_0x448d('0x15')];_0x486bf2[_0x448d('0xb')]['registerDescriptionCallback'](_0x2ae12c=>{const {type:_0xdf9f14,data:_0x2a86e3}=_0x2ae12c;if(_0x448d('0x8')==_0xdf9f14&&_0x2a86e3&&_0x448d('0x18')==_0x2a86e3[_0x448d('0x6')]){const _0x51b589=_0x2a86e3['commandParams'][0x0][_0x448d('0x17')];if(_0x51b589){const _0x552f30=_0x463d15[_0x448d('0x2')]['get']('highlight.options')['find'](_0x4beae6=>_0x4beae6[_0x448d('0x4')]==_0x51b589),_0x190a02=_0x44c896['_t'](_0x552f30[_0x448d('0xd')])[_0x448d('0xc')]();return{'type':_0x448d('0x5'),'content':_0x21bd97(_0x44c896,_0x448d('0xe'),_0x190a02),'color':{'value':_0x552f30[_0x448d('0x1')],'title':_0x552f30['title']}};}return{'type':'format','content':_0x21bd97(_0x44c896,'*Remove\x20highlight*',_0x21bd97(_0x44c896,_0x448d('0x1a')))};}});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3024=['HorizontalLineEditing','createEmptyElement','dataDowncast','registerElementLabel','ELEMENT_HORIZONTAL_LINE','horizontalLine','div','ck-horizontal-line','TrackChangesEditing','editor','get','createContainerElement','enableCommand','plugins','has','conversion'];(function(_0x50b0ca,_0x30242e){const _0x25a67e=function(_0x5f4624){while(--_0x5f4624){_0x50b0ca['push'](_0x50b0ca['shift']());}};_0x25a67e(++_0x30242e);}(_0x3024,0x1b7));const _0x25a6=function(_0x50b0ca,_0x30242e){_0x50b0ca=_0x50b0ca-0x0;let _0x25a67e=_0x3024[_0x50b0ca];return _0x25a67e;};import{Plugin as _0x115e7c}from'ckeditor5/src/core';import{getTranslation as _0x39dd75}from'../utils/common-translations';export default class V extends _0x115e7c{['afterInit'](){const _0x418aae=this[_0x25a6('0x2')];if(!_0x418aae[_0x25a6('0x6')][_0x25a6('0x7')](_0x25a6('0x9')))return;_0x418aae[_0x25a6('0x6')][_0x25a6('0x3')](_0x25a6('0x1'))[_0x25a6('0x5')](_0x25a6('0xe'));const _0x1e3a9e=_0x418aae['plugins'][_0x25a6('0x3')]('TrackChangesEditing'),_0x2bd1db=_0x418aae['locale'];_0x1e3a9e['_descriptionFactory'][_0x25a6('0xc')](_0x25a6('0xe'),_0x47f718=>_0x39dd75(_0x2bd1db,_0x25a6('0xd'),_0x47f718)),_0x418aae[_0x25a6('0x8')]['for'](_0x25a6('0xb'))['elementToStructure']({'model':_0x25a6('0xe'),'view':(_0x3d2a8d,{writer:_0x126d38,options:_0x282faa})=>{if(!_0x282faa['showSuggestionHighlights'])return;const _0x4f5e98=_0x126d38[_0x25a6('0x4')](_0x25a6('0xf')),_0x5fae01=_0x126d38[_0x25a6('0xa')]('hr');return _0x126d38['addClass'](_0x25a6('0x0'),_0x4f5e98),_0x126d38['insert'](_0x126d38['createPositionAt'](_0x4f5e98,0x0),_0x5fae01),_0x4f5e98;},'converterPriority':'high'});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b8a=['enableCommand','rawHtml','selection','getAttribute','*Change\x20%0\x20content*','has','change','ELEMENT_HTML_EMBED','markBlockFormat','registerElementLabel','plugins','getSelectedElement','element','commandName','cancel','_descriptionFactory','model','document','afterInit','editor','get','htmlEmbed','HtmlEmbed','rawHtmlApi','getCustomProperty','value','TrackChangesEditing','format'];(function(_0x470ec5,_0x3b8a59){const _0x39e498=function(_0x368f2f){while(--_0x368f2f){_0x470ec5['push'](_0x470ec5['shift']());}};_0x39e498(++_0x3b8a59);}(_0x3b8a,0x18e));const _0x39e4=function(_0x470ec5,_0x3b8a59){_0x470ec5=_0x470ec5-0x0;let _0x39e498=_0x3b8a[_0x470ec5];return _0x39e498;};import{Plugin as _0x31972e}from'ckeditor5/src/core';import{getTranslation as _0x5e79d0}from'../utils/common-translations';export default class X extends _0x31972e{[_0x39e4('0xc')](){const _0x1aba21=this[_0x39e4('0xd')];if(!_0x1aba21[_0x39e4('0x4')][_0x39e4('0x1b')](_0x39e4('0x10')))return;const _0x521883=_0x1aba21[_0x39e4('0x4')]['get'](_0x39e4('0x14')),_0x438260=_0x1aba21['locale'],_0x13991f=_0x1aba21['editing']['view']['document'][_0x39e4('0x18')];_0x521883[_0x39e4('0x9')][_0x39e4('0x3')]('rawHtml',_0x255d17=>_0x5e79d0(_0x438260,_0x39e4('0x1'),_0x255d17)),_0x1aba21['plugins'][_0x39e4('0xe')](_0x39e4('0x14'))[_0x39e4('0x16')](_0x39e4('0xf'),(_0x193f21,_0x4b9622)=>{const _0x1fe490=_0x1aba21[_0x39e4('0xa')],_0x47b068=_0x1fe490[_0x39e4('0xb')]['selection'];_0x1fe490[_0x39e4('0x0')](()=>{const _0x2dccfc=function(_0x1e0c69){const _0xf5c8fe=_0x1e0c69[_0x39e4('0x5')]();if(_0xf5c8fe&&_0xf5c8fe['is'](_0x39e4('0x6'),_0x39e4('0x17')))return _0x1e0c69[_0x39e4('0x5')]();return null;}(_0x47b068);if(!_0x2dccfc)return void _0x193f21(null);const _0x5109a1=_0x2dccfc[_0x39e4('0x19')](_0x39e4('0x13'))||'';if(void 0x0===_0x4b9622)return;if(_0x4b9622===_0x5109a1)return;_0x521883[_0x39e4('0x2')](_0x2dccfc,{'commandName':_0x39e4('0xf'),'commandParams':[_0x4b9622]}),_0x13991f[_0x39e4('0x5')]()[_0x39e4('0x12')](_0x39e4('0x11'))[_0x39e4('0x8')]();});}),_0x521883[_0x39e4('0x9')]['registerDescriptionCallback'](_0xc496fe=>{const {data:_0x24be97}=_0xc496fe;if(_0x24be97&&_0x39e4('0xf')==_0x24be97[_0x39e4('0x7')]){const _0x350b53=_0x5e79d0(_0x438260,_0x39e4('0x1'));return{'type':_0x39e4('0x15'),'content':_0x5e79d0(_0x438260,_0x39e4('0x1a'),_0x350b53)};}});}}
|