mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
Comment previous edit
This commit is contained in:
@@ -36,10 +36,16 @@ class Editor extends React.Component {
|
||||
button: cn(styles.button, classNames.button, `${pluginName}-button`),
|
||||
},
|
||||
});
|
||||
|
||||
// To edit comments and have the previous html comment
|
||||
if (this.props.comment && this.props.comment.htmlBody) {
|
||||
this.ref.content.innerHTML = this.props.comment.htmlBody;
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const { id, classNames } = this.props;
|
||||
console.log(this.props);
|
||||
return (
|
||||
<div
|
||||
id={id}
|
||||
|
||||
Reference in New Issue
Block a user