From: moodler Date: Wed, 26 Sep 2007 11:21:54 +0000 (+0000) Subject: Fixed the HTML editor being too wide for the messaging window MDL-11242 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2f99f1da14e9b8427e6ab903e5f7f654e627e98f;p=moodle.git Fixed the HTML editor being too wide for the messaging window MDL-11242 --- diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php index 1631ccc982..a7f89b033c 100644 --- a/lib/editor/htmlarea/htmlarea.php +++ b/lib/editor/htmlarea/htmlarea.php @@ -805,7 +805,7 @@ HTMLArea.prototype.generate = function () { var height = (this.config.height == "auto" ? (this._ta_size.h) : this.config.height); height = parseInt(height); var width = (this.config.width == "auto" ? (this._toolbar.offsetWidth) : this.config.width); - width = Math.max(parseInt(width), 588); + // width = Math.max(parseInt(width), 598); if (!HTMLArea.is_ie) { height -= 2; diff --git a/message/send.php b/message/send.php index 522a5901a4..6edc15c8c8 100644 --- a/message/send.php +++ b/message/send.php @@ -97,8 +97,8 @@ $usehtmleditor = (can_use_html_editor() && get_user_preferences('message_usehtmleditor', 0)); if ($usehtmleditor) { - echo '
'; - print_textarea($usehtmleditor, 7, 34, 0, 0, 'message', ''); + echo '
'; + print_textarea($usehtmleditor, 9, 200, 0, 0, 'message', ''); echo '
'; echo ''; use_html_editor('message', 'formatblock subscript superscript copy cut paste clean undo redo justifyleft justifycenter justifyright justifyfull lefttoright righttoleft insertorderedlist insertunorderedlist outdent indent inserthorizontalrule createanchor nolink inserttable'); diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index c86c857abb..3b592cd97e 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -2509,6 +2509,10 @@ body#message-send .notifysuccess { padding:1px; } +body#message-send td.fixeditor { + text-align:center; +} + /*** *** Notes ***/