PHP Classes

File: public/js/tinymce/src/plugins/help/src/main/js/ui/ButtonsRow.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/help/src/main/js/ui/ButtonsRow.js   Download  
File: public/js/tinymce/src/plugins/help/src/main/js/ui/ButtonsRow.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,211 bytes
 

Contents

Class file image Download
/** * ButtonsRow.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.plugins.help.ui.ButtonsRow', [ 'tinymce.core.EditorManager', 'tinymce.core.util.I18n' ], function (EditorManager, I18n) { var getVersion = function (major, minor) { return major.indexOf('@') === 0 ? 'X.X.X' : major + '.' + minor; }; var makeRow = function () { var version = getVersion(EditorManager.majorVersion, EditorManager.minorVersion); var changeLogLink = '<a href="https://www.tinymce.com/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE ' + version + '</a>'; return [ { type: 'label', html: I18n.translate(['You are using {0}', changeLogLink]) }, { type: 'spacer', flex: 1 }, { text: 'Close', onclick: function () { this.parent().parent().close(); } } ]; }; return { makeRow: makeRow }; } );