diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-03-06 11:59:26 -0600 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-03-06 15:19:33 -0600 |
commit | 96cbad23378e492f2564a8ec4121b7b3548a7df3 (patch) | |
tree | 1f39f33940e914965d2f288f7f4d99fd592acd1d /app/assets/javascripts | |
parent | f602efea65c2a816c7e29be546d2eb412fe538cc (diff) | |
download | gitlab-ce-96cbad23378e492f2564a8ec4121b7b3548a7df3.tar.gz |
Fix up @DouweM review
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/copy_as_gfm.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/copy_as_gfm.js b/app/assets/javascripts/copy_as_gfm.js index 7e63d6ea07b..ba8ed19e9da 100644 --- a/app/assets/javascripts/copy_as_gfm.js +++ b/app/assets/javascripts/copy_as_gfm.js @@ -46,6 +46,9 @@ require('./lib/utils/common_utils'); }, }, EmojiFilter: { + 'img.emoji'(el, text) { + return el.getAttribute('alt'); + }, 'gl-emoji'(el, text) { return `:${el.getAttribute('data-name')}:`; }, |