@ckeditor/ckeditor5-export-inline-styles
Version:
The export with inline styles feature for CKEditor 5.
23 lines • 3.45 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(_0x3b9c4f,_0x2edf95){const _0x1fd31e=_0x1d28,_0x37a1ae=_0x3b9c4f();while(!![]){try{const _0x56c8aa=parseInt(_0x1fd31e(0x146))/0x1*(parseInt(_0x1fd31e(0x135))/0x2)+-parseInt(_0x1fd31e(0x138))/0x3*(-parseInt(_0x1fd31e(0x144))/0x4)+-parseInt(_0x1fd31e(0x145))/0x5+parseInt(_0x1fd31e(0x149))/0x6+-parseInt(_0x1fd31e(0x14b))/0x7+-parseInt(_0x1fd31e(0x141))/0x8+parseInt(_0x1fd31e(0x134))/0x9;if(_0x56c8aa===_0x2edf95)break;else _0x37a1ae['push'](_0x37a1ae['shift']());}catch(_0x1706f0){_0x37a1ae['push'](_0x37a1ae['shift']());}}}(_0x2bbf,0x377a7));import{StylesMap as _0x403874}from'ckeditor5/src/engine.js';function _0x1d28(_0x460ee6,_0x1e3d64){const _0x2bbf29=_0x2bbf();return _0x1d28=function(_0x1d2829,_0x1f3478){_0x1d2829=_0x1d2829-0x134;let _0x577d76=_0x2bbf29[_0x1d2829];return _0x577d76;},_0x1d28(_0x460ee6,_0x1e3d64);}import{inlineStylesMapCSSVariables as _0x52fb8a}from'./exportinlinestylescssvariables.js';export default function l(_0x201902){const _0x2f26e3=_0x1d28,_0xf3023b=_0x201902[_0x2f26e3(0x13d)][_0x2f26e3(0x147)](_0x2f26e3(0x13a))||'',_0x29da4c=_0x201902[_0x2f26e3(0x137)][_0x2f26e3(0x148)](_0x2e4888=>_0x201902[_0x2f26e3(0x13d)][_0x2f26e3(0x136)](_0x2e4888[_0x2f26e3(0x140)]))[_0x2f26e3(0x142)](_0x57041d=>_0x57041d[_0x2f26e3(0x143)]),_0x2b3bcf=concatStylesMaps(_0x201902[_0x2f26e3(0x13c)],[..._0x29da4c,_0xf3023b]);return{'localCSSVariables':_0x52fb8a(_0x201902[_0x2f26e3(0x139)],_0x2b3bcf),'stylesMap':_0x2b3bcf};}function _0x2bbf(){const _0x33d130=['filter','264600bnBUsN','set','1833482eFWxKy','696708UTzdPf','14LJBNKU','matches','parsedCssRules','273468ZszECb','fallbackCSSVariablesLookup','style','string','stylesProcessor','element','getStylesEntries','setTo','flatSelector','438152WEgoTP','map','stylesMap','4wcMVsJ','294430MKnizf','55736FbsBun','getAttribute'];_0x2bbf=function(){return _0x33d130;};return _0x2bbf();}export function concatStylesMaps(_0x5a7295,_0x4baf44){const _0x3da452=_0x1d28,_0x57fbb2=new _0x403874(_0x5a7295);for(const _0x43a9fd of _0x4baf44){let _0xbedd57=null;if(_0xbedd57=_0x3da452(0x13b)==typeof _0x43a9fd?new _0x403874(_0x5a7295)[_0x3da452(0x13f)](_0x43a9fd):_0x43a9fd,_0xbedd57){for(const [_0x2a75bd,_0xcff049]of _0xbedd57[_0x3da452(0x13e)]())_0x57fbb2[_0x3da452(0x14a)](_0x2a75bd,_0xcff049);}}return _0x57fbb2;}