Skip to content
Permalink
Browse files

Temporary fix to prevent PHP notice - this will be removed when the c…

…orrect configuration

items get committed.
  • Loading branch information...
scyrma
scyrma committed Jul 4, 2008
1 parent 6f8a7d3 commit a4d220dc1790167bc1c2980eebd9718f20c9ac2f
Showing with 13 additions and 7 deletions.
  1. +13 −7 lib/editor/tinymce.js.php
@@ -3,11 +3,10 @@
require_once('../../config.php');
$courseid = optional_param('course', 0, PARAM_INT);
$editorlanguage = substr(current_language(), 0, 2);
$directionality = get_string('thisdirection');
/*
*
* ********************************************************************************************************
*
* This section configures the TinyMCE toolbar buttons on and off
* depending on the Moodle settings
*
@@ -16,6 +15,10 @@
* on a role basis, course basis, user basis, etc. if so desired.
*
*/
if (empty($CFG->tinymcehidebuttons)) {
$CFG->tinymcehidebuttons = '';
}
$editorhidebuttons = str_replace(' ', ',', $CFG->tinymcehidebuttons);
$editorhidebuttons1 = $editorhidebuttons . ',visualaid,styleselect';
@@ -142,9 +145,10 @@ function createHTMLArea(id) {
EOF;
echo <<<EOF
tinyMCE.init({
mode: "textareas",
mode: "none",
relative_urls: false,
editor_selector: "form-textarea-simple",
document_base_url: "$CFG->httpswwwroot",
@@ -153,11 +157,12 @@ function createHTMLArea(id) {
apply_source_formatting: true,
remove_script_host: false,
entity_encoding: "raw",
language: "en",
language: "$editorlanguage",
directionality: "$directionality",
plugins: "spellchecker,emoticons,paste,standardmenu,directionality,contextmenu"
});
tinyMCE.init({
mode: "textareas",
mode: "none",
relative_urls: false,
editor_selector: "form-textarea-advanced",
document_base_url: "$CFG->httpswwwroot",
@@ -166,7 +171,8 @@ function createHTMLArea(id) {
apply_source_formatting: true,
remove_script_host: false,
entity_encoding: "raw",
language: "en",
language: "$editorlanguage",
directionality: "$directionality",
plugins: "safari,spellchecker,table,style,layer,advhr,advimage,advlink,emoticons,inlinepopups,media,searchreplace,paste,standardmenu,directionality,fullscreen,moodleimage,moodlelink,dragmath,nonbreaking,contextmenu",
theme_advanced_layout_manager: "SimpleLayout",
theme_advanced_toolbar_align : "left",

0 comments on commit a4d220d

Please sign in to comment.
You can’t perform that action at this time.