UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.42 kB
/* * 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 _0x3d9b(_0x5f46ef,_0x17700f){const _0x231e69=_0x231e();return _0x3d9b=function(_0x3d9b6d,_0x1ddb4f){_0x3d9b6d=_0x3d9b6d-0x7e;let _0x3d29e0=_0x231e69[_0x3d9b6d];return _0x3d29e0;},_0x3d9b(_0x5f46ef,_0x17700f);}function _0x231e(){const _0x327316=['end','suggestion:deletion','createRange','getRange','29026HnkKPy','find','FindAndReplaceUtils','isArray','filter','findByTextCallback','replaceAll','24MOfgzh','plugins','TrackChangesEditing','getIntersection','findPrevious','102KvryoV','FindAndReplaceEditing','afterInit','enableCommand','get','769517RawdNs','10472760zwIbOq','bind','1151871ABFzVN','results','has','345161jWDOCg','108550EjkLvb','1323045ItVNwl','handleFindCommand','4XBbDLu','start','getMarkersGroup','model','markers','string','replace','item','editor','_isInDeletionRange','createPositionAt','findNext'];_0x231e=function(){return _0x327316;};return _0x231e();}const _0x3947e1=_0x3d9b;(function(_0x5ef8ea,_0x4c161e){const _0x44e864=_0x3d9b,_0x20adef=_0x5ef8ea();while(!![]){try{const _0x23bc6e=-parseInt(_0x44e864(0xa2))/0x1+parseInt(_0x44e864(0x8b))/0x2+parseInt(_0x44e864(0x9f))/0x3*(-parseInt(_0x44e864(0xa6))/0x4)+-parseInt(_0x44e864(0xa3))/0x5*(-parseInt(_0x44e864(0x97))/0x6)+parseInt(_0x44e864(0x9c))/0x7*(-parseInt(_0x44e864(0x92))/0x8)+-parseInt(_0x44e864(0xa4))/0x9+parseInt(_0x44e864(0x9d))/0xa;if(_0x23bc6e===_0x4c161e)break;else _0x20adef['push'](_0x20adef['shift']());}catch(_0x2d06f6){_0x20adef['push'](_0x20adef['shift']());}}}(_0x231e,0x36eaf));import{Plugin as _0xfe6be8}from'ckeditor5/src/core.js';export class TrackChangesFindAndReplace extends _0xfe6be8{[_0x3947e1(0x99)](){const _0x966a5=_0x3947e1;if(!this[_0x966a5(0x83)][_0x966a5(0x93)][_0x966a5(0xa1)](_0x966a5(0x98)))return;const _0x5d9db2=this[_0x966a5(0x83)][_0x966a5(0x93)][_0x966a5(0x9b)](_0x966a5(0x94));_0x5d9db2[_0x966a5(0x9a)](_0x966a5(0x8c),this[_0x966a5(0xa5)][_0x966a5(0x9e)](this)),_0x5d9db2[_0x966a5(0x9a)](_0x966a5(0x86)),_0x5d9db2[_0x966a5(0x9a)](_0x966a5(0x96)),_0x5d9db2[_0x966a5(0x9a)](_0x966a5(0x81)),_0x5d9db2[_0x966a5(0x9a)](_0x966a5(0x91));}[_0x3947e1(0xa5)](_0x3873ed,_0x2a1a4f,_0xf20adf={}){const _0x3e7403=_0x3947e1,_0xd9c72f=this[_0x3e7403(0x83)][_0x3e7403(0x93)][_0x3e7403(0x9b)](_0x3e7403(0x8d));return _0x3873ed(_0x40995f=>{const _0x3b7c99=_0x3e7403;let _0x3014ac=(_0x3b7c99(0x80)==typeof _0x2a1a4f?_0xd9c72f[_0x3b7c99(0x90)](_0x2a1a4f,_0xf20adf):_0x2a1a4f)(_0x40995f);Array[_0x3b7c99(0x8e)](_0x3014ac)&&(_0x3014ac={'results':_0x3014ac,'searchText':_0x3b7c99(0x80)==typeof _0x2a1a4f?_0x2a1a4f:''});const _0x5acb6d=_0x3014ac[_0x3b7c99(0xa0)][_0x3b7c99(0x8f)](_0x2e7659=>!0x1===this[_0x3b7c99(0x84)](_0x2e7659,_0x40995f[_0x3b7c99(0x82)]));return{..._0x3014ac,'results':_0x5acb6d};},_0xf20adf);}[_0x3947e1(0x84)](_0x5887ab,_0x194b1f){const _0x3f9c53=_0x3947e1,_0x531b62=this[_0x3f9c53(0x83)][_0x3f9c53(0x7e)][_0x3f9c53(0x89)](this[_0x3f9c53(0x83)][_0x3f9c53(0x7e)][_0x3f9c53(0x85)](_0x194b1f,_0x5887ab[_0x3f9c53(0xa7)]),this[_0x3f9c53(0x83)][_0x3f9c53(0x7e)][_0x3f9c53(0x85)](_0x194b1f,_0x5887ab[_0x3f9c53(0x87)]));for(const _0x48c305 of this[_0x3f9c53(0x83)][_0x3f9c53(0x7e)][_0x3f9c53(0x7f)][_0x3f9c53(0xa8)](_0x3f9c53(0x88)))if(null!==_0x531b62[_0x3f9c53(0x95)](_0x48c305[_0x3f9c53(0x8a)]()))return!0x0;return!0x1;}}