mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ef10672364
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92488 467b73ca-7a2a-4603-9d3b-597d59a354a9
35 lines
902 B
JavaScript
35 lines
902 B
JavaScript
/**
|
|
* $Id: Separator.js 756 2008-03-29 19:53:48Z spocke $
|
|
*
|
|
* @author Moxiecode
|
|
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
|
*/
|
|
|
|
/**#@+
|
|
* @class This class is used to create vertical separator between other controls.
|
|
* @member tinymce.ui.Separator
|
|
* @base tinymce.ui.Control
|
|
*/
|
|
tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
|
|
Separator : function(id, s) {
|
|
this.parent(id, s);
|
|
this.classPrefix = 'mceSeparator';
|
|
},
|
|
|
|
/**#@+
|
|
* @method
|
|
*/
|
|
|
|
/**
|
|
* 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.
|
|
*
|
|
* @return {String} HTML for the separator control element.
|
|
*/
|
|
renderHTML : function() {
|
|
return tinymce.DOM.createHTML('span', {'class' : this.classPrefix});
|
|
}
|
|
|
|
/**#@-*/
|
|
});
|