mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
FIX: emoticon 💩 wasn't working :)
This commit is contained in:
parent
7360112759
commit
5e69b277ea
|
@ -37,20 +37,19 @@
|
|||
":-$" : 'blush'
|
||||
};
|
||||
|
||||
Object.keys(translations).forEach(function (code) {
|
||||
emoji.forEach(function (e) {
|
||||
Discourse.Dialect.inlineReplace(":" + e + ":", function(code) {
|
||||
return imageFor(e);
|
||||
});
|
||||
});
|
||||
|
||||
Object.keys(translations).forEach(function (code) {
|
||||
var replacement = translations[code];
|
||||
Discourse.Dialect.inlineReplace(code, function (code) {
|
||||
return imageFor(replacement);
|
||||
});
|
||||
});
|
||||
|
||||
Discourse.Dialect.inlineBetween({
|
||||
between: ':',
|
||||
rawContents: true,
|
||||
emitter: imageFor
|
||||
});
|
||||
|
||||
if (Discourse && Discourse.ComposerView) {
|
||||
Discourse.ComposerView.on("initWmdEditor", function(event){
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user