mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Merge branch 'master' into update-doc-requirement
This commit is contained in:
commit
4fc6cb84b2
@ -632,8 +632,8 @@ class Wysiwyg extends React.Component {
|
||||
newEditorState = EditorState.push(newEditorState, newContentState);
|
||||
const updatedSelection = updateSelection(this.getSelection(), nextBlocks, 2);
|
||||
|
||||
this.setState({ editorState: EditorState.acceptSelection(newEditorState, updatedSelection) });
|
||||
this.sendData(newEditorState);
|
||||
this.setState({ editorState: EditorState.acceptSelection(newEditorState, updatedSelection) });
|
||||
})
|
||||
.catch(() => {
|
||||
this.setState({ editorState: EditorState.undo(this.getEditorState()) });
|
||||
|
Loading…
x
Reference in New Issue
Block a user