mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
Support for both htmlBody and original body
This commit is contained in:
@@ -16,7 +16,11 @@ class Editor extends React.Component {
|
||||
|
||||
init({
|
||||
element: this.ref,
|
||||
onChange: html => onChange(html),
|
||||
onChange: htmlBody => {
|
||||
// We want to save the original comment body
|
||||
const originalBody = this.ref.childNodes[1].innerText;
|
||||
onChange(originalBody, { htmlBody });
|
||||
},
|
||||
actions,
|
||||
classes: {
|
||||
actionbar: cn(
|
||||
|
||||
Reference in New Issue
Block a user