mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Fixed the HTML editor being too wide for the messaging window MDL-11242
This commit is contained in:
parent
cdaa941032
commit
2f99f1da14
@ -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;
|
||||
|
@ -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');
|
||||
|
@ -2509,6 +2509,10 @@ body#message-send .notifysuccess {
|
||||
padding:1px;
|
||||
}
|
||||
|
||||
body#message-send td.fixeditor {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
/***
|
||||
*** Notes
|
||||
***/
|
||||
|
Loading…
x
Reference in New Issue
Block a user