2
* FCKeditor - The text editor for internet
3
* Copyright (C) 2003-2004 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
* File Name: fckplugin.js
12
* MoinToolbarFontFormatCombo Class: Handles the Fonts combo selector.
13
* modified version of FCKToolbarFontFormatCombo
16
* Frederico Caldeira Knabben (fredck@fckeditor.net)
20
var MoinToolbarFontFormatCombo = function()
22
this.CommandName = 'FontFormat';
23
this.Command = FCKCommands.GetCommand(this.CommandName);
26
// Inherit from MoinToolbarSpecialCombo.
27
MoinToolbarFontFormatCombo.prototype = new FCKToolbarSpecialCombo();
29
MoinToolbarFontFormatCombo.prototype.GetLabel = function()
31
return FCKLang.FontFormat;
34
MoinToolbarFontFormatCombo.prototype.CreateItems = function(targetSpecialCombo)
36
// Get the format names from the language file.
37
var aNames = FCKLang['FontFormats'].split(';');
41
h1 : aNames[3], // h1 as Title 1, aNames[2] is address
42
h2 : aNames[4], // and so on
49
// Get the available formats from the configuration file.
50
var aTags = FCKConfig.FontFormats.split(';');
54
this._Combo.AddItem(i, '<' + i + '>' + oNames[i] + '</' + i + '>', oNames[i]);
58
FCKToolbarItems.RegisterItem( 'MoinFormat', new MoinToolbarFontFormatCombo());