UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.06 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 _0x511a(){const _0x4ca51b=['formatInline','_registerLegacyDescription','224nVCDmO','*Format:*\x20%0','FORMAT_STRIKETHROUGH','FORMAT_BOLD','7106080TvbqZp','editor','FORMAT_SUPERSCRIPT','locale','forceValue','FORMAT_SUBSCRIPT','afterInit','format','UnderlineEditing','registerAttributeLabel','toUpperCase','descriptionFactory','CodeEditing','slice','superscript','40FCmaYX','*Remove\x20format:*\x20%0','commandName','registerDescriptionCallback','StrikethroughEditing','SubscriptEditing','commandParams','FORMAT_UNDERLINE','underline','italic','FORMAT_','has','toLowerCase','7169998IRkQTm','get','registerInlineAttribute','56478AFvyiI','code','FORMAT_ITALIC','2gyJUvu','3229124afbgvQ','type','802631CZKOhv','plugins','ItalicEditing','FORMAT_CODE','bold','enableDefaultAttributesIntegration','9041720WyHBNe','strikethrough','SuperscriptEditing','subscript','BoldEditing','9sEdvqO','649479qXXluT','TrackChangesEditing'];_0x511a=function(){return _0x4ca51b;};return _0x511a();}const _0x23273f=_0x279a;(function(_0x225555,_0x1520ee){const _0x29751b=_0x279a,_0x2247d4=_0x225555();while(!![]){try{const _0x2bcfbf=-parseInt(_0x29751b(0x80))/0x1+parseInt(_0x29751b(0x7d))/0x2*(-parseInt(_0x29751b(0x8c))/0x3)+-parseInt(_0x29751b(0x7e))/0x4+-parseInt(_0x29751b(0x94))/0x5+parseInt(_0x29751b(0x7a))/0x6*(parseInt(_0x29751b(0x90))/0x7)+parseInt(_0x29751b(0x86))/0x8*(parseInt(_0x29751b(0x8b))/0x9)+-parseInt(_0x29751b(0xa3))/0xa*(-parseInt(_0x29751b(0x77))/0xb);if(_0x2bcfbf===_0x1520ee)break;else _0x2247d4['push'](_0x2247d4['shift']());}catch(_0x38da0d){_0x2247d4['push'](_0x2247d4['shift']());}}}(_0x511a,0xc122a));import{Plugin as _0x3edf9}from'ckeditor5/src/core.js';import{getTranslation as _0x46c647}from'../utils/common-translations.js';const ti=[_0x23273f(0x8a),_0x23273f(0x82),_0x23273f(0x9c),_0x23273f(0xa0),_0x23273f(0xa7),_0x23273f(0x6f),_0x23273f(0x88)];function _0x279a(_0x475c34,_0x54e4f2){const _0x511ae2=_0x511a();return _0x279a=function(_0x279a60,_0x1084cb){_0x279a60=_0x279a60-0x6f;let _0x5226cf=_0x511ae2[_0x279a60];return _0x5226cf;},_0x279a(_0x475c34,_0x54e4f2);}export class TrackChangesBasicStyles extends _0x3edf9{[_0x23273f(0x9a)](){const _0x500803=_0x23273f,_0x390a72=this[_0x500803(0x95)],_0x1b408b=_0x390a72[_0x500803(0x81)][_0x500803(0x78)](_0x500803(0x8d)),_0x4de67d=_0x390a72[_0x500803(0x97)];for(const _0x3a6785 of ti){if(!_0x390a72[_0x500803(0x81)][_0x500803(0x75)](_0x3a6785))continue;const _0x4925bf=_0x3a6785[_0x500803(0xa1)](0x0,-0x7)[_0x500803(0x76)](),_0x3addd4=_0x500803(0x74)+_0x4925bf[_0x500803(0x9e)]();_0x1b408b[_0x500803(0x85)](_0x4925bf),_0x1b408b[_0x500803(0x79)](_0x4925bf),_0x1b408b[_0x500803(0x9f)][_0x500803(0x9d)](_0x4925bf,_0x46c647(_0x4de67d,_0x3addd4));}this[_0x500803(0x8f)]();}[_0x23273f(0x8f)](){const _0x5516f1=_0x23273f,_0x197ea9=this[_0x5516f1(0x95)],_0x3515c4=_0x197ea9[_0x5516f1(0x97)],_0x5951c5=_0x197ea9[_0x5516f1(0x81)][_0x5516f1(0x78)](_0x5516f1(0x8d));function _0x1cfa5e(_0x396c0b,_0x309b81){const _0x5b7c3f=_0x5516f1;_0x5951c5[_0x5b7c3f(0x9f)][_0x5b7c3f(0xa6)](_0x2adf0b=>{const _0x1fefa8=_0x5b7c3f;if(_0x1fefa8(0x8e)!=_0x2adf0b[_0x1fefa8(0x7f)])return;const {data:_0x5c1440}=_0x2adf0b;return _0x5c1440&&_0x5c1440[_0x1fefa8(0xa5)]===_0x396c0b?_0x5c1440[_0x1fefa8(0x70)][0x0][_0x1fefa8(0x98)]?{'type':_0x1fefa8(0x9b),'content':_0x46c647(_0x3515c4,_0x1fefa8(0x91),_0x309b81)}:{'type':_0x1fefa8(0x9b),'content':_0x46c647(_0x3515c4,_0x1fefa8(0xa4),_0x309b81)}:void 0x0;});}_0x1cfa5e(_0x5516f1(0x84),_0x46c647(_0x3515c4,_0x5516f1(0x93))),_0x1cfa5e(_0x5516f1(0x73),_0x46c647(_0x3515c4,_0x5516f1(0x7c))),_0x1cfa5e(_0x5516f1(0x72),_0x46c647(_0x3515c4,_0x5516f1(0x71))),_0x1cfa5e(_0x5516f1(0x7b),_0x46c647(_0x3515c4,_0x5516f1(0x83))),_0x1cfa5e(_0x5516f1(0x87),_0x46c647(_0x3515c4,_0x5516f1(0x92))),_0x1cfa5e(_0x5516f1(0x89),_0x46c647(_0x3515c4,_0x5516f1(0x99))),_0x1cfa5e(_0x5516f1(0xa2),_0x46c647(_0x3515c4,_0x5516f1(0x96)));}}