|
@@ -36,7 +36,7 @@ class CommentEditor extends React.Component {
|
|
|
const isUploadableFile = config.upload.file;
|
|
const isUploadableFile = config.upload.file;
|
|
|
|
|
|
|
|
this.state = {
|
|
this.state = {
|
|
|
- comment: '',
|
|
|
|
|
|
|
+ comment: this.props.commentBody || '',
|
|
|
isMarkdown: true,
|
|
isMarkdown: true,
|
|
|
html: '',
|
|
html: '',
|
|
|
key: 1,
|
|
key: 1,
|
|
@@ -330,6 +330,7 @@ CommentEditor.propTypes = {
|
|
|
replyTo: PropTypes.string,
|
|
replyTo: PropTypes.string,
|
|
|
reEdit: PropTypes.bool,
|
|
reEdit: PropTypes.bool,
|
|
|
currentComment: PropTypes.object,
|
|
currentComment: PropTypes.object,
|
|
|
|
|
+ commentBody: PropTypes.string,
|
|
|
commentButtonClickedHandler: PropTypes.func.isRequired,
|
|
commentButtonClickedHandler: PropTypes.func.isRequired,
|
|
|
};
|
|
};
|
|
|
|
|
|