Merge pull request #9685 from strapi/fix/wysiwyg-send-button

Fix WYSIWYG state
This commit is contained in:
ELABBASSI Hicham 2021-03-11 13:56:03 +01:00 committed by GitHub
commit 1a07977ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,9 +207,9 @@ class Wysiwyg extends React.Component {
() => {
this.focus();
// Update the parent reducer
this.sendData(newEditorState);
}
);
this.sendData(newEditorState);
return;
}
@ -220,10 +220,9 @@ class Wysiwyg extends React.Component {
},
() => {
this.focus();
// Update the parent reducer
this.sendData(newEditorState);
}
);
this.sendData(newEditorState);
return;
};