@ckeditor/ckeditor5-track-changes 30.0.0 → 31.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- 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/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/image.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/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/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/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
- package/src/integrations/exportpdf.js +0 -23
- package/src/integrations/exportword.js +0 -23
- package/src/integrations/selectall.js +0 -23
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x304074}from'ckeditor5/src/core';import _0x223c9f from'./trackchangesediting';import _0xdf360f from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import Ct from'./ui/suggestioncontroller';import Tt from'./ui/view/suggestionthreadview';import _0x13499e from'@ckeditor/ckeditor5-collaboration-core/src/users';import xt from'@ckeditor/ckeditor5-comments/src/annotations/editorannotations';import{Collection as Et}from'ckeditor5/src/utils';import{Model as Nt,SplitButtonView as Ut,createDropdown as Wt,addListToDropdown as Ot}from'ckeditor5/src/ui';import Gt from'@ckeditor/ckeditor5-comments/src/utils/getdatetimeformatter';import Mt from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import Pt from'../theme/icons/track-changes.svg';import{debounce as Vt}from'lodash-es';import qt from'@ckeditor/ckeditor5-comments/src/annotations/view/annotationview';import zt from'@ckeditor/ckeditor5-comments/src/annotations/annotation';import Ft from'@ckeditor/ckeditor5-comments/src/annotations/annotations';export default class f extends _0x304074{static get['requires'](){return[Ft,xt,_0x223c9f,_0xdf360f,_0x13499e];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x58412a){super(_0x58412a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x3b64fa=this['editor']['config'];_0x3b64fa['define']('trackChanges.SuggestionThreadView',Tt),_0x3b64fa['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b64fa['get']('trackChanges.disableComments');}['init'](){const _0x1b75ad=this['editor'],_0x22d03e=_0x1b75ad['plugins']['get'](_0x223c9f),_0x113fdc=_0x1b75ad['plugins']['get'](Ft),_0x4333c8=_0x1b75ad['plugins']['get'](xt),_0x476d6e=_0x1b75ad['plugins']['get'](_0xdf360f);_0x1b75ad['ui']['componentFactory']['add']('trackChanges',_0x4b4da9=>this['_createUIButton'](_0x4b4da9)),_0x4333c8['addSourceCollector'](()=>{const _0x1a80b5=[];for(const [_0x501e3b,_0x589d85]of Array['from'](this['_suggestionToController'])){const _0x6c8c19=_0x501e3b['getAllAdjacentSuggestions'](),_0x1c3a1c=[];for(const _0x153ab2 of _0x6c8c19){if(!_0x153ab2['isInContent'])continue;if(_0x153ab2['isMultiRange']){_0x1c3a1c['push'](..._0x153ab2['getRanges']());continue;}const _0x4d469e=_0x153ab2['getFirstRange']();if(_0x1c3a1c['length']>0x0){const _0x8119cc=_0x1c3a1c[0x0]['getJoined'](_0x4d469e);if(_0x8119cc){_0x1c3a1c[0x0]=_0x8119cc;continue;}}_0x1c3a1c['push'](_0x4d469e);}_0x1a80b5['push']([_0x589d85['view'],_0x1c3a1c]);}return _0x1a80b5;}),this['listenTo'](_0x22d03e,'suggestionLoaded',(_0x1720b2,_0x2d9b0e)=>{let _0x3c7107=!0x1;const _0x1a6bbd=Vt(_0x1325ab=>{_0x3c7107||_0x1325ab?_0x3c7107&&_0x1325ab&&(this['_destroyController'](_0x2d9b0e),_0x4333c8['refreshSelectedViews'](),_0x3c7107=!0x1):(this['_initializeController'](_0x2d9b0e),_0x4333c8['refreshSelectedViews'](),_0x3c7107=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x2d9b0e,_0x1a6bbd),this['listenTo'](_0x2d9b0e,'change:previous',(_0x475888,_0x1b4a2c,_0x3eefba,_0x3bd8f0)=>{_0x2d9b0e['isInContent']&&(null==_0x3eefba?(this['_updateController'](_0x3bd8f0['head']),_0x1a6bbd(!0x1)):(this['_updateController'](_0x3eefba['head']),_0x1a6bbd(!0x0)));}),null===_0x2d9b0e['previous']?_0x1a6bbd(!0x1):this['_updateController'](_0x2d9b0e['head']);}),this['listenTo'](_0x22d03e,'suggestionUnloaded',(_0x1419a3,_0x4d61ed,_0x3adb54)=>{this['stopListening'](_0x4d61ed,'change:previous'),this['_debouncedHandlers']['get'](_0x4d61ed)['cancel'](),this['_debouncedHandlers']['delete'](_0x4d61ed);const _0x169405=_0x3adb54?_0x3adb54['head']:_0x4d61ed,_0x96c2a0=this['_suggestionToController']['get'](_0x169405);null!==_0x3adb54&&this['_updateController'](_0x169405),null===_0x3adb54&&_0x96c2a0&&this['_destroyController'](_0x4d61ed);}),this['listenTo'](_0x22d03e,'suggestionChanged',(_0x3fa66,_0xd49a15)=>{this['_updateController'](_0xd49a15);}),this['listenTo'](_0x113fdc,'change:activeAnnotations',(_0x270f12,_0x5cbe9e,_0x1deb5b)=>{const _0x172764=Array['from'](_0x1deb5b,_0xd2a830=>_0xd2a830['innerView'])['filter'](_0x1b7cc1=>this['_viewToController']['has'](_0x1b7cc1)),_0x38aca4=[];for(const _0x5c54ef of _0x172764){const _0xb58368=this['_viewToController']['get'](_0x5c54ef)['model']['getAllAdjacentSuggestions']();_0x38aca4['push'](..._0xb58368['reduce']((_0x152c43,_0x5cef90)=>[..._0x152c43,..._0x5cef90['getMarkerNames']()],[]));}_0x22d03e['activeMarkers']=_0x38aca4;}),this['listenTo'](_0x476d6e,'addComment',(_0x28fc15,{threadId:_0x59b8d5,isFromAdapter:_0x5da577})=>{if(_0x5da577||!_0x22d03e['hasSuggestion'](_0x59b8d5))return;const _0x2a9dcc=_0x22d03e['getSuggestion'](_0x59b8d5);this['_suggestionToController']['get'](_0x2a9dcc)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x3bd87b){const _0x343382=Wt(_0x3bd87b,Ut),_0x26ab5a=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x343382['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':Pt}),_0x343382['buttonView']['bind']('isOn')['to'](_0x26ab5a,'value'),_0x343382['buttonView']['on']('execute',()=>_0x26ab5a['execute']());const _0x184a2b=new Et(),_0x12e8e5=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x35b052 of _0x12e8e5){const _0x85ed7e={'type':_0x35b052['type']};if(_0x35b052['model']){const _0x4ad5a7=new Nt(_0x35b052['model']),_0xc1d979=this['editor']['commands']['get'](_0x4ad5a7['commandName']);_0x4ad5a7['bind']('isOn','isEnabled')['to'](_0xc1d979,'value','isEnabled'),_0x85ed7e['model']=_0x4ad5a7;}_0x184a2b['add'](_0x85ed7e);}Ot(_0x343382,_0x184a2b);const _0x19b629=_0x12e8e5['filter'](_0x5cf2ec=>null!=_0x5cf2ec['model'])['map'](_0x8a4368=>this['editor']['commands']['get'](_0x8a4368['model']['commandName']));return _0x343382['buttonView']['actionView']['unbind']('isEnabled'),_0x343382['buttonView']['arrowView']['unbind']('isEnabled'),_0x343382['buttonView']['actionView']['bind']('isEnabled')['to'](_0x26ab5a,'isEnabled'),_0x343382['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0x19b629,'isEnabled',(..._0x143fb8)=>_0x143fb8['some'](_0x34bb23=>_0x34bb23)),_0x343382['on']('execute',_0x3c3889=>this['editor']['execute'](_0x3c3889['source']['commandName'])),_0x343382;}['_initializeController'](_0x31d6cd){const _0x1bf2a2=this['editor'],_0x31c4a4=_0x1bf2a2['config'],_0x59f003=_0x1bf2a2['plugins']['get'](Ft),_0x1ca900=_0x31d6cd['getAllAdjacentSuggestions']()['filter'](_0x6f036a=>_0x6f036a['isInContent']),_0xf687=_0x1bf2a2['plugins']['get']('Users')['me'],_0x3a08d3=_0x1bf2a2['commands']['get']('acceptSuggestion'),_0x6c6bdc=_0x1bf2a2['commands']['get']('discardSuggestion'),_0x4f912b=new(0x0,(_0x31c4a4['get']('trackChanges'))['SuggestionThreadView'])(_0x1bf2a2['locale'],_0x31d6cd,_0xf687,{'disableComments':this['_disableComments'],'editorConfig':_0x31c4a4['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x31c4a4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x31c4a4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x31c4a4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':Gt(_0x31c4a4['get']('locale')),'CommentView':_0x31c4a4['get']('comments')['CommentView']}),_0x35d86e=new Ct(_0x31d6cd,_0x4f912b,_0x3a08d3,_0x6c6bdc);_0x4f912b['descriptionParts']=_0x1bf2a2['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x1ca900),this['_suggestionToController']['set'](_0x31d6cd,_0x35d86e),this['_viewToController']['set'](_0x4f912b,_0x35d86e);const _0x3cf009=new qt(this['editor']['locale'],_0x4f912b);_0x3cf009['bind']('isDirty')['to'](_0x4f912b,'isDirty'),_0x3cf009['bind']('length')['to'](_0x4f912b),_0x3cf009['bind']('type')['to'](_0x4f912b,'type',_0x42c856=>'suggestion-'+_0x42c856);const _0x43087e=new zt({'view':_0x3cf009,'target':()=>{const _0x2f1196=_0x1ca900[0x0]['getFirstMarker']();if(!_0x2f1196)return null;const _0x60ad29=_0x2f1196['getRange']()['getContainedElement']();return _0x60ad29&&!_0x1bf2a2['editing']['mapper']['toViewElement'](_0x60ad29)?null:Mt(_0x1bf2a2['editing'],_0x2f1196)||null;},'type':()=>'suggestion-'+_0x35d86e['view']['type']});_0x59f003['add'](_0x43087e);const _0x45eb39=_0x1bf2a2['plugins']['get']('PendingActions');let _0x4bc61b;_0x4f912b['on']('change:isDirty',(_0x2a8d57,_0x5212fb,_0xbdeb7f)=>{if(_0xbdeb7f){const t=this['editor']['locale']['t'];_0x4bc61b=_0x45eb39['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x45eb39['remove'](_0x4bc61b),_0x4bc61b=null;});}['_destroyController'](_0x21d6e7){const _0x2bac55=this['editor']['plugins']['get']('Annotations'),_0x5240bb=this['_suggestionToController']['get'](_0x21d6e7),_0x18fc98=_0x5240bb['view'],_0x514600=_0x2bac55['getByInnerView'](_0x18fc98);_0x2bac55['remove'](_0x514600),this['_suggestionToController']['delete'](_0x21d6e7),this['_viewToController']['delete'](_0x18fc98),_0x5240bb['destroy'](),_0x18fc98['destroy']();}['_updateController'](_0x5f03a7){if(!_0x5f03a7['isInContent']||!this['_suggestionToController']['has'](_0x5f03a7))return;const _0x562af7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e5c64=this['_suggestionToController']['get'](_0x5f03a7),_0x45508a=_0x5f03a7['getAllAdjacentSuggestions']();_0x1e5c64['view']['descriptionParts']=_0x562af7['_descriptionFactory']['getDescriptions'](_0x45508a);}['destroy'](){super['destroy']();for(const _0x37199b of this['_suggestionToController']['keys']())this['_destroyController'](_0x37199b);for(const _0xd08f74 of this['_debouncedHandlers']['values']())_0xd08f74['cancel']();this['_debouncedHandlers']['clear']();}}
|
|
23
|
+
import{Plugin as _0x92e352}from'ckeditor5/src/core';import _0x3369cf from'./trackchangesediting';import _0xf79522 from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import Ct from'./ui/suggestioncontroller';import Tt from'./ui/view/suggestionthreadview';import _0x6e44f5 from'@ckeditor/ckeditor5-collaboration-core/src/users';import xt from'@ckeditor/ckeditor5-comments/src/annotations/editorannotations';import{Collection as Et}from'ckeditor5/src/utils';import{Model as At,SplitButtonView as Nt,createDropdown as Ut,addListToDropdown as Wt}from'ckeditor5/src/ui';import _t from'@ckeditor/ckeditor5-comments/src/utils/getdatetimeformatter';import Ot from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import Gt from'../theme/icons/track-changes.svg';import{debounce as Mt}from'lodash-es';import Pt from'@ckeditor/ckeditor5-comments/src/annotations/view/annotationview';import Vt from'@ckeditor/ckeditor5-comments/src/annotations/annotation';import qt from'@ckeditor/ckeditor5-comments/src/annotations/annotations';export default class f extends _0x92e352{static get['requires'](){return[qt,xt,_0x3369cf,_0xf79522,_0x6e44f5];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x528969){super(_0x528969),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x4e961e=this['editor']['config'];_0x4e961e['define']('trackChanges.SuggestionThreadView',Tt),_0x4e961e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e961e['get']('trackChanges.disableComments');}['init'](){const _0x4be068=this['editor'],_0x1dd4e2=_0x4be068['plugins']['get'](_0x3369cf),_0x32c326=_0x4be068['plugins']['get'](qt),_0x117388=_0x4be068['plugins']['get'](xt),_0x5f4395=_0x4be068['plugins']['get'](_0xf79522);_0x4be068['ui']['componentFactory']['add']('trackChanges',_0x5a0e81=>this['_createUIButton'](_0x5a0e81)),_0x117388['addSourceCollector'](()=>{const _0x422631=[];for(const [_0x53d093,_0x2586f4]of Array['from'](this['_suggestionToController'])){const _0x492e72=_0x53d093['getAllAdjacentSuggestions'](),_0x146464=[];for(const _0x403eb5 of _0x492e72){if(!_0x403eb5['isInContent'])continue;if(_0x403eb5['isMultiRange']){_0x146464['push'](..._0x403eb5['getRanges']());continue;}const _0x20e1bb=_0x403eb5['getFirstRange']();if(_0x146464['length']>0x0){const _0x1a46e5=_0x146464[0x0]['getJoined'](_0x20e1bb);if(_0x1a46e5){_0x146464[0x0]=_0x1a46e5;continue;}}_0x146464['push'](_0x20e1bb);}_0x422631['push']([_0x2586f4['view'],_0x146464]);}return _0x422631;}),this['listenTo'](_0x1dd4e2,'suggestionLoaded',(_0x29a040,_0x78547f)=>{let _0x5b98ac=!0x1;const _0x448863=Mt(_0x4eb85c=>{_0x5b98ac||_0x4eb85c?_0x5b98ac&&_0x4eb85c&&(this['_destroyController'](_0x78547f),_0x117388['refreshSelectedViews'](),_0x5b98ac=!0x1):(this['_initializeController'](_0x78547f),_0x117388['refreshSelectedViews'](),_0x5b98ac=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x78547f,_0x448863),this['listenTo'](_0x78547f,'change:previous',(_0xb8a3f4,_0x5e6f22,_0x2d172b,_0xab7b81)=>{_0x78547f['isInContent']&&(null==_0x2d172b?(this['_updateController'](_0xab7b81['head']),_0x448863(!0x1)):(this['_updateController'](_0x2d172b['head']),_0x448863(!0x0)));}),null===_0x78547f['previous']?_0x448863(!0x1):this['_updateController'](_0x78547f['head']);}),this['listenTo'](_0x1dd4e2,'suggestionUnloaded',(_0x33a8f8,_0x2048b8,_0x1d3b57)=>{this['stopListening'](_0x2048b8,'change:previous'),this['_debouncedHandlers']['get'](_0x2048b8)['cancel'](),this['_debouncedHandlers']['delete'](_0x2048b8);const _0x47cf6f=_0x1d3b57?_0x1d3b57['head']:_0x2048b8,_0xc75bdf=this['_suggestionToController']['get'](_0x47cf6f);null!==_0x1d3b57&&this['_updateController'](_0x47cf6f),null===_0x1d3b57&&_0xc75bdf&&this['_destroyController'](_0x2048b8);}),this['listenTo'](_0x1dd4e2,'suggestionChanged',(_0x5a2b3e,_0x39ebb2)=>{this['_updateController'](_0x39ebb2);}),this['listenTo'](_0x32c326,'change:activeAnnotations',(_0x4315c8,_0x1e3e9d,_0x1a11ef)=>{const _0x321a16=Array['from'](_0x1a11ef,_0x35db69=>_0x35db69['innerView'])['filter'](_0x45d884=>this['_viewToController']['has'](_0x45d884)),_0x4cdec9=[];for(const _0x21628f of _0x321a16){const _0x31b564=this['_viewToController']['get'](_0x21628f)['model']['getAllAdjacentSuggestions']();_0x4cdec9['push'](..._0x31b564['reduce']((_0x397eb1,_0x371eb0)=>[..._0x397eb1,..._0x371eb0['getMarkerNames']()],[]));}_0x1dd4e2['activeMarkers']=_0x4cdec9;}),this['listenTo'](_0x5f4395,'addComment',(_0xe6daf6,{threadId:_0x57a03b,isFromAdapter:_0x127f70})=>{if(_0x127f70||!_0x1dd4e2['hasSuggestion'](_0x57a03b))return;const _0x373e7f=_0x1dd4e2['getSuggestion'](_0x57a03b);this['_suggestionToController']['get'](_0x373e7f)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x645247){const _0x2d6f5d=Ut(_0x645247,Nt),_0x1cbaea=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x2d6f5d['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':Gt}),_0x2d6f5d['buttonView']['bind']('isOn')['to'](_0x1cbaea,'value'),_0x2d6f5d['buttonView']['on']('execute',()=>_0x1cbaea['execute']());const _0x4d816b=new Et(),_0x57b81d=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x2bf6d6 of _0x57b81d){const _0x54bd2a={'type':_0x2bf6d6['type']};if(_0x2bf6d6['model']){const _0x423a3e=new At(_0x2bf6d6['model']),_0x1a4b53=this['editor']['commands']['get'](_0x423a3e['commandName']);_0x423a3e['bind']('isOn','isEnabled')['to'](_0x1a4b53,'value','isEnabled'),_0x54bd2a['model']=_0x423a3e;}_0x4d816b['add'](_0x54bd2a);}Wt(_0x2d6f5d,_0x4d816b);const _0x23fe5c=_0x57b81d['filter'](_0x41ccff=>null!=_0x41ccff['model'])['map'](_0x32f813=>this['editor']['commands']['get'](_0x32f813['model']['commandName']));return _0x2d6f5d['buttonView']['actionView']['unbind']('isEnabled'),_0x2d6f5d['buttonView']['arrowView']['unbind']('isEnabled'),_0x2d6f5d['buttonView']['actionView']['bind']('isEnabled')['to'](_0x1cbaea,'isEnabled'),_0x2d6f5d['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0x23fe5c,'isEnabled',(..._0x2ec51c)=>_0x2ec51c['some'](_0x13d372=>_0x13d372)),_0x2d6f5d['on']('execute',_0x45cd7f=>this['editor']['execute'](_0x45cd7f['source']['commandName'])),_0x2d6f5d;}['_initializeController'](_0x1771c3){const _0x537f8c=this['editor'],_0x2f8ba3=_0x537f8c['config'],_0x11a606=_0x537f8c['plugins']['get'](qt),_0x127dbc=_0x1771c3['getAllAdjacentSuggestions']()['filter'](_0x51f8af=>_0x51f8af['isInContent']),_0x272f78=_0x537f8c['plugins']['get']('Users')['me'],_0x18f61e=_0x537f8c['commands']['get']('acceptSuggestion'),_0x4e6ce3=_0x537f8c['commands']['get']('discardSuggestion'),_0x30299b=new(0x0,(_0x2f8ba3['get']('trackChanges'))['SuggestionThreadView'])(_0x537f8c['locale'],_0x1771c3,_0x272f78,{'disableComments':this['_disableComments'],'editorConfig':_0x2f8ba3['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2f8ba3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2f8ba3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2f8ba3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_t(_0x2f8ba3['get']('locale')),'CommentView':_0x2f8ba3['get']('comments')['CommentView']}),_0x405b30=new Ct(_0x1771c3,_0x30299b,_0x18f61e,_0x4e6ce3);_0x30299b['descriptionParts']=_0x537f8c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x127dbc),this['_suggestionToController']['set'](_0x1771c3,_0x405b30),this['_viewToController']['set'](_0x30299b,_0x405b30);const _0x4d5bee=new Pt(this['editor']['locale'],_0x30299b);_0x4d5bee['bind']('isDirty')['to'](_0x30299b,'isDirty'),_0x4d5bee['bind']('length')['to'](_0x30299b),_0x4d5bee['bind']('type')['to'](_0x30299b,'type',_0x2adc0a=>'suggestion-'+_0x2adc0a);const _0xc41d42=new Vt({'view':_0x4d5bee,'target':()=>{const _0x1228dc=_0x127dbc[0x0]['getFirstMarker']();if(!_0x1228dc)return null;const _0x35f176=_0x1228dc['getRange']()['getContainedElement']();return _0x35f176&&!_0x537f8c['editing']['mapper']['toViewElement'](_0x35f176)?null:Ot(_0x537f8c['editing'],_0x1228dc)||null;},'type':()=>'suggestion-'+_0x405b30['view']['type']});_0x11a606['add'](_0xc41d42);const _0x22f3a0=_0x537f8c['plugins']['get']('PendingActions');let _0x294ec9;_0x30299b['on']('change:isDirty',(_0x4e0780,_0x5d8373,_0x3c1f6b)=>{if(_0x3c1f6b){const t=this['editor']['locale']['t'];_0x294ec9=_0x22f3a0['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x22f3a0['remove'](_0x294ec9),_0x294ec9=null;});}['_destroyController'](_0x19212f){const _0x74a023=this['editor']['plugins']['get']('Annotations'),_0x36f552=this['_suggestionToController']['get'](_0x19212f),_0x599dcb=_0x36f552['view'],_0x201d29=_0x74a023['getByInnerView'](_0x599dcb);_0x74a023['remove'](_0x201d29),this['_suggestionToController']['delete'](_0x19212f),this['_viewToController']['delete'](_0x599dcb),_0x36f552['destroy'](),_0x599dcb['destroy']();}['_updateController'](_0x238b17){if(!_0x238b17['isInContent']||!this['_suggestionToController']['has'](_0x238b17))return;const _0x248b8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16dd34=this['_suggestionToController']['get'](_0x238b17),_0x37a119=_0x238b17['getAllAdjacentSuggestions']();_0x16dd34['view']['descriptionParts']=_0x248b8b['_descriptionFactory']['getDescriptions'](_0x37a119);}['destroy'](){super['destroy']();for(const _0x6a8cf9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x6a8cf9);for(const _0x4759ff of this['_debouncedHandlers']['values']())_0x4759ff['cancel']();this['_debouncedHandlers']['clear']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa4cf=['discardSuggestion','_discardCommand','bind','isEnabled','listenTo','acceptSuggestion','commentThread','model','view','_acceptCommand','execute','unbind','destroy'];(function(_0x55a720,_0xa4cf36){var _0x2eed4b=function(_0x57bf08){while(--_0x57bf08){_0x55a720['push'](_0x55a720['shift']());}};_0x2eed4b(++_0xa4cf36);}(_0xa4cf,0x1cc));var _0x2eed=function(_0x55a720,_0xa4cf36){_0x55a720=_0x55a720-0x0;var _0x2eed4b=_0xa4cf[_0x55a720];return _0x2eed4b;};import{ObservableMixin as _0x311cd6,mix as _0x31193f}from'ckeditor5/src/utils';import _0x2411c0 from'@ckeditor/ckeditor5-comments/src/comments/ui/commentthreadcontroller';export default class Ct{constructor(_0x3627ce,_0x19e154,_0x3e39fd,_0x914e4){this['model']=_0x3627ce,this[_0x2eed('0x3')]=_0x19e154,this['commentThreadController']=new _0x2411c0(_0x3627ce[_0x2eed('0x1')],_0x19e154),this[_0x2eed('0x4')]=_0x3e39fd,this[_0x2eed('0x9')]=_0x914e4,this[_0x2eed('0x3')][_0x2eed('0xa')](_0x2eed('0xb'))['to'](this[_0x2eed('0x4')]),this[_0x2eed('0xc')](_0x19e154,'acceptSuggestion',()=>this[_0x2eed('0x0')]()),this['listenTo'](_0x19e154,_0x2eed('0x8'),()=>this[_0x2eed('0x8')]());}[_0x2eed('0x0')](){this['_acceptCommand'][_0x2eed('0x5')](this[_0x2eed('0x2')]['id']);}[_0x2eed('0x8')](){this[_0x2eed('0x9')][_0x2eed('0x5')](this[_0x2eed('0x2')]['id']);}[_0x2eed('0x7')](){this['view'][_0x2eed('0x6')]('isEnabled'),this['stopListening'](),this['commentThreadController'][_0x2eed('0x7')]();}}_0x31193f(Ct,_0x311cd6);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ea=['_model','commentThread','disableComments','isDirty','_createCommentViews','CommentView','isEnabled','createdAt','removeComment','commentInputView','value','element','submit','assign','_createCommentThreadInputView','commentThreadInputView','bind','showInput','_localUser','descriptionParts','set','_config','disabledSubmit','updateComment','isActive','setData','focus','editorConfig','destroy','fire','locale','delegate','length','isReadOnly','commentsListView','editor','hasDirtyComment'];(function(_0x109014,_0x16eac2){const _0x346e6a=function(_0x20dd1f){while(--_0x20dd1f){_0x109014['push'](_0x109014['shift']());}};_0x346e6a(++_0x16eac2);}(_0x16ea,0xa9));const _0x346e=function(_0x109014,_0x16eac2){_0x109014=_0x109014-0x0;let _0x346e6a=_0x16ea[_0x109014];return _0x346e6a;};import{View as _0x1fde77}from'ckeditor5/src/ui';import _0x458304 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentslistview';import _0x49bcd5 from'@ckeditor/ckeditor5-comments/src/comments/ui/view/commentthreadinputview';export default class ei extends _0x1fde77{constructor(_0x15154f,_0x33c6dc,_0xf2274d,_0x5eb686){super(_0x15154f),this[_0x346e('0xd')]=null,this['commentThreadInputView']=null,this[_0x346e('0x24')]('isActive',!0x1),this[_0x346e('0x24')](_0x346e('0x17'),_0x33c6dc['createdAt']),this[_0x346e('0x20')](_0x346e('0x17'))['to'](_0x33c6dc),this[_0x346e('0x24')](_0x346e('0x23'),[]),this[_0x346e('0x24')](_0x346e('0x13'),!0x1),this[_0x346e('0x24')](_0x346e('0x16'),!0x1),this[_0x346e('0x10')]=_0x33c6dc,this[_0x346e('0x22')]=_0xf2274d,this['_config']=_0x5eb686,_0x5eb686[_0x346e('0x12')]?this['set'](_0x346e('0xb'),0x1):this[_0x346e('0x14')]();}[_0x346e('0x5')](){this[_0x346e('0x1b')][_0x346e('0x5')]();}[_0x346e('0x7')](){this['isDirty']=!0x1,this[_0x346e('0xd')]&&this[_0x346e('0xd')][_0x346e('0x7')](),this[_0x346e('0x1f')]&&this[_0x346e('0x1f')][_0x346e('0x7')](),super['destroy']();}[_0x346e('0x14')](){this[_0x346e('0xd')]=new _0x458304(this[_0x346e('0x9')],this['_model'][_0x346e('0x11')],Object[_0x346e('0x1d')]({'CommentView':this[_0x346e('0x0')][_0x346e('0x15')]},this[_0x346e('0x0')])),this['commentsListView'][_0x346e('0xa')](_0x346e('0x18'))['to'](this),this['commentsListView'][_0x346e('0xa')](_0x346e('0x2'))['to'](this),this[_0x346e('0xd')]['bind'](_0x346e('0x3'))['to'](this),this[_0x346e('0x24')](_0x346e('0xb'),this[_0x346e('0xd')][_0x346e('0xb')]+0x1),this[_0x346e('0x20')](_0x346e('0xb'))['to'](this[_0x346e('0xd')],_0x346e('0xb'),_0x58576a=>_0x58576a+0x1),this[_0x346e('0x1f')]=this[_0x346e('0x1e')](),this['on'](_0x346e('0x18'),()=>this[_0x346e('0x5')]()),this['bind'](_0x346e('0x13'))['to'](this['commentsListView'],_0x346e('0xf'),this['commentThreadInputView'][_0x346e('0x19')],_0x346e('0x1a'),(_0x1a443f,_0x37a872)=>_0x1a443f||!!_0x37a872);}['_createCommentThreadInputView'](){const _0x2d08f6=new _0x49bcd5(this[_0x346e('0x9')],this[_0x346e('0x22')],this[_0x346e('0x0')][_0x346e('0x6')]),_0x138c09=_0x2d08f6[_0x346e('0x19')];return _0x2d08f6[_0x346e('0x20')](_0x346e('0x21'))['to'](this,_0x346e('0x3'),this[_0x346e('0x10')]['commentThread'],_0x346e('0xc'),_0x138c09,'value',(_0x2128f6,_0x568140,_0x40bd01)=>!!_0x40bd01||_0x2128f6&&!_0x568140),_0x138c09['on'](_0x346e('0x1c'),(_0x25fe2f,_0x10afb5)=>{this[_0x346e('0x8')]('addComment',_0x10afb5),_0x138c09[_0x346e('0xe')][_0x346e('0x4')]('');}),_0x138c09['on']('cancel',()=>this[_0x346e('0x5')]()),_0x138c09[_0x346e('0x20')](_0x346e('0x1'))['to'](this['_model'][_0x346e('0x11')],'isReadOnly'),_0x2d08f6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import _0x557297 from'./basesuggestionthreadview';import _0x4165d2 from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{ButtonView as _0x36604a}from'ckeditor5/src/ui';import{icons as _0x4c9557}from'ckeditor5/src/core';import _0x524d41 from'@ckeditor/ckeditor5-comments/src/utils/trim-html';export default class Tt extends _0x557297{constructor(_0xb2c99a,_0x5214fa,_0x471617,_0xa90199){super(_0xb2c99a,_0x5214fa,_0x471617,_0xa90199);const {t:t}=_0xb2c99a;this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x98205d=>_0x98205d&&_0x98205d[0x0]?_0x98205d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5d858d,_0x8bd922)=>{let _0x501c2e='';for(const _0x5f1251 of _0x5d858d)_0x501c2e+='<p>'+ri(_0x5f1251['content'])+'</p>';return _0x8bd922?_0x501c2e:_0x524d41(_0x501c2e,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](t('Accept\x20suggestion'),_0x4c9557['check'],'ck-suggestion--accept','acceptSuggestion'),this['discardButton']=this['_createButton'](t('Discard\x20suggestion'),_0x4c9557['cancel'],'ck-suggestion--discard','discardSuggestion'),this['userView']=new _0x4165d2(_0xb2c99a,this['_model']['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['_getTemplate']());}['_getTemplate'](){const _0xad921f=this['bindTemplate'],_0x4f41fd={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xad921f['if']('isActive','ck-suggestion-wrapper--active'),_0xad921f['to']('type',_0x2f705e=>'ck-suggestion-'+_0x2f705e),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0xad921f['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xad921f['to']('createdAt',_0x2ab0c7=>this['_config']['formatDateTime'](_0x2ab0c7))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this['commentsListView']&&this['commentThreadInputView']&&_0x4f41fd['children']['push'](this['commentsListView'],this['commentThreadInputView']),_0x4f41fd;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x48ca90,_0x1ea466,_0x59d1a4)=>{this['_descriptionElement']['innerHTML']=_0x59d1a4;});}['_createButton'](_0x4b2168,_0xc90b99,_0xcad9ee,_0x43a276){const _0x2fe97c=new _0x36604a(this['locale']);return _0x2fe97c['set']({'label':_0x4b2168,'icon':_0xc90b99,'tooltip':!0x0}),_0x2fe97c['extendTemplate']({'attributes':{'class':_0xcad9ee}}),_0x2fe97c['on']('execute',()=>{this['fire'](_0x43a276,this['_model']['id']);}),_0x2fe97c['bind']('isEnabled')['to'](this),_0x2fe97c;}}function ri(_0x297003){let _0x1da6de='';return _0x1da6de+=_0x297003['split']('*')['map']((_0x200d62,_0x28e991)=>_0x28e991%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+hi(_0x200d62)+'</span>':hi(_0x200d62))['join'](''),_0x1da6de;}function hi(_0x4e87c0){const _0x3e5930=document['createElement']('span');return _0x3e5930['innerText']=_0x4e87c0,_0x3e5930['innerHTML'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4de9=['isTouching','getRanges','isCollapsed','next','start','isIntersecting','isMultiRange','end'];(function(_0x57095f,_0x4de93f){const _0x5eed29=function(_0xb3ecee){while(--_0xb3ecee){_0x57095f['push'](_0x57095f['shift']());}};_0x5eed29(++_0x4de93f);}(_0x4de9,0x1d1));const _0x5eed=function(_0x57095f,_0x4de93f){_0x57095f=_0x57095f-0x0;let _0x5eed29=_0x4de9[_0x57095f];return _0x5eed29;};export default function jt(_0x8c38e0,_0x5b6938){const _0x5992af=Array['from'](_0x8c38e0[_0x5eed('0x0')]()),_0x52a280=new Set();for(const _0x29e603 of _0x5b6938)if(_0x29e603['isInContent'])for(const _0x13946f of _0x5992af)for(const _0x3d5535 of _0x29e603['getMarkers']()){const _0x5d41ff=_0x3d5535['getRange']();(_0x13946f[_0x5eed('0x4')](_0x5d41ff)||_0x8c38e0[_0x5eed('0x1')]&&!_0x29e603[_0x5eed('0x5')]&&_0x29e603[_0x5eed('0x2')]&&_0x5d41ff[_0x5eed('0x6')][_0x5eed('0x7')](_0x13946f[_0x5eed('0x3')]))&&_0x52a280['add'](_0x29e603);}return _0x52a280;}
|
package/src/utils/hashobject.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16a4=['charCodeAt','toString','isArray','object','string','keys','boolean','sign'];(function(_0x521e16,_0x16a4af){const _0x1046d6=function(_0x4466e5){while(--_0x4466e5){_0x521e16['push'](_0x521e16['shift']());}};_0x1046d6(++_0x16a4af);}(_0x16a4,0x1bd));const _0x1046=function(_0x521e16,_0x16a4af){_0x521e16=_0x521e16-0x0;let _0x1046d6=_0x16a4[_0x521e16];return _0x1046d6;};export default function mt(_0x5b55){let _0xca7ff3=0x0,_0x5d37ac=0x0;for(const _0x5c557e of pe(_0x5b55))_0xca7ff3=(_0xca7ff3<<0x5)-_0xca7ff3+_0x5c557e,_0xca7ff3&=_0xca7ff3,[_0xca7ff3,_0x5d37ac]=[_0x5d37ac,_0xca7ff3];return xe(_0xca7ff3)+xe(_0x5d37ac);}function*ye(_0x19e963){_0x19e963?_0x1046('0x1')==typeof _0x19e963?yield 0x1:Array[_0x1046('0x5')](_0x19e963)?yield*function*(_0xaa8f34){for(const _0x34423c of _0xaa8f34)yield*ye(_0x34423c);}(_0x19e963):_0x1046('0x6')==typeof _0x19e963?yield*pe(_0x19e963):_0x1046('0x7')==typeof _0x19e963?yield*je(_0x19e963):'number'==typeof _0x19e963&&(yield _0x19e963):yield 0x0;}function*pe(_0x5d47ad){if(yield he('{'),_0x5d47ad){const _0x4fd43e=Object[_0x1046('0x0')](_0x5d47ad)['sort']();for(const _0x27b86b of _0x4fd43e){yield*je(_0x27b86b),yield he(':');const _0x2d40e1=_0x5d47ad[_0x27b86b];yield*ye(_0x2d40e1);}}yield he('}');}function*je(_0x5ed3d8){yield he('\x22');for(const _0x93ca28 of _0x5ed3d8)yield he(_0x93ca28);yield he('\x22');}function he(_0x205cd3){return _0x205cd3[_0x1046('0x3')](0x0);}function xe(_0x4125d0){return(_0x4125d0*=Math[_0x1046('0x2')](_0x4125d0))[_0x1046('0x4')](0x24);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x7a1e=['join','content','type','map','replace'];(function(_0xc7572,_0x7a1ed2){var _0x1bd0b6=function(_0x564247){while(--_0x564247){_0xc7572['push'](_0xc7572['shift']());}};_0x1bd0b6(++_0x7a1ed2);}(_0x7a1e,0x67));var _0x1bd0=function(_0xc7572,_0x7a1ed2){_0xc7572=_0xc7572-0x0;var _0x1bd0b6=_0x7a1e[_0xc7572];return _0x1bd0b6;};export function normalizeDescription(_0x146432){return Array['isArray'](_0x146432)||(_0x146432=[_0x146432]),_0x146432[_0x1bd0('0x0')](_0x5249dd=>'['+_0x5249dd[_0x1bd0('0x4')]+']\x20'+_0x5249dd[_0x1bd0('0x3')][_0x1bd0('0x1')](/\*/g,''))[_0x1bd0('0x2')](';\x20');}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2ba6=['type','deletion'];(function(_0x205dec,_0x2ba61e){var _0x3f401f=function(_0x45820c){while(--_0x45820c){_0x205dec['push'](_0x205dec['shift']());}};_0x3f401f(++_0x2ba61e);}(_0x2ba6,0xec));var _0x3f40=function(_0x205dec,_0x2ba61e){_0x205dec=_0x205dec-0x0;var _0x3f401f=_0x2ba6[_0x205dec];return _0x3f401f;};export default function ts(_0xa62f1){return _0xa62f1['sort']((_0xef0ebe,_0x295f29)=>_0x3f40('0x1')==_0xef0ebe[_0x3f40('0x0')]&&'deletion'!=_0x295f29[_0x3f40('0x0')]?-0x1:_0x3f40('0x1')!=_0xef0ebe[_0x3f40('0x0')]&&'deletion'==_0x295f29[_0x3f40('0x0')]?0x1:0x0);}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. 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 _0xb81b=['exportPdf','TrackChangesEditing','plugins','ExportPdf','get','has','afterInit'];(function(_0x435cde,_0xb81bf7){const _0x23a2bf=function(_0xaeea7f){while(--_0xaeea7f){_0x435cde['push'](_0x435cde['shift']());}};_0x23a2bf(++_0xb81bf7);}(_0xb81b,0x17f));const _0x23a2=function(_0x435cde,_0xb81bf7){_0x435cde=_0x435cde-0x0;let _0x23a2bf=_0xb81b[_0x435cde];return _0x23a2bf;};import{Plugin as _0x1268e2}from'ckeditor5/src/core';export default class z extends _0x1268e2{[_0x23a2('0x1')](){const _0x42450d=this['editor'];_0x42450d[_0x23a2('0x4')][_0x23a2('0x0')](_0x23a2('0x5'))&&_0x42450d[_0x23a2('0x4')][_0x23a2('0x6')](_0x23a2('0x3'))['enableCommand'](_0x23a2('0x2'));}}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. 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 _0x2b39=['exportWord','enableCommand','TrackChangesEditing','ExportWord','has','plugins'];(function(_0x49e747,_0x2b396d){const _0x4399ab=function(_0x3cda43){while(--_0x3cda43){_0x49e747['push'](_0x49e747['shift']());}};_0x4399ab(++_0x2b396d);}(_0x2b39,0x19a));const _0x4399=function(_0x49e747,_0x2b396d){_0x49e747=_0x49e747-0x0;let _0x4399ab=_0x2b39[_0x49e747];return _0x4399ab;};import{Plugin as _0x1cf78e}from'ckeditor5/src/core';export default class J extends _0x1cf78e{['afterInit'](){const _0x3aa940=this['editor'];_0x3aa940[_0x4399('0x3')][_0x4399('0x2')](_0x4399('0x1'))&&_0x3aa940[_0x4399('0x3')]['get'](_0x4399('0x0'))[_0x4399('0x5')](_0x4399('0x4'));}}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. 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 _0x3b13=['enableCommand','selectAll','afterInit','SelectAll','editor','plugins','get'];(function(_0x54d652,_0x3b13e2){const _0x335c55=function(_0xaeb35e){while(--_0xaeb35e){_0x54d652['push'](_0x54d652['shift']());}};_0x335c55(++_0x3b13e2);}(_0x3b13,0x1c8));const _0x335c=function(_0x54d652,_0x3b13e2){_0x54d652=_0x54d652-0x0;let _0x335c55=_0x3b13[_0x54d652];return _0x335c55;};import{Plugin as _0x2eba33}from'ckeditor5/src/core';export default class ht extends _0x2eba33{[_0x335c('0x1')](){const _0x1a8825=this[_0x335c('0x3')];if(!_0x1a8825[_0x335c('0x4')]['has'](_0x335c('0x2')))return;_0x1a8825[_0x335c('0x4')][_0x335c('0x5')]('TrackChangesEditing')[_0x335c('0x6')](_0x335c('0x0'));}}
|