@ckeditor/ckeditor5-track-changes 35.1.0 → 35.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +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 -1
- package/lang/translations/ar.po +4 -0
- package/lang/translations/az.po +4 -0
- package/lang/translations/bg.po +4 -0
- package/lang/translations/bn.po +4 -0
- package/lang/translations/ca.po +4 -0
- package/lang/translations/cs.po +4 -0
- package/lang/translations/da.po +4 -0
- package/lang/translations/de.po +4 -0
- package/lang/translations/el.po +4 -0
- package/lang/translations/en-au.po +4 -0
- package/lang/translations/en.po +4 -0
- package/lang/translations/es.po +4 -0
- package/lang/translations/et.po +4 -0
- package/lang/translations/fi.po +4 -0
- package/lang/translations/fr.po +4 -0
- package/lang/translations/gl.po +4 -0
- package/lang/translations/he.po +4 -0
- package/lang/translations/hi.po +4 -0
- package/lang/translations/hr.po +4 -0
- package/lang/translations/hu.po +4 -0
- package/lang/translations/id.po +4 -0
- package/lang/translations/it.po +4 -0
- package/lang/translations/ja.po +4 -0
- package/lang/translations/ko.po +27 -23
- package/lang/translations/lt.po +4 -0
- package/lang/translations/lv.po +4 -0
- package/lang/translations/ms.po +4 -0
- package/lang/translations/nl.po +4 -0
- package/lang/translations/no.po +4 -0
- package/lang/translations/pl.po +4 -0
- package/lang/translations/pt-br.po +4 -0
- package/lang/translations/pt.po +4 -0
- package/lang/translations/ro.po +4 -0
- package/lang/translations/ru.po +4 -0
- package/lang/translations/sk.po +4 -0
- package/lang/translations/sr-latn.po +4 -0
- package/lang/translations/sr.po +4 -0
- package/lang/translations/sv.po +4 -0
- package/lang/translations/th.po +4 -0
- package/lang/translations/tk.po +4 -0
- package/lang/translations/tr.po +4 -0
- package/lang/translations/tt.po +6 -2
- package/lang/translations/uk.po +4 -0
- package/lang/translations/ur.po +4 -0
- package/lang/translations/vi.po +4 -0
- package/lang/translations/zh-cn.po +4 -0
- package/lang/translations/zh.po +4 -0
- package/package.json +4 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/importword.js +23 -0
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/getrangesofblockgroups.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd66d=['forceValue','getSelectedBlocks','ELEMENT_BLOCK_QUOTE','get','registerDescriptionCallback','*Format:*\x20%0','model','plugins','markBlockFormat','document','_descriptionFactory','commands','schema','filter','commandName','BlockQuoteEditing','from','commandParams','*Remove\x20format:*\x20%0','blockQuote','value','locale','format','checkChild','TrackChangesEditing','editor','change','selection','has'];(function(_0x8432ed,_0xd66d02){const _0x1ff051=function(_0x351a05){while(--_0x351a05){_0x8432ed['push'](_0x8432ed['shift']());}};_0x1ff051(++_0xd66d02);}(_0xd66d,0x86));const _0x1ff0=function(_0x8432ed,_0xd66d02){_0x8432ed=_0x8432ed-0x0;let _0x1ff051=_0xd66d[_0x8432ed];return _0x1ff051;};import{Plugin as _0x38d8d9}from'ckeditor5/src/core';import{getTranslation as _0x842546}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x46ef70}from'../utils/getrangesofblockgroups';export default class P extends _0x38d8d9{['afterInit'](){const _0xf94650=this[_0x1ff0('0x7')],_0x229645=_0xf94650[_0x1ff0('0x3')];if(!_0xf94650[_0x1ff0('0x12')][_0x1ff0('0xa')](_0x1ff0('0x1a')))return;const _0x1da891=_0xf94650[_0x1ff0('0x12')][_0x1ff0('0xe')](_0x1ff0('0x6')),_0x434ea1=this[_0x1ff0('0x7')][_0x1ff0('0x16')]['get']('blockQuote');_0x1da891['enableCommand'](_0x1ff0('0x1'),(_0x5f1dc0,_0x255d5e={})=>{const _0x497c1f=this[_0x1ff0('0x7')][_0x1ff0('0x11')][_0x1ff0('0x14')][_0x1ff0('0x9')],_0x8e24a1=_0x255d5e&&void 0x0!==_0x255d5e['forceValue']?_0x255d5e[_0x1ff0('0xb')]:!_0x434ea1[_0x1ff0('0x2')];let _0x1a0a40=[];if(_0x8e24a1){const _0x17efb8=Array[_0x1ff0('0x1b')](_0x497c1f['getSelectedBlocks']())[_0x1ff0('0x18')](_0x16524b=>to(_0x16524b)||function(_0x149062,_0x291399){const _0x500c92=_0x291399['checkChild'](_0x149062['parent'],_0x1ff0('0x1')),_0x3193df=_0x291399[_0x1ff0('0x5')](['$root',_0x1ff0('0x1')],_0x149062);return _0x500c92&&_0x3193df;}(_0x16524b,this[_0x1ff0('0x7')][_0x1ff0('0x11')][_0x1ff0('0x17')]));_0x1a0a40=_0x46ef70(_0x17efb8,_0xf94650['model']);}else{const _0x1e04b5=Array[_0x1ff0('0x1b')](_0x497c1f[_0x1ff0('0xc')]())[_0x1ff0('0x18')](_0x36c9fe=>to(_0x36c9fe));_0x1a0a40=_0x46ef70(_0x1e04b5,_0xf94650['model']);}_0xf94650[_0x1ff0('0x11')][_0x1ff0('0x8')](()=>{for(const _0x45a7e3 of _0x1a0a40)_0x1da891[_0x1ff0('0x13')](_0x45a7e3,{'commandName':_0x1ff0('0x1'),'commandParams':[{'forceValue':_0x8e24a1}]});});}),_0x1da891[_0x1ff0('0x15')][_0x1ff0('0xf')](_0x2bb912=>{const {data:_0x5ef836}=_0x2bb912;if(_0x5ef836&&_0x1ff0('0x1')==_0x5ef836[_0x1ff0('0x19')]){const _0x27956c=_0x842546(_0x229645,_0x1ff0('0xd'));return _0x5ef836[_0x1ff0('0x1c')][0x0][_0x1ff0('0xb')]?{'type':_0x1ff0('0x4'),'content':_0x842546(_0x229645,_0x1ff0('0x10'),_0x27956c)}:{'type':_0x1ff0('0x4'),'content':_0x842546(_0x229645,_0x1ff0('0x0'),_0x27956c)};}});}}function to(_0x1e69c9){return'blockQuote'==_0x1e69c9['parent']['name'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x596c=['enableCommand','get','editor','plugins','ckbox','TrackChangesEditing'];(function(_0x4f8f4f,_0x596c9c){const _0x92cc60=function(_0x13266a){while(--_0x13266a){_0x4f8f4f['push'](_0x4f8f4f['shift']());}};_0x92cc60(++_0x596c9c);}(_0x596c,0x1b2));const _0x92cc=function(_0x4f8f4f,_0x596c9c){_0x4f8f4f=_0x4f8f4f-0x0;let _0x92cc60=_0x596c[_0x4f8f4f];return _0x92cc60;};import{Plugin as _0x174a81}from'ckeditor5/src/core';export default class G extends _0x174a81{['afterInit'](){const _0x5b5a35=this[_0x92cc('0x0')];_0x5b5a35['commands'][_0x92cc('0x5')](_0x92cc('0x2'))&&_0x5b5a35[_0x92cc('0x1')][_0x92cc('0x5')](_0x92cc('0x3'))[_0x92cc('0x4')](_0x92cc('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28f9=['rootElement','getSelectedBlocks','_descriptionFactory','from','locale','plugins','ELEMENT_CODE_BLOCK','blockName','label','enableCommand','languages','codeBlock','markBlockFormat','checkChild','isLimit','name','schema','TrackChangesEditing','commands','format','has','commandName','find','parent','document','language','outdentCodeBlock','selection','change','*Format:*\x20%0','afterInit','CodeBlock','get','forceValue','filter','*Remove\x20format:*\x20%0','commandParams','indentCodeBlock','editor'];(function(_0xa4799d,_0x28f9ef){const _0x4bdc57=function(_0x13de9e){while(--_0x13de9e){_0xa4799d['push'](_0xa4799d['shift']());}};_0x4bdc57(++_0x28f9ef);}(_0x28f9,0x8f));const _0x4bdc=function(_0xa4799d,_0x28f9ef){_0xa4799d=_0xa4799d-0x0;let _0x4bdc57=_0x28f9[_0xa4799d];return _0x4bdc57;};import{Plugin as _0x1fd936}from'ckeditor5/src/core';import{getTranslation as _0x608f18}from'../utils/common-translations';import{getRangesOfBlockGroups as _0x52fa69}from'../utils/getrangesofblockgroups';export default class F extends _0x1fd936{[_0x4bdc('0x4')](){const _0x4364d7=this[_0x4bdc('0xc')];if(!_0x4364d7['plugins'][_0x4bdc('0x21')](_0x4bdc('0x5')))return;const _0x2281cb=_0x4364d7[_0x4bdc('0x12')]['get'](_0x4bdc('0x1e')),_0x1603ae=_0x4364d7[_0x4bdc('0x11')],_0x541d4e=_0x4364d7['config'][_0x4bdc('0x6')](_0x4bdc('0x18'))[_0x4bdc('0x17')],_0x42f2ee=_0x4364d7[_0x4bdc('0x1f')][_0x4bdc('0x6')](_0x4bdc('0x18'));_0x2281cb[_0x4bdc('0x16')](_0x4bdc('0xb')),_0x2281cb[_0x4bdc('0x16')](_0x4bdc('0x0')),_0x2281cb['enableCommand'](_0x4bdc('0x18'),(_0x2ef09f,_0x674f57={})=>{const _0x1c96ef=_0x4364d7['model'],_0xf33721=_0x4364d7['model'][_0x4bdc('0x25')][_0x4bdc('0x1')],_0x15740a=_0x674f57&&void 0x0!==_0x674f57['forceValue']?_0x674f57['forceValue']:!_0x42f2ee['value'];let _0x583fc3;_0x674f57[_0x4bdc('0x26')]||(_0x674f57[_0x4bdc('0x26')]=_0x541d4e[0x0]['language']),_0x583fc3=_0x15740a?Array['from'](_0xf33721['getSelectedBlocks']())[_0x4bdc('0x8')](_0x32c4c4=>co(_0x32c4c4)||function(_0x47a0f0,_0x300365){if(_0x47a0f0['is'](_0x4bdc('0xd'))||_0x300365[_0x4bdc('0x1b')](_0x47a0f0))return!0x1;return _0x300365[_0x4bdc('0x1a')](_0x47a0f0[_0x4bdc('0x24')],_0x4bdc('0x18'));}(_0x32c4c4,_0x1c96ef[_0x4bdc('0x1d')])):Array[_0x4bdc('0x10')](_0xf33721[_0x4bdc('0xe')]())['filter'](_0x19e8f8=>co(_0x19e8f8));const _0x5b50f7=_0x52fa69(_0x583fc3,_0x1c96ef);_0x1c96ef[_0x4bdc('0x2')](()=>{for(const _0x57a305 of _0x5b50f7)_0x2281cb[_0x4bdc('0x19')](_0x57a305,{'commandName':_0x4bdc('0x18'),'commandParams':[{..._0x674f57,'forceValue':_0x15740a}],'formatGroupId':_0x4bdc('0x14')});});}),(_0x2281cb['_descriptionFactory']['registerElementLabel'](_0x4bdc('0x18'),_0x5aac04=>_0x608f18(_0x1603ae,_0x4bdc('0x13'),_0x5aac04)),_0x2281cb[_0x4bdc('0xf')]['registerDescriptionCallback'](_0x23568f=>{const {type:_0x5b6bef,data:_0xc6d5e7}=_0x23568f;if('formatBlock'==_0x5b6bef&&_0xc6d5e7&&_0x4bdc('0x18')==_0xc6d5e7[_0x4bdc('0x22')]){const _0x46abeb=_0xc6d5e7[_0x4bdc('0xa')][0x0][_0x4bdc('0x26')],_0x4fe384=_0x541d4e[_0x4bdc('0x23')](_0x101dfa=>_0x101dfa[_0x4bdc('0x26')]===_0x46abeb)[_0x4bdc('0x15')],_0x12853c=_0x1603ae['_t'](_0x4fe384);return _0xc6d5e7[_0x4bdc('0xa')][0x0][_0x4bdc('0x7')]?{'type':_0x4bdc('0x20'),'content':_0x608f18(_0x1603ae,_0x4bdc('0x3'),_0x608f18(_0x1603ae,_0x4bdc('0x13'),0x1)+'\x20('+_0x12853c+')')}:{'type':'format','content':_0x608f18(_0x1603ae,_0x4bdc('0x9'),_0x608f18(_0x1603ae,_0x4bdc('0x13'),0x1))};}}));}}function co(_0x53408d){return _0x4bdc('0x18')==_0x53408d[_0x4bdc('0x1c')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x42e3=['editor','CommentsEditing','enableCommand','afterInit','plugins','TrackChangesEditing','get'];(function(_0x2747e6,_0x42e37e){const _0x186a85=function(_0x126952){while(--_0x126952){_0x2747e6['push'](_0x2747e6['shift']());}};_0x186a85(++_0x42e37e);}(_0x42e3,0x109));const _0x186a=function(_0x2747e6,_0x42e37e){_0x2747e6=_0x2747e6-0x0;let _0x186a85=_0x42e3[_0x2747e6];return _0x186a85;};import{Plugin as _0x58b577}from'ckeditor5/src/core';export default class L extends _0x58b577{[_0x186a('0x4')](){const _0x5c0d0a=this[_0x186a('0x1')];if(!_0x5c0d0a[_0x186a('0x5')]['has'](_0x186a('0x2')))return;_0x5c0d0a[_0x186a('0x5')][_0x186a('0x0')](_0x186a('0x6'))[_0x186a('0x3')]('addCommentThread');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15a8=['model','high','detach','requires','modifySelection','enqueueChange','data','TrackChangesEditing','deleteForward','end','root','editing','getFirstRange','forward','lock','plugins','isCollapsed','showSuggestionHighlights','createRange','buffer','selection','start','removeMarker:suggestion:deletion','addMarker:suggestion:deletion','unbindElementFromMarkerName','document','$graveyard','remove','get','editor','setSelection','init','markerNameToElements','writer','unit','downcastDispatcher','delete','enableCommand','merge','unlock'];(function(_0x480955,_0x15a85b){const _0x25e957=function(_0x18b153){while(--_0x18b153){_0x480955['push'](_0x480955['shift']());}};_0x25e957(++_0x15a85b);}(_0x15a8,0x192));const _0x25e9=function(_0x480955,_0x15a85b){_0x480955=_0x480955-0x0;let _0x25e957=_0x15a8[_0x480955];return _0x25e957;};import{Plugin as _0x861f98}from'ckeditor5/src/core';import{Delete as _0x5c0313}from'ckeditor5/src/typing';import{LiveRange as _0x4b2d72}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x3bfdbf}from'./utils';export default class q extends _0x861f98{static get[_0x25e9('0x1')](){return[_0x5c0313];}[_0x25e9('0x1d')](){const _0x2a04cb=this[_0x25e9('0x1b')],_0x50bcb5=_0x2a04cb[_0x25e9('0xd')][_0x25e9('0x1a')](_0x25e9('0x5'));_0x50bcb5[_0x25e9('0x23')](_0x25e9('0x22'));const _0x4d5cdd=_0x2a04cb['commands'][_0x25e9('0x1a')](_0x25e9('0x6'));_0x50bcb5[_0x25e9('0x23')](_0x25e9('0x6'),(_0x3ab906,_0x1e4d22={})=>{const _0x1d4b10=_0x2a04cb[_0x25e9('0x26')]['createSelection'](_0x2a04cb[_0x25e9('0x26')][_0x25e9('0x17')][_0x25e9('0x12')]);_0x1d4b10[_0x25e9('0xe')]&&_0x2a04cb[_0x25e9('0x26')][_0x25e9('0x2')](_0x1d4b10,{'direction':_0x25e9('0xb'),'unit':_0x1e4d22[_0x25e9('0x20')]});const _0x1b6ace=_0x1d4b10[_0x25e9('0xa')](),_0x304c74=_0x4b2d72['fromRange'](_0x1b6ace);let _0x3af417;_0x3ab906(_0x1e4d22),_0x3af417=_0x25e9('0x18')==_0x304c74[_0x25e9('0x8')]['rootName']?_0x2a04cb[_0x25e9('0x26')][_0x25e9('0x10')](_0x1b6ace[_0x25e9('0x13')]):_0x2a04cb['model'][_0x25e9('0x10')](_0x304c74[_0x25e9('0x13')],_0x304c74[_0x25e9('0x7')]),_0x304c74[_0x25e9('0x0')](),_0x2a04cb['model'][_0x25e9('0x3')](_0x4d5cdd[_0x25e9('0x11')]['batch'],_0x37792f=>{_0x4d5cdd[_0x25e9('0x11')][_0x25e9('0xc')](),_0x37792f[_0x25e9('0x1c')](_0x37792f['createRange'](_0x3af417['end'])),_0x4d5cdd['buffer'][_0x25e9('0x25')]();});}),_0x2a04cb[_0x25e9('0x9')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',_0x3bfdbf(_0x2a04cb,_0x25e9('0x24')),{'priority':'high'}),_0x2a04cb[_0x25e9('0x4')][_0x25e9('0x21')]['on'](_0x25e9('0x15'),(_0x1343ff,_0x2826a7,_0x46f6b6)=>{_0x46f6b6['options'][_0x25e9('0xf')]&&_0x3bfdbf(_0x2a04cb,_0x25e9('0x24'),{'showActiveMarker':!0x1})(_0x1343ff,_0x2826a7,_0x46f6b6);},{'priority':_0x25e9('0x27')}),_0x2a04cb[_0x25e9('0x9')][_0x25e9('0x21')]['on'](_0x25e9('0x14'),(_0x129d94,_0xd07dd8,_0x3dc82b)=>{const _0x15511f=_0x3dc82b['mapper'][_0x25e9('0x1e')](_0xd07dd8['markerName']);if(_0x15511f)for(const _0x53486a of _0x15511f)_0x53486a['is']('uiElement')&&(_0x3dc82b['mapper'][_0x25e9('0x16')](_0x53486a,_0xd07dd8['markerName']),_0x3dc82b[_0x25e9('0x1f')][_0x25e9('0x19')](_0x53486a));},{'priority':_0x25e9('0x27')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34dd=['init','hasClass','downcastDispatcher','document','detach','model','setSelection','writer','createPositionAt','createRange','mapper','data','plugins','requires','high','parent','selection','showSuggestionHighlights','addMarker:suggestion:insertion','enableCommand','schema','ck-suggestion-marker-split','nextSibling','editor','TrackChangesEditing','isAtStart','start','getFirstRange','markerName','split','editing','isAtEnd','change','end','isLimit','isCollapsed'];(function(_0x582a25,_0x34dd2e){const _0x52639b=function(_0x8f3158){while(--_0x8f3158){_0x582a25['push'](_0x582a25['shift']());}};_0x52639b(++_0x34dd2e);}(_0x34dd,0x1d6));const _0x5263=function(_0x582a25,_0x34dd2e){_0x582a25=_0x582a25-0x0;let _0x52639b=_0x34dd[_0x582a25];return _0x52639b;};import{Plugin as _0x37f827}from'ckeditor5/src/core';import{Enter as _0x448fe6}from'ckeditor5/src/enter';import{LiveRange as _0x3d147b}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x544f36}from'./utils';export default class H extends _0x37f827{static get[_0x5263('0xb')](){return[_0x448fe6];}[_0x5263('0x22')](){const _0x53c334=this[_0x5263('0x15')],_0x249f5e=_0x53c334[_0x5263('0xa')]['get'](_0x5263('0x16'));_0x249f5e[_0x5263('0x11')]('enter',_0xc03142=>{_0x53c334['model'][_0x5263('0x1e')](_0x3f24c2=>{const _0x11be2c=_0x53c334[_0x5263('0x3')][_0x5263('0x1')][_0x5263('0xe')],_0x198f99=_0x11be2c['getFirstPosition'](),_0x138f5c=_0x11be2c[_0x5263('0x21')],_0x19d856=_0x3d147b['fromRange'](_0x11be2c[_0x5263('0x19')]()),_0x57d544=_0x19d856[_0x5263('0x18')][_0x5263('0xd')],_0x4522d8=_0x19d856['end']['parent'],_0x2c70e0=!(_0x19d856[_0x5263('0x18')][_0x5263('0x17')]&&_0x19d856[_0x5263('0x1f')][_0x5263('0x1d')]),_0x970cd0=_0x57d544==_0x4522d8,_0x3049ea=!(_0x53c334[_0x5263('0x3')][_0x5263('0x12')]['isLimit'](_0x57d544)||_0x53c334[_0x5263('0x3')][_0x5263('0x12')][_0x5263('0x20')](_0x4522d8))&&(_0x138f5c||_0x2c70e0&&_0x970cd0);if(_0xc03142(),_0x3049ea){const _0x1acd6c=_0x53c334[_0x5263('0x3')][_0x5263('0x6')](_0x198f99[_0x5263('0xd')][_0x5263('0x14')],0x0),_0x2c5e25=_0x3f24c2[_0x5263('0x7')](_0x198f99,_0x1acd6c);_0x249f5e['markInsertion'](_0x2c5e25);}else _0x3f24c2[_0x5263('0x4')](_0x3f24c2['createRange'](_0x19d856['end']));_0x19d856[_0x5263('0x2')]();});}),_0x53c334['editing'][_0x5263('0x0')]['on'](_0x5263('0x10'),_0x544f36(_0x53c334,_0x5263('0x1b')),{'priority':_0x5263('0xc')}),_0x53c334[_0x5263('0x1c')]['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x250f2d,_0x3662c5,_0x175e7d)=>{const _0x33f0db=_0x175e7d[_0x5263('0x8')]['markerNameToElements'](_0x3662c5[_0x5263('0x1a')]);if(_0x33f0db)for(const _0x299052 of _0x33f0db)_0x299052[_0x5263('0x23')](_0x5263('0x13'))&&(_0x175e7d['mapper']['unbindElementFromMarkerName'](_0x299052,_0x3662c5[_0x5263('0x1a')]),_0x175e7d[_0x5263('0x5')]['remove'](_0x299052));},{'priority':_0x5263('0xc')}),_0x53c334[_0x5263('0x9')][_0x5263('0x0')]['on'](_0x5263('0x10'),(_0xeda798,_0x15e69b,_0xcae1f3)=>{_0xcae1f3['options'][_0x5263('0xf')]&&_0x544f36(_0x53c334,_0x5263('0x1b'),{'showActiveMarker':!0x1})(_0xeda798,_0x15e69b,_0xcae1f3);},{'priority':_0x5263('0xc')});}}
|
package/src/integrations/font.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cde=['registerDescriptionCallback','get','change','editor','trim','FontSizeEditing','enableCommand','*Reset\x20font\x20color*','markInlineFormat','plugins','normalizeSizeOptions','FontFamilyEditing','*Reset\x20font\x20background\x20color*','getRanges','from','FontSize','_descriptionFactory','find','value','*Set\x20font\x20color:*\x20%0','toLowerCase','fontSize.options','commandParams','isCollapsed','FontColorEditing','format','selection','FontBackgroundColorEditing','config','TrackChangesEditing','*Set\x20font\x20size:*\x20%0','fontColor','_enableCommand','locale','*Set\x20font\x20family:*\x20%0','*Set\x20font\x20background\x20color:*\x20%0','model','title','afterInit','has','commandName','fontFamily','fontSize','*Reset\x20font\x20size*','label'];(function(_0x2a4f3d,_0x4cde23){const _0x29dfb6=function(_0x3e16da){while(--_0x3e16da){_0x2a4f3d['push'](_0x2a4f3d['shift']());}};_0x29dfb6(++_0x4cde23);}(_0x4cde,0x115));const _0x29df=function(_0x2a4f3d,_0x4cde23){_0x2a4f3d=_0x2a4f3d-0x0;let _0x29dfb6=_0x4cde[_0x2a4f3d];return _0x29dfb6;};import{Plugin as _0x57388b}from'ckeditor5/src/core';import{normalizeColorOptions as _0x417502}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x54b1a6}from'./utils';import{getTranslation as _0x1b197f}from'../utils/common-translations';const Bt=[{'pluginName':_0x29df('0x2b'),'commandName':_0x29df('0x23')},{'pluginName':_0x29df('0x4'),'commandName':'fontFamily'},{'pluginName':_0x29df('0x11'),'commandName':_0x29df('0x18')},{'pluginName':_0x29df('0x14'),'commandName':'fontBackgroundColor'}];export default class W extends _0x57388b{[_0x29df('0x1f')](){const _0x329fbc=this[_0x29df('0x29')]['locale'];for(const {pluginName:_0xfc29cf,commandName:_0x48a058}of Bt)this['editor']['plugins'][_0x29df('0x20')](_0xfc29cf)&&this['_enableCommand'](_0x48a058);this[_0x29df('0x29')][_0x29df('0x2')]['get'](_0x29df('0x16'))[_0x29df('0x9')][_0x29df('0x26')](_0x1b235b=>{const {data:_0x2346ae}=_0x1b235b;if(null!=_0x2346ae){if(_0x29df('0x23')==_0x2346ae[_0x29df('0x21')]){const _0x4952ae=_0x2346ae['commandParams'][0x0][_0x29df('0xb')];if(_0x4952ae){const _0x1cf178=this[_0x29df('0x29')][_0x29df('0x2')][_0x29df('0x27')](_0x29df('0x8'))[_0x29df('0x3')](this[_0x29df('0x29')][_0x29df('0x15')][_0x29df('0x27')](_0x29df('0xe')))[_0x29df('0xa')](_0x4bb1a5=>_0x4bb1a5[_0x29df('0x1d')]==_0x4952ae)[_0x29df('0x1e')],_0x131af6=this[_0x29df('0x29')][_0x29df('0x1a')]['_t'](_0x1cf178)['toLowerCase']();return{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x17'),_0x131af6)};}return{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x24'))};}if(_0x29df('0x22')==_0x2346ae[_0x29df('0x21')]){const _0x4601d0=_0x2346ae[_0x29df('0xf')][0x0][_0x29df('0xb')];return _0x4601d0?{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x1b'),_0x4601d0)}:{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,'*Reset\x20font\x20family*')};}if(_0x29df('0x18')==_0x2346ae['commandName']){const _0x304f99=_0x2346ae[_0x29df('0xf')][0x0][_0x29df('0xb')];if(_0x304f99){const _0x201c8c=_0x417502(this[_0x29df('0x29')][_0x29df('0x15')][_0x29df('0x27')]('fontColor.colors'))['find'](_0x4bf800=>_0x4bf800[_0x29df('0x1d')]==_0x304f99);let _0x650a7c=_0x304f99,_0x24525e='';return _0x201c8c&&(_0x650a7c=_0x201c8c['label'],_0x24525e=_0x329fbc['_t'](_0x650a7c)['toLowerCase']()),{'type':'format','content':_0x1b197f(_0x329fbc,_0x29df('0xc'),_0x24525e)[_0x29df('0x2a')](),'color':{'value':_0x304f99,'title':_0x24525e||_0x650a7c}};}return{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x0'))};}if('fontBackgroundColor'==_0x2346ae[_0x29df('0x21')]){const _0x4a5d5e=_0x2346ae[_0x29df('0xf')][0x0][_0x29df('0xb')];if(_0x4a5d5e){const _0x219237=_0x417502(this['editor'][_0x29df('0x15')][_0x29df('0x27')]('fontBackgroundColor.colors'))[_0x29df('0xa')](_0x127202=>_0x127202[_0x29df('0x1d')]==_0x4a5d5e);let _0x449ff9=_0x4a5d5e,_0x7a893e='';return _0x219237&&(_0x449ff9=_0x219237[_0x29df('0x25')],_0x7a893e=_0x329fbc['_t'](_0x449ff9)[_0x29df('0xd')]()),{'type':_0x29df('0x12'),'content':_0x1b197f(_0x329fbc,_0x29df('0x1c'),_0x7a893e)[_0x29df('0x2a')](),'color':{'value':_0x4a5d5e,'title':_0x7a893e||_0x449ff9}};}return{'type':'format','content':_0x1b197f(_0x329fbc,_0x29df('0x5'))};}}});}[_0x29df('0x19')](_0x487021){const _0x288ab8=this['editor'];_0x288ab8[_0x29df('0x2')][_0x29df('0x27')](_0x29df('0x16'))[_0x29df('0x2c')](_0x487021,(_0x39ee80,_0x190c5e={})=>{const _0x3b5c90=_0x288ab8[_0x29df('0x1d')]['document'][_0x29df('0x13')],_0xe65f62=_0x190c5e['value'];_0x3b5c90[_0x29df('0x10')]?_0x39ee80(_0x190c5e):_0x288ab8['model'][_0x29df('0x28')](()=>{const _0x4cc9a7=Array[_0x29df('0x7')](_0x3b5c90[_0x29df('0x6')]());for(const _0x310bc6 of _0x4cc9a7){const _0x55a83f=_0xe65f62?[_0x310bc6]:_0x54b1a6(_0x487021,_0x310bc6,_0x288ab8[_0x29df('0x1d')]);for(const _0xdb40c6 of _0x55a83f)_0x288ab8[_0x29df('0x2')][_0x29df('0x27')](_0x29df('0x16'))[_0x29df('0x1')](_0xdb40c6,{'commandName':_0x487021,'commandParams':[{'value':_0xe65f62}]});}});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22f1=['find','change','format','parent','selection','blockName','heading.options','getSelectedBlocks','name','*Change\x20to:*\x20%0','heading','isObject','commandName','document','get','HeadingEditing','editor','paragraph','match','checkChild','TrackChangesEditing','enableCommand','registerElementLabel','ELEMENT_HEADING','plugins','model','registerDescriptionCallback','markBlockFormat','locale','value','_descriptionFactory','afterInit','ELEMENT_HEADING_CUSTOM','schema','title'];(function(_0x480cdf,_0x22f16c){const _0x3b1062=function(_0xa7d8af){while(--_0xa7d8af){_0x480cdf['push'](_0x480cdf['shift']());}};_0x3b1062(++_0x22f16c);}(_0x22f1,0x192));const _0x3b10=function(_0x480cdf,_0x22f16c){_0x480cdf=_0x480cdf-0x0;let _0x3b1062=_0x22f1[_0x480cdf];return _0x3b1062;};import{Plugin as _0x3fa2b0}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3df704}from'./utils';import{getTranslation as _0x2b2a79}from'../utils/common-translations';export default class z extends _0x3fa2b0{[_0x3b10('0xe')](){const _0xc8f3e7=this[_0x3b10('0x22')],_0x5edc75=_0xc8f3e7[_0x3b10('0xb')],_0x2aae56=_0xc8f3e7['config'][_0x3b10('0x20')](_0x3b10('0x18'));if(!_0xc8f3e7['plugins']['has'](_0x3b10('0x21')))return;const _0x22cf4a=_0xc8f3e7[_0x3b10('0x7')][_0x3b10('0x20')](_0x3b10('0x3'));_0x22cf4a[_0x3b10('0x4')](_0x3b10('0x1c'),(_0x413054,_0x9725)=>{const _0x20032a=_0x9725[_0x3b10('0xc')],_0x31248f=Array['from'](this[_0x3b10('0x22')][_0x3b10('0x8')][_0x3b10('0x1f')][_0x3b10('0x16')][_0x3b10('0x19')]())['filter'](_0x2a8469=>function(_0x5d4a19,_0x477e41,_0x176e2a){return _0x176e2a[_0x3b10('0x2')](_0x5d4a19[_0x3b10('0x15')],_0x477e41)&&!_0x176e2a[_0x3b10('0x1d')](_0x5d4a19)&&_0x5d4a19[_0x3b10('0x1a')]!=_0x477e41;}(_0x2a8469,_0x20032a,this[_0x3b10('0x22')][_0x3b10('0x8')][_0x3b10('0x10')]));_0xc8f3e7[_0x3b10('0x8')][_0x3b10('0x13')](()=>{for(const _0x16c20d of _0x31248f)_0x22cf4a[_0x3b10('0xa')](_0x16c20d,{'commandName':'heading','commandParams':[_0x9725],'formatGroupId':_0x3b10('0x17')},_0x3df704(_0x16c20d));});});for(const _0x4ed57b of _0x2aae56)_0x3b10('0x0')!=_0x4ed57b[_0x3b10('0x8')]&&_0x22cf4a[_0x3b10('0xd')][_0x3b10('0x5')](_0x4ed57b[_0x3b10('0x8')],_0x4669d9=>{const _0x2bf628=Ht(_0x4ed57b[_0x3b10('0x8')]);return null!==_0x2bf628?_0x2bf032(_0x4669d9,_0x2bf628):_0x51a9e4(_0x4669d9,_0x4ed57b[_0x3b10('0x11')]);});function _0x2bf032(_0x51a69d,_0x5869fc){return _0x2b2a79(_0x5edc75,_0x3b10('0x6'),[_0x51a69d,_0x5869fc]);}function _0x51a9e4(_0x222a9a,_0x5c614f){return _0x2b2a79(_0x5edc75,_0x3b10('0xf'),[_0x222a9a,_0x5c614f]);}_0x22cf4a[_0x3b10('0xd')][_0x3b10('0x9')](_0x41be38=>{const {type:_0xc526cb,data:_0x19d76f}=_0x41be38;if('formatBlock'==_0xc526cb&&_0x19d76f&&_0x3b10('0x1c')==_0x19d76f[_0x3b10('0x1e')]){const _0x2931bd=_0x19d76f['commandParams'][0x0][_0x3b10('0xc')],_0x2cd251=Ht(_0x2931bd);if(null!==_0x2cd251)return{'type':_0x3b10('0x14'),'content':_0x2b2a79(_0x5edc75,_0x3b10('0x1b'),_0x2bf032(0x1,_0x2cd251))};const _0x9fcfc2=_0x2aae56[_0x3b10('0x12')](_0x2abac2=>_0x2abac2[_0x3b10('0x8')]===_0x2931bd)[_0x3b10('0x11')];return{'type':_0x3b10('0x14'),'content':_0x2b2a79(_0x5edc75,_0x3b10('0x1b'),_0x51a9e4(0x1,_0x9fcfc2))};}});}}function Ht(_0x5861e6){const _0x2b86bc=_0x5861e6[_0x3b10('0x1')](/^heading(\d+)$/);return _0x2b86bc?_0x2b86bc[0x1]:null;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1066=['item','commandParams','format','plugins','hasAttribute','afterInit','document','registerDescriptionCallback','getAttribute','find','selection','markInlineFormat','color','FORMAT_HIGHLIGHT','config','_descriptionFactory','value','toLowerCase','getFirstPosition','model','TrackChangesEditing','highlight','push','editor','enableCommand','title','has','HighlightEditing','getLastMatchingPosition','get','highlight.options','*Remove\x20highlight*','commandName','formatInline','isCollapsed','*Set\x20highlight:*\x20%0','locale'];(function(_0x43a8e8,_0x106615){const _0x11cacd=function(_0x18f15d){while(--_0x18f15d){_0x43a8e8['push'](_0x43a8e8['shift']());}};_0x11cacd(++_0x106615);}(_0x1066,0x180));const _0x11ca=function(_0x43a8e8,_0x106615){_0x43a8e8=_0x43a8e8-0x0;let _0x11cacd=_0x1066[_0x43a8e8];return _0x11cacd;};import{Plugin as _0x5b9a26}from'ckeditor5/src/core';import{getTranslation as _0x33ef89}from'../utils/common-translations';import{getRangesWithAttribute as _0x525697}from'./utils';export default class J extends _0x5b9a26{[_0x11ca('0x1c')](){const _0x55df15=this[_0x11ca('0x9')];if(!_0x55df15[_0x11ca('0x1a')][_0x11ca('0xc')](_0x11ca('0xd')))return;const _0xf0ae90=_0x55df15[_0x11ca('0x1a')][_0x11ca('0xf')](_0x11ca('0x6'));_0xf0ae90[_0x11ca('0xa')](_0x11ca('0x7'),(_0x57d922,_0x13d88c={})=>{const _0x5ae243=_0x55df15[_0x11ca('0x5')][_0x11ca('0x1d')][_0x11ca('0x21')],_0x9a797b=_0x5ae243[_0x11ca('0x1f')]('highlight');let _0xa64045=_0x13d88c['value'],_0x71d5c6=[];if(_0x5ae243[_0x11ca('0x14')]){const _0x2b07ab=_0x5ae243[_0x11ca('0x4')]();if(!_0x5ae243[_0x11ca('0x1b')](_0x11ca('0x7')))return void _0x57d922(_0x13d88c);{const _0x1a715c=_0x25996b=>_0x25996b[_0x11ca('0x17')][_0x11ca('0x1f')]('highlight')===_0x9a797b,_0x484310=_0x2b07ab[_0x11ca('0xe')](_0x1a715c,{'direction':'backward'}),_0x5d2036=_0x2b07ab[_0x11ca('0xe')](_0x1a715c);_0x71d5c6=[_0x55df15['model']['createRange'](_0x484310,_0x5d2036)],_0xa64045==_0x9a797b&&(_0xa64045=null);}}else for(const _0x4463fe of _0x5ae243['getRanges']())_0xa64045?_0x71d5c6[_0x11ca('0x8')](_0x4463fe):_0x71d5c6[_0x11ca('0x8')](..._0x525697(_0x11ca('0x7'),_0x4463fe,_0x55df15[_0x11ca('0x5')]));_0x55df15[_0x11ca('0x5')]['change'](()=>{for(const _0x3f95b6 of _0x71d5c6)_0xf0ae90[_0x11ca('0x22')](_0x3f95b6,{'commandName':_0x11ca('0x7'),'commandParams':[{'value':_0xa64045}]});});});const _0x5bede0=_0x55df15[_0x11ca('0x16')];_0xf0ae90[_0x11ca('0x1')][_0x11ca('0x1e')](_0x24882a=>{const {type:_0x369d84,data:_0x48a54a}=_0x24882a;if(_0x11ca('0x13')==_0x369d84&&_0x48a54a&&_0x11ca('0x7')==_0x48a54a[_0x11ca('0x12')]){const _0x4d352f=_0x48a54a[_0x11ca('0x18')][0x0][_0x11ca('0x2')];if(_0x4d352f){const _0x5dc8e9=_0x55df15[_0x11ca('0x0')]['get'](_0x11ca('0x10'))[_0x11ca('0x20')](_0xc8ba6=>_0xc8ba6[_0x11ca('0x5')]==_0x4d352f),_0x532090=_0x5bede0['_t'](_0x5dc8e9[_0x11ca('0xb')])[_0x11ca('0x3')]();return{'type':_0x11ca('0x19'),'content':_0x33ef89(_0x5bede0,_0x11ca('0x15'),_0x532090),'color':{'value':_0x5dc8e9[_0x11ca('0x23')],'title':_0x5dc8e9[_0x11ca('0xb')]}};}return{'type':'format','content':_0x33ef89(_0x5bede0,_0x11ca('0x11'),_0x33ef89(_0x5bede0,_0x11ca('0x24')))};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bd6=['editor','createEmptyElement','ELEMENT_HORIZONTAL_LINE','createPositionAt','get','createContainerElement','for','ck-horizontal-line','HorizontalLineEditing','elementToStructure','TrackChangesEditing','registerElementLabel','has','showSuggestionHighlights','horizontalLine','enableCommand','plugins','insert','locale','afterInit'];(function(_0x3f01ed,_0x5bd641){const _0x4d0f0e=function(_0x51c8a5){while(--_0x51c8a5){_0x3f01ed['push'](_0x3f01ed['shift']());}};_0x4d0f0e(++_0x5bd641);}(_0x5bd6,0x16c));const _0x4d0f=function(_0x3f01ed,_0x5bd641){_0x3f01ed=_0x3f01ed-0x0;let _0x4d0f0e=_0x5bd6[_0x3f01ed];return _0x4d0f0e;};import{Plugin as _0x5bfe56}from'ckeditor5/src/core';import{getTranslation as _0x54addf}from'../utils/common-translations';export default class K extends _0x5bfe56{[_0x4d0f('0xf')](){const _0x294de6=this[_0x4d0f('0x10')];if(!_0x294de6[_0x4d0f('0xc')][_0x4d0f('0x8')](_0x4d0f('0x4')))return;_0x294de6[_0x4d0f('0xc')][_0x4d0f('0x0')](_0x4d0f('0x6'))[_0x4d0f('0xb')]('horizontalLine');const _0x3546f3=_0x294de6[_0x4d0f('0xc')][_0x4d0f('0x0')](_0x4d0f('0x6')),_0x5d4e1d=_0x294de6[_0x4d0f('0xe')];_0x3546f3['_descriptionFactory'][_0x4d0f('0x7')](_0x4d0f('0xa'),_0x4f4128=>_0x54addf(_0x5d4e1d,_0x4d0f('0x12'),_0x4f4128)),_0x294de6['conversion'][_0x4d0f('0x2')]('dataDowncast')[_0x4d0f('0x5')]({'model':_0x4d0f('0xa'),'view':(_0x5c8104,{writer:_0x32e44c,options:_0x4e541c})=>{if(!_0x4e541c[_0x4d0f('0x9')])return;const _0x3d2662=_0x32e44c[_0x4d0f('0x1')]('div'),_0x274582=_0x32e44c[_0x4d0f('0x11')]('hr');return _0x32e44c['addClass'](_0x4d0f('0x3'),_0x3d2662),_0x32e44c[_0x4d0f('0xd')](_0x32e44c[_0x4d0f('0x13')](_0x3d2662,0x0),_0x274582),_0x3d2662;},'converterPriority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f66=['*Change\x20%0\x20content*','get','format','getCustomProperty','ELEMENT_HTML_EMBED','enableCommand','plugins','_descriptionFactory','document','registerDescriptionCallback','editor','cancel','registerElementLabel','selection','value','getSelectedElement','commandName','view','TrackChangesEditing','rawHtml','getAttribute','htmlEmbed','rawHtmlApi'];(function(_0x1ed779,_0x2f66f7){const _0x2a6e19=function(_0x1a7c00){while(--_0x1a7c00){_0x1ed779['push'](_0x1ed779['shift']());}};_0x2a6e19(++_0x2f66f7);}(_0x2f66,0xe5));const _0x2a6e=function(_0x1ed779,_0x2f66f7){_0x1ed779=_0x1ed779-0x0;let _0x2a6e19=_0x2f66[_0x1ed779];return _0x2a6e19;};import{Plugin as _0x2a0c9c}from'ckeditor5/src/core';import{getTranslation as _0x1fe819}from'../utils/common-translations';export default class Q extends _0x2a0c9c{['afterInit'](){const _0x21ffb4=this[_0x2a6e('0xb')];if(!_0x21ffb4[_0x2a6e('0x7')]['has']('HtmlEmbed'))return;const _0x2a0c41=_0x21ffb4[_0x2a6e('0x7')][_0x2a6e('0x2')](_0x2a6e('0x13')),_0x5f1d49=_0x21ffb4['locale'],_0x2f63de=_0x21ffb4['editing'][_0x2a6e('0x12')][_0x2a6e('0x9')][_0x2a6e('0xe')];_0x2a0c41[_0x2a6e('0x8')][_0x2a6e('0xd')](_0x2a6e('0x14'),_0x51c542=>_0x1fe819(_0x5f1d49,_0x2a6e('0x5'),_0x51c542)),_0x21ffb4['plugins'][_0x2a6e('0x2')](_0x2a6e('0x13'))[_0x2a6e('0x6')]('htmlEmbed',(_0x5e566c,_0x220f11)=>{const _0x10e0ed=_0x21ffb4['model'],_0xef55b2=_0x10e0ed['document']['selection'];_0x10e0ed['change'](()=>{const _0x164192=function(_0x24643d){const _0x5aa03c=_0x24643d[_0x2a6e('0x10')]();if(_0x5aa03c&&_0x5aa03c['is']('element',_0x2a6e('0x14')))return _0x24643d['getSelectedElement']();return null;}(_0xef55b2);if(!_0x164192)return void _0x5e566c(null);const _0x1b5b04=_0x164192[_0x2a6e('0x15')](_0x2a6e('0xf'))||'';if(void 0x0===_0x220f11)return;if(_0x220f11===_0x1b5b04)return;_0x2a0c41['markBlockFormat'](_0x164192,{'commandName':_0x2a6e('0x16'),'commandParams':[_0x220f11]}),_0x2f63de['getSelectedElement']()[_0x2a6e('0x4')](_0x2a6e('0x0'))[_0x2a6e('0xc')]();});}),_0x2a0c41[_0x2a6e('0x8')][_0x2a6e('0xa')](_0x51d674=>{const {data:_0x1c9a67}=_0x51d674;if(_0x1c9a67&&_0x2a6e('0x16')==_0x1c9a67[_0x2a6e('0x11')]){const _0x3b307e=_0x1fe819(_0x5f1d49,_0x2a6e('0x5'));return{'type':_0x2a6e('0x3'),'content':_0x1fe819(_0x5f1d49,_0x2a6e('0x1'),_0x3b307e)};}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x18ec=['ImageTextAlternativeEditing','convertInlineImageToBlock','schema','model','imageBlock','suggestion','isInlineImage','TrackChangesEditing','newValue','_suggestionFactory','type','imageInline','ImageCaptionEditing','hasAttribute','_findSuggestions','forward','toLowerCase','getSuggestionCallback','previous','isEqual','insertion','Inline\x20image\x20to\x20block\x20image','filter','getSuggestion','isOwn','has','formatBlock','imageStylePostApply','join','ImageCaptionUtils','findIndex','author','change','markInlineFormat','getFirstRange','resizeImage','forEach','accept','toggleImageCaption','ELEMENT_INLINE_IMAGE','width','head','locale','length','registerDescriptionCallback','createRange','ImageInlineEditing','discardSuggestion','newRange','selection','registerCustomCallback','Block\x20image\x20to\x20inline\x20image','ImageBlockEditing','from','afterInit','enableCommand','formatInline','getNearestSelectionRange','chain','shouldConvertImageType','side','commands','getSuggestions','getClosestSelectedImageElement','commandParams','isIntersecting','*Reset\x20image\x20width*','isInContent','caption','imageTypeBlock','commandName','getChangedMarkers','value','alt','*Remove\x20image\x20text\x20alternative*','isCollapsed','registerElementLabel','nodeBefore','isBlockImage','getContainedElement','document','registerPostFixer','createRangeOn','start','ImageUploadEditing','format','imageTextAlternative','removeObject','markDeletion','markInsertion','commandReversedParams','*Format:*\x20%0','differ','imageStylePreApply','convertBlockImageToInline','end','plugins','_descriptionFactory','toNext','subType','next','_splitMarkerName','insertImage','ImageResize','name','FORMAT_SIDE_IMAGE','detach','fromPosition','isBefore','markBlockFormat','imageStyle','getCaptionFromImageModelElement','imageCaption','get','imageTypeInline','find','Users','backward','refresh','forceDefaultExecution','element'];(function(_0x15591e,_0x18ecea){const _0x5e78d6=function(_0x3996b4){while(--_0x3996b4){_0x15591e['push'](_0x15591e['shift']());}};_0x5e78d6(++_0x18ecea);}(_0x18ec,0xbd));const _0x5e78=function(_0x15591e,_0x18ecea){_0x15591e=_0x15591e-0x0;let _0x5e78d6=_0x18ec[_0x15591e];return _0x5e78d6;};import{Plugin as _0x1a0cf2}from'ckeditor5/src/core';import{LivePosition as _0x13a522}from'ckeditor5/src/engine';import{uid as _0xe50f4f}from'ckeditor5/src/utils';import{getTranslation as _0x250a75}from'../utils/common-translations';export default class V extends _0x1a0cf2{[_0x5e78('0x6b')](){const _0x5d8b34=this['editor'];if(!_0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x4e')]('ImageEditing'))return;const _0x5a7f0c=_0x5d8b34['plugins'][_0x5e78('0x2d')](_0x5e78('0x3c')),_0x236524=_0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x2d')]('ImageUtils'),_0x2465e4={},_0x512800=_0x5d8b34[_0x5e78('0x5f')];if(_0x5a7f0c[_0x5e78('0x6c')](_0x5e78('0x22')),_0x5a7f0c[_0x5e78('0x1d')][_0x5e78('0x8')](_0x5e78('0x39'),_0x4281b2=>_0x250a75(_0x512800,'ELEMENT_IMAGE',_0x4281b2)),_0x5a7f0c[_0x5e78('0x1d')]['registerElementLabel'](_0x5e78('0x40'),_0x3d06b0=>_0x250a75(_0x512800,_0x5e78('0x5c'),_0x3d06b0)),_0x5a7f0c[_0x5e78('0x1d')][_0x5e78('0x8')](_0x5e78('0x0'),_0x250a75(_0x512800,'ELEMENT_CAPTION')),_0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x4e')](_0x5e78('0x10'))&&_0x5a7f0c[_0x5e78('0x6c')]('uploadImage'),_0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x4e')](_0x5e78('0x69'))&&_0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x4e')](_0x5e78('0x63'))&&(_0x5a7f0c[_0x5e78('0x6c')]('imageTypeInline',(_0x1b2752,_0x2c3da1)=>{const _0x23e936=_0x236524[_0x5e78('0x74')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')]['selection']);_0x5d8b34['model'][_0x5e78('0x55')](()=>{_0x5a7f0c[_0x5e78('0x29')](_0x23e936,{'commandName':_0x5e78('0x2e'),'commandParams':[_0x2c3da1]},[],_0x5e78('0x1a'));});}),_0x5a7f0c[_0x5e78('0x6c')](_0x5e78('0x1'),(_0xae570,_0x857d64)=>{_0x5d8b34[_0x5e78('0x38')][_0x5e78('0x55')](_0x235345=>{let _0x204f88=_0x236524[_0x5e78('0x74')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')][_0x5e78('0x66')]),_0x196c89=_0x235345[_0x5e78('0xe')](_0x204f88);const _0x3d4296=_0x13a522[_0x5e78('0x27')](_0x196c89['start'],'toPrevious'),_0x2f3b52=_0x13a522['fromPosition'](_0x196c89[_0x5e78('0x1b')],_0x5e78('0x1e'));_0x5a7f0c[_0x5e78('0x33')](()=>_0xae570(_0x857d64)),_0x204f88=_0x236524[_0x5e78('0x74')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')]['selection']),_0x196c89=_0x235345[_0x5e78('0xe')](_0x204f88);const _0x2bfbd4=_0x235345[_0x5e78('0x62')](_0x3d4296,_0x2f3b52);_0x3d4296['detach'](),_0x2f3b52[_0x5e78('0x26')](),_0x5a7f0c[_0x5e78('0x29')](_0x204f88,{'commandName':_0x5e78('0x2e')},[],'convertInlineImageToBlock'),_0x2bfbd4[_0x5e78('0xf')]['isBefore'](_0x196c89[_0x5e78('0xf')])&&_0x5a7f0c[_0x5e78('0x15')](_0x235345[_0x5e78('0x62')](_0x2bfbd4[_0x5e78('0xf')],_0x196c89[_0x5e78('0xf')]),'convertInlineImageToBlock'),_0x196c89[_0x5e78('0x1b')][_0x5e78('0x28')](_0x2bfbd4['end'])&&_0x5a7f0c[_0x5e78('0x15')](_0x235345[_0x5e78('0x62')](_0x196c89[_0x5e78('0x1b')],_0x2bfbd4[_0x5e78('0x1b')]),_0x5e78('0x36'));});}),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')](_0x5e78('0x4f'),_0x5e78('0x36'),_0x5e78('0x51'),()=>{}),_0x5a7f0c[_0x5e78('0x3e')]['registerCustomCallback'](_0x5e78('0x4f'),_0x5e78('0x36'),_0x5e78('0x5a'),()=>{}),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')](_0x5e78('0x4f'),_0x5e78('0x36'),'discard',_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x46')](_0x5e78('0x4f'),'',_0x5e78('0x5a'))),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')](_0x5e78('0x49'),'convertInlineImageToBlock','join',()=>{}),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')](_0x5e78('0x49'),_0x5e78('0x36'),'discard',([_0x9617c0])=>{const _0x54b405=_0x5a7f0c['_suggestionFactory']['getSuggestionCallback'](_0x5e78('0x49'),'','discard');let _0x41575e=_0x9617c0['start'],_0x3a54ce=_0x9617c0['end'];const _0x568bd9=_0x5d8b34[_0x5e78('0x38')][_0x5e78('0x37')][_0x5e78('0x6e')](_0x41575e,_0x5e78('0x31')),_0x3e0d7c=_0x5d8b34[_0x5e78('0x38')][_0x5e78('0x37')]['getNearestSelectionRange'](_0x3a54ce,_0x5e78('0x44'));_0x568bd9['isCollapsed']&&(_0x41575e=_0x568bd9['start']),_0x3e0d7c[_0x5e78('0x7')]&&(_0x3a54ce=_0x3e0d7c['end']),_0x54b405([_0x5d8b34['model'][_0x5e78('0x62')](_0x41575e,_0x3a54ce)]);}),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')](_0x5e78('0x4f'),_0x5e78('0x36'),_0x5e78('0x6f'),_0x31b265),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')](_0x5e78('0x49'),_0x5e78('0x36'),'chain',_0x31b265)),_0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x4e')](_0x5e78('0x41'))&&(_0x5a7f0c['enableCommand'](_0x5e78('0x5b'),(_0x15ee2e,_0x49da36)=>{const _0x142fc1=_0x5d8b34[_0x5e78('0x1c')]['get'](_0x5e78('0x52'));let _0x58be53=_0x236524[_0x5e78('0x74')](_0x5d8b34[_0x5e78('0x38')]['document'][_0x5e78('0x66')]),_0x1f73fd=_0x142fc1[_0x5e78('0x2b')](_0x58be53);_0x5d8b34['model'][_0x5e78('0x55')](()=>{if(_0x1f73fd)return void _0x5a7f0c[_0x5e78('0x14')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xe')](_0x1f73fd));const _0x10ca82=_0x236524[_0x5e78('0xa')](_0x58be53);_0x15ee2e(_0x49da36),_0x58be53=_0x236524[_0x5e78('0x74')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')]['selection']),_0x1f73fd=_0x142fc1[_0x5e78('0x2b')](_0x58be53),_0x5a7f0c[_0x5e78('0x15')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xe')](_0x1f73fd),_0x10ca82?null:_0x5e78('0x2c'));});}),_0x5a7f0c[_0x5e78('0x3e')]['registerCustomCallback']('insertion',_0x5e78('0x2c'),_0x5e78('0x6f'),_0x31b265)),_0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x4e')]('ImageStyleEditing')){_0x5a7f0c['enableCommand'](_0x5e78('0x2a'),(_0xa6b344,_0x2687bd)=>{const _0x34abf0=_0x5d8b34['plugins'][_0x5e78('0x2d')](_0x5e78('0x30'))['me'],_0x2e03bd=_0x5d8b34[_0x5e78('0x72')][_0x5e78('0x2d')](_0x5e78('0x2a'));let _0x68aadf=_0x236524['getClosestSelectedImageElement'](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')]['selection']),_0x19d83f=_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xe')](_0x68aadf),_0x25af91=_0x2e03bd['value'];if(_0x25af91==_0x2687bd[_0x5e78('0x4')])return;const _0x211bb7={'commandName':_0x5e78('0x2a'),'commandParams':[_0x2687bd],'formatGroupId':_0xe50f4f()};_0x5d8b34[_0x5e78('0x38')][_0x5e78('0x55')](()=>{if(_0x5a7f0c[_0x5e78('0x73')]()[_0x5e78('0x4b')](_0x17ba54=>_0x17ba54[_0x5e78('0x78')]&&_0x34abf0==_0x17ba54[_0x5e78('0x54')]&&(_0x5e78('0x4f')==_0x17ba54[_0x5e78('0x3f')]||_0x5e78('0x6d')==_0x17ba54['type'])&&('imageStylePreApply'==_0x17ba54['subType']||_0x5e78('0x50')==_0x17ba54[_0x5e78('0x1f')])&&_0x17ba54[_0x5e78('0x57')]()[_0x5e78('0x48')](_0x19d83f))[_0x5e78('0x59')](_0x40b987=>_0x5a7f0c['discardSuggestion'](_0x40b987[_0x5e78('0x5e')])),_0x68aadf=_0x236524['getClosestSelectedImageElement'](_0x5d8b34['model'][_0x5e78('0xc')][_0x5e78('0x66')]),_0x19d83f=_0x5d8b34['model'][_0x5e78('0xe')](_0x68aadf),_0x2e03bd[_0x5e78('0x32')](),_0x5d8b34['commands']['get'](_0x5e78('0x2e'))[_0x5e78('0x32')](),_0x5d8b34['commands'][_0x5e78('0x2d')](_0x5e78('0x1'))[_0x5e78('0x32')](),_0x25af91=_0x2e03bd[_0x5e78('0x4')],_0x25af91!=_0x2687bd[_0x5e78('0x4')])return _0x236524[_0x5e78('0x3b')](_0x68aadf)&&_0x2e03bd[_0x5e78('0x70')](_0x2687bd[_0x5e78('0x4')],_0x68aadf)?(_0xa6b344(_0x2687bd),_0x68aadf=_0x236524[_0x5e78('0x74')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')]['selection']),void _0x5a7f0c[_0x5e78('0x29')](_0x68aadf,{..._0x211bb7,'commandReversedParams':[{'value':_0x25af91||null}]},[],_0x5e78('0x19'))):void(_0x236524[_0x5e78('0xa')](_0x68aadf)?_0x5a7f0c[_0x5e78('0x29')](_0x68aadf,_0x211bb7,[],'imageStylePostApply'):_0x5a7f0c[_0x5e78('0x56')](_0x19d83f,_0x211bb7,_0x5e78('0x50')));});});for(const _0x1f8dd0 of _0x5d8b34[_0x5e78('0x1c')][_0x5e78('0x2d')]('ImageStyleEditing')['normalizedStyles'])_0x2465e4[_0x1f8dd0[_0x5e78('0x24')]]=_0x1f8dd0['title'][_0x5e78('0x45')]();_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')]('formatBlock','imageStylePreApply',_0x5e78('0x51'),()=>{}),_0x5a7f0c['_suggestionFactory']['registerCustomCallback'](_0x5e78('0x4f'),_0x5e78('0x50'),_0x5e78('0x51'),()=>{}),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')]('formatInline',_0x5e78('0x50'),_0x5e78('0x51'),()=>{}),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')]('formatBlock',_0x5e78('0x19'),_0x5e78('0x5a'),()=>{}),_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x67')]('formatBlock',_0x5e78('0x19'),'discard',(_0x4cde97,_0x46c3a9)=>{_0x5a7f0c[_0x5e78('0x3e')][_0x5e78('0x46')]('formatBlock','','accept')(_0x4cde97,{'commandName':_0x46c3a9['commandName'],'commandParams':_0x46c3a9[_0x5e78('0x16')]});}),_0x5a7f0c['_suggestionFactory']['registerCustomCallback'](_0x5e78('0x4f'),_0x5e78('0x19'),_0x5e78('0x6f'),_0x31b265);}const _0x5e0f76=[{'type':_0x5e78('0x4f'),'subType':_0x5e78('0x19')},{'type':_0x5e78('0x49'),'subType':_0x5e78('0x2c')},{'type':_0x5e78('0x4f'),'subType':_0x5e78('0x36')},{'type':'insertion','subType':_0x5e78('0x36')}];function _0x567a4d(_0x5e035b,_0x3eb264){const _0x5adea3=_0x5e0f76[_0x5e78('0x53')](({type:_0x4b92c0,subType:_0x47ed7e})=>_0x5e035b[_0x5e78('0x3f')]==_0x4b92c0&&_0x5e035b[_0x5e78('0x1f')]==_0x47ed7e),_0x4f7081=_0x5e0f76['findIndex'](({type:_0x3647da,subType:_0x5cddb3})=>_0x3eb264[_0x5e78('0x3f')]==_0x3647da&&_0x3eb264[_0x5e78('0x1f')]==_0x5cddb3);if(_0x5adea3<0x0||_0x4f7081<0x0)return!0x1;const _0x1351fb=_0x5e035b[_0x5e78('0x57')](),_0x563604=_0x3eb264['getFirstRange']();if((0x0==_0x5adea3||0x1==_0x5adea3)&&0x2==_0x4f7081&&_0x1351fb[_0x5e78('0x76')](_0x563604))return!0x0;if(0x2==_0x5adea3&&0x3==_0x4f7081){const _0x59e2a1=_0x5a7f0c[_0x5e78('0x43')](_0x1351fb,_0x5e78('0x49'))[_0x5e78('0x4b')](({suggestion:_0x3df581,meta:_0x21490b})=>_0x21490b[_0x5e78('0x4d')]&&_0x5e78('0x36')==_0x3df581[_0x5e78('0x1f')]);if(_0x59e2a1[_0x5e78('0x60')]>0x1&&_0x563604[_0x5e78('0x1b')][_0x5e78('0x48')](_0x1351fb[_0x5e78('0xf')]))return!0x0;if(0x1==_0x59e2a1[_0x5e78('0x60')]&&(_0x1351fb['start'][_0x5e78('0x48')](_0x563604[_0x5e78('0x1b')])||_0x1351fb[_0x5e78('0x1b')][_0x5e78('0x48')](_0x563604[_0x5e78('0xf')])))return!0x0;}if(0x3==_0x5adea3&&0x3==_0x4f7081&&_0x1351fb['start'][_0x5e78('0x28')](_0x563604[_0x5e78('0xf')])){const _0x3fa831=_0x1351fb[_0x5e78('0x1b')]['nodeAfter'],_0x49fb55=_0x563604['start'][_0x5e78('0x9')];return _0x236524[_0x5e78('0xa')](_0x3fa831)&&_0x3fa831===_0x49fb55;}return!0x1;}function _0x31b265(_0x52271f,_0x372749){return _0x567a4d(_0x52271f,_0x372749)?[_0x52271f,_0x372749]:_0x567a4d(_0x372749,_0x52271f)?[_0x372749,_0x52271f]:null;}_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')][_0x5e78('0xd')](()=>{let _0xcd3d3b=!0x1;const _0x59e66b=Array[_0x5e78('0x6a')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')][_0x5e78('0x18')][_0x5e78('0x3')]());for(const {name:_0xc793a1,data:_0x315830}of _0x59e66b){const {group:_0x5b36f3,type:_0x281eb8,subType:_0x732a03,id:_0x20a281}=_0x5a7f0c[_0x5e78('0x21')](_0xc793a1);if(_0x5e78('0x3a')==_0x5b36f3&&_0x5a7f0c['hasSuggestion'](_0x20a281)){if(_0x5e78('0x4f')==_0x281eb8&&('imageStylePreApply'==_0x732a03||_0x5e78('0x50')==_0x732a03)){const _0x31cff3=_0x5a7f0c[_0x5e78('0x4c')](_0x20a281);if(_0x315830[_0x5e78('0x65')]){const _0x1585c2=_0x31cff3[_0x5e78('0x57')]()[_0x5e78('0xb')]();if(_0x236524[_0x5e78('0xa')](_0x1585c2))continue;_0x5a7f0c[_0x5e78('0x64')](_0x31cff3),_0xcd3d3b=!0x0;}}if(_0x5e78('0x49')==_0x281eb8&&_0x5e78('0x2c')==_0x732a03&&!_0x315830['newRange']){const _0x5b0ac2=_0x5a7f0c[_0x5e78('0x4c')](_0x20a281);_0x5b0ac2[_0x5e78('0x20')]&&_0x5b0ac2[_0x5e78('0x20')][_0x5e78('0x78')]&&(_0x5a7f0c[_0x5e78('0x64')](_0x5b0ac2[_0x5e78('0x20')]),_0xcd3d3b=!0x0);}}}return _0xcd3d3b;}),_0x5d8b34[_0x5e78('0x1c')]['has'](_0x5e78('0x23'))&&_0x5a7f0c[_0x5e78('0x6c')](_0x5e78('0x58'),(_0x286b3b,_0x1481e7)=>{const _0x1659dc=_0x236524[_0x5e78('0x74')](_0x5d8b34['model'][_0x5e78('0xc')][_0x5e78('0x66')]);_0x1659dc['getAttribute']('width')!=_0x1481e7[_0x5e78('0x5d')]&&_0x5d8b34['model'][_0x5e78('0x55')](()=>{_0x5a7f0c[_0x5e78('0x29')](_0x1659dc,{'commandName':_0x5e78('0x58'),'commandParams':[_0x1481e7]});});}),_0x5d8b34['plugins']['has'](_0x5e78('0x35'))&&_0x5a7f0c[_0x5e78('0x6c')](_0x5e78('0x12'),(_0x23dbdd,_0x4370dd)=>{const _0x3e643f=_0x236524[_0x5e78('0x74')](_0x5d8b34[_0x5e78('0x38')][_0x5e78('0xc')][_0x5e78('0x66')]);(_0x3e643f[_0x5e78('0x42')](_0x5e78('0x5'))?_0x3e643f['getAttribute']('alt'):'')!=_0x4370dd[_0x5e78('0x3d')]&&_0x5d8b34[_0x5e78('0x38')][_0x5e78('0x55')](()=>{_0x5a7f0c['markBlockFormat'](_0x3e643f,{'commandName':_0x5e78('0x12'),'commandParams':[_0x4370dd]});});}),_0x5a7f0c['_descriptionFactory'][_0x5e78('0x61')](_0x1cea54=>{if(!!_0x5e0f76[_0x5e78('0x2f')](({type:_0x370fd5,subType:_0x56f911})=>_0x1cea54[_0x5e78('0x3f')]==_0x370fd5&&_0x1cea54[_0x5e78('0x1f')]==_0x56f911))return _0x1cea54[_0x5e78('0x47')]?{}:void 0x0;}),_0x5a7f0c[_0x5e78('0x1d')][_0x5e78('0x61')](_0xeda142=>{if(_0x5e78('0x49')==_0xeda142[_0x5e78('0x3f')]||'deletion'==_0xeda142[_0x5e78('0x3f')]){const _0xdfa0b3=_0xeda142[_0x5e78('0xb')]();if(_0xdfa0b3&&_0xdfa0b3['is'](_0x5e78('0x34'),_0x5e78('0x0')))return{'type':_0x5e78('0x49')==_0xeda142[_0x5e78('0x3f')]?'addObject':_0x5e78('0x13'),'name':_0xdfa0b3[_0x5e78('0x24')],'quantity':0x1};}}),_0x5a7f0c[_0x5e78('0x1d')][_0x5e78('0x61')](_0x5aea20=>_0x5e78('0x4f')==_0x5aea20['type']&&_0x5e78('0x36')==_0x5aea20[_0x5e78('0x1f')]?{'type':_0x5e78('0x11'),'content':_0x5e78('0x4a')}:'formatBlock'==_0x5aea20[_0x5e78('0x3f')]&&_0x5e78('0x1a')==_0x5aea20['subType']?{'type':_0x5e78('0x11'),'content':_0x5e78('0x68')}:void 0x0),_0x5a7f0c[_0x5e78('0x1d')][_0x5e78('0x61')](_0x3c5748=>{const {data:_0x57f93d}=_0x3c5748;if(_0x57f93d){if('imageStyle'==_0x57f93d[_0x5e78('0x2')]){const _0x50a2e2=_0x57f93d['commandParams'][0x0]['value'];return _0x1a5e60(_0x5e78('0x71')===_0x50a2e2?_0x250a75(_0x512800,_0x5e78('0x25')):_0x2465e4[_0x50a2e2]||_0x50a2e2);}if(_0x5e78('0x12')==_0x57f93d[_0x5e78('0x2')]){const _0x502cee=_0x57f93d[_0x5e78('0x75')][0x0][_0x5e78('0x3d')];return _0x502cee?{'type':'format','content':_0x250a75(_0x512800,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x502cee+'\x22')}:{'type':_0x5e78('0x11'),'content':_0x250a75(_0x512800,_0x5e78('0x6'))};}if('resizeImage'==_0x57f93d[_0x5e78('0x2')]){const _0x3b072a=_0x57f93d[_0x5e78('0x75')][0x0][_0x5e78('0x5d')];return _0x3b072a?{'type':'format','content':_0x250a75(_0x512800,'*Set\x20image\x20width:*\x20%0',_0x3b072a)}:{'type':_0x5e78('0x11'),'content':_0x250a75(_0x512800,_0x5e78('0x77'))};}}function _0x1a5e60(_0x66363f){return{'type':'format','content':_0x250a75(_0x512800,_0x5e78('0x17'),_0x66363f)};}});}}
|
|
23
|
+
const _0x32fb=['caption','getChangedMarkers','isCollapsed','element','format','locale','insertImage','shouldConvertImageType','convertBlockImageToInline','accept','find','isOwn','isEqual','imageTextAlternative','type','afterInit','toLowerCase','insertion','alt','ImageInlineEditing','registerElementLabel','toNext','model','getSuggestion','toggleImageCaption','_suggestionFactory','hasSuggestion','ELEMENT_CAPTION','ImageEditing','forceDefaultExecution','getSuggestions','nodeBefore','newValue','toPrevious','convertInlineImageToBlock','subType','next','plugins','getContainedElement','getClosestSelectedImageElement','differ','imageTypeInline','chain','ImageTextAlternativeEditing','TrackChangesEditing','normalizedStyles','imageStyle','hasAttribute','ImageCaptionUtils','discard','value','schema','change','formatInline','ImageResize','get','author','*Set\x20image\x20text\x20alternative:*\x20%0','removeObject','imageStylePreApply','filter','detach','FORMAT_SIDE_IMAGE','ImageCaptionEditing','registerDescriptionCallback','forward','resizeImage','formatBlock','selection','width','commandName','from','name','end','backward','markDeletion','enableCommand','start','isBlockImage','commandReversedParams','discardSuggestion','registerCustomCallback','isInlineImage','ELEMENT_INLINE_IMAGE','commands','title','ImageUploadEditing','getFirstRange','head','newRange','getCaptionFromImageModelElement','imageTypeBlock','*Set\x20image\x20width:*\x20%0','findIndex','isIntersecting','isBefore','_descriptionFactory','getNearestSelectionRange','refresh','Block\x20image\x20to\x20inline\x20image','forEach','has','_splitMarkerName','deletion','ImageBlockEditing','markBlockFormat','markInsertion','length','*Remove\x20image\x20text\x20alternative*','getAttribute','commandParams','document','createRange','getSuggestionCallback','uploadImage','fromPosition','imageCaption','imageStylePostApply','createRangeOn','*Format:*\x20%0','join','editor','Users'];(function(_0x45859e,_0x32fb56){const _0x4f7e66=function(_0x4463af){while(--_0x4463af){_0x45859e['push'](_0x45859e['shift']());}};_0x4f7e66(++_0x32fb56);}(_0x32fb,0x188));const _0x4f7e=function(_0x45859e,_0x32fb56){_0x45859e=_0x45859e-0x0;let _0x4f7e66=_0x32fb[_0x45859e];return _0x4f7e66;};import{Plugin as _0x366461}from'ckeditor5/src/core';import{LivePosition as _0x39a704}from'ckeditor5/src/engine';import{uid as _0x10b714}from'ckeditor5/src/utils';import{getTranslation as _0x287344}from'../utils/common-translations';export default class V extends _0x366461{[_0x4f7e('0x73')](){const _0x336125=this[_0x4f7e('0x62')];if(!_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x5')))return;const _0x19635b=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x15')),_0x3cdd56=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')]('ImageUtils'),_0x14d6b5={},_0x58c14a=_0x336125[_0x4f7e('0x69')];if(_0x19635b['enableCommand'](_0x4f7e('0x6a')),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')]('imageBlock',_0x4f7fbc=>_0x287344(_0x58c14a,'ELEMENT_IMAGE',_0x4f7fbc)),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')]('imageInline',_0x2ae673=>_0x287344(_0x58c14a,_0x4f7e('0x3c'),_0x2ae673)),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x78')](_0x4f7e('0x64'),_0x287344(_0x58c14a,_0x4f7e('0x4'))),_0x336125[_0x4f7e('0xe')]['has'](_0x4f7e('0x3f'))&&_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x5b')),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x51'))&&_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x77'))&&(_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x12'),(_0x29d8b1,_0x379907)=>{const _0x202126=_0x3cdd56['getClosestSelectedImageElement'](_0x336125['model']['document'][_0x4f7e('0x2d')]);_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b[_0x4f7e('0x52')](_0x202126,{'commandName':_0x4f7e('0x12'),'commandParams':[_0x379907]},[],_0x4f7e('0x6c'));});}),_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x44'),(_0x1c45f7,_0x2712f6)=>{_0x336125['model']['change'](_0x26aea2=>{let _0xeafe58=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')]['selection']),_0xf251d=_0x26aea2['createRangeOn'](_0xeafe58);const _0x1b9107=_0x39a704[_0x4f7e('0x5c')](_0xf251d[_0x4f7e('0x36')],_0x4f7e('0xa')),_0xe031c0=_0x39a704['fromPosition'](_0xf251d[_0x4f7e('0x32')],_0x4f7e('0x79'));_0x19635b[_0x4f7e('0x6')](()=>_0x1c45f7(_0x2712f6)),_0xeafe58=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0xf251d=_0x26aea2['createRangeOn'](_0xeafe58);const _0x58f377=_0x26aea2['createRange'](_0x1b9107,_0xe031c0);_0x1b9107[_0x4f7e('0x26')](),_0xe031c0['detach'](),_0x19635b[_0x4f7e('0x52')](_0xeafe58,{'commandName':_0x4f7e('0x12')},[],_0x4f7e('0xb')),_0x58f377[_0x4f7e('0x36')][_0x4f7e('0x48')](_0xf251d['start'])&&_0x19635b[_0x4f7e('0x53')](_0x26aea2['createRange'](_0x58f377[_0x4f7e('0x36')],_0xf251d[_0x4f7e('0x36')]),_0x4f7e('0xb')),_0xf251d[_0x4f7e('0x32')][_0x4f7e('0x48')](_0x58f377[_0x4f7e('0x32')])&&_0x19635b[_0x4f7e('0x53')](_0x26aea2['createRange'](_0xf251d[_0x4f7e('0x32')],_0x58f377[_0x4f7e('0x32')]),_0x4f7e('0xb'));});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'convertInlineImageToBlock',_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0xb'),_0x4f7e('0x6d'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'convertInlineImageToBlock',_0x4f7e('0x1a'),_0x19635b['_suggestionFactory'][_0x4f7e('0x5a')](_0x4f7e('0x2c'),'','accept')),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0xb'),'join',()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')]('insertion',_0x4f7e('0xb'),'discard',([_0x324da6])=>{const _0x21e25d=_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x5a')](_0x4f7e('0x75'),'','discard');let _0xc6efdf=_0x324da6['start'],_0x311fb3=_0x324da6[_0x4f7e('0x32')];const _0x20d476=_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1c')]['getNearestSelectionRange'](_0xc6efdf,_0x4f7e('0x33')),_0x14cb28=_0x336125['model'][_0x4f7e('0x1c')][_0x4f7e('0x4a')](_0x311fb3,_0x4f7e('0x2a'));_0x20d476[_0x4f7e('0x66')]&&(_0xc6efdf=_0x20d476['start']),_0x14cb28[_0x4f7e('0x66')]&&(_0x311fb3=_0x14cb28[_0x4f7e('0x32')]),_0x21e25d([_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x59')](_0xc6efdf,_0x311fb3)]);}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0xb'),'chain',_0x16e386),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0xb'),_0x4f7e('0x13'),_0x16e386)),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x28'))&&(_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x1'),(_0x386394,_0x1b9548)=>{const _0x1e7c86=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x19'));let _0x1d5524=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x1f6f52=_0x1e7c86[_0x4f7e('0x43')](_0x1d5524);_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{if(_0x1f6f52)return void _0x19635b[_0x4f7e('0x34')](_0x336125['model']['createRangeOn'](_0x1f6f52));const _0x219cc5=_0x3cdd56[_0x4f7e('0x37')](_0x1d5524);_0x386394(_0x1b9548),_0x1d5524=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')]['document'][_0x4f7e('0x2d')]),_0x1f6f52=_0x1e7c86[_0x4f7e('0x43')](_0x1d5524),_0x19635b[_0x4f7e('0x53')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x5f')](_0x1f6f52),_0x219cc5?null:_0x4f7e('0x5d'));});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x75'),_0x4f7e('0x5d'),_0x4f7e('0x13'),_0x16e386)),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')]('ImageStyleEditing')){_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x17'),(_0x10857e,_0x4017e7)=>{const _0x1726cb=_0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')](_0x4f7e('0x63'))['me'],_0x3de232=_0x336125['commands'][_0x4f7e('0x20')](_0x4f7e('0x17'));let _0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x32828b=_0x336125[_0x4f7e('0x7a')]['createRangeOn'](_0x5ea5dd),_0x3747d9=_0x3de232[_0x4f7e('0x1b')];if(_0x3747d9==_0x4017e7[_0x4f7e('0x1b')])return;const _0x346cab={'commandName':_0x4f7e('0x17'),'commandParams':[_0x4017e7],'formatGroupId':_0x10b714()};_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{if(_0x19635b[_0x4f7e('0x7')]()['filter'](_0x53c3a3=>_0x53c3a3['isInContent']&&_0x1726cb==_0x53c3a3[_0x4f7e('0x21')]&&('formatBlock'==_0x53c3a3[_0x4f7e('0x72')]||_0x4f7e('0x1e')==_0x53c3a3[_0x4f7e('0x72')])&&(_0x4f7e('0x24')==_0x53c3a3[_0x4f7e('0xc')]||_0x4f7e('0x5e')==_0x53c3a3[_0x4f7e('0xc')])&&_0x53c3a3[_0x4f7e('0x40')]()[_0x4f7e('0x70')](_0x32828b))[_0x4f7e('0x4d')](_0xde448=>_0x19635b[_0x4f7e('0x39')](_0xde448[_0x4f7e('0x41')])),_0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]),_0x32828b=_0x336125['model'][_0x4f7e('0x5f')](_0x5ea5dd),_0x3de232['refresh'](),_0x336125[_0x4f7e('0x3d')][_0x4f7e('0x20')](_0x4f7e('0x12'))[_0x4f7e('0x4b')](),_0x336125[_0x4f7e('0x3d')][_0x4f7e('0x20')](_0x4f7e('0x44'))[_0x4f7e('0x4b')](),_0x3747d9=_0x3de232[_0x4f7e('0x1b')],_0x3747d9!=_0x4017e7['value'])return _0x3cdd56[_0x4f7e('0x3b')](_0x5ea5dd)&&_0x3de232[_0x4f7e('0x6b')](_0x4017e7['value'],_0x5ea5dd)?(_0x10857e(_0x4017e7),_0x5ea5dd=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')]['document']['selection']),void _0x19635b[_0x4f7e('0x52')](_0x5ea5dd,{..._0x346cab,'commandReversedParams':[{'value':_0x3747d9||null}]},[],_0x4f7e('0x24'))):void(_0x3cdd56[_0x4f7e('0x37')](_0x5ea5dd)?_0x19635b[_0x4f7e('0x52')](_0x5ea5dd,_0x346cab,[],_0x4f7e('0x5e')):_0x19635b['markInlineFormat'](_0x32828b,_0x346cab,'imageStylePostApply'));});});for(const _0xa2e26d of _0x336125[_0x4f7e('0xe')][_0x4f7e('0x20')]('ImageStyleEditing')[_0x4f7e('0x16')])_0x14d6b5[_0xa2e26d[_0x4f7e('0x31')]]=_0xa2e26d[_0x4f7e('0x3e')][_0x4f7e('0x74')]();_0x19635b['_suggestionFactory'][_0x4f7e('0x3a')](_0x4f7e('0x2c'),'imageStylePreApply',_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')]['registerCustomCallback']('formatBlock',_0x4f7e('0x5e'),_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x1e'),_0x4f7e('0x5e'),_0x4f7e('0x61'),()=>{}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0x24'),'accept',()=>{}),_0x19635b['_suggestionFactory'][_0x4f7e('0x3a')](_0x4f7e('0x2c'),_0x4f7e('0x24'),_0x4f7e('0x1a'),(_0x47b3a8,_0x1965f6)=>{_0x19635b['_suggestionFactory'][_0x4f7e('0x5a')](_0x4f7e('0x2c'),'',_0x4f7e('0x6d'))(_0x47b3a8,{'commandName':_0x1965f6['commandName'],'commandParams':_0x1965f6[_0x4f7e('0x38')]});}),_0x19635b[_0x4f7e('0x2')][_0x4f7e('0x3a')]('formatBlock','imageStylePreApply',_0x4f7e('0x13'),_0x16e386);}const _0x4bdeff=[{'type':_0x4f7e('0x2c'),'subType':_0x4f7e('0x24')},{'type':_0x4f7e('0x75'),'subType':_0x4f7e('0x5d')},{'type':'formatBlock','subType':_0x4f7e('0xb')},{'type':_0x4f7e('0x75'),'subType':_0x4f7e('0xb')}];function _0x105f27(_0x1fe7ca,_0x1c4873){const _0x34ac64=_0x4bdeff[_0x4f7e('0x46')](({type:_0x35250c,subType:_0x3e4c33})=>_0x1fe7ca[_0x4f7e('0x72')]==_0x35250c&&_0x1fe7ca[_0x4f7e('0xc')]==_0x3e4c33),_0xb67a10=_0x4bdeff[_0x4f7e('0x46')](({type:_0x3d0b10,subType:_0x1806d3})=>_0x1c4873[_0x4f7e('0x72')]==_0x3d0b10&&_0x1c4873[_0x4f7e('0xc')]==_0x1806d3);if(_0x34ac64<0x0||_0xb67a10<0x0)return!0x1;const _0xa8e9f4=_0x1fe7ca[_0x4f7e('0x40')](),_0x2b466b=_0x1c4873[_0x4f7e('0x40')]();if((0x0==_0x34ac64||0x1==_0x34ac64)&&0x2==_0xb67a10&&_0xa8e9f4[_0x4f7e('0x47')](_0x2b466b))return!0x0;if(0x2==_0x34ac64&&0x3==_0xb67a10){const _0x40ec63=_0x19635b['_findSuggestions'](_0xa8e9f4,'insertion')[_0x4f7e('0x25')](({suggestion:_0x2f4d4b,meta:_0x61dd9c})=>_0x61dd9c[_0x4f7e('0x6f')]&&'convertInlineImageToBlock'==_0x2f4d4b[_0x4f7e('0xc')]);if(_0x40ec63[_0x4f7e('0x54')]>0x1&&_0x2b466b[_0x4f7e('0x32')][_0x4f7e('0x70')](_0xa8e9f4[_0x4f7e('0x36')]))return!0x0;if(0x1==_0x40ec63[_0x4f7e('0x54')]&&(_0xa8e9f4[_0x4f7e('0x36')][_0x4f7e('0x70')](_0x2b466b[_0x4f7e('0x32')])||_0xa8e9f4[_0x4f7e('0x32')][_0x4f7e('0x70')](_0x2b466b[_0x4f7e('0x36')])))return!0x0;}if(0x3==_0x34ac64&&0x3==_0xb67a10&&_0xa8e9f4[_0x4f7e('0x36')][_0x4f7e('0x48')](_0x2b466b[_0x4f7e('0x36')])){const _0x5f19c7=_0xa8e9f4[_0x4f7e('0x32')]['nodeAfter'],_0x557b11=_0x2b466b[_0x4f7e('0x36')][_0x4f7e('0x8')];return _0x3cdd56[_0x4f7e('0x37')](_0x5f19c7)&&_0x5f19c7===_0x557b11;}return!0x1;}function _0x16e386(_0x1f659b,_0x3dd4ad){return _0x105f27(_0x1f659b,_0x3dd4ad)?[_0x1f659b,_0x3dd4ad]:_0x105f27(_0x3dd4ad,_0x1f659b)?[_0x3dd4ad,_0x1f659b]:null;}_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')]['registerPostFixer'](()=>{let _0x1ff5e3=!0x1;const _0x168fa1=Array[_0x4f7e('0x30')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x11')][_0x4f7e('0x65')]());for(const {name:_0xf55de,data:_0x589b6d}of _0x168fa1){const {group:_0x14fdea,type:_0x16abd4,subType:_0x343c1f,id:_0xfbc40e}=_0x19635b[_0x4f7e('0x4f')](_0xf55de);if('suggestion'==_0x14fdea&&_0x19635b[_0x4f7e('0x3')](_0xfbc40e)){if(_0x4f7e('0x2c')==_0x16abd4&&('imageStylePreApply'==_0x343c1f||_0x4f7e('0x5e')==_0x343c1f)){const _0x2f5803=_0x19635b[_0x4f7e('0x0')](_0xfbc40e);if(_0x589b6d['newRange']){const _0x3ba72f=_0x2f5803[_0x4f7e('0x40')]()[_0x4f7e('0xf')]();if(_0x3cdd56[_0x4f7e('0x37')](_0x3ba72f))continue;_0x19635b['discardSuggestion'](_0x2f5803),_0x1ff5e3=!0x0;}}if(_0x4f7e('0x75')==_0x16abd4&&_0x4f7e('0x5d')==_0x343c1f&&!_0x589b6d[_0x4f7e('0x42')]){const _0x568384=_0x19635b[_0x4f7e('0x0')](_0xfbc40e);_0x568384[_0x4f7e('0xd')]&&_0x568384[_0x4f7e('0xd')]['isInContent']&&(_0x19635b[_0x4f7e('0x39')](_0x568384[_0x4f7e('0xd')]),_0x1ff5e3=!0x0);}}}return _0x1ff5e3;}),_0x336125[_0x4f7e('0xe')]['has'](_0x4f7e('0x1f'))&&_0x19635b[_0x4f7e('0x35')](_0x4f7e('0x2b'),(_0x122352,_0x3222c1)=>{const _0x1ec58e=_0x3cdd56[_0x4f7e('0x10')](_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x58')][_0x4f7e('0x2d')]);_0x1ec58e[_0x4f7e('0x56')](_0x4f7e('0x2e'))!=_0x3222c1[_0x4f7e('0x2e')]&&_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b[_0x4f7e('0x52')](_0x1ec58e,{'commandName':_0x4f7e('0x2b'),'commandParams':[_0x3222c1]});});}),_0x336125[_0x4f7e('0xe')][_0x4f7e('0x4e')](_0x4f7e('0x14'))&&_0x19635b['enableCommand'](_0x4f7e('0x71'),(_0x1f28cf,_0x13877e)=>{const _0xe90501=_0x3cdd56['getClosestSelectedImageElement'](_0x336125[_0x4f7e('0x7a')]['document'][_0x4f7e('0x2d')]);(_0xe90501[_0x4f7e('0x18')](_0x4f7e('0x76'))?_0xe90501[_0x4f7e('0x56')](_0x4f7e('0x76')):'')!=_0x13877e[_0x4f7e('0x9')]&&_0x336125[_0x4f7e('0x7a')][_0x4f7e('0x1d')](()=>{_0x19635b['markBlockFormat'](_0xe90501,{'commandName':_0x4f7e('0x71'),'commandParams':[_0x13877e]});});}),_0x19635b['_descriptionFactory'][_0x4f7e('0x29')](_0x3928e8=>{if(!!_0x4bdeff[_0x4f7e('0x6e')](({type:_0x434350,subType:_0x345660})=>_0x3928e8[_0x4f7e('0x72')]==_0x434350&&_0x3928e8[_0x4f7e('0xc')]==_0x345660))return _0x3928e8['previous']?{}:void 0x0;}),_0x19635b[_0x4f7e('0x49')][_0x4f7e('0x29')](_0x1da52b=>{if('insertion'==_0x1da52b['type']||_0x4f7e('0x50')==_0x1da52b['type']){const _0x1efe38=_0x1da52b[_0x4f7e('0xf')]();if(_0x1efe38&&_0x1efe38['is'](_0x4f7e('0x67'),'caption'))return{'type':_0x4f7e('0x75')==_0x1da52b[_0x4f7e('0x72')]?'addObject':_0x4f7e('0x23'),'name':_0x1efe38['name'],'quantity':0x1};}}),_0x19635b['_descriptionFactory'][_0x4f7e('0x29')](_0x5e29eb=>'formatBlock'==_0x5e29eb[_0x4f7e('0x72')]&&_0x4f7e('0xb')==_0x5e29eb[_0x4f7e('0xc')]?{'type':_0x4f7e('0x68'),'content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e29eb[_0x4f7e('0x72')]&&_0x4f7e('0x6c')==_0x5e29eb[_0x4f7e('0xc')]?{'type':_0x4f7e('0x68'),'content':_0x4f7e('0x4c')}:void 0x0),_0x19635b['_descriptionFactory']['registerDescriptionCallback'](_0x4bc9c9=>{const {data:_0x17bc1c}=_0x4bc9c9;if(_0x17bc1c){if(_0x4f7e('0x17')==_0x17bc1c[_0x4f7e('0x2f')]){const _0x170f9c=_0x17bc1c[_0x4f7e('0x57')][0x0][_0x4f7e('0x1b')];return _0x26a6b1('side'===_0x170f9c?_0x287344(_0x58c14a,_0x4f7e('0x27')):_0x14d6b5[_0x170f9c]||_0x170f9c);}if(_0x4f7e('0x71')==_0x17bc1c[_0x4f7e('0x2f')]){const _0x5644e9=_0x17bc1c['commandParams'][0x0]['newValue'];return _0x5644e9?{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x22'),'\x22'+_0x5644e9+'\x22')}:{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x55'))};}if('resizeImage'==_0x17bc1c[_0x4f7e('0x2f')]){const _0x3afe17=_0x17bc1c[_0x4f7e('0x57')][0x0][_0x4f7e('0x2e')];return _0x3afe17?{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x45'),_0x3afe17)}:{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,'*Reset\x20image\x20width*')};}}function _0x26a6b1(_0x362371){return{'type':_0x4f7e('0x68'),'content':_0x287344(_0x58c14a,_0x4f7e('0x60'),_0x362371)};}});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, 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 _0x37ee=['get','bind','editor','_trackChangesValueDuringImport','value','afterInit','plugins','dataInsert','listenTo','Users','importWord','_setSuggestionData','commands','forEach','high','trackChanges','_handleImportedData','collaboration_features','_trackChangesExecuted','execute','enableCommand','TrackChangesEditing'];(function(_0x395eaa,_0x37eed5){const _0x2f4e25=function(_0x421ba0){while(--_0x421ba0){_0x395eaa['push'](_0x395eaa['shift']());}};_0x2f4e25(++_0x37eed5);}(_0x37ee,0x155));const _0x2f4e=function(_0x395eaa,_0x37eed5){_0x395eaa=_0x395eaa-0x0;let _0x2f4e25=_0x37ee[_0x395eaa];return _0x2f4e25;};import{Plugin as _0x465ca7}from'ckeditor5/src/core';import _0x4805ea from'../trackchangesediting';export default class X extends _0x465ca7{constructor(_0x46a17e){super(_0x46a17e),this[_0x2f4e('0xe')]=!0x1,this['_trackChangesExecuted']=!0x1;}[_0x2f4e('0x10')](){const _0x4a3d36=this[_0x2f4e('0xd')],_0x138985=_0x4a3d36[_0x2f4e('0x1')][_0x2f4e('0xb')]('importWord'),_0x8ebfe=_0x4a3d36[_0x2f4e('0x1')][_0x2f4e('0xb')](_0x2f4e('0x4'));_0x138985&&(_0x138985['on'](_0x2f4e('0x8'),(_0x47ffc6,[,_0x53c234])=>{this[_0x2f4e('0xe')]=_0x8ebfe[_0x2f4e('0xf')],_0x53c234[_0x2f4e('0x6')]['track_changes']=!this[_0x2f4e('0xe')];},{'priority':_0x2f4e('0x3')}),this[_0x2f4e('0x13')](_0x138985,_0x2f4e('0x12'),this[_0x2f4e('0x5')][_0x2f4e('0xc')](this)),this['listenTo'](_0x138985,_0x2f4e('0x12'),()=>{this[_0x2f4e('0x7')]&&(_0x8ebfe[_0x2f4e('0x8')](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a3d36[_0x2f4e('0x11')][_0x2f4e('0xb')](_0x2f4e('0xa'))[_0x2f4e('0x9')](_0x2f4e('0x15')));}[_0x2f4e('0x5')](_0xda4801,_0x405150){const {suggestions:_0x2b7017}=_0x405150,_0x3b10a4=this['editor'][_0x2f4e('0x1')]['get'](_0x2f4e('0x4')),_0xba9f89=_0x3b10a4['value'];this[_0x2f4e('0xe')]!==_0xba9f89&&(_0x3b10a4['execute'](),this['_trackChangesExecuted']=!0x0),_0x2b7017&&_0x2b7017[_0x2f4e('0x2')](({id:_0x5570da,type:_0x3c8712,author:_0x179635,created_at:_0x96f0b0})=>{const _0x2c1ba6={'id':_0x5570da,'type':_0x3c8712,'authorId':this['editor']['plugins'][_0x2f4e('0xb')](_0x2f4e('0x14'))['me']['id'],'createdAt':new Date(),'data':{},'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x179635,'createdAt':_0x96f0b0?new Date(_0x96f0b0):new Date()}}};this[_0x2f4e('0xd')][_0x2f4e('0x11')][_0x2f4e('0xb')](_0x4805ea)[_0x2f4e('0x0')](_0x2c1ba6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x403e=['from','selection','getItemLabel','registerDescriptionCallback','filter','IndentBlock','*Outdent:*\x20%0','commandName','schema','indent','TrackChangesEditing','enableCommand','*Indent:*\x20%0','document','indentBlock','get','plugins','checkAttribute','has','markBlockFormat','name','getSelectedBlocks','model','editor','outdentBlock'];(function(_0x3b6481,_0x403e21){const _0x28eeab=function(_0x3b6215){while(--_0x3b6215){_0x3b6481['push'](_0x3b6481['shift']());}};_0x28eeab(++_0x403e21);}(_0x403e,0x15d));const _0x28ee=function(_0x3b6481,_0x403e21){_0x3b6481=_0x3b6481-0x0;let _0x28eeab=_0x403e[_0x3b6481];return _0x28eeab;};import{Plugin as _0x189074}from'ckeditor5/src/core';import{getTranslation as _0x1a30f7}from'../utils/common-translations';export default class Y extends _0x189074{['afterInit'](){const _0x4bbddf=this[_0x28ee('0x18')],_0x53468e=_0x4bbddf[_0x28ee('0x11')][_0x28ee('0x10')](_0x28ee('0xb'));_0x4bbddf[_0x28ee('0x11')][_0x28ee('0x13')]('IndentEditing')&&(_0x53468e['enableCommand'](_0x28ee('0xa')),_0x53468e[_0x28ee('0xc')]('outdent'));const _0x18e96b=_0x4bbddf['locale'];if(_0x4bbddf[_0x28ee('0x11')][_0x28ee('0x13')](_0x28ee('0x6'))){for(const _0x2fd3f9 of[_0x28ee('0xf'),'outdentBlock'])_0x53468e[_0x28ee('0xc')](_0x2fd3f9,()=>{const _0x2fa2f2=Array[_0x28ee('0x1')](this[_0x28ee('0x18')][_0x28ee('0x17')][_0x28ee('0xe')][_0x28ee('0x2')][_0x28ee('0x16')]())[_0x28ee('0x5')](_0x5525bf=>this[_0x28ee('0x18')][_0x28ee('0x17')][_0x28ee('0x9')][_0x28ee('0x12')](_0x5525bf,'blockIndent'));_0x4bbddf[_0x28ee('0x17')]['change'](()=>{for(const _0xd6ac12 of _0x2fa2f2)_0x53468e[_0x28ee('0x14')](_0xd6ac12,{'commandName':_0x2fd3f9,'commandParams':[{'value':''}],'formatGroupId':_0x28ee('0xf')});});});_0x53468e['_descriptionFactory'][_0x28ee('0x4')](_0x26b6b9=>{const {data:_0x8581c1}=_0x26b6b9;if(!_0x8581c1)return;if(_0x28ee('0xf')!=_0x8581c1[_0x28ee('0x8')]&&_0x28ee('0x0')!=_0x8581c1['commandName'])return;const _0x8649e6=_0x26b6b9['getItems']()[0x0],_0x47ae45=_0x53468e['_descriptionFactory'][_0x28ee('0x3')](_0x8649e6[_0x28ee('0x15')]);return _0x28ee('0xf')==_0x8581c1[_0x28ee('0x8')]?{'type':'format','content':_0x1a30f7(_0x18e96b,_0x28ee('0xd'),_0x47ae45)}:'outdentBlock'==_0x8581c1[_0x28ee('0x8')]?{'type':'format','content':_0x1a30f7(_0x18e96b,_0x28ee('0x7'),_0x47ae45)}:void 0x0;});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25ce=['get','enableCommand','plugins','requires','init','TrackChangesEditing','editor'];(function(_0x17b287,_0x25cef7){var _0x13beef=function(_0x4a5cd5){while(--_0x4a5cd5){_0x17b287['push'](_0x17b287['shift']());}};_0x13beef(++_0x25cef7);}(_0x25ce,0xc7));var _0x13be=function(_0x17b287,_0x25cef7){_0x17b287=_0x17b287-0x0;var _0x13beef=_0x25ce[_0x17b287];return _0x13beef;};import{Plugin as _0x14df64}from'ckeditor5/src/core';import{Input as _0x46cfc8}from'ckeditor5/src/typing';export default class Z extends _0x14df64{static get[_0x13be('0x0')](){return[_0x46cfc8];}[_0x13be('0x1')](){this[_0x13be('0x3')][_0x13be('0x6')][_0x13be('0x4')](_0x13be('0x2'))[_0x13be('0x5')]('input');}}
|
package/src/integrations/link.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5beb=['_descriptionFactory','getFirstRange','commandParams','commandName','has','markInlineFormat','getRanges','enableCommand','hasAttribute','linkHref','getFirstPosition','TrackChangesEditing','getAttribute','unlink','get','link','selection','model','format','*Set\x20link:*\x20%0','locale','isCollapsed','LinkEditing','change','from'];(function(_0x115c8a,_0x5bebe9){const _0x20c41b=function(_0x180e8b){while(--_0x180e8b){_0x115c8a['push'](_0x115c8a['shift']());}};_0x20c41b(++_0x5bebe9);}(_0x5beb,0xac));const _0x20c4=function(_0x115c8a,_0x5bebe9){_0x115c8a=_0x115c8a-0x0;let _0x20c41b=_0x5beb[_0x115c8a];return _0x20c41b;};import{Plugin as _0x34dad7}from'ckeditor5/src/core';import{findAttributeRange as _0x9ff71e}from'ckeditor5/src/typing';import{getRangesWithAttribute as _0x34f079}from'./utils';import{getTranslation as _0x30adfc}from'../utils/common-translations';export default class tt extends _0x34dad7{['afterInit'](){const _0x102555=this['editor'];if(!_0x102555['plugins'][_0x20c4('0x7')](_0x20c4('0x0')))return;const _0x33bafc=_0x102555['plugins'][_0x20c4('0x11')](_0x20c4('0xe'));_0x33bafc['enableCommand']('link',(_0x50d0fd,_0x87db9b)=>{const _0x4bc388=_0x102555[_0x20c4('0x14')]['document'][_0x20c4('0x13')];let _0x557dc1=[];if(_0x4bc388['isCollapsed']){if(!_0x4bc388[_0x20c4('0xb')]('linkHref'))return void _0x50d0fd(_0x87db9b);{const _0x1e15a0=_0x9ff71e(_0x4bc388[_0x20c4('0xd')](),_0x20c4('0xc'),_0x4bc388[_0x20c4('0xf')](_0x20c4('0xc')),_0x102555[_0x20c4('0x14')]);_0x557dc1=[_0x1e15a0];}}else _0x557dc1=Array[_0x20c4('0x2')](_0x4bc388[_0x20c4('0x9')]());_0x102555[_0x20c4('0x14')][_0x20c4('0x1')](()=>{for(const _0x35cadd of _0x557dc1)_0x33bafc[_0x20c4('0x8')](_0x35cadd,{'commandName':'link','commandParams':[_0x87db9b]});});}),_0x33bafc[_0x20c4('0xa')](_0x20c4('0x10'),()=>{const _0x2f80c8=this['editor'][_0x20c4('0x14')],_0x285508=_0x2f80c8['document'][_0x20c4('0x13')];_0x2f80c8[_0x20c4('0x1')](()=>{let _0x46a7c1=[];if(_0x285508[_0x20c4('0x18')])_0x46a7c1=[_0x9ff71e(_0x285508[_0x20c4('0xd')](),_0x20c4('0xc'),_0x285508[_0x20c4('0xf')](_0x20c4('0xc')),_0x102555[_0x20c4('0x14')])];else _0x46a7c1=_0x34f079(_0x20c4('0xc'),_0x285508[_0x20c4('0x4')](),_0x102555['model']);for(const _0x3e2a97 of _0x46a7c1)_0x33bafc[_0x20c4('0x8')](_0x3e2a97,{'commandName':_0x20c4('0x10'),'commandParams':[]});});}),_0x33bafc[_0x20c4('0x3')]['registerDescriptionCallback'](_0x983d6b=>{const {data:_0x4e46ee}=_0x983d6b,_0x27efeb=_0x102555[_0x20c4('0x17')];if(_0x4e46ee){if(_0x20c4('0x12')==_0x4e46ee[_0x20c4('0x6')]){const _0x1dd3ef=_0x4e46ee[_0x20c4('0x5')][0x0];return{'type':'format','content':_0x30adfc(_0x27efeb,_0x20c4('0x16'),'\x22'+_0x1dd3ef+'\x22')};}return'unlink'==_0x4e46ee[_0x20c4('0x6')]?{'type':_0x20c4('0x15'),'content':_0x30adfc(_0x27efeb,'*Remove\x20link*')}:void 0x0;}});}}
|