FIX: 'quote reply' button not showing when an emoji is included.

This commit is contained in:
Guo Xiang Tan 2016-09-21 11:14:32 +08:00
parent 62ce9938ab
commit 24dcd7df47

View file

@ -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 || "";