From 86a246e9296c68678795c4414cfcd8a6f0bef2da Mon Sep 17 00:00:00 2001 From: scyrma Date: Tue, 9 Sep 2008 05:29:07 +0000 Subject: [PATCH] MDL-16319: set a css sheet for the content of the editor - fixing the issue with the default font size. This commit also reactivates the media plugin. --- lib/editor/tinymce.js.php | 10 +++++++--- theme/standard/styles_color.css | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/editor/tinymce.js.php b/lib/editor/tinymce.js.php index a4eb28c3cd..179034a6e6 100644 --- a/lib/editor/tinymce.js.php +++ b/lib/editor/tinymce.js.php @@ -137,13 +137,16 @@ EOF; $strtime = get_string('strftimetime'); $strdate = get_string('strftimedaydate'); +// $contentcss should be customizable, but default to this. +$contentcss = $CFG->themewww .'/'. current_theme() .'/styles.php'; + $output = <<httpswwwroot", - content_css: "$CFG->httpswwwroot/lib/editor/tinymce/examples/css/content.css", + content_css: "$contentcss", theme: "simple", skin: "o2k7", skin_variant: "silver", @@ -159,6 +162,7 @@ $output = <<httpswwwroot", + content_css: "$contentcss", theme: "advanced", skin: "o2k7", skin_variant: "silver", @@ -167,7 +171,7 @@ $output = <<