UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 3.94 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 _0x1082eb=_0x4433;function _0x4433(_0x20856b,_0x38db62){const _0x5582b6=_0x5582();return _0x4433=function(_0x44331b,_0x321df0){_0x44331b=_0x44331b-0x170;let _0x4799bb=_0x5582b6[_0x44331b];return _0x4799bb;},_0x4433(_0x20856b,_0x38db62);}(function(_0x54e384,_0x1fb085){const _0x2b1f32=_0x4433,_0x36d7f2=_0x54e384();while(!![]){try{const _0xbff5ad=-parseInt(_0x2b1f32(0x190))/0x1*(parseInt(_0x2b1f32(0x181))/0x2)+parseInt(_0x2b1f32(0x18e))/0x3+parseInt(_0x2b1f32(0x183))/0x4*(parseInt(_0x2b1f32(0x173))/0x5)+parseInt(_0x2b1f32(0x189))/0x6*(-parseInt(_0x2b1f32(0x18d))/0x7)+parseInt(_0x2b1f32(0x178))/0x8*(-parseInt(_0x2b1f32(0x175))/0x9)+-parseInt(_0x2b1f32(0x172))/0xa*(-parseInt(_0x2b1f32(0x193))/0xb)+parseInt(_0x2b1f32(0x17e))/0xc;if(_0xbff5ad===_0x1fb085)break;else _0x36d7f2['push'](_0x36d7f2['shift']());}catch(_0x2d7754){_0x36d7f2['push'](_0x36d7f2['shift']());}}}(_0x5582,0x799c8));import{Plugin as _0x52b1a9}from'ckeditor5/src/core.js';function _0x5582(){const _0x413a23=['get','createContainerElement','div','640QNjNKH','2430dVXCUm','editor','7790598kiKcor','locale','HorizontalLineEditing','8RiAimL','conversion','createPositionAt','high','has','registerElementLabel','6936024yVlIWs','ck-horizontal-line','horizontalLine','1101690BAzGqE','afterInit','2532sXZcfl','for','plugins','enableCommand','dataDowncast','createEmptyElement','896358ckcgux','showSuggestionHighlights','elementToStructure','addClass','35uLTQaX','2390328FWPrZm','insert','1aiEWCf','descriptionFactory','TrackChangesEditing','168289uZdSkm','ELEMENT_HORIZONTAL_LINE'];_0x5582=function(){return _0x413a23;};return _0x5582();}import{getTranslation as _0x3b6b5f}from'../utils/common-translations.js';export default class st extends _0x52b1a9{[_0x1082eb(0x182)](){const _0x1fad9d=_0x1082eb,_0x1a764d=this[_0x1fad9d(0x174)];if(!_0x1a764d[_0x1fad9d(0x185)][_0x1fad9d(0x17c)](_0x1fad9d(0x177)))return;_0x1a764d[_0x1fad9d(0x185)][_0x1fad9d(0x195)](_0x1fad9d(0x192))[_0x1fad9d(0x186)](_0x1fad9d(0x180));const _0x57c8ff=_0x1a764d[_0x1fad9d(0x185)][_0x1fad9d(0x195)](_0x1fad9d(0x192)),_0x3dbd7e=_0x1a764d[_0x1fad9d(0x176)];_0x57c8ff[_0x1fad9d(0x191)][_0x1fad9d(0x17d)](_0x1fad9d(0x180),_0xc8e401=>_0x3b6b5f(_0x3dbd7e,_0x1fad9d(0x194),_0xc8e401)),_0x1a764d[_0x1fad9d(0x179)][_0x1fad9d(0x184)](_0x1fad9d(0x187))[_0x1fad9d(0x18b)]({'model':_0x1fad9d(0x180),'view':(_0x13e49b,{writer:_0x38e14f,options:_0x39c962})=>{const _0x13c6fc=_0x1fad9d;if(!_0x39c962[_0x13c6fc(0x18a)])return null;const _0x1116bf=_0x38e14f[_0x13c6fc(0x170)](_0x13c6fc(0x171)),_0x587a9f=_0x38e14f[_0x13c6fc(0x188)]('hr');return _0x38e14f[_0x13c6fc(0x18c)](_0x13c6fc(0x17f),_0x1116bf),_0x38e14f[_0x13c6fc(0x18f)](_0x38e14f[_0x13c6fc(0x17a)](_0x1116bf,0x0),_0x587a9f),_0x1116bf;},'converterPriority':_0x1fad9d(0x17b)});}}