mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
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:
parent
fca55624d1
commit
dfc5838ea1
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user