From d5a5dc2d0d9bfe28cb5a08828d50cfec7298dcdf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Apr 2011 12:55:00 +0000 Subject: [PATCH] Hide useless button --- htdocs/theme/auguria/fckeditor/fckconfig.js | 7 ++++--- htdocs/theme/eldy/fckeditor/fckconfig.js | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/theme/auguria/fckeditor/fckconfig.js b/htdocs/theme/auguria/fckeditor/fckconfig.js index 8b02be5b226..ce6a87fafb1 100644 --- a/htdocs/theme/auguria/fckeditor/fckconfig.js +++ b/htdocs/theme/auguria/fckeditor/fckconfig.js @@ -102,7 +102,7 @@ FCKConfig.ToolbarLocation = 'In' ; FCKConfig.ToolbarSets["dolibarr_mailings"] = [ ['FitWindow','Source'], ['Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck','-','Preview','Print'], - ['Undo','Redo','-','Find','Replace','-','SelectAll'], + ['Undo','Redo','-','Find','Replace'], ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor','-','RemoveFormat'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], @@ -113,11 +113,11 @@ FCKConfig.ToolbarSets["dolibarr_mailings"] = [ FCKConfig.ToolbarSets["dolibarr_notes"] = [ ['FitWindow','Source'], ['Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck','-','Preview','Print'], - ['Undo','Redo','-','Find','Replace','-','SelectAll'], + ['Undo','Redo','-','Find','Replace'], ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor','-','RemoveFormat'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], - ['Link','Unlink','Anchor','Image','Table','Rule','SpecialChar'], + ['Link','Unlink','Image','Table','Rule','SpecialChar'], ['FontName','FontSize'] ] ; @@ -180,6 +180,7 @@ FCKConfig.Keystrokes = [ [ SHIFT + 32 /*SPACE*/, 'Nbsp' ] ] ; +//FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ; FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ; FCKConfig.BrowserContextMenuOnCtrl = false ; FCKConfig.BrowserContextMenu = false ; diff --git a/htdocs/theme/eldy/fckeditor/fckconfig.js b/htdocs/theme/eldy/fckeditor/fckconfig.js index 8b02be5b226..ce6a87fafb1 100644 --- a/htdocs/theme/eldy/fckeditor/fckconfig.js +++ b/htdocs/theme/eldy/fckeditor/fckconfig.js @@ -102,7 +102,7 @@ FCKConfig.ToolbarLocation = 'In' ; FCKConfig.ToolbarSets["dolibarr_mailings"] = [ ['FitWindow','Source'], ['Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck','-','Preview','Print'], - ['Undo','Redo','-','Find','Replace','-','SelectAll'], + ['Undo','Redo','-','Find','Replace'], ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor','-','RemoveFormat'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], @@ -113,11 +113,11 @@ FCKConfig.ToolbarSets["dolibarr_mailings"] = [ FCKConfig.ToolbarSets["dolibarr_notes"] = [ ['FitWindow','Source'], ['Cut','Copy','Paste','PasteText','PasteWord','-','SpellCheck','-','Preview','Print'], - ['Undo','Redo','-','Find','Replace','-','SelectAll'], + ['Undo','Redo','-','Find','Replace'], ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor','-','RemoveFormat'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], - ['Link','Unlink','Anchor','Image','Table','Rule','SpecialChar'], + ['Link','Unlink','Image','Table','Rule','SpecialChar'], ['FontName','FontSize'] ] ; @@ -180,6 +180,7 @@ FCKConfig.Keystrokes = [ [ SHIFT + 32 /*SPACE*/, 'Nbsp' ] ] ; +//FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ; FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form','DivContainer'] ; FCKConfig.BrowserContextMenuOnCtrl = false ; FCKConfig.BrowserContextMenu = false ;