1 min readAug 19, 2019
If you get an error saying that ‘setEditorState’ is not a function apparently it get fixed adding a further argument, like:
handleKeyCommand: (command, editorState, fakeArgument, { getEditorState, setEditorState }) => {
If you get an error saying that ‘setEditorState’ is not a function apparently it get fixed adding a further argument, like:
handleKeyCommand: (command, editorState, fakeArgument, { getEditorState, setEditorState }) => {