[svn r18456] configure blog buttons bar

skala
Juan Carlos Raña 17 years ago
parent 8b397748d0
commit 9a4f4e1d0f
  1. 54
      main/inc/lib/blog.lib.php
  2. 46
      main/inc/lib/fckeditor/myconfig.js

@ -1312,10 +1312,20 @@ class Blog
<td>';
$oFCKeditor = new FCKeditor('post_full_text') ;
$oFCKeditor->ToolbarSet = 'Blog';
$oFCKeditor->Height = '350';
$oFCKeditor->Width = '98%';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '400';
if(!api_is_allowed_to_edit())
{
$oFCKeditor->ToolbarSet = 'Blog_Student';
}
else
{
$oFCKeditor->ToolbarSet = 'Blog';
}
$oFCKeditor->Value = isset($_POST['post_full_text'])?stripslashes($_POST['post_full_text']):'';
$oFCKeditor->Create() ;
@ -1381,9 +1391,19 @@ class Blog
$oFCKeditor = new FCKeditor('post_full_text') ;
$oFCKeditor->ToolbarSet = 'Blog';
$oFCKeditor->Height = '350';
$oFCKeditor->Width = '98%';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '400';
if(!api_is_allowed_to_edit())
{
$oFCKeditor->ToolbarSet = 'Blog_Student';
}
else
{
$oFCKeditor->ToolbarSet = 'Blog';
}
$oFCKeditor->Value = isset($_POST['post_full_text'])?stripslashes($_POST['post_full_text']):$blog_post_text;
$oFCKeditor->Create() ;
@ -2408,11 +2428,21 @@ class Blog
<td valign="top">' . get_lang('Comment') . ':&nbsp;&nbsp;</td>
<td>';
$oFCKeditor = new FCKeditor('comment_text') ;
$oFCKeditor->ToolbarSet = 'Blog';
$oFCKeditor->Height = '200';
$oFCKeditor->Width = '97%';
$oFCKeditor = new FCKeditor('comment_text') ;
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '300';
if(!api_is_allowed_to_edit())
{
$oFCKeditor->ToolbarSet = 'BlogComment_Student';
}
else
{
$oFCKeditor->ToolbarSet = 'BlogComment';
}
$oFCKeditor->Value = isset($_POST['comment_text'])?stripslashes($_POST['comment_text']):'';
$oFCKeditor->Create() ;

@ -46,10 +46,6 @@ FCKConfig.ToolbarSets["Small"] = [
['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
] ;
FCKConfig.ToolbarSets["Blog"] = [
['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
] ;
FCKConfig.ToolbarSets["Full"] = [
['FitWindow','PasteWord','Link','Unlink','Anchor','-','Image','flvPlayer','Flash','EmbedMovies','MP3','YouTube','Table','Rule','-','Subscript', 'Superscript','-','OrderedList','UnorderedList','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],'/',['FontFormat','Style','FontName','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor', 'BGColor','-','Source']
] ;
@ -141,6 +137,48 @@ FCKConfig.ToolbarSets["Announcements_Student"] = [
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["Blog"] = [
['FitWindow','-','PasteWord','-','Undo','Redo','-','RemoveFormat'],
['Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','Rule','googlemaps'],
['FontName','FontSize'],
['Bold','Italic','Underline'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyFull','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
['Source']
] ;
FCKConfig.ToolbarSets["Blog_Student"] = [
['FitWindow','-','PasteWord','-','Undo','Redo','-','RemoveFormat'],
['Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','Rule','googlemaps'],
['FontName','FontSize'],
['Bold','Italic','Underline'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyFull','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["BlogComment"] = [
['FitWindow','-','PasteWord','-','Undo','Redo','-','RemoveFormat'],
['Link','Unlink'],
['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','Rule','googlemaps'],
['Bold','Italic','Underline'],
['JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
['Source']
] ;
FCKConfig.ToolbarSets["BlogComment_Student"] = [
['FitWindow','-','PasteWord','-','Undo','Redo','-','RemoveFormat'],
['Link','Unlink'],
['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','Rule','googlemaps'],
['Bold','Italic','Underline'],
['JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["CourseDescription"] = [
['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],

Loading…
Cancel
Save