Filter data on enter handler
Removes any data props which would otherwise be inherited for the enter onKeyDown event. This applies to all block-types.
Accepts a whitelist array parameter to allow defined values to be inherited.
usage
no whitelist
; const plugins = ; state = value: initialValue ; { this; }; { return <Editor plugins=plugins onKeyDown=thisonKeyDown value=thisstatevalue onChange=thisonChange /> };
with whitelist
; const plugins = ; state = value: initialValue ; { this; }; { return <Editor plugins=plugins onKeyDown=thisonKeyDown value=thisstatevalue onChange=thisonChange /> };
testing
npm run test