UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.15 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x383010=_0x44f1;(function(_0x19e48c,_0x234aef){const _0x5159d3=_0x44f1,_0x28c368=_0x19e48c();while(!![]){try{const _0xc306e5=parseInt(_0x5159d3(0x108))/0x1*(-parseInt(_0x5159d3(0x116))/0x2)+-parseInt(_0x5159d3(0xf5))/0x3+parseInt(_0x5159d3(0xed))/0x4+-parseInt(_0x5159d3(0x113))/0x5+-parseInt(_0x5159d3(0x102))/0x6*(-parseInt(_0x5159d3(0x10d))/0x7)+parseInt(_0x5159d3(0xf0))/0x8*(parseInt(_0x5159d3(0xfe))/0x9)+parseInt(_0x5159d3(0x112))/0xa*(parseInt(_0x5159d3(0xf6))/0xb);if(_0xc306e5===_0x234aef)break;else _0x28c368['push'](_0x28c368['shift']());}catch(_0x2f5ad5){_0x28c368['push'](_0x28c368['shift']());}}}(_0x5cf7,0xde724));import{Plugin as _0x58182d}from'ckeditor5/src/core.js';import{getTranslation as _0x1cfdce}from'../utils/common-translations.js';import{getRangesOfBlockGroups as _0xbad4da}from'../utils/utils.js';export class TrackChangesBlockQuote extends _0x58182d{[_0x383010(0x10e)](){const _0x29b09e=_0x383010,_0x53f94c=this[_0x29b09e(0xfc)],_0x42d64b=_0x53f94c[_0x29b09e(0x109)];if(!_0x53f94c[_0x29b09e(0x10c)][_0x29b09e(0x107)](_0x29b09e(0xea)))return;const _0x2681cd=_0x53f94c[_0x29b09e(0x10c)][_0x29b09e(0x114)](_0x29b09e(0x10f)),_0x57ae07=this[_0x29b09e(0xfc)][_0x29b09e(0xec)][_0x29b09e(0x114)](_0x29b09e(0x10b));_0x2681cd[_0x29b09e(0x106)](_0x29b09e(0x10b),(_0x239cee,_0x508adb={})=>{const _0x2bcb49=_0x29b09e,_0x4e517c=this[_0x2bcb49(0xfc)][_0x2bcb49(0x105)][_0x2bcb49(0xf7)][_0x2bcb49(0xf3)],_0x5c2bac=_0x508adb&&void 0x0!==_0x508adb[_0x2bcb49(0x111)]?_0x508adb[_0x2bcb49(0x111)]:!_0x57ae07[_0x2bcb49(0xf8)];let _0x5989a4=[];if(_0x5c2bac){const _0x141962=Array[_0x2bcb49(0x100)](_0x4e517c[_0x2bcb49(0x101)]())[_0x2bcb49(0x115)](_0x279555=>oo(_0x279555)||function(_0x5b7b04,_0x56a92f){const _0x59920e=_0x2bcb49,_0x29f6ca=_0x56a92f[_0x59920e(0xfd)](_0x5b7b04[_0x59920e(0xeb)],_0x59920e(0x10b)),_0x668e92=_0x56a92f[_0x59920e(0xfd)]([_0x59920e(0x103),_0x59920e(0x10b)],_0x5b7b04);return _0x29f6ca&&_0x668e92;}(_0x279555,this[_0x2bcb49(0xfc)][_0x2bcb49(0x105)][_0x2bcb49(0xf4)]));_0x5989a4=_0xbad4da(_0x141962,_0x53f94c[_0x2bcb49(0x105)]);}else{const _0x43c13f=Array[_0x2bcb49(0x100)](_0x4e517c[_0x2bcb49(0x101)]())[_0x2bcb49(0x115)](_0x27c857=>oo(_0x27c857));_0x5989a4=_0xbad4da(_0x43c13f,_0x53f94c[_0x2bcb49(0x105)]);}_0x53f94c[_0x2bcb49(0x105)][_0x2bcb49(0xef)](()=>{const _0x3b732c=_0x2bcb49;for(const _0x5f4d2f of _0x5989a4)_0x2681cd[_0x3b732c(0xfb)](_0x5f4d2f,{'commandName':_0x3b732c(0x10b),'commandParams':[{'forceValue':_0x5c2bac}]});});}),_0x2681cd[_0x29b09e(0xf2)][_0x29b09e(0xfa)](_0x473662=>{const _0x1120a3=_0x29b09e,{data:_0x11a772}=_0x473662;if(_0x11a772&&_0x1120a3(0x10b)==_0x11a772[_0x1120a3(0xf9)]){const _0x4c711a=_0x1cfdce(_0x42d64b,_0x1120a3(0xf1));return _0x11a772[_0x1120a3(0xee)][0x0][_0x1120a3(0x111)]?{'type':_0x1120a3(0x110),'content':_0x1cfdce(_0x42d64b,_0x1120a3(0x10a),_0x4c711a)}:{'type':_0x1120a3(0x110),'content':_0x1cfdce(_0x42d64b,_0x1120a3(0xff),_0x4c711a)};}});}}function _0x44f1(_0x2e21a2,_0x136e59){const _0x5cf70b=_0x5cf7();return _0x44f1=function(_0x44f13e,_0x581a46){_0x44f13e=_0x44f13e-0xea;let _0x255999=_0x5cf70b[_0x44f13e];return _0x255999;},_0x44f1(_0x2e21a2,_0x136e59);}function oo(_0x430192){const _0x48288e=_0x383010;return _0x48288e(0x10b)==_0x430192[_0x48288e(0xeb)][_0x48288e(0x104)];}function _0x5cf7(){const _0x5a3323=['13069oLnQuu','afterInit','TrackChangesEditing','format','forceValue','130KfERyr','3183410qJRkHk','get','filter','2295556WJtKFF','BlockQuoteEditing','parent','commands','921160jLkYML','commandParams','change','608632TdTceY','ELEMENT_BLOCK_QUOTE','descriptionFactory','selection','schema','4793094lToVdB','2979009Yqicee','document','value','commandName','registerDescriptionCallback','markBlockFormat','editor','checkChild','18jCrnHQ','*Remove\x20format:*\x20%0','from','getSelectedBlocks','1254JDEFYG','$root','name','model','enableCommand','has','1dGOIYq','locale','*Set\x20format:*\x20%0','blockQuote','plugins'];_0x5cf7=function(){return _0x5a3323;};return _0x5cf7();}