Open
Description
I copied the code as is in the readme to create an Editor component but the tab key did NOT indent but rather shifted focus. Is there something I am missing? The code is pasted below for easy reference:
handleTab = (evt) => {
const { editorState } = this.state;
if (!CodeUtils.hasSelectionInBlock(editorState)) return 'not-handled';
this.onChange(CodeUtils.handleTab(evt, editorState));
return 'handled';
}
Activity