Allow to switch between default and emoji-one emoji style
Этот коммит содержится в:
@@ -8,7 +8,6 @@ import * as TextFormatting from '../utils/text_formatting.jsx';
|
||||
import * as utils from '../utils/utils.jsx';
|
||||
import FileAttachmentList from './file_attachment_list.jsx';
|
||||
import twemoji from 'twemoji';
|
||||
import Constants from '../utils/constants.jsx';
|
||||
import PostBodyAdditionalContent from './post_body_additional_content.jsx';
|
||||
import * as EventHelpers from '../dispatcher/event_helpers.jsx';
|
||||
|
||||
@@ -21,7 +20,11 @@ export default class RhsRootPost extends React.Component {
|
||||
this.state = {};
|
||||
}
|
||||
parseEmojis() {
|
||||
twemoji.parse(ReactDOM.findDOMNode(this), {size: Constants.EMOJI_SIZE});
|
||||
twemoji.parse(ReactDOM.findDOMNode(this), {
|
||||
className: 'emoji twemoji',
|
||||
base: '',
|
||||
folder: utils.getImagePathForEmoticon()
|
||||
});
|
||||
}
|
||||
componentDidMount() {
|
||||
this.parseEmojis();
|
||||
|
||||
Ссылка в новой задаче
Block a user