emoji: Display emoji in messages as text as well as reactions.

Fixes #6795.
This commit is contained in:
Aastha Gupta
2017-10-23 17:24:20 +05:30
committed by Tim Abbott
parent b76578ca13
commit c84f1686b7
2 changed files with 15 additions and 0 deletions

View File

@@ -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) {