mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Don't use our copy handler when editing a message
(imported from commit 49e7001d8aa9af4f482b62332da03faad784074f)
This commit is contained in:
parent
bb21400732
commit
f8a9f36dfa
@ -175,6 +175,13 @@ function copy_handler(e) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Do nothing if the user is selecting anything while editing,
|
||||
// as in that case we want to let the browser select the
|
||||
// text field text as usual
|
||||
if (startc.hasClass('edit-controls')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the user is running the desktop app, we still create "div"
|
||||
// so that we can replace emoji with their text
|
||||
div.append(range.cloneContents());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user