From 659c9192623dc4ff814878a521fbfb4d7187bc1e Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 19 Sep 2007 16:09:44 +0000 Subject: [PATCH] Intermediate change to fckeditor SVN revision: 1922 --- scripts/fckeditor/editor/plugins/elog/fckplugin.js | 11 ++++++++--- scripts/fckeditor/fckelog.js | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/fckeditor/editor/plugins/elog/fckplugin.js b/scripts/fckeditor/editor/plugins/elog/fckplugin.js index bd3e4bb0..cf2c3a9e 100644 --- a/scripts/fckeditor/editor/plugins/elog/fckplugin.js +++ b/scripts/fckeditor/editor/plugins/elog/fckplugin.js @@ -21,13 +21,18 @@ * This plugin registers ELOG specific Toolbar items */ -// Register toolbar button +// Register 'Submit' toolbar button var oELOGSubmitItem = new FCKToolbarButton('ELOGSubmit', 'Submit Entry', null, null, true, null, 3); FCKToolbarItems.RegisterItem('ELOGSubmit', oELOGSubmitItem); +// Create 'InsertTime' toolbar button +var oInsertTimeItem = new FCKToolbarButton('InsertTime', 'Insert Date/Time', null, null, true, null, 4); +oInsertTimeItem.IconPath = FCKConfig.PluginsPath + 'elog/inserttime.gif' ; +FCKToolbarItems.RegisterItem('InsertTime', oInsertTimeItem); + // Register command -var oELOGSubmitCommand = new Object() ; -oELOGSubmitCommand.Name = 'ELOGSubmit' ; +var oELOGSubmitCommand = new Object(); +oELOGSubmitCommand.Name = 'ELOGSubmit'; oELOGSubmitCommand.Execute = function() { diff --git a/scripts/fckeditor/fckelog.js b/scripts/fckeditor/fckelog.js index 49319712..ef5c6900 100644 --- a/scripts/fckeditor/fckelog.js +++ b/scripts/fckeditor/fckelog.js @@ -13,7 +13,7 @@ FCKConfig.ToolbarSets["Default"] = [ ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], - ['Image','Table','Rule','Smiley','SpecialChar'], + ['Image','Table','Rule','Smiley','SpecialChar','InsertTime'], ['Style','FontFormat','FontName','FontSize'], ['TextColor','BGColor'], ['About']