Marco Vanali
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 }) => { 

--

--

Marco Vanali
Marco Vanali

Written by Marco Vanali

Senior Software Engineer at BPP

No responses yet