mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
implement unicode emoji replacements
This commit is contained in:
parent
97b6d8664b
commit
cfbda863e8
5 changed files with 42 additions and 11 deletions
|
@ -149,6 +149,7 @@ module PrettyText
|
|||
end
|
||||
|
||||
if SiteSetting.enable_experimental_markdown_it
|
||||
# defer load markdown it
|
||||
unless context.eval("window.markdownit")
|
||||
ctx_load_manifest(context, "markdown-it-bundle.js")
|
||||
end
|
||||
|
@ -168,6 +169,7 @@ module PrettyText
|
|||
__optInput.categoryHashtagLookup = __categoryLookup;
|
||||
__optInput.mentionLookup = __mentionLookup;
|
||||
__optInput.customEmoji = #{custom_emoji.to_json};
|
||||
__optInput.emojiUnicodeReplacer = __emojiUnicodeReplacer;
|
||||
JS
|
||||
|
||||
if opts[:topicId]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue