mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: emoticon 💩 wasn't working :)
This commit is contained in:
parent
7360112759
commit
5e69b277ea
1 changed files with 6 additions and 7 deletions
|
@ -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 a new issue