Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Fix file link text being selected after upload.

Aman Agrawala1aaf4a52df5
diff --git a/static/js/compose_ui.js b/static/js/compose_ui.js
index c69dcd19326..4a6c429dcf2 100644
--- a/static/js/compose_ui.js
+++ b/static/js/compose_ui.js
@@ -84,7 +84,7 @@ export function replace_syntax(old_syntax, new_syntax, $textarea = $("#compose-t
// replace() function treating `$`s in new_syntax as special syntax. See
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Description
// for details.
- replace($textarea[0], old_syntax, () => new_syntax);
+ replace($textarea[0], old_syntax, () => new_syntax, "after-replacement");
}
export function compute_placeholder_text(opts) {