Этот коммит содержится в:
=Corey Hulen
2015-09-16 23:27:25 -07:00
родитель 8e848f38d5
Коммит 99d0db136c
4 изменённых файлов: 7 добавлений и 9 удалений

Просмотреть файл

@@ -18,7 +18,7 @@ export default class PostBody extends React.Component {
this.state = {links: linkData.links, message: linkData.text};
}
getTextNodesIn(nodeIn) {
getAllChildNodes(nodeIn) {
var textNodes = [];
function getTextNodes(node) {
@@ -35,7 +35,7 @@ export default class PostBody extends React.Component {
parseEmojis() {
twemoji.parse(React.findDOMNode(this), {size: Constants.EMOJI_SIZE});
this.getTextNodesIn(React.findDOMNode(this)).forEach((current) => {
this.getAllChildNodes(React.findDOMNode(this)).forEach((current) => {
global.window.emojify.run(current);
});
}

Просмотреть файл

@@ -130,9 +130,9 @@ div.theme {
}
.emoji {
width: 1.5em !important;
height: 1.5em !important;
display: inline-block !important;
margin-bottom: 0.25em !important;
background-size: contain !important;
width: 1.5em;
height: 1.5em;
display: inline-block;
margin-bottom: 0.25em;
background-size: contain;
}

1
web/static/css/emojify.min.css поставляемый
Просмотреть файл

@@ -1 +0,0 @@
.emoji{width:1.5em;height:1.5em;display:inline-block;margin-bottom:-.25em;background-size:contain}

Просмотреть файл

@@ -40,7 +40,6 @@
<script src="/static/js/jquery-dragster/jquery.dragster.js"></script>
<link rel="stylesheet" href="/static/css/emoji/emojify.min.css" />
<script src="/static/js/emojify.min.js"></script>
<script>
emojify.setConfig({img_dir: '/static/images/emoji'});