]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed the HTML editor being too wide for the messaging window MDL-11242
authormoodler <moodler>
Wed, 26 Sep 2007 11:21:54 +0000 (11:21 +0000)
committermoodler <moodler>
Wed, 26 Sep 2007 11:21:54 +0000 (11:21 +0000)
lib/editor/htmlarea/htmlarea.php
message/send.php
theme/standard/styles_layout.css

index 1631ccc982f034a5b9714f8f425c85d429429eed..a7f89b033c620c5cf5e52fcc601a0145e5795745 100644 (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;
index 522a5901a49bb20bdce9b3924aae41ed7fe07055..6edc15c8c8edee6a9b9eaa16932fc66248b22718 100644 (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');
index c86c857abbb7ce72efc2f53d3a196f7a7f5594ae..3b592cd97ef5912d31f4dc5f7306d644f491556f 100644 (file)
@@ -2509,6 +2509,10 @@ body#message-send .notifysuccess {
   padding:1px;
 }
 
+body#message-send td.fixeditor {
+  text-align:center;
+}
+
 /***
  *** Notes
  ***/