Fixed: Checklist items cant be created from shortcuts
Fixed: BlockToolbar not close on unfocus
This commit is contained in:
@@ -13,11 +13,8 @@ class Image extends Component {
|
||||
const { editor, node } = this.props;
|
||||
const data = node.data.toObject();
|
||||
|
||||
editor.onChange(
|
||||
editor
|
||||
.getState()
|
||||
.change()
|
||||
.setNodeByKey(node.key, { data: { ...data, alt } })
|
||||
editor.change(change =>
|
||||
change.setNodeByKey(node.key, { data: { ...data, alt } })
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user