@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 4.61 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x349b(){const _0x463bd0=['_trackChangesExecuted','lowest','dataInsert','Users','get','trackChanges','bind','129894bxjEXE','TrackChangesEditing','importWord','editor','afterInit','161MwQYlU','_trackChangesValueDuringImport','forEach','_handleImportedData','_setSuggestionData','enableCommand','plugins','124qADaYZ','1777WXtxKI','high','track_changes','1303056OxypbS','5498745RETAPN','value','8VAGvtC','1157049ktPSLS','collaboration_features','listenTo','3067461sRidvC','10849950PnLLfI','commands','execute'];_0x349b=function(){return _0x463bd0;};return _0x349b();}const _0xc0e3fd=_0x2398;function _0x2398(_0xce76eb,_0x184ea9){const _0x349b80=_0x349b();return _0x2398=function(_0x23988f,_0x3f418c){_0x23988f=_0x23988f-0x191;let _0x2c2c0c=_0x349b80[_0x23988f];return _0x2c2c0c;},_0x2398(_0xce76eb,_0x184ea9);}(function(_0x56ed42,_0x1d79f7){const _0x79bbc0=_0x2398,_0x16eff1=_0x56ed42();while(!![]){try{const _0x11b5ba=parseInt(_0x79bbc0(0x198))/0x1*(parseInt(_0x79bbc0(0x197))/0x2)+parseInt(_0x79bbc0(0x19f))/0x3+parseInt(_0x79bbc0(0x19b))/0x4+parseInt(_0x79bbc0(0x19c))/0x5+parseInt(_0x79bbc0(0x1ad))/0x6*(-parseInt(_0x79bbc0(0x1b2))/0x7)+parseInt(_0x79bbc0(0x19e))/0x8*(parseInt(_0x79bbc0(0x1a2))/0x9)+-parseInt(_0x79bbc0(0x1a3))/0xa;if(_0x11b5ba===_0x1d79f7)break;else _0x16eff1['push'](_0x16eff1['shift']());}catch(_0x1805ae){_0x16eff1['push'](_0x16eff1['shift']());}}}(_0x349b,0xa5d6d));import{Plugin as _0x2bb003}from'ckeditor5/src/core.js';export default class ut extends _0x2bb003{[_0xc0e3fd(0x191)];[_0xc0e3fd(0x1a6)];constructor(_0x4bcc16){const _0x3185fb=_0xc0e3fd;super(_0x4bcc16),this[_0x3185fb(0x191)]=!0x1,this[_0x3185fb(0x1a6)]=!0x1;}[_0xc0e3fd(0x1b1)](){const _0x40b57c=_0xc0e3fd,_0x2e13a8=this[_0x40b57c(0x1b0)],_0x4a82ef=_0x2e13a8[_0x40b57c(0x1a4)][_0x40b57c(0x1aa)](_0x40b57c(0x1af)),_0x256560=_0x2e13a8[_0x40b57c(0x1a4)][_0x40b57c(0x1aa)](_0x40b57c(0x1ab));_0x4a82ef&&(_0x4a82ef['on'](_0x40b57c(0x1a5),(_0x23e9f9,[,_0x5d74c9])=>{const _0x211561=_0x40b57c;this[_0x211561(0x191)]=_0x256560[_0x211561(0x19d)],_0x5d74c9[_0x211561(0x1a0)][_0x211561(0x19a)]=!this[_0x211561(0x191)];},{'priority':_0x40b57c(0x199)}),this[_0x40b57c(0x1a1)](_0x4a82ef,_0x40b57c(0x1a8),this[_0x40b57c(0x193)][_0x40b57c(0x1ac)](this)),this[_0x40b57c(0x1a1)](_0x4a82ef,_0x40b57c(0x1a8),()=>{const _0x21e627=_0x40b57c;this[_0x21e627(0x1a6)]&&(_0x256560[_0x21e627(0x1a5)](),this[_0x21e627(0x1a6)]=!0x1);},{'priority':_0x40b57c(0x1a7)}),_0x2e13a8[_0x40b57c(0x196)][_0x40b57c(0x1aa)](_0x40b57c(0x1ae))[_0x40b57c(0x195)](_0x40b57c(0x1af)));}[_0xc0e3fd(0x193)](_0x4d0ea6,_0x710531){const _0x24d115=_0xc0e3fd,{suggestions:_0x488b0d}=_0x710531,_0x145e8b=this[_0x24d115(0x1b0)][_0x24d115(0x1a4)][_0x24d115(0x1aa)](_0x24d115(0x1ab)),_0xc78e6f=_0x145e8b[_0x24d115(0x19d)];this[_0x24d115(0x191)]!==_0xc78e6f&&(_0x145e8b[_0x24d115(0x1a5)](),this[_0x24d115(0x1a6)]=!0x0),_0x488b0d&&_0x488b0d[_0x24d115(0x192)](({id:_0x28bbe8,type:_0x438dc4,author:_0x47961f,created_at:_0x1b3630})=>{const _0x38d4ea=_0x24d115,_0x346075={'id':_0x28bbe8,'type':_0x438dc4,'authorId':this[_0x38d4ea(0x1b0)][_0x38d4ea(0x196)][_0x38d4ea(0x1aa)](_0x38d4ea(0x1a9))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x47961f,'createdAt':_0x1b3630?new Date(_0x1b3630):new Date(),'source':_0x38d4ea(0x1af)}}};this[_0x38d4ea(0x1b0)][_0x38d4ea(0x196)][_0x38d4ea(0x1aa)](_0x38d4ea(0x1ae))[_0x38d4ea(0x194)](_0x346075);});}}