mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 19:53:44 +08:00
FIX: 'quote reply' button not showing when an emoji is included.
This commit is contained in:
parent
62ce9938ab
commit
24dcd7df47
|
@ -111,7 +111,7 @@ export function selectedText() {
|
|||
const $div = $(div);
|
||||
|
||||
// Find all emojis and replace with its title attribute.
|
||||
$div.find('img.emoji').replaceWith(() => this.title);
|
||||
$div.find('img.emoji').replaceWith(function() { return this.title });
|
||||
$('.clicks', $div).remove();
|
||||
const text = div.textContent || div.innerText || "";
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user