MDL-15893 tinymce integration does not use session anymore, there is still problem with CSS (editor changes text size outside of it)

This commit is contained in:
skodak 2008-07-31 09:41:12 +00:00
parent fca55624d1
commit dfc5838ea1
2 changed files with 7 additions and 3 deletions

View File

@ -42,8 +42,10 @@ class htmlEditor {
switch ($editor) {
case 'tinymce':
$editorlanguage = substr(current_language(), 0, 2);
$direction = get_string('thisdirection');
$configuration[] = $CFG->httpswwwroot ."/lib/editor/tinymce/jscripts/tiny_mce/tiny_mce.js";
$configuration[] = $CFG->httpswwwroot ."/lib/editor/tinymce.js.php?course=". $courseid;
$configuration[] = $CFG->httpswwwroot ."/lib/editor/tinymce.js.php?course=$courseid&editorlanguage=$editorlanguage&direction=$direction";
$configured['tinymce'] = true;
break;

View File

@ -1,10 +1,12 @@
<?php
define('NO_MOODLE_COOKIES', true);
require_once('../../config.php');
$courseid = optional_param('course', 0, PARAM_INT);
$editorlanguage = substr(current_language(), 0, 2);
$directionality = get_string('thisdirection');
$editorlanguage = optional_param('editorlanguage', 'en', PARAM_ALPHA);
$directionality = optional_param('direction', get_string('thisdirection'), PARAM_ALPHA);
/*
* This section configures the TinyMCE toolbar buttons on and off