PHP Classes

File: public/js/tinymce/src/themes/inlite/src/main/js/api/Settings.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/inlite/src/main/js/api/Settings.js   Download  
File: public/js/tinymce/src/themes/inlite/src/main/js/api/Settings.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,803 bytes
 

Contents

Class file image Download
/** * Settings.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.api.Settings', [ 'tinymce.core.EditorManager', 'tinymce.themes.inlite.alien.EditorSettings', 'tinymce.themes.inlite.core.Layout' ], function (EditorManager, EditorSettings, Layout) { var toAbsoluteUrl = function (editor, url) { return editor.documentBaseURI.toAbsolute(url); }; var urlFromName = function (name) { var prefix = EditorManager.baseURL + '/skins/'; return name ? prefix + name : prefix + 'lightgray'; }; var getTextSelectionToolbarItems = function (editor) { return EditorSettings.getToolbarItemsOr(editor, 'selection_toolbar', ['bold', 'italic', '|', 'quicklink', 'h2', 'h3', 'blockquote']); }; var getInsertToolbarItems = function (editor) { return EditorSettings.getToolbarItemsOr(editor, 'insert_toolbar', ['quickimage', 'quicktable']); }; var getPositionHandler = function (editor) { return EditorSettings.getHandlerOr(editor, 'inline_toolbar_position_handler', Layout.defaultHandler); }; var getSkinUrl = function (editor) { var settings = editor.settings; return settings.skin_url ? toAbsoluteUrl(editor, settings.skin_url) : urlFromName(settings.skin); }; var isSkinDisabled = function (editor) { return editor.settings.skin === false; }; return { getTextSelectionToolbarItems: getTextSelectionToolbarItems, getInsertToolbarItems: getInsertToolbarItems, getPositionHandler: getPositionHandler, getSkinUrl: getSkinUrl, isSkinDisabled: isSkinDisabled }; } );