Also do that after rendering the attachments window.
Doing it before doesn't work.
I don't know why.
+ "<div class=\"ctdl-compose-message-box\" id=\"ctdl-editor-body\" contenteditable=\"true\">"
;
+ "<div class=\"ctdl-compose-message-box\" id=\"ctdl-editor-body\" contenteditable=\"true\">"
;
+ // If this is a quoted reply, insert a div within which we will render the original message.
- compose_screen += "<br><br><blockquote><div id=\"" + quoted_div_name + "\"></div></blockquote>";
+ compose_screen += "<br><br><blockquote><div id=\"" + quoted_div_name + "\">QUOTED MESSAGE HERE</div></blockquote>";
}
// The button bar is a Grid element, and is also a Flexbox container.
}
// The button bar is a Grid element, and is also a Flexbox container.
document.getElementById("ctdl-main").innerHTML = compose_screen;
document.getElementById("ctdl-main").innerHTML = compose_screen;
- mail_display_message(quoted_msgnum, document.getElementById(quoted_div_name), 0);
if (m_cc) {
document.getElementById("ctdl-compose-cc-label").style.display = "block";
document.getElementById("ctdl-compose-cc-field").style.display = "block";
}
activate_uploads("ctdl-editor-body");
if (m_cc) {
document.getElementById("ctdl-compose-cc-label").style.display = "block";
document.getElementById("ctdl-compose-cc-field").style.display = "block";
}
activate_uploads("ctdl-editor-body");
+
+ // If this is a quoted reply, render the original message into the div we set up earlier.
+ if (is_quoted) {
+ document.getElementById(quoted_div_name).innerHTML = quoted_msgnum;
+ mail_display_message(quoted_msgnum, document.getElementById(quoted_div_name), 0);
+ }
}
// Called when the user clicks the button to make the hidden "CC" and "BCC" lines appear.
}
// Called when the user clicks the button to make the hidden "CC" and "BCC" lines appear.