mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
fix reverse text on code/quote blocks
This commit is contained in:
parent
9168b8823a
commit
f67ca1688b
@ -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);
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user