From dfc5838ea1e9d7cae8b42d8905d7dc2323ab9e6d Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 31 Jul 2008 09:41:12 +0000 Subject: [PATCH] MDL-15893 tinymce integration does not use session anymore, there is still problem with CSS (editor changes text size outside of it) --- lib/editor/htmlEditor.class.php | 4 +++- lib/editor/tinymce.js.php | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/editor/htmlEditor.class.php b/lib/editor/htmlEditor.class.php index 1a3a2de8cc8..e405f426e21 100644 --- a/lib/editor/htmlEditor.class.php +++ b/lib/editor/htmlEditor.class.php @@ -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; diff --git a/lib/editor/tinymce.js.php b/lib/editor/tinymce.js.php index a50335c4e6e..003ffbdf1ac 100644 --- a/lib/editor/tinymce.js.php +++ b/lib/editor/tinymce.js.php @@ -1,10 +1,12 @@