Revert "MM-375 Adds text formatting features using a modified version of the marked js library"

Этот коммит содержится в:
Christopher Speller
2015-08-14 15:03:32 -04:00
родитель b9aef9f2a6
Коммит 26a8e19a35
19 изменённых файлов: 120 добавлений и 2066 удалений

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

@@ -184,7 +184,6 @@ module.exports = React.createClass({
</div>
);
}
var allowTextFormatting = config.AllowTextFormatting;
var postError = null;
if (this.state.postError) {
@@ -205,10 +204,6 @@ module.exports = React.createClass({
if (postError) {
postFooterClassName += ' has-error';
}
var extraInfo = <MsgTyping channelId={this.props.channelId} parentId={this.props.rootId} />;
if (this.state.messageText.split(' ').length > 1 && allowTextFormatting) {
extraInfo = <span className='msg-format-help'>_<em>italics</em>_ *<strong>bold</strong>* `<code className='code-info'>code</code>`</span>;
}
return (
<form onSubmit={this.handleSubmit}>
@@ -229,7 +224,7 @@ module.exports = React.createClass({
onFileUpload={this.handleFileUploadComplete}
onUploadError={this.handleUploadError} />
</div>
{extraInfo}
<MsgTyping channelId={this.props.channelId} parentId={this.props.rootId} />
<div className={postFooterClassName}>
<input type='button' className='btn btn-primary comment-btn pull-right' value='Add Comment' onClick={this.handleSubmit} />
{postError}