fix reverse text on code/quote blocks

This commit is contained in:
Virgil B 2021-01-26 13:26:36 +02:00 committed by GitHub
parent 9168b8823a
commit f67ca1688b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,12 +426,15 @@ class Wysiwyg extends React.Component {
newEditorState = EditorState.acceptSelection(newEditorState, updatedSelection);
// Update the parent reducer
this.sendData(newEditorState);
return this.setState({
editorState: EditorState.forceSelection(newEditorState, newEditorState.getSelection()),
});
}, () => {
this.focus();
// Update the parent reducer
this.sendData(newEditorState);
);
};
/**