OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
silver
/
main
/
ts
/
ui
/
skin
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:40:48 AM
rwxr-xr-x
📄
Loader.ts
1.23 KB
02/20/2020 06:38:53 AM
rw-r--r--
📄
SkinLoaded.ts
597 bytes
02/20/2020 06:38:53 AM
rw-r--r--
Editing: Loader.ts
Close
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { getSkinUrl, isSkinDisabled } from '../../api/Settings'; import Editor from 'tinymce/core/api/Editor'; import SkinLoaded from './SkinLoaded'; import DOMUtils from 'tinymce/core/api/dom/DOMUtils'; import { Fun } from '@ephox/katamari'; const loadSkin = (isInline: boolean, editor: Editor) => { const skinUrl = getSkinUrl(editor); let skinUiCss; if (skinUrl) { skinUiCss = skinUrl + '/skin.min.css'; editor.contentCSS.push(skinUrl + (isInline ? '/content.inline' : '/content') + '.min.css'); } // In Modern Inline, this is explicitly called in editor.on('focus', ...) as well as in render(). // Seems to work without, but adding a note in case things break later if (isSkinDisabled(editor) === false && skinUiCss) { DOMUtils.DOM.styleSheetLoader.load(skinUiCss, SkinLoaded.fireSkinLoaded(editor)); } else { SkinLoaded.fireSkinLoaded(editor)(); } }; const iframe = Fun.curry(loadSkin, false); const inline = Fun.curry(loadSkin, true); export { iframe, inline };