diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-03 08:18:33 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-03 08:18:33 -0500 |
commit | eddd4e0fc49582cf7f484168f5e2c08b0ac89596 (patch) | |
tree | db02a3aab3bd0ead440f4b49a4224679ae9bd1ed /web/react/components/post_body.jsx | |
parent | b3115b9cb69e9c9aefcd6c82e71c55a9288965d8 (diff) | |
parent | 8a39d160f6e0c0626181279163c95ac88f01e0c5 (diff) | |
download | chat-eddd4e0fc49582cf7f484168f5e2c08b0ac89596.tar.gz chat-eddd4e0fc49582cf7f484168f5e2c08b0ac89596.tar.bz2 chat-eddd4e0fc49582cf7f484168f5e2c08b0ac89596.zip |
Merge pull request #1554 from florianorben/emoji_style
Allow to switch between default and emoji-one emoji style
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r-- | web/react/components/post_body.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index de8195f91..27f7ad2de 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -4,6 +4,7 @@ import FileAttachmentList from './file_attachment_list.jsx'; import UserStore from '../stores/user_store.jsx'; import * as Utils from '../utils/utils.jsx'; +import * as Emoji from '../utils/emoticons.jsx'; import Constants from '../utils/constants.jsx'; import * as TextFormatting from '../utils/text_formatting.jsx'; import twemoji from 'twemoji'; @@ -52,7 +53,11 @@ export default class PostBody extends React.Component { } parseEmojis() { - twemoji.parse(ReactDOM.findDOMNode(this), {size: Constants.EMOJI_SIZE}); + twemoji.parse(ReactDOM.findDOMNode(this), { + className: 'emoji twemoji', + base: '', + folder: Emoji.getImagePathForEmoticon() + }); } componentWillMount() { |