mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
emoji: Display emoji in messages as text as well as reactions.
Fixes #6795.
This commit is contained in:
@@ -652,6 +652,12 @@ exports.initialize = function () {
|
||||
preview_html = rendered_content;
|
||||
}
|
||||
$("#preview_content").html(preview_html);
|
||||
if (page_params.emoji_alt_code) {
|
||||
$("#preview_content").find(".emoji").replaceWith(function () {
|
||||
var text = $(this).attr("title");
|
||||
return ":" + text + ":";
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$('#compose').on('click', '#video_link', function (e) {
|
||||
|
||||
@@ -424,6 +424,15 @@ MessageListView.prototype = {
|
||||
});
|
||||
}
|
||||
|
||||
// Display emoji (including realm emoji) as text if
|
||||
// page_params.emoji_alt_code is set
|
||||
if (page_params.emoji_alt_code) {
|
||||
row.find(".emoji").replaceWith(function () {
|
||||
var text = $(this).attr("title");
|
||||
return ":" + text + ":";
|
||||
});
|
||||
}
|
||||
|
||||
var id = rows.id(row);
|
||||
message_edit.maybe_show_edit(row, id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user