mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
compose_state: Make get_or_set accept a full selector.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
daa34685c3
commit
d6be353299
@@ -124,7 +124,7 @@ export function reply_with_mention(opts) {
|
||||
}
|
||||
|
||||
export function quote_and_reply(opts) {
|
||||
const $textarea = $("#compose-textarea");
|
||||
const $textarea = $("textarea#compose-textarea");
|
||||
const message_id = message_lists.current.selected_id();
|
||||
const message = message_lists.current.selected_message();
|
||||
const quoting_placeholder = $t({defaultMessage: "[Quoting…]"});
|
||||
@@ -159,7 +159,7 @@ export function quote_and_reply(opts) {
|
||||
content += `${fence}quote\n${message.raw_content}\n${fence}`;
|
||||
|
||||
compose_ui.replace_syntax(quoting_placeholder, content, $textarea);
|
||||
compose_ui.autosize_textarea($("#compose-textarea"));
|
||||
compose_ui.autosize_textarea($("textarea#compose-textarea"));
|
||||
}
|
||||
|
||||
if (message && message.raw_content) {
|
||||
|
||||
Reference in New Issue
Block a user