Files
leanote/public/tinymce/classes/ui/Toolbar.js

54 lines
955 B
JavaScript
Raw Normal View History

2014-05-07 13:06:24 +08:00
/**
* Toolbar.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* Creates a new toolbar.
*
* @class tinymce.ui.Toolbar
* @extends tinymce.ui.Container
*/
define("tinymce/ui/Toolbar", [
"tinymce/ui/Container"
], function(Container) {
2014-05-07 13:06:24 +08:00
"use strict";
return Container.extend({
Defaults: {
role: 'toolbar',
layout: 'flow'
},
/**
* Constructs a instance with the specified settings.
*
* @constructor
* @param {Object} settings Name/value object with settings.
*/
init: function(settings) {
var self = this;
self._super(settings);
self.addClass('toolbar');
},
/**
* Called after the control has been rendered.
*
* @method postRender
*/
postRender: function() {
var self = this;
self.items().addClass('toolbar-item');
return self._super();
}
});
});