@ckeditor/ckeditor5-export-inline-styles
Version:
The export with inline styles feature for CKEditor 5.
23 lines • 3.56 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 _0x34b2(_0x1b75d1,_0x3deac3){const _0x41dcaf=_0x41dc();return _0x34b2=function(_0x34b2d2,_0x14e7b3){_0x34b2d2=_0x34b2d2-0x115;let _0x1ca517=_0x41dcaf[_0x34b2d2];return _0x1ca517;},_0x34b2(_0x1b75d1,_0x3deac3);}(function(_0x49c1ca,_0xc5b79c){const _0x589df0=_0x34b2,_0x2a73f8=_0x49c1ca();while(!![]){try{const _0x1c6990=-parseInt(_0x589df0(0x117))/0x1*(-parseInt(_0x589df0(0x11c))/0x2)+parseInt(_0x589df0(0x118))/0x3*(parseInt(_0x589df0(0x11e))/0x4)+parseInt(_0x589df0(0x127))/0x5*(-parseInt(_0x589df0(0x124))/0x6)+parseInt(_0x589df0(0x11f))/0x7*(parseInt(_0x589df0(0x126))/0x8)+parseInt(_0x589df0(0x11d))/0x9*(parseInt(_0x589df0(0x119))/0xa)+-parseInt(_0x589df0(0x125))/0xb+-parseInt(_0x589df0(0x120))/0xc;if(_0x1c6990===_0xc5b79c)break;else _0x2a73f8['push'](_0x2a73f8['shift']());}catch(_0x1cfbc5){_0x2a73f8['push'](_0x2a73f8['shift']());}}}(_0x41dc,0x41fa3));function _0x41dc(){const _0x49ebc7=['1008RfoGrK','15001QyHfwC','7485504pSWRlp','replace','length','trim','6MuWLDd','421597RizHUk','456gKtwbQ','731045zOTmdy','endsWith','push','69476VVWbEz','6156BrHmGF','160XlvKvP','filter','slice','10iqerDC','51714LMhogO'];_0x41dc=function(){return _0x49ebc7;};return _0x41dc();}export function splitByTopLevelComma(_0x3f8a5d){const _0x206192=_0x34b2,_0x41fab1=[];let _0x3d6828='',_0x3c142d=0x0;for(;_0x3c142d<_0x3f8a5d[_0x206192(0x122)];){const _0x4da27f=_0x3f8a5d[_0x3c142d];if('('===_0x4da27f){const _0x2e58ab=findMatchingParenthesis(_0x3f8a5d,_0x3c142d+0x1);if(-0x1===_0x2e58ab)return[];_0x3d6828+=_0x3f8a5d[_0x206192(0x11b)](_0x3c142d,_0x2e58ab+0x1),_0x3c142d=_0x2e58ab+0x1;}else','!==_0x4da27f||_0x3d6828[_0x206192(0x115)]('\x5c')?(_0x3d6828+=_0x4da27f,_0x3c142d++):(_0x41fab1[_0x206192(0x116)](_0x3d6828[_0x206192(0x123)]()),_0x3d6828='',_0x3c142d++);}return _0x3d6828[_0x206192(0x123)]()&&_0x41fab1[_0x206192(0x116)](_0x3d6828[_0x206192(0x123)]()),_0x41fab1[_0x206192(0x11a)](Boolean);}export function findMatchingParenthesis(_0x36ca99,_0x13ce8f){const _0x3a53b2=_0x34b2;let _0x166d50=0x1;for(let _0x598ea0=_0x13ce8f;_0x598ea0<_0x36ca99[_0x3a53b2(0x122)];_0x598ea0++){const _0x54439f=_0x36ca99[_0x598ea0];if('('===_0x54439f)_0x166d50++;else{if(')'===_0x54439f&&(_0x166d50--,0x0===_0x166d50))return _0x598ea0;}}return-0x1;}export function dropImportantStyleSuffix(_0x56eb5e){const _0x63267b=_0x34b2;return _0x56eb5e[_0x63267b(0x121)](/!\s*important/i,'')[_0x63267b(0x123)]();}