mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +00:00
emoji: Add support for translating emoticons.
Add `translate_emoticons` to `prop_types` and `expected_keys`. Furthermore, create a emoji-translating Markdown inline pattern. Also use a JavaScript version of `translate_emoticons` and then use this function during Markdown previews and as a preprocessor. This is only needed for previews, because usually emoticon translation happens on the backend after sending. Add tests for emoticon translation, a settings UI, and a /help/ page as well. Tweaked by tabbott to fix various test failurse as well as how this handles whitespace, requiring emoticons to not have adjacent characters. Fixes #1768.
This commit is contained in:
committed by
Tim Abbott
parent
038579b840
commit
bdb86f1b5e
@@ -885,6 +885,7 @@ exports.initialize = function () {
|
||||
} else {
|
||||
preview_html = rendered_content;
|
||||
}
|
||||
|
||||
$("#preview_content").html(preview_html);
|
||||
if (page_params.emojiset === "text") {
|
||||
$("#preview_content").find(".emoji").replaceWith(function () {
|
||||
|
||||
Reference in New Issue
Block a user