From: pdontthink Date: Sat, 21 Feb 2004 06:11:06 +0000 (+0000) Subject: Made compose textarea height configurable X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3cb80c8cd51244ba10d9bd6a934a1b6b941d065f;p=squirrelmail.git Made compose textarea height configurable git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6615 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/load_prefs.php b/include/load_prefs.php index ace9d8ee..eea76b35 100644 --- a/include/load_prefs.php +++ b/include/load_prefs.php @@ -143,6 +143,7 @@ if ($left_size == '') { } $editor_size = getPref($data_dir, $username, 'editor_size', 76 ); +$editor_height = getPref($data_dir, $username, 'editor_height', 20 ); $use_signature = getPref($data_dir, $username, 'use_signature', SMPREF_OFF ); $prefix_sig = getPref($data_dir, $username, 'prefix_sig'); diff --git a/include/options/display.php b/include/options/display.php index e9c740f7..9d9397fb 100644 --- a/include/options/display.php +++ b/include/options/display.php @@ -235,7 +235,15 @@ function load_optpage_data_display() { $optvals[SMOPT_GRP_MESSAGE][] = array( 'name' => 'editor_size', - 'caption' => _("Size of Editor Window"), + 'caption' => _("Width of Editor Window"), + 'type' => SMOPT_TYPE_INTEGER, + 'refresh' => SMOPT_REFRESH_NONE, + 'size' => SMOPT_SIZE_TINY + ); + + $optvals[SMOPT_GRP_MESSAGE][] = array( + 'name' => 'editor_height', + 'caption' => _("Height of Editor Window"), 'type' => SMOPT_TYPE_INTEGER, 'refresh' => SMOPT_REFRESH_NONE, 'size' => SMOPT_SIZE_TINY diff --git a/src/compose.php b/src/compose.php index 8e65706a..a905ae76 100644 --- a/src/compose.php +++ b/src/compose.php @@ -896,7 +896,7 @@ function getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, function showInputForm ($session, $values=false) { global $send_to, $send_to_cc, $body, $startMessage, $passed_body, $color, $use_signature, $signature, $prefix_sig, - $editor_size, $attachments, $subject, $newmail, + $editor_size, $editor_height, $attachments, $subject, $newmail, $use_javascript_addr_book, $send_to_bcc, $passed_id, $mailbox, $from_htmladdr_search, $location_of_buttons, $attachment_dir, $username, $data_dir, $identity, $idents, $draft_id, $delete_draft, @@ -1029,14 +1029,14 @@ function showInputForm ($session, $values=false) { if ($compose_new_win == '1') { echo ' ' . "\n" . ' ' . "\n" . - '