Sha256: b757bc979c009c60436bfa3d144075a9fa643224ee447eb380a348473482d95f
Contents?: true
Size: 934 Bytes
Versions: 41
Compression:
Stored size: 934 Bytes
Contents
/** * 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/inlite/core/SkinLoader', [ 'global!tinymce.EditorManager', 'global!tinymce.DOM' ], function (EditorManager, DOM) { var fireSkinLoaded = function (editor, callback) { var done = function () { editor.fire('SkinLoaded'); callback(); }; if (editor.initialized) { done(); } else { editor.on('init', done); } }; var load = function (editor, skin, callback) { var baseUrl = EditorManager.baseURL; var skinUrl = baseUrl + '/skins/' + skin; var done = function () { fireSkinLoaded(editor, callback); }; DOM.styleSheetLoader.load(skinUrl + '/skin.min.css', done); editor.contentCSS.push(skinUrl + '/content.inline.min.css'); }; return { load: load }; });
Version data entries
41 entries across 41 versions & 2 rubygems