2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
5
* Licensed under the terms of the GNU Lesser General Public License:
6
* http://www.opensource.org/licenses/lgpl-license.php
8
* For further information visit:
9
* http://www.fckeditor.net/
11
* "Support Open Source software. What about a donation today?"
13
* File Name: fckcontextmenuseparator.js
14
* FCKContextMenuSeparator Class: represents a separator in the toolbar.
17
* Frederico Caldeira Knabben (fredck@fckeditor.net)
20
var FCKContextMenuSeparator = function()
24
FCKContextMenuSeparator.prototype.CreateTableRow = function( targetTable )
26
// Creates the <TR> element.
27
this._Row = targetTable.insertRow(-1) ;
28
this._Row.className = 'CM_Separator' ;
30
var oCell = this._Row.insertCell(-1) ;
31
oCell.className = 'CM_Icon' ;
33
var oDoc = targetTable.ownerDocument || targetTable.document ;
35
oCell = this._Row.insertCell(-1) ;
36
oCell.className = 'CM_Label' ;
37
oCell.appendChild( oDoc.createElement( 'DIV' ) ).className = 'CM_Separator_Line' ;
40
FCKContextMenuSeparator.prototype.SetVisible = function( isVisible )
42
this._Row.style.display = isVisible ? '' : 'none' ;
45
FCKContextMenuSeparator.prototype.RefreshState = function()
47
// Do nothing... its state doesn't change.
52
-----------------------------------------
53
<tr class="CM_Separator">
54
<td class="CM_Icon"></td>
55
<td class="CM_Label"><div></div></td>
b'\\ No newline at end of file'