PHP Classes

File: public/js/tinymce/src/themes/inlite/src/main/js/core/SkinLoader.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/inlite/src/main/js/core/SkinLoader.js   Download  
File: public/js/tinymce/src/themes/inlite/src/main/js/core/SkinLoader.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 1,199 bytes
 

Contents

Class file image Download
/** * SkinLoader.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.themes.inlite.core.SkinLoader', [ 'tinymce.core.dom.DOMUtils', 'tinymce.themes.inlite.api.Events', 'tinymce.themes.inlite.api.Settings' ], function (DOMUtils, Events, Settings) { var fireSkinLoaded = function (editor, callback) { var done = function () { editor._skinLoaded = true; Events.fireSkinLoaded(editor); callback(); }; if (editor.initialized) { done(); } else { editor.on('init', done); } }; var load = function (editor, callback) { var skinUrl = Settings.getSkinUrl(editor); var done = function () { fireSkinLoaded(editor, callback); }; if (Settings.isSkinDisabled(editor)) { done(); } else { DOMUtils.DOM.styleSheetLoader.load(skinUrl + '/skin.min.css', done); editor.contentCSS.push(skinUrl + '/content.inline.min.css'); } }; return { load: load }; } );