FIX: emoticon 💩 wasn't working :)

This commit is contained in:
Robin Ward 2013-11-04 11:47:23 -05:00
parent 7360112759
commit 5e69b277ea

View File

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