/** * Separator.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ /** * This class is used to create vertical separator between other controls. * * @class tinymce.ui.Separator * @extends tinymce.ui.Control */ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', { /** * Separator constructor. * * @constructor * @method Separator * @param {String} id Control id to use for the Separator. * @param {Object} s Optional name/value settings object. */ Separator : function(id, s) { this.parent(id, s); this.classPrefix = 'mceSeparator'; }, /** * Renders the separator as a HTML string. This method is much faster than using the DOM and when * creating a whole toolbar with buttons it does make a lot of difference. * * @method renderHTML * @return {String} HTML for the separator control element. */ renderHTML : function() { return tinymce.DOM.createHTML('span', {'class' : this.classPrefix}); } });