From: Art Cancro Date: Tue, 21 Nov 2023 23:22:57 +0000 (-0500) Subject: mail view: focus the cursor in the correct place when composing X-Git-Tag: v997~88 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=eba2a8c1516b63bf51e3d26da497cc4dc85b8f83 mail view: focus the cursor in the correct place when composing --- diff --git a/webcit-ng/static/js/view_mail.js b/webcit-ng/static/js/view_mail.js index 830768a50..e44a73a03 100644 --- a/webcit-ng/static/js/view_mail.js +++ b/webcit-ng/static/js/view_mail.js @@ -534,6 +534,8 @@ function mail_compose(is_quoted, references, quoted_msgnum, m_to, m_cc, m_subjec document.getElementById(quoted_div_name).innerHTML = quoted_msgnum; mail_display_message(quoted_msgnum, document.getElementById(quoted_div_name), 0); } + + setTimeout(() => { document.getElementById("ctdl-editor-body").focus(); }, 0); } // Called when the user clicks the button to make the hidden "CC" and "BCC" lines appear.