mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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_html = rendered_content;
|
||||||
}
|
}
|
||||||
$("#preview_content").html(preview_html);
|
$("#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) {
|
$('#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);
|
var id = rows.id(row);
|
||||||
message_edit.maybe_show_edit(row, id);
|
message_edit.maybe_show_edit(row, id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user