Fixed the HTML editor being too wide for the messaging window MDL-11242

This commit is contained in:
moodler 2007-09-26 11:21:54 +00:00
parent cdaa941032
commit 2f99f1da14
3 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -97,8 +97,8 @@
$usehtmleditor = (can_use_html_editor() && get_user_preferences('message_usehtmleditor', 0));
if ($usehtmleditor) {
echo '<table align="center"><tr><td align="center">';
print_textarea($usehtmleditor, 7, 34, 0, 0, 'message', '');
echo '<table><tr><td class="fixeditor" align="center">';
print_textarea($usehtmleditor, 9, 200, 0, 0, 'message', '');
echo '</td></tr></table>';
echo '<input type="submit" value="'.get_string('sendmessage', 'message').'" />';
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');

View File

@ -2509,6 +2509,10 @@ body#message-send .notifysuccess {
padding:1px;
}
body#message-send td.fixeditor {
text-align:center;
}
/***
*** Notes
***/