Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
changeAlt(e) {
const { block, blockProps } = this.props;
const { editorState, onChange } = blockProps;
const data = {
alt: e.target.value,
};
onChange(DraftUtils.updateBlockEntity(editorState, block, data));
}