Comment previous edit

This commit is contained in:
okbel
2018-02-22 11:24:37 -03:00
parent 4579537709
commit 2f4c084811
6 changed files with 28 additions and 9 deletions
@@ -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}