[svn r18388] configure wiki buttons bar

skala
Juan Carlos Raña 16 years ago
parent f3368e5d5f
commit d1f5741289
  1. 10
      main/inc/lib/fckeditor/myconfig.js
  2. 13
      main/inc/lib/fckeditor/myconfig_afm.js
  3. 8
      main/wiki/index.php

@ -146,6 +146,16 @@ FCKConfig.ToolbarSets["Wiki"] = [
['Source']
] ;
FCKConfig.ToolbarSets["Wiki_Student"] = [
['NewPage','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Wikilink','Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
['FontFormat','FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
['ShowBlocks']
] ;
/*
* Toolbar drop-down lists customizations.

@ -134,6 +134,19 @@ FCKConfig.ToolbarSets["Wiki"] = [
['Source']
] ;
FCKConfig.ToolbarSets["Wiki_Student"] = [
['NewPage','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Wikilink','Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
['FontFormat','FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
['ShowBlocks']
] ;
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
// Plugins

@ -175,10 +175,16 @@ $fck_attribute = null; // Clearing this global variable immediatelly after it ha
*/
$fck_attribute['Width'] = '100%';
$fck_attribute['ToolbarSet'] = 'Wiki';
$fck_attribute['Height'] = '400';
if(!api_is_allowed_to_edit())
{
$fck_attribute['Config']['UserStatus'] = 'student';
$fck_attribute['ToolbarSet'] = 'Wiki_Student';
}
else
{
$fck_attribute['ToolbarSet'] = 'Wiki';
}
/*

Loading…
Cancel
Save