Removed all calls to textToJsx and replaced them with calls to TextFormatting

Этот коммит содержится в:
hmhealey
2015-09-14 11:48:07 -04:00
родитель 3e3b52554a
Коммит 15aa853da5
7 изменённых файлов: 39 добавлений и 28 удалений

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

@@ -12,6 +12,7 @@ var FileAttachmentList = require('./file_attachment_list.jsx');
var Client = require('../utils/client.jsx');
var AsyncClient = require('../utils/async_client.jsx');
var ActionTypes = Constants.ActionTypes;
var TextFormatting = require('../utils/text_formatting.jsx');
var twemoji = require('twemoji');
export default class RhsComment extends React.Component {
@@ -84,7 +85,6 @@ export default class RhsComment extends React.Component {
type = 'Comment';
}
var message = Utils.textToJsx(post.message);
var timestamp = UserStore.getCurrentUser().update_at;
var loading;
@@ -202,7 +202,13 @@ export default class RhsComment extends React.Component {
</li>
</ul>
<div className='post-body'>
<p className={postClass}>{loading}{message}</p>
<p className={postClass}>
{loading}
<span
onClick={TextFormatting.handleClick}
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(post.message)}}
/>
</p>
{fileAttachment}
</div>
</div>