~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/moinFCKplugins/macro/fckplugin.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
var oMacroItem;
 
2
 
 
3
if (1 || !FCKBrowserInfo.IsIE){
 
4
 
 
5
// Register the related command.
 
6
FCKCommands.RegisterCommand('Macro', new FCKDialogCommand('Macro', FCKLang.MacroDlgTitle, FCKConfig.WikiBasePath + FCKConfig.WikiPage + '?action=fckdialog&dialog=macro', 440, 300, FCKSelection.CheckForNodeNames, noFormat));
 
7
 
 
8
oMacroItem = new FCKToolbarButton('Macro', FCKLang.MacroBtn, null, 
 
9
                                      null, false, true);
 
10
}
 
11
else
 
12
{
 
13
FCKCommands.RegisterCommand('Macro', new FCKDialogCommand('Macro', FCKLang.MacroDlgTitle, FCKConfig.WikiBasePath + FCKConfig.WikiPage + '?action=fckdialog&dialog=macro', 440, 300, null, null));
 
14
oMacroItem = new FCKToolbarButton('Macro', FCKLang.MacroBtn, null, 
 
15
                                      null, false, false);
 
16
}
 
17
 
 
18
// Create the "Macro" toolbar button.
 
19
oMacroItem.IconPath = FCKPlugins.Items['macro'].Path + 'macro.gif';
 
20
FCKToolbarItems.RegisterItem('Macro', oMacroItem);
 
21
 
 
22
 
 
23
// The object used for all Macro operations.
 
24
var FCKMacros = new Object();
 
25
 
 
26
// Add a new macro at the actual selection.
 
27
FCKMacros.Add = function(name)
 
28
{
 
29
  var oSpan = FCK.InsertHtml('<span style="background-color:#ffff11">&lt;&lt;' + name + '&gt;&gt;</span>');
 
30
}