zulip/static
Priyansh Garg 3294e8dbe0 compose-box: Insert quoted content at the cursor position.
Right now, on clicking `quote and reply` on any message, the quoted
message is always inserted at the top of compose-box irrespective of
the current cursor position. Also, after insertion of the quoted
message, the cursor is shifted at the end of the compose box.

This commit changes this behaviour to insertion of quoted message
at the current cursor position with a newline at the end of quote
and moving the cursor position to that newline after insertion.
A newline is added at the beginning of quoted message only if there
was some content already present in compose box before the previous
cursor position.

Tested on Google Chrome and Firefox browsers on Ubuntu dev environment.

Fixes: #16836
2021-07-06 16:38:17 -07:00
..
assets zulip-icon: Add `zulip-icon` as classPrefix for icon. 2021-04-29 09:02:25 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images integrations: Add Freshstatus webhook integration. 2021-05-27 23:38:11 -07:00
js compose-box: Insert quoted content at the cursor position. 2021-07-06 16:38:17 -07:00
shared shared: Bump version to 0.0.6. 2021-06-15 14:40:58 -07:00
styles confirm_dialog: Rename confirm_dialog_yes_button class. 2021-07-06 15:15:50 -07:00
templates tooltip: Improve tooltip placement for search users icon in right sidebar. 2021-07-06 15:26:53 -07:00
third minor: Simplify `usermention` regex and properly use capturing groups. 2021-05-20 11:35:04 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00