@ckeditor/ckeditor5-track-changes 37.0.1 → 38.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/ar.po +15 -1
- package/lang/translations/az.po +11 -1
- package/lang/translations/bg.po +11 -1
- package/lang/translations/bn.po +11 -1
- package/lang/translations/ca.po +11 -1
- package/lang/translations/cs.po +13 -1
- package/lang/translations/da.po +11 -1
- package/lang/translations/de.po +11 -1
- package/lang/translations/el.po +11 -1
- package/lang/translations/en-au.po +31 -21
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +12 -1
- package/lang/translations/et.po +11 -1
- package/lang/translations/fi.po +11 -1
- package/lang/translations/fr.po +12 -1
- package/lang/translations/gl.po +11 -1
- package/lang/translations/he.po +13 -1
- package/lang/translations/hi.po +11 -1
- package/lang/translations/hr.po +34 -23
- package/lang/translations/hu.po +11 -1
- package/lang/translations/id.po +10 -1
- package/lang/translations/it.po +12 -1
- package/lang/translations/ja.po +10 -1
- package/lang/translations/ko.po +10 -1
- package/lang/translations/lt.po +13 -1
- package/lang/translations/lv.po +12 -1
- package/lang/translations/ms.po +10 -1
- package/lang/translations/nl.po +11 -1
- package/lang/translations/no.po +11 -1
- package/lang/translations/pl.po +13 -1
- package/lang/translations/pt-br.po +12 -1
- package/lang/translations/pt.po +12 -1
- package/lang/translations/ro.po +12 -1
- package/lang/translations/ru.po +13 -1
- package/lang/translations/sk.po +13 -1
- package/lang/translations/sr-latn.po +15 -4
- package/lang/translations/sr.po +33 -22
- package/lang/translations/sv.po +11 -1
- package/lang/translations/th.po +10 -1
- package/lang/translations/tk.po +11 -1
- package/lang/translations/tr.po +11 -1
- package/lang/translations/tt.po +10 -1
- package/lang/translations/uk.po +13 -1
- package/lang/translations/ur.po +11 -1
- package/lang/translations/vi.po +10 -1
- package/lang/translations/zh-cn.po +10 -1
- package/lang/translations/zh.po +10 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +13 -0
- package/src/integrations/formatpainter.js +23 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -0
- package/src/integrations/tableofcontents.js +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -0
- package/src/integrations/template.js +23 -0
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +23 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +23 -5
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17cc=['listType','expandListBlocksToCompleteList','ELEMENT_','handleDescriptions','bind','commandParams','isListItemBlock','editor','enableCommand','list.properties','_getTranslationKeyForListStyle','length','listReversed','handleListStyleCommand','_LIST_','push','from','model','listStart','listStyle','*Format:*\x20set\x20order\x20to\x20reversed','_getSuggestionBlocksForListStyle','selection','format','change','_descriptionFactory','reversed','TrackChangesEditing','_getSuggestionBlocks','locale','type','handleListReversedCommand','document','startIndex','DocumentListPropertiesUtils','plugins','afterInit','getSelectedBlocks','getAttribute','*Format:*\x20set\x20start\x20index\x20to\x20%0','markMultiRangeBlockFormat','commandName','get','toUpperCase','DocumentListUtils','numbered','filter','DocumentListPropertiesEditing','isFirstBlockOfListItem'];(function(_0x33cb8e,_0x17cc40){const _0x75dd4d=function(_0x170328){while(--_0x170328){_0x33cb8e['push'](_0x33cb8e['shift']());}};_0x75dd4d(++_0x17cc40);}(_0x17cc,0x13d));const _0x75dd=function(_0x33cb8e,_0x17cc40){_0x33cb8e=_0x33cb8e-0x0;let _0x75dd4d=_0x17cc[_0x33cb8e];return _0x75dd4d;};import{Plugin as _0xb364c}from'ckeditor5/src/core';import{getTranslation as _0x2f5674}from'../utils/common-translations';export default class At extends _0xb364c{[_0x75dd('0xd')](){if(!this['editor'][_0x75dd('0xc')]['has'](_0x75dd('0x18')))return;const _0x1cc9d6=this[_0x75dd('0x21')]['config'][_0x75dd('0x13')](_0x75dd('0x23')),_0x1c7859=this[_0x75dd('0x21')]['plugins'][_0x75dd('0x13')]('TrackChangesEditing');_0x1cc9d6['styles']&&_0x1c7859[_0x75dd('0x22')]('listStyle',this[_0x75dd('0x27')][_0x75dd('0x1e')](this)),_0x1cc9d6[_0x75dd('0x3')]&&_0x1c7859[_0x75dd('0x22')](_0x75dd('0x26'),this[_0x75dd('0x8')][_0x75dd('0x1e')](this)),_0x1cc9d6[_0x75dd('0xa')]&&_0x1c7859[_0x75dd('0x22')](_0x75dd('0x2c'),this['handleListStartCommand']['bind'](this)),_0x1c7859[_0x75dd('0x2')]['registerDescriptionCallback'](this['handleDescriptions'][_0x75dd('0x1e')](this));}['handleListStyleCommand'](_0x4d0bf0,_0x26feac={}){const _0x21b4d8=this[_0x75dd('0x21')][_0x75dd('0xc')][_0x75dd('0x13')](_0x75dd('0x4')),_0x2ec4ae=this[_0x75dd('0x2f')]();this[_0x75dd('0x21')][_0x75dd('0x2b')][_0x75dd('0x1')](()=>{_0x21b4d8[_0x75dd('0x11')](_0x2ec4ae,{'commandName':_0x75dd('0x2d'),'commandParams':[{'type':_0x26feac['type']}],'formatGroupId':_0x75dd('0x2d')});});}[_0x75dd('0x8')](_0x1559d,_0x2cc16c={}){const _0x639d66=this[_0x75dd('0x21')][_0x75dd('0xc')][_0x75dd('0x13')](_0x75dd('0x4')),_0x1b6dc8=this[_0x75dd('0x21')][_0x75dd('0xc')]['get'](_0x75dd('0x15')),_0x85e775=this[_0x75dd('0x5')](_0x40dfd7=>_0x1b6dc8[_0x75dd('0x20')](_0x40dfd7)&&_0x75dd('0x16')===_0x40dfd7[_0x75dd('0xf')](_0x75dd('0x1a')));null!==_0x85e775&&this['editor'][_0x75dd('0x2b')][_0x75dd('0x1')](()=>{_0x639d66[_0x75dd('0x11')](_0x85e775,{'commandName':_0x75dd('0x26'),'commandParams':[{'reversed':_0x2cc16c[_0x75dd('0x3')]}],'formatGroupId':_0x75dd('0x26')});});}['handleListStartCommand'](_0x243db8,_0x2a1f99={}){const _0x19ade6=this['editor'][_0x75dd('0xc')][_0x75dd('0x13')]('TrackChangesEditing'),_0x3a4f99=this['editor'][_0x75dd('0xc')][_0x75dd('0x13')](_0x75dd('0x15')),_0x3949b4=this['_getSuggestionBlocks'](_0x39bc95=>_0x3a4f99[_0x75dd('0x20')](_0x39bc95)&&_0x75dd('0x16')===_0x39bc95[_0x75dd('0xf')](_0x75dd('0x1a')));null!==_0x3949b4&&this[_0x75dd('0x21')]['model'][_0x75dd('0x1')](()=>{_0x19ade6['markMultiRangeBlockFormat'](_0x3949b4,{'commandName':_0x75dd('0x2c'),'commandParams':[{'startIndex':_0x2a1f99[_0x75dd('0xa')]}],'formatGroupId':'listStart'});});}[_0x75dd('0x1d')](_0x4d6f10){const _0x2b901f=this[_0x75dd('0x21')][_0x75dd('0x6')],{data:_0x25e8d1}=_0x4d6f10;if(!_0x25e8d1)return;let _0x594ded,_0x50441d;switch(_0x25e8d1[_0x75dd('0x12')]){case _0x75dd('0x2d'):_0x594ded='*Change\x20to:*\x20%0',_0x50441d={'type':_0x75dd('0x0'),'content':_0x2f5674(_0x2b901f,_0x594ded,_0x2f5674(_0x2b901f,this[_0x75dd('0x24')](_0x25e8d1[_0x75dd('0x1f')][0x0][_0x75dd('0x7')])))};break;case _0x75dd('0x26'):_0x594ded=_0x25e8d1[_0x75dd('0x1f')][0x0][_0x75dd('0x3')]?_0x75dd('0x2e'):'*Format:*\x20set\x20order\x20to\x20regular',_0x50441d={'type':_0x75dd('0x0'),'content':_0x2f5674(_0x2b901f,_0x594ded)};break;case _0x75dd('0x2c'):_0x594ded=_0x75dd('0x10'),_0x50441d={'type':_0x75dd('0x0'),'content':_0x2f5674(_0x2b901f,_0x594ded,_0x25e8d1[_0x75dd('0x1f')][0x0][_0x75dd('0xa')])};}return _0x50441d;}[_0x75dd('0x2f')](){const _0x348808=this[_0x75dd('0x21')][_0x75dd('0xc')][_0x75dd('0x13')](_0x75dd('0x15'));let _0x3b1125=Array['from'](this[_0x75dd('0x21')]['model'][_0x75dd('0x9')][_0x75dd('0x30')][_0x75dd('0xe')]());return _0x3b1125[_0x75dd('0x29')](..._0x348808[_0x75dd('0x1b')](_0x3b1125)),_0x3b1125=[...new Set(_0x3b1125)],_0x3b1125;}[_0x75dd('0x5')](_0x550b9b){const _0x184d7b=this['editor'][_0x75dd('0xc')][_0x75dd('0x13')](_0x75dd('0x15'));let _0x3578bf=Array[_0x75dd('0x2a')](this[_0x75dd('0x21')][_0x75dd('0x2b')][_0x75dd('0x9')][_0x75dd('0x30')][_0x75dd('0xe')]())[_0x75dd('0x17')](_0x550b9b);if(!_0x3578bf[_0x75dd('0x25')])return null;_0x3578bf=_0x184d7b[_0x75dd('0x1b')](_0x3578bf);const _0x41b3a4=[];for(const _0x8c545e of _0x3578bf)_0x184d7b[_0x75dd('0x19')](_0x8c545e)&&_0x41b3a4[_0x75dd('0x29')](_0x8c545e);return _0x41b3a4;}[_0x75dd('0x24')](_0xbeaa08){return _0x75dd('0x1c')+this[_0x75dd('0x21')]['plugins'][_0x75dd('0x13')](_0x75dd('0xb'))['getListTypeFromListStyleType'](_0xbeaa08)[_0x75dd('0x14')]()+_0x75dd('0x28')+_0xbeaa08[_0x75dd('0x14')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2592=['remove','showSuggestionHighlights','markInsertion','TrackChangesEditing','data','get','writer','selection','split','afterExecute','editing','markerNameToElements','parent','addMarker:suggestion:insertion','removeMarker:suggestion:insertion','setSelection','editor','hasClass','fire','unbindElementFromMarkerName','model','high','createRange','change','bind','init','getFirstRange','enter','nextSibling','enableCommand','commands','options','detach','downcastDispatcher','requires','markerName','mapper'];(function(_0x19094c,_0x259215){const _0x318045=function(_0x326a83){while(--_0x326a83){_0x19094c['push'](_0x19094c['shift']());}};_0x318045(++_0x259215);}(_0x2592,0xcd));const _0x3180=function(_0x19094c,_0x259215){_0x19094c=_0x19094c-0x0;let _0x318045=_0x2592[_0x19094c];return _0x318045;};import{Plugin as _0x7a39ad}from'ckeditor5/src/core';import{Enter as _0x430db}from'ckeditor5/src/enter';import{LiveRange as _0x3e24c7}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0xf373bd}from'./utils';export default class q extends _0x7a39ad{static get[_0x3180('0xe')](){return[_0x430db];}[_0x3180('0x5')](){const _0x579d9c=this[_0x3180('0x21')],_0x1c2821=_0x579d9c['plugins'][_0x3180('0x16')](_0x3180('0x14')),_0x50c745=_0x579d9c[_0x3180('0xa')][_0x3180('0x16')]('enter');_0x1c2821[_0x3180('0x9')](_0x3180('0x7'),()=>{_0x579d9c[_0x3180('0x0')][_0x3180('0x3')](_0x3d45da=>{const _0x59d213=_0x579d9c['model']['document'][_0x3180('0x18')],_0x15ccde=_0x59d213['getFirstPosition'](),_0x169e04=_0x3e24c7['fromRange'](_0x59d213[_0x3180('0x6')]());if(_0x50c745['enterBlock'](_0x3d45da)){const _0x111477=_0x579d9c['model']['createPositionAt'](_0x15ccde[_0x3180('0x1d')][_0x3180('0x8')],0x0),_0x3c34fa=_0x3d45da[_0x3180('0x2')](_0x15ccde,_0x111477);_0x1c2821[_0x3180('0x13')](_0x3c34fa);}else _0x3d45da[_0x3180('0x20')](_0x3d45da[_0x3180('0x2')](_0x169e04['end']));_0x169e04[_0x3180('0xc')](),_0x50c745[_0x3180('0x23')](_0x3180('0x1a'),{'writer':_0x3d45da});});}),_0x579d9c[_0x3180('0x1b')]['downcastDispatcher']['on'](_0x3180('0x1e'),_0xf373bd(_0x579d9c,'split'),{'priority':_0x3180('0x1')}),_0x579d9c['editing']['downcastDispatcher']['on'](_0x3180('0x1f'),(_0x2c3006,_0x5324ae,_0x5c1c35)=>{const _0x4606da=_0x5c1c35[_0x3180('0x10')][_0x3180('0x1c')](_0x5324ae['markerName']);if(_0x4606da)for(const _0x216a75 of _0x4606da)_0x216a75[_0x3180('0x22')]('ck-suggestion-marker-split')&&(_0x5c1c35[_0x3180('0x10')][_0x3180('0x24')](_0x216a75,_0x5324ae[_0x3180('0xf')]),_0x5c1c35[_0x3180('0x17')][_0x3180('0x11')](_0x216a75));},{'priority':_0x3180('0x1')}),_0x579d9c[_0x3180('0x15')][_0x3180('0xd')]['on'](_0x3180('0x1e'),(_0x5e6844,_0x3d23a4,_0x9d3a2d)=>{_0x9d3a2d[_0x3180('0xb')][_0x3180('0x12')]&&_0xf373bd(_0x579d9c,_0x3180('0x19'),{'showActiveMarker':!0x1})[_0x3180('0x4')](this)(_0x5e6844,_0x3d23a4,_0x9d3a2d);},{'priority':_0x3180('0x1')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15a5=['replaceAll','createRange','model','item','getIntersection','get','has','getMarkersGroup','find','createPositionAt','handleFindCommand','enableCommand','plugins','bind','_isInDeletionRange','TrackChangesEditing','string','end','editor','findPrevious','start','suggestion:deletion','findNext','replace','filter','findByTextCallback'];(function(_0x37e41d,_0x15a561){const _0xa8532e=function(_0x1e0482){while(--_0x1e0482){_0x37e41d['push'](_0x37e41d['shift']());}};_0xa8532e(++_0x15a561);}(_0x15a5,0x14e));const _0xa853=function(_0x37e41d,_0x15a561){_0x37e41d=_0x37e41d-0x0;let _0xa8532e=_0x15a5[_0x37e41d];return _0xa8532e;};import{Plugin as _0x5c0f88}from'ckeditor5/src/core';export default class z extends _0x5c0f88{['afterInit'](){if(!this[_0xa853('0x16')]['plugins'][_0xa853('0xa')]('FindAndReplaceEditing'))return;const _0x5d33f3=this[_0xa853('0x16')]['plugins'][_0xa853('0x9')](_0xa853('0x13'));_0x5d33f3['enableCommand'](_0xa853('0xc'),this[_0xa853('0xe')][_0xa853('0x11')](this)),_0x5d33f3[_0xa853('0xf')](_0xa853('0x0')),_0x5d33f3[_0xa853('0xf')](_0xa853('0x17')),_0x5d33f3[_0xa853('0xf')](_0xa853('0x1')),_0x5d33f3['enableCommand'](_0xa853('0x4'));}[_0xa853('0xe')](_0xd8f0a7,_0x33e754,_0x5c756f={}){const _0x56f835=this[_0xa853('0x16')][_0xa853('0x10')][_0xa853('0x9')]('FindAndReplaceUtils');void 0x0!==_0x5c756f&&_0xd8f0a7(_0x51e1aa=>(_0xa853('0x14')==typeof _0x33e754?_0x56f835[_0xa853('0x3')](_0x33e754,_0x5c756f):_0x33e754)(_0x51e1aa)[_0xa853('0x2')](_0x2a270d=>!0x1===this[_0xa853('0x12')](_0x2a270d,_0x51e1aa[_0xa853('0x7')])),_0x5c756f);}[_0xa853('0x12')](_0x2f0711,_0x3d8f11){const _0x51a7b1=this['editor'][_0xa853('0x6')][_0xa853('0x5')](this[_0xa853('0x16')][_0xa853('0x6')][_0xa853('0xd')](_0x3d8f11,_0x2f0711[_0xa853('0x18')]),this[_0xa853('0x16')]['model'][_0xa853('0xd')](_0x3d8f11,_0x2f0711[_0xa853('0x15')]));for(const _0x5dfb8d of this['editor'][_0xa853('0x6')]['markers'][_0xa853('0xb')](_0xa853('0x19')))if(null!==_0x51a7b1[_0xa853('0x8')](_0x5dfb8d['getRange']()))return!0x0;return!0x1;}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bb8=['fontColor','config','get','isCollapsed','fontFamily','normalizeSizeOptions','enableCommand','has','fontSize','label','*Reset\x20font\x20family*','*Reset\x20font\x20color*','FontFamilyEditing','value','title','_enableCommand','change','*Set\x20font\x20background\x20color:*\x20%0','FontBackgroundColorEditing','model','editor','fontBackgroundColor','*Set\x20font\x20color:*\x20%0','locale','*Reset\x20font\x20background\x20color*','FontColorEditing','trim','markInlineFormat','afterInit','format','plugins','commandName','registerDescriptionCallback','commandParams','FontSizeEditing','TrackChangesEditing','fontColor.colors','*Set\x20font\x20size:*\x20%0','toLowerCase','selection','getRanges','document','*Reset\x20font\x20size*','fontSize.options','fontBackgroundColor.colors','_descriptionFactory','find'];(function(_0x3ed6a2,_0x4bb842){const _0x4a21e4=function(_0x50f657){while(--_0x50f657){_0x3ed6a2['push'](_0x3ed6a2['shift']());}};_0x4a21e4(++_0x4bb842);}(_0x4bb8,0x16c));const _0x4a21=function(_0x3ed6a2,_0x4bb842){_0x3ed6a2=_0x3ed6a2-0x0;let _0x4a21e4=_0x4bb8[_0x3ed6a2];return _0x4a21e4;};import{Plugin as _0x4dfffc}from'ckeditor5/src/core';import{normalizeColorOptions as _0x31a404}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x3370be}from'./utils';import{getTranslation as _0x47330d}from'../utils/common-translations';const Zt=[{'pluginName':_0x4a21('0x2e'),'commandName':_0x4a21('0x14')},{'pluginName':_0x4a21('0x18'),'commandName':_0x4a21('0x10')},{'pluginName':_0x4a21('0x25'),'commandName':_0x4a21('0xc')},{'pluginName':_0x4a21('0x1e'),'commandName':'fontBackgroundColor'}];export default class H extends _0x4dfffc{[_0x4a21('0x28')](){const _0x5bcd49=this[_0x4a21('0x20')][_0x4a21('0x23')];for(const {pluginName:_0x51c021,commandName:_0x3a5c74}of Zt)this[_0x4a21('0x20')][_0x4a21('0x2a')][_0x4a21('0x13')](_0x51c021)&&this[_0x4a21('0x1b')](_0x3a5c74);this['editor'][_0x4a21('0x2a')]['get'](_0x4a21('0x0'))[_0x4a21('0xa')][_0x4a21('0x2c')](_0x2e4050=>{const _0x47d58e=_0x5bcd49['t'],{data:_0x3260e7}=_0x2e4050;if(null!=_0x3260e7){if(_0x4a21('0x14')==_0x3260e7['commandName']){const _0x2eb27e=_0x3260e7[_0x4a21('0x2d')][0x0][_0x4a21('0x19')];if(_0x2eb27e){const _0x372ad0=_0x47d58e(this[_0x4a21('0x20')][_0x4a21('0x2a')][_0x4a21('0xe')]('FontSize')[_0x4a21('0x11')](this['editor'][_0x4a21('0xd')][_0x4a21('0xe')](_0x4a21('0x8')))[_0x4a21('0xb')](_0x3cc08f=>_0x3cc08f[_0x4a21('0x1f')]==_0x2eb27e)[_0x4a21('0x1a')])[_0x4a21('0x3')]();return{'type':'format','content':_0x47330d(_0x5bcd49,_0x4a21('0x2'),_0x372ad0)};}return{'type':_0x4a21('0x29'),'content':_0x47330d(_0x5bcd49,_0x4a21('0x7'))};}if(_0x4a21('0x10')==_0x3260e7[_0x4a21('0x2b')]){const _0x986d2d=_0x3260e7[_0x4a21('0x2d')][0x0]['value'];return _0x986d2d?{'type':_0x4a21('0x29'),'content':_0x47330d(_0x5bcd49,'*Set\x20font\x20family:*\x20%0',_0x986d2d)}:{'type':_0x4a21('0x29'),'content':_0x47330d(_0x5bcd49,_0x4a21('0x16'))};}if(_0x4a21('0xc')==_0x3260e7[_0x4a21('0x2b')]){const _0xf7502c=_0x3260e7[_0x4a21('0x2d')][0x0][_0x4a21('0x19')];if(_0xf7502c){const _0x429510=_0x31a404(this[_0x4a21('0x20')][_0x4a21('0xd')][_0x4a21('0xe')](_0x4a21('0x1')))['find'](_0x106439=>_0x106439['model']==_0xf7502c);let _0x2b2c61=_0xf7502c,_0x462ae8='';return _0x429510&&(_0x2b2c61=_0x429510[_0x4a21('0x15')],_0x462ae8=_0x47d58e(_0x2b2c61)[_0x4a21('0x3')]()),{'type':'format','content':_0x47330d(_0x5bcd49,_0x4a21('0x22'),_0x462ae8)[_0x4a21('0x26')](),'color':{'value':_0xf7502c,'title':_0x462ae8||_0x2b2c61}};}return{'type':'format','content':_0x47330d(_0x5bcd49,_0x4a21('0x17'))};}if(_0x4a21('0x21')==_0x3260e7[_0x4a21('0x2b')]){const _0x5dce9e=_0x3260e7[_0x4a21('0x2d')][0x0][_0x4a21('0x19')];if(_0x5dce9e){const _0xcfc772=_0x31a404(this['editor'][_0x4a21('0xd')]['get'](_0x4a21('0x9')))['find'](_0x3241e2=>_0x3241e2['model']==_0x5dce9e);let _0x37dc49=_0x5dce9e,_0x28fa2a='';return _0xcfc772&&(_0x37dc49=_0xcfc772['label'],_0x28fa2a=_0x47d58e(_0x37dc49)['toLowerCase']()),{'type':_0x4a21('0x29'),'content':_0x47330d(_0x5bcd49,_0x4a21('0x1d'),_0x28fa2a)[_0x4a21('0x26')](),'color':{'value':_0x5dce9e,'title':_0x28fa2a||_0x37dc49}};}return{'type':_0x4a21('0x29'),'content':_0x47330d(_0x5bcd49,_0x4a21('0x24'))};}}});}['_enableCommand'](_0x449a8a){const _0x32497b=this[_0x4a21('0x20')];_0x32497b[_0x4a21('0x2a')][_0x4a21('0xe')]('TrackChangesEditing')[_0x4a21('0x12')](_0x449a8a,(_0x41119a,_0xd1de76={})=>{const _0x3be145=_0x32497b[_0x4a21('0x1f')][_0x4a21('0x6')][_0x4a21('0x4')],_0x4e4149=_0xd1de76[_0x4a21('0x19')];_0x3be145[_0x4a21('0xf')]?_0x41119a(_0xd1de76):_0x32497b['model'][_0x4a21('0x1c')](()=>{const _0x13b06b=Array['from'](_0x3be145[_0x4a21('0x5')]());for(const _0x626431 of _0x13b06b){const _0x13a707=_0x4e4149?[_0x626431]:_0x3370be(_0x449a8a,_0x626431,_0x32497b[_0x4a21('0x1f')]);for(const _0x19ef40 of _0x13a707)_0x32497b['plugins'][_0x4a21('0xe')](_0x4a21('0x0'))[_0x4a21('0x27')](_0x19ef40,{'commandName':_0x449a8a,'commandParams':[{'value':_0x4e4149}]});}});});}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/formatpainter
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for the Format Painter feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesFormatPainter extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -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 _0x1c0c=['enableCommand','locale','keys','pasteFormat','FontSize','commands','fontSize.options','*Remove\x20all\x20formatting*','label','editor','config','copyFormat','isFormatting','format','createRange','getRanges','afterInit','commandParams','length','word','getSelectedBlocks','getLastPosition','commandName','entries','getAttributeProperties','selection','getItems','isBlock','slice','modifySelection','getFirstPosition','fontColor','get','join','fontColor.colors','TrackChangesEditing','markInlineFormat','getAttributes','normalizeSizeOptions','isCollapsed','model','forward','change','fontBackgroundColor','from','plugins','createSelection','boolean','toUpperCase','toLowerCase'];(function(_0x588bc3,_0x1c0c20){const _0xd469a3=function(_0x5d67f5){while(--_0x5d67f5){_0x588bc3['push'](_0x588bc3['shift']());}};_0xd469a3(++_0x1c0c20);}(_0x1c0c,0x7b));const _0xd469=function(_0x588bc3,_0x1c0c20){_0x588bc3=_0x588bc3-0x0;let _0xd469a3=_0x1c0c[_0x588bc3];return _0xd469a3;};import{Plugin as _0x3b09f7}from'ckeditor5/src/core';import{normalizeColorOptions as _0xccaa89}from'ckeditor5/src/ui';import{first as _0x590002}from'ckeditor5/src/utils';import{getTranslation as _0x1c3ef8}from'../utils/common-translations';export default class W extends _0x3b09f7{[_0xd469('0x2b')](){const _0x34c3d0=this[_0xd469('0x24')],_0x4a091b=_0x34c3d0[_0xd469('0x11')],_0x1d695e=_0x4a091b['document'][_0xd469('0x2')],_0x42f208=_0x34c3d0[_0xd469('0x16')][_0xd469('0x9')]('TrackChangesEditing'),_0x9dbe7c=_0x34c3d0[_0xd469('0x1c')],_0x331dd4=_0x34c3d0['commands'][_0xd469('0x9')](_0xd469('0x26')),_0x10a65a=_0x34c3d0[_0xd469('0x20')]['get'](_0xd469('0x1e'));_0x331dd4&&_0x10a65a&&(_0x42f208[_0xd469('0x1b')](_0xd469('0x1e'),(_0x460907,_0x37ef58={})=>{const _0x395817=_0x37ef58;_0x4a091b[_0xd469('0x13')](()=>{const _0x3de22e=Array[_0xd469('0x15')](_0x1d695e[_0xd469('0x2a')]()),_0xb7f0d2=_0x1d695e[_0xd469('0x10')]?[ro(_0x4a091b,_0x1d695e)]:_0x3de22e,_0x2b95c8=!!_0x590002(function*(_0x6b3e15,_0x15bfe2){const _0x1d6595=_0x2c92a6=>!!_0x590002(function*(_0xd32ef7,_0x493a23){for(const [_0x47210b]of _0xd32ef7[_0xd469('0xe')]()){const _0x138f12=_0x493a23[_0xd469('0x1')](_0x47210b);_0x138f12&&_0x138f12[_0xd469('0x27')]&&(yield _0x47210b);}}(_0x2c92a6,_0x15bfe2));for(const _0x165dda of _0x6b3e15[_0xd469('0x2a')]())for(const _0x42c8c6 of _0x165dda[_0xd469('0x3')]())!_0x15bfe2[_0xd469('0x4')](_0x42c8c6)&&_0x1d6595(_0x42c8c6)&&(yield _0x42c8c6);for(const _0x81ddea of _0x6b3e15[_0xd469('0x2f')]())_0x1d6595(_0x81ddea)&&(yield _0x81ddea);_0x1d6595(_0x6b3e15)&&(yield _0x6b3e15);}(_0x1d695e,_0x4a091b['schema']));if(_0x2b95c8||0x0!==Object[_0xd469('0x1d')](_0x395817)[_0xd469('0x2d')])for(const _0x3bcbf3 of _0xb7f0d2)_0x42f208[_0xd469('0xd')](_0x3bcbf3,{'commandName':_0xd469('0x1e'),'commandParams':[_0x395817]});});}),_0x42f208['_descriptionFactory']['registerDescriptionCallback'](_0x1cfa5b=>{const {data:_0x5f1c16}=_0x1cfa5b;if(_0x5f1c16&&_0xd469('0x1e')===_0x5f1c16[_0xd469('0x31')]){const _0x5a1297=[],_0x28f235=_0x5f1c16[_0xd469('0x2c')][0x0];for(const [_0x388fe5,_0x1eefa1]of Object[_0xd469('0x0')](_0x28f235))_0x5a1297['push'](no(_0x34c3d0,_0x388fe5,_0x1eefa1));return _0x5a1297[_0xd469('0x2d')]?{'type':_0xd469('0x28'),'content':_0x1c3ef8(_0x9dbe7c,'*Set\x20format\x20to:*\x20%0',_0x5a1297[_0xd469('0xa')](',\x20'))}:{'type':_0xd469('0x28'),'content':_0x1c3ef8(_0x9dbe7c,_0xd469('0x22'))};}}),_0x34c3d0[_0xd469('0x16')]['get'](_0xd469('0xc'))[_0xd469('0x1b')](_0xd469('0x26')));}}function ro(_0x52d3c9,_0x1469d2){const _0x54bd67=_0x52d3c9[_0xd469('0x17')](_0x1469d2);_0x52d3c9[_0xd469('0x6')](_0x54bd67,{'unit':_0xd469('0x2e'),'direction':'backward'});const _0x16b944=_0x54bd67[_0xd469('0x7')]();_0x52d3c9['modifySelection'](_0x54bd67,{'unit':_0xd469('0x2e'),'direction':_0xd469('0x12')});const _0x114a71=_0x54bd67[_0xd469('0x30')]();return _0x52d3c9[_0xd469('0x29')](_0x16b944,_0x114a71);}function no(_0x2ab0b5,_0x34d7c7,_0x5caa3e){const _0x15d261=_0x2ab0b5['locale']['t'],_0x230b0d=_0x34d7c7['split'](/(?=[A-Z])/)[_0xd469('0xa')]('\x20'),_0x4eaf67=_0x15d261(_0x230b0d['charAt'](0x0)[_0xd469('0x19')]()+_0x230b0d[_0xd469('0x5')](0x1))[_0xd469('0x1a')]();if(_0xd469('0x18')==typeof _0x5caa3e)return _0x4eaf67;if(_0xd469('0x8')===_0x34d7c7||_0xd469('0x14')===_0x34d7c7){const _0x376afd=_0xccaa89(_0x2ab0b5[_0xd469('0x25')][_0xd469('0x9')](_0xd469('0xb')))['find'](_0x4756ed=>_0x4756ed[_0xd469('0x11')]==_0x5caa3e);return _0x4eaf67+'\x20('+(_0x376afd?_0x15d261(_0x376afd[_0xd469('0x23')])['toLowerCase']():_0x5caa3e)+')';}if('fontSize'===_0x34d7c7&&isNaN(parseFloat(_0x5caa3e))){const _0x39f95a=_0x2ab0b5[_0xd469('0x16')]['get'](_0xd469('0x1f'))[_0xd469('0xf')](_0x2ab0b5[_0xd469('0x25')][_0xd469('0x9')](_0xd469('0x21')))['find'](_0x166fc1=>_0x166fc1['model']==_0x5caa3e);return _0x4eaf67+'\x20('+(_0x39f95a?_0x15d261(_0x39f95a['title'])['toLowerCase']():_0x5caa3e)+')';}return _0x4eaf67+'\x20('+_0x5caa3e+')';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2edf=['enableCommand','change','formatBlock','title','heading','heading.options','filter','find','model','ELEMENT_HEADING','format','from','getSelectedBlocks','parent','name','match','has','commandParams','plugins','registerElementLabel','isObject','paragraph','_descriptionFactory','ELEMENT_HEADING_CUSTOM','markBlockFormat','editor','schema','get','registerDescriptionCallback','value','locale'];(function(_0x22b377,_0x2edf57){const _0x1ad466=function(_0x2c4a89){while(--_0x2c4a89){_0x22b377['push'](_0x22b377['shift']());}};_0x1ad466(++_0x2edf57);}(_0x2edf,0xf5));const _0x1ad4=function(_0x22b377,_0x2edf57){_0x22b377=_0x22b377-0x0;let _0x1ad466=_0x2edf[_0x22b377];return _0x1ad466;};import{Plugin as _0x255a77}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x435d78}from'./utils';import{getTranslation as _0x2475de}from'../utils/common-translations';export default class J extends _0x255a77{['afterInit'](){const _0x197d95=this[_0x1ad4('0x1c')],_0x1845a6=_0x197d95[_0x1ad4('0x2')],_0x2959a7=_0x197d95['config'][_0x1ad4('0x1e')](_0x1ad4('0x8'));if(!_0x197d95['plugins'][_0x1ad4('0x13')]('HeadingEditing'))return;const _0x4fd6b0=_0x197d95[_0x1ad4('0x15')][_0x1ad4('0x1e')]('TrackChangesEditing');_0x4fd6b0[_0x1ad4('0x3')](_0x1ad4('0x7'),(_0x361593,_0x2f2c03)=>{const _0x411706=_0x2f2c03['value'],_0x52e37d=Array[_0x1ad4('0xe')](this[_0x1ad4('0x1c')]['model']['document']['selection'][_0x1ad4('0xf')]())[_0x1ad4('0x9')](_0x16ce70=>function(_0x5f48ae,_0x569e1f,_0x56f78f){return _0x56f78f['checkChild'](_0x5f48ae[_0x1ad4('0x10')],_0x569e1f)&&!_0x56f78f[_0x1ad4('0x17')](_0x5f48ae)&&_0x5f48ae[_0x1ad4('0x11')]!=_0x569e1f;}(_0x16ce70,_0x411706,this[_0x1ad4('0x1c')][_0x1ad4('0xb')][_0x1ad4('0x1d')]));_0x197d95['model'][_0x1ad4('0x4')](()=>{for(const _0x336248 of _0x52e37d)_0x4fd6b0[_0x1ad4('0x1b')](_0x336248,{'commandName':_0x1ad4('0x7'),'commandParams':[_0x2f2c03],'formatGroupId':'blockName'},_0x435d78(_0x336248));});});for(const _0x275601 of _0x2959a7)_0x1ad4('0x18')!=_0x275601[_0x1ad4('0xb')]&&_0x4fd6b0[_0x1ad4('0x19')][_0x1ad4('0x16')](_0x275601[_0x1ad4('0xb')],_0x3d95a6=>{const _0x489bb8=nn(_0x275601[_0x1ad4('0xb')]);return null!==_0x489bb8?_0x551063(_0x3d95a6,_0x489bb8):_0x337301(_0x3d95a6,_0x275601[_0x1ad4('0x6')]);});function _0x551063(_0x1f7e9c,_0x4797c0){return _0x2475de(_0x1845a6,_0x1ad4('0xc'),[_0x1f7e9c,_0x4797c0]);}function _0x337301(_0x8bf75c,_0x137791){return _0x2475de(_0x1845a6,_0x1ad4('0x1a'),[_0x8bf75c,_0x137791]);}_0x4fd6b0[_0x1ad4('0x19')][_0x1ad4('0x0')](_0x11ce85=>{const {type:_0x2d4a7f,data:_0x6787f2}=_0x11ce85;if(_0x1ad4('0x5')==_0x2d4a7f&&_0x6787f2&&_0x1ad4('0x7')==_0x6787f2['commandName']){const _0x37a172=_0x6787f2[_0x1ad4('0x14')][0x0][_0x1ad4('0x1')],_0x5e624b=nn(_0x37a172);if(null!==_0x5e624b)return{'type':'format','content':_0x2475de(_0x1845a6,'*Change\x20to:*\x20%0',_0x551063(0x1,_0x5e624b))};const _0x525474=_0x2959a7[_0x1ad4('0xa')](_0x520d6c=>_0x520d6c[_0x1ad4('0xb')]===_0x37a172)[_0x1ad4('0x6')];return{'type':_0x1ad4('0xd'),'content':_0x2475de(_0x1845a6,'*Change\x20to:*\x20%0',_0x337301(0x1,_0x525474))};}});}}function nn(_0x360095){const _0x2e4ac3=_0x360095[_0x1ad4('0x12')](/^heading(\d+)$/);return _0x2e4ac3?_0x2e4ac3[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8a1b=['format','get','config','selection','FORMAT_HIGHLIGHT','HighlightEditing','createRange','getRanges','commandParams','model','getLastMatchingPosition','getFirstPosition','locale','getAttribute','plugins','value','toLowerCase','has','*Remove\x20highlight*','title','push','item','enableCommand','hasAttribute','color','find','formatInline','highlight','change','TrackChangesEditing','editor','commandName'];(function(_0x2aba96,_0x8a1b6b){const _0x418401=function(_0x2da1e6){while(--_0x2da1e6){_0x2aba96['push'](_0x2aba96['shift']());}};_0x418401(++_0x8a1b6b);}(_0x8a1b,0x117));const _0x4184=function(_0x2aba96,_0x8a1b6b){_0x2aba96=_0x2aba96-0x0;let _0x418401=_0x8a1b[_0x2aba96];return _0x418401;};import{Plugin as _0x229725}from'ckeditor5/src/core';import{getTranslation as _0x35f18a}from'../utils/common-translations';import{getRangesWithAttribute as _0x1704df}from'./utils';export default class K extends _0x229725{['afterInit'](){const _0x3dbdff=this[_0x4184('0x7')];if(!_0x3dbdff[_0x4184('0x17')][_0x4184('0x1a')](_0x4184('0xe')))return;const _0x51f3dd=_0x3dbdff['plugins']['get'](_0x4184('0x6'));_0x51f3dd[_0x4184('0x1f')](_0x4184('0x4'),(_0x26cf4f,_0x1b6e5a={})=>{const _0x1baa73=_0x3dbdff[_0x4184('0x12')]['document'][_0x4184('0xc')],_0x404c7d=_0x1baa73[_0x4184('0x16')](_0x4184('0x4'));let _0x533a62=_0x1b6e5a[_0x4184('0x18')],_0x358384=[];if(_0x1baa73['isCollapsed']){const _0x5dffba=_0x1baa73[_0x4184('0x14')]();if(!_0x1baa73[_0x4184('0x0')](_0x4184('0x4')))return void _0x26cf4f(_0x1b6e5a);{const _0x3f7c6f=_0xef7417=>_0xef7417[_0x4184('0x1e')][_0x4184('0x16')](_0x4184('0x4'))===_0x404c7d,_0x2823d3=_0x5dffba[_0x4184('0x13')](_0x3f7c6f,{'direction':'backward'}),_0x19194f=_0x5dffba[_0x4184('0x13')](_0x3f7c6f);_0x358384=[_0x3dbdff['model'][_0x4184('0xf')](_0x2823d3,_0x19194f)],_0x533a62==_0x404c7d&&(_0x533a62=null);}}else for(const _0xd59a40 of _0x1baa73[_0x4184('0x10')]())_0x533a62?_0x358384[_0x4184('0x1d')](_0xd59a40):_0x358384[_0x4184('0x1d')](..._0x1704df(_0x4184('0x4'),_0xd59a40,_0x3dbdff['model']));_0x3dbdff[_0x4184('0x12')][_0x4184('0x5')](()=>{for(const _0x323311 of _0x358384)_0x51f3dd['markInlineFormat'](_0x323311,{'commandName':_0x4184('0x4'),'commandParams':[{'value':_0x533a62}]});});});const _0x448db3=_0x3dbdff[_0x4184('0x15')];_0x51f3dd['_descriptionFactory']['registerDescriptionCallback'](_0x56af4a=>{const {type:_0xbe8ecd,data:_0x34dc8f}=_0x56af4a;if(_0x4184('0x3')==_0xbe8ecd&&_0x34dc8f&&_0x4184('0x4')==_0x34dc8f[_0x4184('0x8')]){const _0x2f1f8c=_0x448db3['t'],_0x23900f=_0x34dc8f[_0x4184('0x11')][0x0]['value'];if(_0x23900f){const _0x509066=_0x3dbdff[_0x4184('0xb')][_0x4184('0xa')]('highlight.options')[_0x4184('0x2')](_0x38ff53=>_0x38ff53[_0x4184('0x12')]==_0x23900f),_0x104cfb=_0x2f1f8c(_0x509066['title'])[_0x4184('0x19')]();return{'type':_0x4184('0x9'),'content':_0x35f18a(_0x448db3,'*Set\x20highlight:*\x20%0',_0x104cfb),'color':{'value':_0x509066[_0x4184('0x1')],'title':_0x509066[_0x4184('0x1c')]}};}return{'type':'format','content':_0x35f18a(_0x448db3,_0x4184('0x1b'),_0x35f18a(_0x448db3,_0x4184('0xd')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3115=['enableCommand','createEmptyElement','addClass','createContainerElement','get','registerElementLabel','ck-horizontal-line','showSuggestionHighlights','TrackChangesEditing','horizontalLine','dataDowncast','ELEMENT_HORIZONTAL_LINE','plugins','for','elementToStructure','createPositionAt','insert'];(function(_0x5c8fc9,_0x311551){const _0x238916=function(_0xca4026){while(--_0xca4026){_0x5c8fc9['push'](_0x5c8fc9['shift']());}};_0x238916(++_0x311551);}(_0x3115,0x1e9));const _0x2389=function(_0x5c8fc9,_0x311551){_0x5c8fc9=_0x5c8fc9-0x0;let _0x238916=_0x3115[_0x5c8fc9];return _0x238916;};import{Plugin as _0x3ceff9}from'ckeditor5/src/core';import{getTranslation as _0x20033d}from'../utils/common-translations';export default class Q extends _0x3ceff9{['afterInit'](){const _0xaf8200=this['editor'];if(!_0xaf8200[_0x2389('0x10')]['has']('HorizontalLineEditing'))return;_0xaf8200[_0x2389('0x10')][_0x2389('0x8')]('TrackChangesEditing')[_0x2389('0x4')](_0x2389('0xd'));const _0x253694=_0xaf8200['plugins'][_0x2389('0x8')](_0x2389('0xc')),_0x3ac829=_0xaf8200['locale'];_0x253694['_descriptionFactory'][_0x2389('0x9')]('horizontalLine',_0x4e9504=>_0x20033d(_0x3ac829,_0x2389('0xf'),_0x4e9504)),_0xaf8200['conversion'][_0x2389('0x0')](_0x2389('0xe'))[_0x2389('0x1')]({'model':'horizontalLine','view':(_0x6cbe8a,{writer:_0x360b79,options:_0x4194b9})=>{if(!_0x4194b9[_0x2389('0xb')])return null;const _0x165950=_0x360b79[_0x2389('0x7')]('div'),_0x15254d=_0x360b79[_0x2389('0x5')]('hr');return _0x360b79[_0x2389('0x6')](_0x2389('0xa'),_0x165950),_0x360b79[_0x2389('0x3')](_0x360b79[_0x2389('0x2')](_0x165950,0x0),_0x15254d),_0x165950;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3726=['element','rawHtmlApi','HtmlEmbed','commandName','_descriptionFactory','editor','rawHtml','enableCommand','htmlEmbed','locale','get','ELEMENT_HTML_EMBED','selection','change','document','getSelectedElement','value','cancel','plugins','has','TrackChangesEditing','getCustomProperty','registerElementLabel','markBlockFormat','format','model'];(function(_0x45bf83,_0x37267d){const _0x1c2321=function(_0x17fc99){while(--_0x17fc99){_0x45bf83['push'](_0x45bf83['shift']());}};_0x1c2321(++_0x37267d);}(_0x3726,0x189));const _0x1c23=function(_0x45bf83,_0x37267d){_0x45bf83=_0x45bf83-0x0;let _0x1c2321=_0x3726[_0x45bf83];return _0x1c2321;};import{Plugin as _0x119141}from'ckeditor5/src/core';import{getTranslation as _0x1915e9}from'../utils/common-translations';export default class V extends _0x119141{['afterInit'](){const _0xc4cb4c=this[_0x1c23('0x2')];if(!_0xc4cb4c[_0x1c23('0xf')][_0x1c23('0x10')](_0x1c23('0x19')))return;const _0x3d7a5e=_0xc4cb4c[_0x1c23('0xf')][_0x1c23('0x7')](_0x1c23('0x11')),_0x3445c3=_0xc4cb4c[_0x1c23('0x6')],_0x194c57=_0xc4cb4c['editing']['view']['document'][_0x1c23('0x9')];_0x3d7a5e[_0x1c23('0x1')][_0x1c23('0x13')](_0x1c23('0x3'),_0x1bdf8b=>_0x1915e9(_0x3445c3,_0x1c23('0x8'),_0x1bdf8b)),_0xc4cb4c[_0x1c23('0xf')][_0x1c23('0x7')](_0x1c23('0x11'))[_0x1c23('0x4')](_0x1c23('0x5'),(_0x3d7f9e,_0x2ee870)=>{const _0x567fbe=_0xc4cb4c[_0x1c23('0x16')],_0x5aeb00=_0x567fbe[_0x1c23('0xb')][_0x1c23('0x9')];_0x567fbe[_0x1c23('0xa')](()=>{const _0x12918e=function(_0x537d5c){const _0x46445b=_0x537d5c[_0x1c23('0xc')]();if(_0x46445b&&_0x46445b['is'](_0x1c23('0x17'),_0x1c23('0x3')))return _0x537d5c['getSelectedElement']();return null;}(_0x5aeb00);if(!_0x12918e)return void _0x3d7f9e(null);const _0x1c90e0=_0x12918e['getAttribute'](_0x1c23('0xd'))||'';if(void 0x0===_0x2ee870)return;if(_0x2ee870===_0x1c90e0)return;_0x3d7a5e[_0x1c23('0x14')](_0x12918e,{'commandName':_0x1c23('0x5'),'commandParams':[_0x2ee870]}),_0x194c57[_0x1c23('0xc')]()[_0x1c23('0x12')](_0x1c23('0x18'))[_0x1c23('0xe')]();});}),_0x3d7a5e[_0x1c23('0x1')]['registerDescriptionCallback'](_0x285e5e=>{const {data:_0x27661a}=_0x285e5e;if(_0x27661a&&_0x1c23('0x5')==_0x27661a[_0x1c23('0x0')]){const _0x530865=_0x1915e9(_0x3445c3,_0x1c23('0x8'));return{'type':_0x1c23('0x15'),'content':_0x1915e9(_0x3445c3,'*Change\x20%0\x20content*',_0x530865)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1a22=['start','_splitMarkerName','_descriptionFactory','registerPostFixer','Users','value','refresh','toNext','Block\x20image\x20to\x20inline\x20image','backward','formatInline','change','fromPosition','end','*Remove\x20image\x20text\x20alternative*','imageStyle','hasSuggestion','createRangeOn','commands','enableCommand','resizeImage','markInlineFormat','document','differ','insertion','discardSuggestion','getNearestSelectionRange','next','getAttribute','newRange','forEach','accept','convertInlineImageToBlock','FORMAT_SIDE_IMAGE','detach','ImageEditing','isBlockImage','createRange','markInsertion','markBlockFormat','getContainedElement','toggleImageCaption','*Reset\x20image\x20width*','element','imageTypeInline','deletion','Inline\x20image\x20to\x20block\x20image','registerElementLabel','name','from','subType','editor','_suggestionFactory','registerDescriptionCallback','join','previous','format','find','chain','commandParams','getClosestSelectedImageElement','*Format:*\x20%0','author','width','model','getChangedMarkers','ImageUtils','isBefore','forward','locale','isInContent','title','*Set\x20image\x20text\x20alternative:*\x20%0','ImageBlockEditing','addObject','findIndex','imageTextAlternative','hasAttribute','formatBlock','*Set\x20image\x20width:*\x20%0','imageStylePreApply','ImageCaptionUtils','getSuggestion','ImageStyleEditing','selection','registerCustomCallback','getSuggestionCallback','suggestion','getFirstRange','commandName','isOwn','plugins','imageTypeBlock','ImageInlineEditing','imageBlock','ELEMENT_INLINE_IMAGE','type','commandReversedParams','ELEMENT_CAPTION','getSuggestions','imageStylePostApply','imageInline','get','convertBlockImageToInline','schema','_findSuggestions','isEqual','caption','isIntersecting','imageCaption','shouldConvertImageType','toPrevious','ImageCaptionEditing','getCaptionFromImageModelElement','side','has','isInlineImage','isCollapsed','filter','discard','length','uploadImage'];(function(_0x5881e9,_0x1a22ee){const _0xd62a61=function(_0x25a0ea){while(--_0x25a0ea){_0x5881e9['push'](_0x5881e9['shift']());}};_0xd62a61(++_0x1a22ee);}(_0x1a22,0x1d8));const _0xd62a=function(_0x5881e9,_0x1a22ee){_0x5881e9=_0x5881e9-0x0;let _0xd62a61=_0x1a22[_0x5881e9];return _0xd62a61;};import{Plugin as _0xfa4741}from'ckeditor5/src/core';import{LivePosition as _0x57bf7e}from'ckeditor5/src/engine';import{uid as _0x289e26}from'ckeditor5/src/utils';import{getTranslation as _0x326d54}from'../utils/common-translations';export default class V extends _0xfa4741{['afterInit'](){const _0xae0880=this[_0xd62a('0x43')];if(!_0xae0880['plugins']['has'](_0xd62a('0x33')))return;const _0x33f8b7=_0xae0880[_0xd62a('0x6b')][_0xd62a('0x76')]('TrackChangesEditing'),_0x33eafd=_0xae0880['plugins'][_0xd62a('0x76')](_0xd62a('0x52')),_0x3a1f41={},_0xa59cfc=_0xae0880[_0xd62a('0x55')];if(_0x33f8b7[_0xd62a('0x23')]('insertImage'),_0x33f8b7[_0xd62a('0x12')]['registerElementLabel'](_0xd62a('0x6e'),_0x3fca11=>_0x326d54(_0xa59cfc,'ELEMENT_IMAGE',_0x3fca11)),_0x33f8b7[_0xd62a('0x12')]['registerElementLabel'](_0xd62a('0x75'),_0x4a6bda=>_0x326d54(_0xa59cfc,_0xd62a('0x6f'),_0x4a6bda)),_0x33f8b7[_0xd62a('0x12')][_0xd62a('0x3f')](_0xd62a('0x1'),()=>_0x326d54(_0xa59cfc,_0xd62a('0x72'))),_0xae0880[_0xd62a('0x6b')][_0xd62a('0x9')]('ImageUploadEditing')&&_0x33f8b7[_0xd62a('0x23')](_0xd62a('0xf')),_0xae0880[_0xd62a('0x6b')][_0xd62a('0x9')](_0xd62a('0x59'))&&_0xae0880['plugins'][_0xd62a('0x9')](_0xd62a('0x6d'))&&(_0x33f8b7[_0xd62a('0x23')](_0xd62a('0x3c'),(_0x4ed82a,_0x5e1c00)=>{const _0x37c09e=_0x33eafd[_0xd62a('0x4c')](_0xae0880[_0xd62a('0x50')]['document'][_0xd62a('0x64')]);_0xae0880['model'][_0xd62a('0x1b')](()=>{_0x33f8b7[_0xd62a('0x37')](_0x37c09e,{'commandName':_0xd62a('0x3c'),'commandParams':[_0x5e1c00]},[],_0xd62a('0x77'));});}),_0x33f8b7[_0xd62a('0x23')](_0xd62a('0x6c'),(_0x2a923c,_0x33817e)=>{_0xae0880[_0xd62a('0x50')][_0xd62a('0x1b')](_0x3c96db=>{let _0x12ff09=_0x33eafd[_0xd62a('0x4c')](_0xae0880[_0xd62a('0x50')]['document'][_0xd62a('0x64')]),_0x1d5a9f=_0x3c96db[_0xd62a('0x21')](_0x12ff09);const _0x2602ba=_0x57bf7e[_0xd62a('0x1c')](_0x1d5a9f[_0xd62a('0x10')],_0xd62a('0x5')),_0x16d294=_0x57bf7e['fromPosition'](_0x1d5a9f['end'],_0xd62a('0x17'));_0x33f8b7['forceDefaultExecution'](()=>_0x2a923c(_0x33817e)),_0x12ff09=_0x33eafd[_0xd62a('0x4c')](_0xae0880[_0xd62a('0x50')][_0xd62a('0x26')][_0xd62a('0x64')]),_0x1d5a9f=_0x3c96db[_0xd62a('0x21')](_0x12ff09);const _0x13fe1c=_0x3c96db['createRange'](_0x2602ba,_0x16d294);_0x2602ba[_0xd62a('0x32')](),_0x16d294[_0xd62a('0x32')](),_0x33f8b7[_0xd62a('0x37')](_0x12ff09,{'commandName':_0xd62a('0x3c'),'commandParams':[]},[],_0xd62a('0x30')),_0x13fe1c[_0xd62a('0x10')][_0xd62a('0x53')](_0x1d5a9f[_0xd62a('0x10')])&&_0x33f8b7[_0xd62a('0x36')](_0x3c96db['createRange'](_0x13fe1c[_0xd62a('0x10')],_0x1d5a9f[_0xd62a('0x10')]),'convertInlineImageToBlock'),_0x1d5a9f[_0xd62a('0x1d')][_0xd62a('0x53')](_0x13fe1c[_0xd62a('0x1d')])&&_0x33f8b7[_0xd62a('0x36')](_0x3c96db[_0xd62a('0x35')](_0x1d5a9f[_0xd62a('0x1d')],_0x13fe1c[_0xd62a('0x1d')]),_0xd62a('0x30'));});}),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')](_0xd62a('0x5e'),'convertInlineImageToBlock','join',()=>{}),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')](_0xd62a('0x5e'),_0xd62a('0x30'),_0xd62a('0x2f'),()=>{}),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')](_0xd62a('0x5e'),_0xd62a('0x30'),'discard',_0x33f8b7[_0xd62a('0x44')]['getSuggestionCallback'](_0xd62a('0x5e'),'','accept')),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')]('insertion',_0xd62a('0x30'),'join',()=>{}),_0x33f8b7['_suggestionFactory'][_0xd62a('0x65')](_0xd62a('0x28'),_0xd62a('0x30'),_0xd62a('0xd'),([_0x1221e1])=>{const _0x1a52e3=_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x66')]('insertion','','discard');let _0x125180=_0x1221e1['start'],_0x3cd3b6=_0x1221e1[_0xd62a('0x1d')];const _0x5434d8=_0xae0880[_0xd62a('0x50')][_0xd62a('0x78')]['getNearestSelectionRange'](_0x125180,_0xd62a('0x19')),_0x2ceb54=_0xae0880['model'][_0xd62a('0x78')][_0xd62a('0x2a')](_0x3cd3b6,_0xd62a('0x54'));_0x5434d8[_0xd62a('0xb')]&&(_0x125180=_0x5434d8['start']),_0x2ceb54['isCollapsed']&&(_0x3cd3b6=_0x2ceb54[_0xd62a('0x1d')]),_0x1a52e3([_0xae0880[_0xd62a('0x50')][_0xd62a('0x35')](_0x125180,_0x3cd3b6)]);}),_0x33f8b7[_0xd62a('0x44')]['registerCustomCallback'](_0xd62a('0x5e'),_0xd62a('0x30'),'chain',_0x49ceda),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')](_0xd62a('0x28'),'convertInlineImageToBlock','chain',_0x49ceda)),_0xae0880['plugins'][_0xd62a('0x9')](_0xd62a('0x6'))&&(_0x33f8b7[_0xd62a('0x23')](_0xd62a('0x39'),(_0x5e4705,_0x3e82f0)=>{const _0xd77d68=_0xae0880[_0xd62a('0x6b')][_0xd62a('0x76')](_0xd62a('0x61'));let _0x157d14=_0x33eafd[_0xd62a('0x4c')](_0xae0880['model']['document']['selection']),_0x3b54f9=_0xd77d68[_0xd62a('0x7')](_0x157d14);_0xae0880[_0xd62a('0x50')]['change'](()=>{if(_0x3b54f9)return void _0x33f8b7['markDeletion'](_0xae0880[_0xd62a('0x50')][_0xd62a('0x21')](_0x3b54f9));const _0x445f62=_0x33eafd[_0xd62a('0x34')](_0x157d14);_0x5e4705(_0x3e82f0),_0x157d14=_0x33eafd[_0xd62a('0x4c')](_0xae0880[_0xd62a('0x50')][_0xd62a('0x26')][_0xd62a('0x64')]),_0x3b54f9=_0xd77d68['getCaptionFromImageModelElement'](_0x157d14),_0x33f8b7['markInsertion'](_0xae0880[_0xd62a('0x50')][_0xd62a('0x21')](_0x3b54f9),_0x445f62?null:_0xd62a('0x3'));});}),_0x33f8b7[_0xd62a('0x44')]['registerCustomCallback'](_0xd62a('0x28'),_0xd62a('0x3'),_0xd62a('0x4a'),_0x49ceda)),_0xae0880[_0xd62a('0x6b')][_0xd62a('0x9')](_0xd62a('0x63'))){_0x33f8b7['enableCommand']('imageStyle',(_0x4c1627,_0x419780)=>{const _0xe37d17=_0xae0880['plugins'][_0xd62a('0x76')](_0xd62a('0x14'))['me'],_0x3e2b81=_0xae0880[_0xd62a('0x22')][_0xd62a('0x76')](_0xd62a('0x1f'));let _0x35c42e=_0x33eafd[_0xd62a('0x4c')](_0xae0880['model'][_0xd62a('0x26')][_0xd62a('0x64')]),_0x506c69=_0xae0880[_0xd62a('0x50')][_0xd62a('0x21')](_0x35c42e),_0x2ec7e4=_0x3e2b81['value'];if(_0x2ec7e4==_0x419780[_0xd62a('0x15')])return;const _0x485965={'commandName':_0xd62a('0x1f'),'commandParams':[_0x419780],'formatGroupId':_0x289e26()};_0xae0880[_0xd62a('0x50')][_0xd62a('0x1b')](()=>{if(_0x33f8b7[_0xd62a('0x73')]()[_0xd62a('0xc')](_0x1cc1a1=>_0x1cc1a1[_0xd62a('0x56')]&&_0xe37d17==_0x1cc1a1[_0xd62a('0x4e')]&&('formatBlock'==_0x1cc1a1['type']||_0xd62a('0x1a')==_0x1cc1a1['type'])&&('imageStylePreApply'==_0x1cc1a1[_0xd62a('0x42')]||_0xd62a('0x74')==_0x1cc1a1[_0xd62a('0x42')])&&_0x1cc1a1[_0xd62a('0x68')]()[_0xd62a('0x0')](_0x506c69))[_0xd62a('0x2e')](_0x6f1cf9=>_0x33f8b7[_0xd62a('0x29')](_0x6f1cf9['head'])),_0x35c42e=_0x33eafd['getClosestSelectedImageElement'](_0xae0880[_0xd62a('0x50')][_0xd62a('0x26')][_0xd62a('0x64')]),_0x506c69=_0xae0880['model'][_0xd62a('0x21')](_0x35c42e),_0x3e2b81[_0xd62a('0x16')](),_0xae0880[_0xd62a('0x22')][_0xd62a('0x76')](_0xd62a('0x3c'))['refresh'](),_0xae0880['commands'][_0xd62a('0x76')]('imageTypeBlock')[_0xd62a('0x16')](),_0x2ec7e4=_0x3e2b81['value'],_0x2ec7e4!=_0x419780['value'])return _0x33eafd[_0xd62a('0xa')](_0x35c42e)&&_0x3e2b81[_0xd62a('0x4')](_0x419780[_0xd62a('0x15')],_0x35c42e)?(_0x4c1627(_0x419780),_0x35c42e=_0x33eafd[_0xd62a('0x4c')](_0xae0880[_0xd62a('0x50')][_0xd62a('0x26')]['selection']),void _0x33f8b7['markBlockFormat'](_0x35c42e,{..._0x485965,'commandReversedParams':[{'value':_0x2ec7e4||null}]},[],_0xd62a('0x60'))):void(_0x33eafd['isBlockImage'](_0x35c42e)?_0x33f8b7[_0xd62a('0x37')](_0x35c42e,_0x485965,[],'imageStylePostApply'):_0x33f8b7[_0xd62a('0x25')](_0x506c69,_0x485965,_0xd62a('0x74')));});});for(const _0x2ce382 of _0xae0880[_0xd62a('0x6b')][_0xd62a('0x76')](_0xd62a('0x63'))['normalizedStyles'])_0x3a1f41[_0x2ce382[_0xd62a('0x40')]]=_0x2ce382[_0xd62a('0x57')]['toLowerCase']();_0x33f8b7['_suggestionFactory'][_0xd62a('0x65')](_0xd62a('0x5e'),_0xd62a('0x60'),_0xd62a('0x46'),()=>{}),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')]('formatBlock',_0xd62a('0x74'),_0xd62a('0x46'),()=>{}),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')](_0xd62a('0x1a'),_0xd62a('0x74'),'join',()=>{}),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')](_0xd62a('0x5e'),_0xd62a('0x60'),_0xd62a('0x2f'),()=>{}),_0x33f8b7[_0xd62a('0x44')][_0xd62a('0x65')](_0xd62a('0x5e'),_0xd62a('0x60'),_0xd62a('0xd'),(_0x5913d7,_0x54cf03)=>{_0x33f8b7[_0xd62a('0x44')]['getSuggestionCallback']('formatBlock','',_0xd62a('0x2f'))(_0x5913d7,{'commandName':_0x54cf03[_0xd62a('0x69')],'commandParams':_0x54cf03[_0xd62a('0x71')]});}),_0x33f8b7['_suggestionFactory'][_0xd62a('0x65')](_0xd62a('0x5e'),_0xd62a('0x60'),_0xd62a('0x4a'),_0x49ceda);}const _0x4b4902=[{'type':_0xd62a('0x5e'),'subType':_0xd62a('0x60')},{'type':_0xd62a('0x28'),'subType':_0xd62a('0x3')},{'type':_0xd62a('0x5e'),'subType':_0xd62a('0x30')},{'type':_0xd62a('0x28'),'subType':_0xd62a('0x30')}];function _0x1d9871(_0x379eed,_0x3ff347){const _0x2893d8=_0x4b4902[_0xd62a('0x5b')](({type:_0x2a2196,subType:_0x2a4c55})=>_0x379eed[_0xd62a('0x70')]==_0x2a2196&&_0x379eed[_0xd62a('0x42')]==_0x2a4c55),_0xaf8a25=_0x4b4902['findIndex'](({type:_0x236976,subType:_0x4cb517})=>_0x3ff347[_0xd62a('0x70')]==_0x236976&&_0x3ff347[_0xd62a('0x42')]==_0x4cb517);if(_0x2893d8<0x0||_0xaf8a25<0x0)return!0x1;const _0x5ee8ad=_0x379eed[_0xd62a('0x68')](),_0x1b6cee=_0x3ff347[_0xd62a('0x68')]();if((0x0==_0x2893d8||0x1==_0x2893d8)&&0x2==_0xaf8a25&&_0x5ee8ad[_0xd62a('0x2')](_0x1b6cee))return!0x0;if(0x2==_0x2893d8&&0x3==_0xaf8a25){const _0x55b9da=_0x33f8b7[_0xd62a('0x79')](_0x5ee8ad,_0xd62a('0x28'))[_0xd62a('0xc')](({suggestion:_0x496bfe,meta:_0x1e6035})=>_0x1e6035[_0xd62a('0x6a')]&&_0xd62a('0x30')==_0x496bfe[_0xd62a('0x42')]);if(_0x55b9da[_0xd62a('0xe')]>0x1&&_0x1b6cee[_0xd62a('0x1d')][_0xd62a('0x0')](_0x5ee8ad['start']))return!0x0;if(0x1==_0x55b9da['length']&&(_0x5ee8ad[_0xd62a('0x10')][_0xd62a('0x0')](_0x1b6cee[_0xd62a('0x1d')])||_0x5ee8ad[_0xd62a('0x1d')][_0xd62a('0x0')](_0x1b6cee[_0xd62a('0x10')])))return!0x0;}if(0x3==_0x2893d8&&0x3==_0xaf8a25&&_0x5ee8ad[_0xd62a('0x10')][_0xd62a('0x53')](_0x1b6cee[_0xd62a('0x10')])){const _0x521bcb=_0x5ee8ad[_0xd62a('0x1d')]['nodeAfter'],_0x2a4a6f=_0x1b6cee[_0xd62a('0x10')]['nodeBefore'];return _0x33eafd[_0xd62a('0x34')](_0x521bcb)&&_0x521bcb===_0x2a4a6f;}return!0x1;}function _0x49ceda(_0x42cda8,_0x42cc33){return _0x1d9871(_0x42cda8,_0x42cc33)?[_0x42cda8,_0x42cc33]:_0x1d9871(_0x42cc33,_0x42cda8)?[_0x42cc33,_0x42cda8]:null;}_0xae0880[_0xd62a('0x50')]['document'][_0xd62a('0x13')](()=>{let _0x17d286=!0x1;const _0x266f49=Array[_0xd62a('0x41')](_0xae0880[_0xd62a('0x50')][_0xd62a('0x26')][_0xd62a('0x27')][_0xd62a('0x51')]());for(const {name:_0x2a19e2,data:_0x4b9633}of _0x266f49){const {group:_0x2e2d24,type:_0x134c5c,subType:_0x41f582,id:_0x3f0203}=_0x33f8b7[_0xd62a('0x11')](_0x2a19e2);if(_0xd62a('0x67')==_0x2e2d24&&_0x33f8b7[_0xd62a('0x20')](_0x3f0203)){if('formatBlock'==_0x134c5c&&(_0xd62a('0x60')==_0x41f582||'imageStylePostApply'==_0x41f582)){const _0x4a0e24=_0x33f8b7['getSuggestion'](_0x3f0203);if(_0x4b9633[_0xd62a('0x2d')]){const _0x5dd64b=_0x4a0e24[_0xd62a('0x68')]()['getContainedElement']();if(_0x33eafd['isBlockImage'](_0x5dd64b))continue;_0x33f8b7[_0xd62a('0x29')](_0x4a0e24),_0x17d286=!0x0;}}if(_0xd62a('0x28')==_0x134c5c&&_0xd62a('0x3')==_0x41f582&&!_0x4b9633[_0xd62a('0x2d')]){const _0x224278=_0x33f8b7[_0xd62a('0x62')](_0x3f0203);_0x224278[_0xd62a('0x2b')]&&_0x224278[_0xd62a('0x2b')][_0xd62a('0x56')]&&(_0x33f8b7[_0xd62a('0x29')](_0x224278[_0xd62a('0x2b')]),_0x17d286=!0x0);}}}return _0x17d286;}),_0xae0880[_0xd62a('0x6b')]['has']('ImageResize')&&_0x33f8b7[_0xd62a('0x23')](_0xd62a('0x24'),(_0x5469cb,_0x17319a)=>{const _0x42a528=_0x33eafd['getClosestSelectedImageElement'](_0xae0880[_0xd62a('0x50')][_0xd62a('0x26')][_0xd62a('0x64')]);_0x42a528['getAttribute'](_0xd62a('0x4f'))!=_0x17319a['width']&&_0xae0880[_0xd62a('0x50')][_0xd62a('0x1b')](()=>{_0x33f8b7[_0xd62a('0x37')](_0x42a528,{'commandName':_0xd62a('0x24'),'commandParams':[_0x17319a]});});}),_0xae0880[_0xd62a('0x6b')]['has']('ImageTextAlternativeEditing')&&_0x33f8b7['enableCommand'](_0xd62a('0x5c'),(_0x2b94d6,_0x42244a)=>{const _0x2fd26f=_0x33eafd[_0xd62a('0x4c')](_0xae0880[_0xd62a('0x50')][_0xd62a('0x26')][_0xd62a('0x64')]);(_0x2fd26f[_0xd62a('0x5d')]('alt')?_0x2fd26f[_0xd62a('0x2c')]('alt'):'')!=_0x42244a['newValue']&&_0xae0880['model']['change'](()=>{_0x33f8b7[_0xd62a('0x37')](_0x2fd26f,{'commandName':_0xd62a('0x5c'),'commandParams':[_0x42244a]});});}),_0x33f8b7['_descriptionFactory']['registerDescriptionCallback'](_0x2d12d7=>{if(!!_0x4b4902[_0xd62a('0x49')](({type:_0x201911,subType:_0x2bbffd})=>_0x2d12d7[_0xd62a('0x70')]==_0x201911&&_0x2d12d7[_0xd62a('0x42')]==_0x2bbffd))return _0x2d12d7[_0xd62a('0x47')]?{}:void 0x0;}),_0x33f8b7[_0xd62a('0x12')][_0xd62a('0x45')](_0x1b24b2=>{if(_0xd62a('0x28')==_0x1b24b2[_0xd62a('0x70')]||_0xd62a('0x3d')==_0x1b24b2[_0xd62a('0x70')]){const _0x52e81e=_0x1b24b2[_0xd62a('0x38')]();if(_0x52e81e&&_0x52e81e['is'](_0xd62a('0x3b'),_0xd62a('0x1')))return{'type':_0xd62a('0x28')==_0x1b24b2[_0xd62a('0x70')]?_0xd62a('0x5a'):'removeObject','element':_0x52e81e,'quantity':0x1};}}),_0x33f8b7[_0xd62a('0x12')][_0xd62a('0x45')](_0x3574f1=>_0xd62a('0x5e')==_0x3574f1[_0xd62a('0x70')]&&_0xd62a('0x30')==_0x3574f1[_0xd62a('0x42')]?{'type':'format','content':_0xd62a('0x3e')}:_0xd62a('0x5e')==_0x3574f1['type']&&_0xd62a('0x77')==_0x3574f1[_0xd62a('0x42')]?{'type':_0xd62a('0x48'),'content':_0xd62a('0x18')}:void 0x0),_0x33f8b7['_descriptionFactory'][_0xd62a('0x45')](_0x18b019=>{const {data:_0x14818d}=_0x18b019;if(_0x14818d){if(_0xd62a('0x1f')==_0x14818d[_0xd62a('0x69')]){const _0x20edd1=_0x14818d[_0xd62a('0x4b')][0x0][_0xd62a('0x15')];return _0x1d1aab(_0xd62a('0x8')===_0x20edd1?_0x326d54(_0xa59cfc,_0xd62a('0x31')):_0x3a1f41[_0x20edd1]||_0x20edd1);}if('imageTextAlternative'==_0x14818d['commandName']){const _0x733692=_0x14818d[_0xd62a('0x4b')][0x0]['newValue'];return _0x733692?{'type':'format','content':_0x326d54(_0xa59cfc,_0xd62a('0x58'),'\x22'+_0x733692+'\x22')}:{'type':_0xd62a('0x48'),'content':_0x326d54(_0xa59cfc,_0xd62a('0x1e'))};}if(_0xd62a('0x24')==_0x14818d[_0xd62a('0x69')]){const _0x5eb5e7=_0x14818d['commandParams'][0x0][_0xd62a('0x4f')];return _0x5eb5e7?{'type':_0xd62a('0x48'),'content':_0x326d54(_0xa59cfc,_0xd62a('0x5f'),_0x5eb5e7)}:{'type':'format','content':_0x326d54(_0xa59cfc,_0xd62a('0x3a'))};}}function _0x1d1aab(_0x1f3e0a){return{'type':_0xd62a('0x48'),'content':_0x326d54(_0xa59cfc,_0xd62a('0x4d'),_0x1f3e0a)};}});}}
|
|
23
|
+
const _0x31ed=['discard','imageTextAlternative','commandParams','forceDefaultExecution','get','resizeImage','forward','commandName','imageInline','type','imageTypeInline','markInsertion','selection','find','ImageUploadEditing','getCaptionFromImageModelElement','name','*Format:*\x20%0','toPrevious','filter','isEqual','document','ELEMENT_INLINE_IMAGE','ImageTextAlternativeEditing','ELEMENT_IMAGE','ImageBlockEditing','findIndex','chain','imageStylePreApply','isInContent','toNext','subType','imageStyle','formatBlock','FORMAT_SIDE_IMAGE','Block\x20image\x20to\x20inline\x20image','backward','newValue','registerPostFixer','nodeBefore','refresh','ELEMENT_CAPTION','schema','*Reset\x20image\x20width*','createRangeOn','width','markInlineFormat','ImageStyleEditing','imageStylePostApply','commands','next','start','getSuggestion','addObject','isOwn','markBlockFormat','newRange','removeObject','fromPosition','registerElementLabel','from','author','side','getAttribute','model','detach','imageCaption','end','change','hasSuggestion','editor','convertInlineImageToBlock','insertion','insertImage','alt','accept','markDeletion','getNearestSelectionRange','toLowerCase','plugins','getFirstRange','join','has','_descriptionFactory','getClosestSelectedImageElement','head','*Remove\x20image\x20text\x20alternative*','isBlockImage','ImageCaptionUtils','isCollapsed','locale','value','format','registerCustomCallback','afterInit','createRange','isInlineImage','isBefore','deletion','shouldConvertImageType','nodeAfter','uploadImage','TrackChangesEditing','toggleImageCaption','previous','formatInline','length','ImageEditing','getSuggestionCallback','*Set\x20image\x20width:*\x20%0','ImageUtils','convertBlockImageToInline','element','discardSuggestion','isIntersecting','enableCommand','forEach','getContainedElement','imageTypeBlock','registerDescriptionCallback','caption','_suggestionFactory'];(function(_0x35f5d7,_0x31ed74){const _0x21231c=function(_0x2a48fb){while(--_0x2a48fb){_0x35f5d7['push'](_0x35f5d7['shift']());}};_0x21231c(++_0x31ed74);}(_0x31ed,0x146));const _0x2123=function(_0x35f5d7,_0x31ed74){_0x35f5d7=_0x35f5d7-0x0;let _0x21231c=_0x31ed[_0x35f5d7];return _0x21231c;};import{Plugin as _0x11a7e7}from'ckeditor5/src/core';import{LivePosition as _0x33711f}from'ckeditor5/src/engine';import{uid as _0x1f670d}from'ckeditor5/src/utils';import{getTranslation as _0x1adf2f}from'../utils/common-translations';export default class X extends _0x11a7e7{[_0x2123('0xc')](){const _0x2aebe3=this[_0x2123('0x6e')];if(!_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x19')))return;const _0x50cfca=_0x2aebe3[_0x2123('0x77')][_0x2123('0x2c')](_0x2123('0x14')),_0x163010=_0x2aebe3['plugins']['get'](_0x2123('0x1c')),_0x1fe626={},_0x236755=_0x2aebe3[_0x2123('0x8')];if(_0x50cfca[_0x2123('0x21')](_0x2123('0x71')),_0x50cfca[_0x2123('0x1')][_0x2123('0x63')]('imageBlock',_0x2ea53e=>_0x1adf2f(_0x236755,_0x2123('0x40'),_0x2ea53e)),_0x50cfca[_0x2123('0x1')][_0x2123('0x63')](_0x2123('0x30'),_0x3bd17e=>_0x1adf2f(_0x236755,_0x2123('0x3e'),_0x3bd17e)),_0x50cfca[_0x2123('0x1')]['registerElementLabel'](_0x2123('0x26'),()=>_0x1adf2f(_0x236755,_0x2123('0x51'))),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x36'))&&_0x50cfca[_0x2123('0x21')](_0x2123('0x13')),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x41'))&&_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')]('ImageInlineEditing')&&(_0x50cfca['enableCommand']('imageTypeInline',(_0x4ff0e0,_0x187aaa)=>{const _0x70973a=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]);_0x2aebe3[_0x2123('0x68')][_0x2123('0x6c')](()=>{_0x50cfca[_0x2123('0x5f')](_0x70973a,{'commandName':_0x2123('0x32'),'commandParams':[_0x187aaa]},[],_0x2123('0x1d'));});}),_0x50cfca[_0x2123('0x21')](_0x2123('0x24'),(_0x5627e5,_0x3ff8b1)=>{_0x2aebe3['model'][_0x2123('0x6c')](_0x3a81f1=>{let _0x415edb=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]),_0x510c09=_0x3a81f1[_0x2123('0x54')](_0x415edb);const _0x10ad3f=_0x33711f[_0x2123('0x62')](_0x510c09[_0x2123('0x5b')],_0x2123('0x3a')),_0x4302b3=_0x33711f['fromPosition'](_0x510c09[_0x2123('0x6b')],_0x2123('0x46'));_0x50cfca[_0x2123('0x2b')](()=>_0x5627e5(_0x3ff8b1)),_0x415edb=_0x163010[_0x2123('0x2')](_0x2aebe3['model'][_0x2123('0x3d')][_0x2123('0x34')]),_0x510c09=_0x3a81f1[_0x2123('0x54')](_0x415edb);const _0x2a9240=_0x3a81f1[_0x2123('0xd')](_0x10ad3f,_0x4302b3);_0x10ad3f[_0x2123('0x69')](),_0x4302b3[_0x2123('0x69')](),_0x50cfca[_0x2123('0x5f')](_0x415edb,{'commandName':_0x2123('0x32'),'commandParams':[]},[],_0x2123('0x6f')),_0x2a9240[_0x2123('0x5b')][_0x2123('0xf')](_0x510c09[_0x2123('0x5b')])&&_0x50cfca['markInsertion'](_0x3a81f1['createRange'](_0x2a9240[_0x2123('0x5b')],_0x510c09[_0x2123('0x5b')]),_0x2123('0x6f')),_0x510c09[_0x2123('0x6b')][_0x2123('0xf')](_0x2a9240[_0x2123('0x6b')])&&_0x50cfca[_0x2123('0x33')](_0x3a81f1[_0x2123('0xd')](_0x510c09[_0x2123('0x6b')],_0x2a9240[_0x2123('0x6b')]),_0x2123('0x6f'));});}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x6f'),_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x6f'),_0x2123('0x73'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('formatBlock',_0x2123('0x6f'),_0x2123('0x28'),_0x50cfca[_0x2123('0x27')][_0x2123('0x1a')](_0x2123('0x49'),'',_0x2123('0x73'))),_0x50cfca['_suggestionFactory'][_0x2123('0xb')](_0x2123('0x70'),'convertInlineImageToBlock',_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')]['registerCustomCallback'](_0x2123('0x70'),_0x2123('0x6f'),'discard',([_0x3660ae])=>{const _0x3a309d=_0x50cfca[_0x2123('0x27')]['getSuggestionCallback'](_0x2123('0x70'),'','discard');let _0x5c4ef2=_0x3660ae[_0x2123('0x5b')],_0x4f7669=_0x3660ae[_0x2123('0x6b')];const _0x31e9f6=_0x2aebe3[_0x2123('0x68')][_0x2123('0x52')][_0x2123('0x75')](_0x5c4ef2,_0x2123('0x4c')),_0x43e686=_0x2aebe3['model']['schema']['getNearestSelectionRange'](_0x4f7669,_0x2123('0x2e'));_0x31e9f6['isCollapsed']&&(_0x5c4ef2=_0x31e9f6[_0x2123('0x5b')]),_0x43e686[_0x2123('0x7')]&&(_0x4f7669=_0x43e686['end']),_0x3a309d([_0x2aebe3[_0x2123('0x68')][_0x2123('0xd')](_0x5c4ef2,_0x4f7669)]);}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x6f'),_0x2123('0x43'),_0x25451c),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('insertion',_0x2123('0x6f'),_0x2123('0x43'),_0x25451c)),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')]('ImageCaptionEditing')&&(_0x50cfca[_0x2123('0x21')](_0x2123('0x15'),(_0x3a051d,_0x3fe936)=>{const _0x183912=_0x2aebe3[_0x2123('0x77')][_0x2123('0x2c')](_0x2123('0x6'));let _0x1a2820=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]),_0x3379de=_0x183912['getCaptionFromImageModelElement'](_0x1a2820);_0x2aebe3[_0x2123('0x68')][_0x2123('0x6c')](()=>{if(_0x3379de)return void _0x50cfca[_0x2123('0x74')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x54')](_0x3379de));const _0xc9501c=_0x163010[_0x2123('0x5')](_0x1a2820);_0x3a051d(_0x3fe936),_0x1a2820=_0x163010[_0x2123('0x2')](_0x2aebe3['model'][_0x2123('0x3d')][_0x2123('0x34')]),_0x3379de=_0x183912[_0x2123('0x37')](_0x1a2820),_0x50cfca[_0x2123('0x33')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x54')](_0x3379de),_0xc9501c?null:_0x2123('0x6a'));});}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('insertion',_0x2123('0x6a'),_0x2123('0x43'),_0x25451c)),_0x2aebe3['plugins'][_0x2123('0x0')]('ImageStyleEditing')){_0x50cfca[_0x2123('0x21')]('imageStyle',(_0x28e616,_0x51ab5d)=>{const _0x41fb12=_0x2aebe3[_0x2123('0x77')]['get']('Users')['me'],_0x38fb78=_0x2aebe3[_0x2123('0x59')][_0x2123('0x2c')](_0x2123('0x48'));let _0x2882cd=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')]['selection']),_0x1e688b=_0x2aebe3[_0x2123('0x68')][_0x2123('0x54')](_0x2882cd),_0x3347fd=_0x38fb78[_0x2123('0x9')];if(_0x3347fd==_0x51ab5d[_0x2123('0x9')])return;const _0x35dee9={'commandName':_0x2123('0x48'),'commandParams':[_0x51ab5d],'formatGroupId':_0x1f670d()};_0x2aebe3[_0x2123('0x68')]['change'](()=>{if(_0x50cfca['getSuggestions']()[_0x2123('0x3b')](_0x58bc93=>_0x58bc93[_0x2123('0x45')]&&_0x41fb12==_0x58bc93[_0x2123('0x65')]&&(_0x2123('0x49')==_0x58bc93[_0x2123('0x31')]||_0x2123('0x17')==_0x58bc93[_0x2123('0x31')])&&('imageStylePreApply'==_0x58bc93['subType']||_0x2123('0x58')==_0x58bc93[_0x2123('0x47')])&&_0x58bc93[_0x2123('0x78')]()['isEqual'](_0x1e688b))[_0x2123('0x22')](_0x543d56=>_0x50cfca[_0x2123('0x1f')](_0x543d56[_0x2123('0x3')])),_0x2882cd=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')]['selection']),_0x1e688b=_0x2aebe3['model']['createRangeOn'](_0x2882cd),_0x38fb78['refresh'](),_0x2aebe3[_0x2123('0x59')][_0x2123('0x2c')]('imageTypeInline')['refresh'](),_0x2aebe3[_0x2123('0x59')][_0x2123('0x2c')](_0x2123('0x24'))[_0x2123('0x50')](),_0x3347fd=_0x38fb78[_0x2123('0x9')],_0x3347fd!=_0x51ab5d[_0x2123('0x9')])return _0x163010[_0x2123('0xe')](_0x2882cd)&&_0x38fb78[_0x2123('0x11')](_0x51ab5d[_0x2123('0x9')],_0x2882cd)?(_0x28e616(_0x51ab5d),_0x2882cd=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')]['document']['selection']),void _0x50cfca[_0x2123('0x5f')](_0x2882cd,{..._0x35dee9,'commandReversedParams':[{'value':_0x3347fd||null}]},[],_0x2123('0x44'))):void(_0x163010[_0x2123('0x5')](_0x2882cd)?_0x50cfca['markBlockFormat'](_0x2882cd,_0x35dee9,[],'imageStylePostApply'):_0x50cfca[_0x2123('0x56')](_0x1e688b,_0x35dee9,_0x2123('0x58')));});});for(const _0xdd3189 of _0x2aebe3[_0x2123('0x77')]['get'](_0x2123('0x57'))['normalizedStyles'])_0x1fe626[_0xdd3189[_0x2123('0x38')]]=_0xdd3189['title'][_0x2123('0x76')]();_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),'imageStylePreApply',_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x58'),'join',()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x17'),_0x2123('0x58'),_0x2123('0x79'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')]('formatBlock',_0x2123('0x44'),_0x2123('0x73'),()=>{}),_0x50cfca[_0x2123('0x27')][_0x2123('0xb')](_0x2123('0x49'),_0x2123('0x44'),_0x2123('0x28'),(_0x1a77de,_0x50ec8d)=>{_0x50cfca[_0x2123('0x27')][_0x2123('0x1a')](_0x2123('0x49'),'',_0x2123('0x73'))(_0x1a77de,{'commandName':_0x50ec8d[_0x2123('0x2f')],'commandParams':_0x50ec8d['commandReversedParams']});}),_0x50cfca[_0x2123('0x27')]['registerCustomCallback'](_0x2123('0x49'),'imageStylePreApply',_0x2123('0x43'),_0x25451c);}const _0x59765a=[{'type':_0x2123('0x49'),'subType':_0x2123('0x44')},{'type':_0x2123('0x70'),'subType':_0x2123('0x6a')},{'type':_0x2123('0x49'),'subType':'convertInlineImageToBlock'},{'type':_0x2123('0x70'),'subType':_0x2123('0x6f')}];function _0x14f27d(_0x3a0306,_0x3ce349){const _0x27db09=_0x59765a['findIndex'](({type:_0x158d48,subType:_0x20308e})=>_0x3a0306[_0x2123('0x31')]==_0x158d48&&_0x3a0306['subType']==_0x20308e),_0x1dd8bf=_0x59765a[_0x2123('0x42')](({type:_0x111155,subType:_0x401ec6})=>_0x3ce349[_0x2123('0x31')]==_0x111155&&_0x3ce349[_0x2123('0x47')]==_0x401ec6);if(_0x27db09<0x0||_0x1dd8bf<0x0)return!0x1;const _0x33fff5=_0x3a0306[_0x2123('0x78')](),_0x23af49=_0x3ce349[_0x2123('0x78')]();if((0x0==_0x27db09||0x1==_0x27db09)&&0x2==_0x1dd8bf&&_0x33fff5[_0x2123('0x20')](_0x23af49))return!0x0;if(0x2==_0x27db09&&0x3==_0x1dd8bf){const _0x4d8249=_0x50cfca['_findSuggestions'](_0x33fff5,_0x2123('0x70'))[_0x2123('0x3b')](({suggestion:_0x37d849,meta:_0x19ba7a})=>_0x19ba7a[_0x2123('0x5e')]&&'convertInlineImageToBlock'==_0x37d849[_0x2123('0x47')]);if(_0x4d8249[_0x2123('0x18')]>0x1&&_0x23af49[_0x2123('0x6b')]['isEqual'](_0x33fff5[_0x2123('0x5b')]))return!0x0;if(0x1==_0x4d8249[_0x2123('0x18')]&&(_0x33fff5[_0x2123('0x5b')][_0x2123('0x3c')](_0x23af49[_0x2123('0x6b')])||_0x33fff5[_0x2123('0x6b')][_0x2123('0x3c')](_0x23af49[_0x2123('0x5b')])))return!0x0;}if(0x3==_0x27db09&&0x3==_0x1dd8bf&&_0x33fff5[_0x2123('0x5b')]['isBefore'](_0x23af49['start'])){const _0x2c6a38=_0x33fff5[_0x2123('0x6b')][_0x2123('0x12')],_0xc71472=_0x23af49[_0x2123('0x5b')][_0x2123('0x4f')];return _0x163010['isBlockImage'](_0x2c6a38)&&_0x2c6a38===_0xc71472;}return!0x1;}function _0x25451c(_0x77f0e5,_0x221101){return _0x14f27d(_0x77f0e5,_0x221101)?[_0x77f0e5,_0x221101]:_0x14f27d(_0x221101,_0x77f0e5)?[_0x221101,_0x77f0e5]:null;}_0x2aebe3[_0x2123('0x68')]['document'][_0x2123('0x4e')](()=>{let _0x1f751a=!0x1;const _0x5c63e7=Array[_0x2123('0x64')](_0x2aebe3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4caec6,data:_0x150660}of _0x5c63e7){const {group:_0x324ee8,type:_0x47d5c5,subType:_0xaf1c25,id:_0x1ee001}=_0x50cfca['_splitMarkerName'](_0x4caec6);if('suggestion'==_0x324ee8&&_0x50cfca[_0x2123('0x6d')](_0x1ee001)){if(_0x2123('0x49')==_0x47d5c5&&(_0x2123('0x44')==_0xaf1c25||_0x2123('0x58')==_0xaf1c25)){const _0x2b75da=_0x50cfca['getSuggestion'](_0x1ee001);if(_0x150660['newRange']){const _0x36ffb8=_0x2b75da[_0x2123('0x78')]()[_0x2123('0x23')]();if(_0x163010[_0x2123('0x5')](_0x36ffb8))continue;_0x50cfca['discardSuggestion'](_0x2b75da),_0x1f751a=!0x0;}}if(_0x2123('0x70')==_0x47d5c5&&_0x2123('0x6a')==_0xaf1c25&&!_0x150660[_0x2123('0x60')]){const _0x5c8023=_0x50cfca[_0x2123('0x5c')](_0x1ee001);_0x5c8023[_0x2123('0x5a')]&&_0x5c8023[_0x2123('0x5a')][_0x2123('0x45')]&&(_0x50cfca['discardSuggestion'](_0x5c8023[_0x2123('0x5a')]),_0x1f751a=!0x0);}}}return _0x1f751a;}),_0x2aebe3[_0x2123('0x77')]['has']('ImageResize')&&_0x50cfca[_0x2123('0x21')](_0x2123('0x2d'),(_0x5d4bf4,_0x3429de)=>{const _0x35c9d2=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')][_0x2123('0x34')]);_0x35c9d2['getAttribute'](_0x2123('0x55'))!=_0x3429de[_0x2123('0x55')]&&_0x2aebe3['model']['change'](()=>{_0x50cfca['markBlockFormat'](_0x35c9d2,{'commandName':_0x2123('0x2d'),'commandParams':[_0x3429de]});});}),_0x2aebe3[_0x2123('0x77')][_0x2123('0x0')](_0x2123('0x3f'))&&_0x50cfca[_0x2123('0x21')](_0x2123('0x29'),(_0x47eac8,_0x5611a7)=>{const _0x48cd4e=_0x163010[_0x2123('0x2')](_0x2aebe3[_0x2123('0x68')][_0x2123('0x3d')]['selection']);(_0x48cd4e['hasAttribute'](_0x2123('0x72'))?_0x48cd4e[_0x2123('0x67')](_0x2123('0x72')):'')!=_0x5611a7[_0x2123('0x4d')]&&_0x2aebe3[_0x2123('0x68')][_0x2123('0x6c')](()=>{_0x50cfca[_0x2123('0x5f')](_0x48cd4e,{'commandName':'imageTextAlternative','commandParams':[_0x5611a7]});});}),_0x50cfca[_0x2123('0x1')][_0x2123('0x25')](_0x10f55f=>{if(!!_0x59765a[_0x2123('0x35')](({type:_0xa6d02c,subType:_0x178705})=>_0x10f55f[_0x2123('0x31')]==_0xa6d02c&&_0x10f55f[_0x2123('0x47')]==_0x178705))return _0x10f55f[_0x2123('0x16')]?{}:void 0x0;}),_0x50cfca[_0x2123('0x1')][_0x2123('0x25')](_0x37b0e7=>{if(_0x2123('0x70')==_0x37b0e7[_0x2123('0x31')]||_0x2123('0x10')==_0x37b0e7[_0x2123('0x31')]){const _0x49da14=_0x37b0e7[_0x2123('0x23')]();if(_0x49da14&&_0x49da14['is'](_0x2123('0x1e'),_0x2123('0x26')))return{'type':_0x2123('0x70')==_0x37b0e7['type']?_0x2123('0x5d'):_0x2123('0x61'),'element':_0x49da14,'quantity':0x1};}}),_0x50cfca[_0x2123('0x1')][_0x2123('0x25')](_0x3c0b4d=>_0x2123('0x49')==_0x3c0b4d[_0x2123('0x31')]&&'convertInlineImageToBlock'==_0x3c0b4d[_0x2123('0x47')]?{'type':_0x2123('0xa'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c0b4d[_0x2123('0x31')]&&_0x2123('0x1d')==_0x3c0b4d[_0x2123('0x47')]?{'type':'format','content':_0x2123('0x4b')}:void 0x0),_0x50cfca['_descriptionFactory']['registerDescriptionCallback'](_0x5f0265=>{const {data:_0x3fcbaf}=_0x5f0265;if(_0x3fcbaf){if(_0x2123('0x48')==_0x3fcbaf[_0x2123('0x2f')]){const _0x441004=_0x3fcbaf[_0x2123('0x2a')][0x0][_0x2123('0x9')];return _0x5ccefb(_0x2123('0x66')===_0x441004?_0x1adf2f(_0x236755,_0x2123('0x4a')):_0x1fe626[_0x441004]||_0x441004);}if(_0x2123('0x29')==_0x3fcbaf['commandName']){const _0x46b12b=_0x3fcbaf[_0x2123('0x2a')][0x0]['newValue'];return _0x46b12b?{'type':'format','content':_0x1adf2f(_0x236755,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46b12b+'\x22')}:{'type':'format','content':_0x1adf2f(_0x236755,_0x2123('0x4'))};}if(_0x2123('0x2d')==_0x3fcbaf['commandName']){const _0x4d20f5=_0x3fcbaf[_0x2123('0x2a')][0x0][_0x2123('0x55')];return _0x4d20f5?{'type':_0x2123('0xa'),'content':_0x1adf2f(_0x236755,_0x2123('0x1b'),_0x4d20f5)}:{'type':_0x2123('0xa'),'content':_0x1adf2f(_0x236755,_0x2123('0x53'))};}}function _0x5ccefb(_0x4b8f24){return{'type':_0x2123('0xa'),'content':_0x1adf2f(_0x236755,_0x2123('0x39'),_0x4b8f24)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48ac=['_suggestionFactory','handleSuggestionDescription','getAttribute','document','source','enableCommand','getSuggestionCallback','has','TrackChangesEditing','author','formatBlock','getContainedElement','replaceImageSource','Users','src','data','subType','model','handleReplaceImageCommand','format','registerCustomCallback','afterInit','*Format:*\x20replace\x20image\x20URL','commandName','_descriptionFactory','plugins','getSelectedElement','markBlockFormat','ImageEditing','accept','get','editor','selection','discard'];(function(_0x2a9fbb,_0x48ac4b){const _0x555219=function(_0x1c9bdf){while(--_0x1c9bdf){_0x2a9fbb['push'](_0x2a9fbb['shift']());}};_0x555219(++_0x48ac4b);}(_0x48ac,0x117));const _0x5552=function(_0x2a9fbb,_0x48ac4b){_0x2a9fbb=_0x2a9fbb-0x0;let _0x555219=_0x48ac[_0x2a9fbb];return _0x555219;};import{Plugin as _0x3c12d2}from'ckeditor5/src/core';import{getTranslation as _0x173957}from'../utils/common-translations';export default class Y extends _0x3c12d2{[_0x5552('0xe')](){if(!this['editor'][_0x5552('0x12')][_0x5552('0x0')](_0x5552('0x15')))return;const _0x218240=this[_0x5552('0x18')]['plugins'][_0x5552('0x17')](_0x5552('0x1'));_0x218240[_0x5552('0x20')]('replaceImageSource',(_0x16f310,_0x3aac20)=>this[_0x5552('0xb')](_0x16f310,_0x3aac20)),_0x218240['_suggestionFactory'][_0x5552('0xd')](_0x5552('0x3'),'replaceImageSource',_0x5552('0x16'),_0x218240[_0x5552('0x1b')][_0x5552('0x21')](_0x5552('0x3'),null,_0x5552('0x1a'))),_0x218240[_0x5552('0x1b')][_0x5552('0xd')](_0x5552('0x3'),_0x5552('0x5'),_0x5552('0x1a'),_0x218240[_0x5552('0x1b')][_0x5552('0x21')](_0x5552('0x3'),null,_0x5552('0x16'))),_0x218240[_0x5552('0x11')]['registerDescriptionCallback'](_0x5b05b2=>this[_0x5552('0x1c')](_0x5b05b2));}[_0x5552('0xb')](_0x141fc7,_0x49a021){const _0x765f14=this['editor'][_0x5552('0x12')][_0x5552('0x17')]('TrackChangesEditing'),_0x18ea40=this[_0x5552('0x18')]['model'][_0x5552('0x1e')][_0x5552('0x19')][_0x5552('0x13')]();this[_0x5552('0x18')][_0x5552('0xa')]['change'](()=>{let _0x54584c=_0x18ea40[_0x5552('0x1d')](_0x5552('0x7'));const _0x4620ca=this[_0x5552('0x18')][_0x5552('0x12')][_0x5552('0x17')](_0x5552('0x6'))['me'];for(const _0x301e43 of _0x765f14['getSuggestions']({'skipNotAttached':!0x0})){const _0x30f0dc=_0x301e43[_0x5552('0x4')]();if('replaceImageSource'===_0x301e43[_0x5552('0x9')]&&_0x30f0dc===_0x18ea40){_0x301e43[_0x5552('0x2')]!==_0x4620ca&&_0x301e43[_0x5552('0x1a')](),_0x54584c=_0x301e43[_0x5552('0x8')]['commandParams'][0x0][_0x5552('0x1f')];break;}}_0x141fc7(_0x49a021),_0x765f14[_0x5552('0x14')](_0x18ea40,{'commandName':_0x5552('0x5'),'commandParams':[{'source':_0x54584c}]},[],_0x5552('0x5'));});}[_0x5552('0x1c')](_0x46f663){const {data:_0x5ab0b8}=_0x46f663;if(_0x5ab0b8&&_0x5552('0x5')===_0x5ab0b8[_0x5552('0x10')]){const _0x135c55=_0x5552('0xf');return{'type':_0x5552('0xc'),'content':_0x173957(this[_0x5552('0x18')]['locale'],_0x135c55)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44c8=['execute','commands','enableCommand','importWord','get','_trackChangesExecuted','editor','value','collaboration_features','listenTo','afterInit','_trackChangesValueDuringImport','plugins','Users','_setSuggestionData','_handleImportedData','trackChanges','TrackChangesEditing','dataInsert','track_changes','bind','lowest'];(function(_0x32e1fc,_0x44c867){const _0x1f6243=function(_0x5add88){while(--_0x5add88){_0x32e1fc['push'](_0x32e1fc['shift']());}};_0x1f6243(++_0x44c867);}(_0x44c8,0x71));const _0x1f62=function(_0x32e1fc,_0x44c867){_0x32e1fc=_0x32e1fc-0x0;let _0x1f6243=_0x44c8[_0x32e1fc];return _0x1f6243;};import{Plugin as _0x1b534f}from'ckeditor5/src/core';export default class Z extends _0x1b534f{constructor(_0x5f55bc){super(_0x5f55bc),this[_0x1f62('0x8')]=!0x1,this[_0x1f62('0x2')]=!0x1;}[_0x1f62('0x7')](){const _0x3ef7e9=this['editor'],_0xbc3037=_0x3ef7e9[_0x1f62('0x14')][_0x1f62('0x1')](_0x1f62('0x0')),_0x560113=_0x3ef7e9[_0x1f62('0x14')][_0x1f62('0x1')](_0x1f62('0xd'));_0xbc3037&&(_0xbc3037['on'](_0x1f62('0x13'),(_0x1a66d3,[,_0x432180])=>{this[_0x1f62('0x8')]=_0x560113[_0x1f62('0x4')],_0x432180[_0x1f62('0x5')][_0x1f62('0x10')]=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this[_0x1f62('0x6')](_0xbc3037,_0x1f62('0xf'),this[_0x1f62('0xc')][_0x1f62('0x11')](this)),this[_0x1f62('0x6')](_0xbc3037,'dataInsert',()=>{this[_0x1f62('0x2')]&&(_0x560113[_0x1f62('0x13')](),this[_0x1f62('0x2')]=!0x1);},{'priority':_0x1f62('0x12')}),_0x3ef7e9[_0x1f62('0x9')][_0x1f62('0x1')]('TrackChangesEditing')[_0x1f62('0x15')](_0x1f62('0x0')));}[_0x1f62('0xc')](_0x11215f,_0x5aced4){const {suggestions:_0x4aec51}=_0x5aced4,_0x11cdf7=this['editor'][_0x1f62('0x14')][_0x1f62('0x1')](_0x1f62('0xd')),_0x153246=_0x11cdf7[_0x1f62('0x4')];this[_0x1f62('0x8')]!==_0x153246&&(_0x11cdf7[_0x1f62('0x13')](),this[_0x1f62('0x2')]=!0x0),_0x4aec51&&_0x4aec51['forEach'](({id:_0x393e5a,type:_0x52c57d,author:_0xcb49d4,created_at:_0x12806a})=>{const _0x2c2ec8={'id':_0x393e5a,'type':_0x52c57d,'authorId':this[_0x1f62('0x3')][_0x1f62('0x9')][_0x1f62('0x1')](_0x1f62('0xa'))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xcb49d4,'createdAt':_0x12806a?new Date(_0x12806a):new Date(),'source':_0x1f62('0x0')}}};this['editor']['plugins'][_0x1f62('0x1')](_0x1f62('0xe'))[_0x1f62('0xb')](_0x2c2ec8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30ee=['from','get','blockIndent','indentBlock','*Outdent:*\x20%0','selection','enableCommand','IndentEditing','document','plugins','change','registerDescriptionCallback','_descriptionFactory','editor','outdentBlock','IndentBlock','has','model','getSelectedBlocks','checkAttribute','format','outdent','filter','getItemLabel','afterInit','commandName'];(function(_0x1a520f,_0x30eec4){const _0x2c5caf=function(_0x2f1c43){while(--_0x2f1c43){_0x1a520f['push'](_0x1a520f['shift']());}};_0x2c5caf(++_0x30eec4);}(_0x30ee,0xd2));const _0x2c5c=function(_0x1a520f,_0x30eec4){_0x1a520f=_0x1a520f-0x0;let _0x2c5caf=_0x30ee[_0x1a520f];return _0x2c5caf;};import{Plugin as _0x4a7df1}from'ckeditor5/src/core';import{getTranslation as _0x5e3ed2}from'../utils/common-translations';export default class tt extends _0x4a7df1{[_0x2c5c('0x16')](){const _0x2b3b95=this[_0x2c5c('0xb')],_0x13e7a6=_0x2b3b95['plugins'][_0x2c5c('0x19')]('TrackChangesEditing');_0x2b3b95[_0x2c5c('0x7')]['has'](_0x2c5c('0x5'))&&(_0x13e7a6[_0x2c5c('0x4')]('indent'),_0x13e7a6[_0x2c5c('0x4')](_0x2c5c('0x13')));const _0x3539a1=_0x2b3b95['locale'];if(_0x2b3b95[_0x2c5c('0x7')][_0x2c5c('0xe')](_0x2c5c('0xd'))){for(const _0x3e1648 of['indentBlock','outdentBlock'])_0x13e7a6['enableCommand'](_0x3e1648,()=>{const _0x1ea8eb=Array[_0x2c5c('0x18')](this[_0x2c5c('0xb')]['model'][_0x2c5c('0x6')][_0x2c5c('0x3')][_0x2c5c('0x10')]())[_0x2c5c('0x14')](_0x289e4d=>this[_0x2c5c('0xb')][_0x2c5c('0xf')]['schema'][_0x2c5c('0x11')](_0x289e4d,_0x2c5c('0x0')));_0x2b3b95[_0x2c5c('0xf')][_0x2c5c('0x8')](()=>{for(const _0x222187 of _0x1ea8eb)_0x13e7a6['markBlockFormat'](_0x222187,{'commandName':_0x3e1648,'commandParams':[{'value':''}],'formatGroupId':_0x2c5c('0x1')});});});_0x13e7a6[_0x2c5c('0xa')][_0x2c5c('0x9')](_0x47e7b6=>{const {data:_0x451ee1}=_0x47e7b6;if(!_0x451ee1)return;if(_0x2c5c('0x1')!=_0x451ee1['commandName']&&_0x2c5c('0xc')!=_0x451ee1[_0x2c5c('0x17')])return;const _0x288eb8=_0x47e7b6['getItems']()[0x0],_0x50a4ef=_0x13e7a6['_descriptionFactory'][_0x2c5c('0x15')](_0x288eb8);return _0x2c5c('0x1')==_0x451ee1[_0x2c5c('0x17')]?{'type':_0x2c5c('0x12'),'content':_0x5e3ed2(_0x3539a1,'*Indent:*\x20%0',_0x50a4ef)}:_0x2c5c('0xc')==_0x451ee1[_0x2c5c('0x17')]?{'type':_0x2c5c('0x12'),'content':_0x5e3ed2(_0x3539a1,_0x2c5c('0x2'),_0x50a4ef)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5de0=['enableCommand','editor','TrackChangesEditing','init','get','requires','input'];(function(_0x15c5dd,_0x5de09e){var _0x165623=function(_0x3ba0e5){while(--_0x3ba0e5){_0x15c5dd['push'](_0x15c5dd['shift']());}};_0x165623(++_0x5de09e);}(_0x5de0,0xbf));var _0x1656=function(_0x15c5dd,_0x5de09e){_0x15c5dd=_0x15c5dd-0x0;var _0x165623=_0x5de0[_0x15c5dd];return _0x165623;};import{Plugin as _0xeb627}from'ckeditor5/src/core';import{Input as _0x3582a0}from'ckeditor5/src/typing';export default class it extends _0xeb627{static get[_0x1656('0x3')](){return[_0x3582a0];}[_0x1656('0x1')](){this[_0x1656('0x6')]['plugins'][_0x1656('0x2')](_0x1656('0x0'))[_0x1656('0x5')](_0x1656('0x4'));}}
|