settings: Add "text" option to emoji_set model.

We no longer have a special UI setting and model
field ("emoji_alt_code") for saying users want text-only
emojis.  We now instead make "text" be a fifth choice
for "emojiset".

Fixes #7406
This commit is contained in:
Aastha Gupta
2018-01-02 17:32:13 +05:30
committed by Steve Howell
parent 5ff84e97b5
commit daf86eb664
14 changed files with 74 additions and 80 deletions

View File

@@ -820,7 +820,7 @@ exports.initialize = function () {
preview_html = rendered_content;
}
$("#preview_content").html(preview_html);
if (page_params.emoji_alt_code) {
if (page_params.emojiset === "text") {
$("#preview_content").find(".emoji").replaceWith(function () {
var text = $(this).attr("title");
return ":" + text + ":";