[svn r22259] FS#2867 - The online editor, learner's toolbars: Changing identificators to Borland-like style (as it was adopted by FCKEditor).

skala
Ivan Tcholakov 16 years ago
parent bc23a99c71
commit 8f85ce16e9
  1. 4
      main/announcements/announcements.php
  2. 4
      main/calendar/agenda.inc.php
  3. 4
      main/document/create_document.php
  4. 4
      main/document/edit_document.php
  5. 4
      main/forum/forumfunction.inc.php
  6. 4
      main/notebook/index.php
  7. 2
      main/wiki/index.php
  8. 2
      main/wiki/wiki.inc.php

@ -1,4 +1,4 @@
<?php //$Id: announcements.php 22201 2009-07-17 19:57:03Z cfasanando $
<?php //$Id: announcements.php 22259 2009-07-20 18:56:45Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -1115,7 +1115,7 @@ if ($display_form == true) {
$oFCKeditor->Height = '300';
if(!api_is_allowed_to_edit()) {
$oFCKeditor->ToolbarSet = "Announcements_Student";
$oFCKeditor->ToolbarSet = "AnnouncementsStudent";
} else {
$oFCKeditor->ToolbarSet = "Announcements";
}

@ -1,4 +1,4 @@
<?php //$Id: agenda.inc.php 21905 2009-07-08 17:42:29Z juliomontoya $
<?php //$Id: agenda.inc.php 22259 2009-07-20 18:56:45Z ivantcholakov $
/* For licensing terms, see /dokeos_license.txt */
/*
==============================================================================
@ -2844,7 +2844,7 @@ function show_add_form($id = '')
if(!api_is_allowed_to_edit())
{
$oFCKeditor->ToolbarSet = 'Agenda_Student';
$oFCKeditor->ToolbarSet = 'AgendaStudent';
}
else
{

@ -1,4 +1,4 @@
<?php // $Id: create_document.php 22201 2009-07-17 19:57:03Z cfasanando $
<?php // $Id: create_document.php 22259 2009-07-20 18:56:45Z ivantcholakov $
/*
==============================================================================
@ -252,7 +252,7 @@ if ($relative_url== '') {
}
$html_editor_config = array(
'ToolbarSet' => (api_is_allowed_to_edit() ? 'Documents' :'Documents_Student'),
'ToolbarSet' => (api_is_allowed_to_edit() ? 'Documents' :'DocumentsStudent'),
'Width' => '100%',
'Height' => '600',
'FullPage' => true,

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 22201 2009-07-17 19:57:03Z cfasanando $
<?php // $Id: edit_document.php 22259 2009-07-20 18:56:45Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -158,7 +158,7 @@ for($i=0;$i<($count_dir);$i++)
}
$html_editor_config = array(
'ToolbarSet' => (api_is_allowed_to_edit() ? 'Documents' :'Documents_Student'),
'ToolbarSet' => (api_is_allowed_to_edit() ? 'Documents' :'DocumentsStudent'),
'Width' => '100%',
'Height' => '600',
'FullPage' => true,

@ -1919,7 +1919,7 @@ function show_add_post_form($action='', $id='', $form_values='') {
$form->addElement('html_editor', 'post_text', get_lang('Text'), null,
api_is_allowed_to_edit()
? array('ToolbarSet' => 'Forum', 'Width' => '100%', 'Height' => '400')
: array('ToolbarSet' => 'Forum_Student', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
: array('ToolbarSet' => 'ForumStudent', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
);
//$form->applyFilter('post_text', 'html_filter');
@ -2352,7 +2352,7 @@ function show_edit_post_form($current_post, $current_thread, $current_forum, $fo
$form->addElement('html_editor', 'post_text', get_lang('Text'), null,
api_is_allowed_to_edit()
? array('ToolbarSet' => 'Forum', 'Width' => '100%', 'Height' => '400')
: array('ToolbarSet' => 'Forum_Student', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
: array('ToolbarSet' => 'ForumStudent', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
);
//$form->applyFilter('post_text', 'html_filter');

@ -71,7 +71,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'addnote')
//$form->applyFilter('note_title', 'html_filter');
$form->addElement('html_editor', 'note_comment', get_lang('NoteComment'), null, api_is_allowed_to_edit()
? array('ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300')
: array('ToolbarSet' => 'Notebook_Student', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student')
: array('ToolbarSet' => 'NotebookStudent', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student')
);
$form->addElement('style_submit_button', 'SubmitNote', get_lang('AddNote'), 'class="add"');
@ -121,7 +121,7 @@ else if (isset($_GET['action']) && $_GET['action'] == 'editnote' && is_numeric($
//$form->applyFilter('note_title', 'html_filter');
$form->addElement('html_editor', 'note_comment', get_lang('NoteComment'), null, api_is_allowed_to_edit()
? array('ToolbarSet' => 'Notebook', 'Width' => '100%', 'Height' => '300')
: array('ToolbarSet' => 'Notebook_Student', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student')
: array('ToolbarSet' => 'NotebookStudent', 'Width' => '100%', 'Height' => '300', 'UserStatus' => 'student')
);
$form->addElement('style_submit_button', 'SubmitNote', get_lang('ModifyNote'), 'class="save"');

@ -1333,7 +1333,7 @@ if ($_GET['action']=='edit')
api_disp_html_area('content', stripslashes($content), '', '', null, api_is_allowed_to_edit()
? array('ToolbarSet' => 'Wiki', 'Width' => '100%', 'Height' => '400')
: array('ToolbarSet' => 'Wiki_Student', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
: array('ToolbarSet' => 'WikiStudent', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
);
echo '<br/>';
echo '<br/>';

@ -508,7 +508,7 @@ return true;
echo '<div id="wikicontent">';
api_disp_html_area('content', '', '', '', null, api_is_allowed_to_edit()
? array('ToolbarSet' => 'Wiki', 'Width' => '100%', 'Height' => '400')
: array('ToolbarSet' => 'Wiki_Student', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
: array('ToolbarSet' => 'WikiStudent', 'Width' => '100%', 'Height' => '400', 'UserStatus' => 'student')
);
echo '<br/>';
echo '<br/>';

Loading…
Cancel
Save