Fixed: Checklist items cant be created from shortcuts

Fixed: BlockToolbar not close on unfocus
This commit is contained in:
Tom Moor
2017-12-05 20:05:43 -08:00
parent 751b468e92
commit e3f664e8a4
14 changed files with 105 additions and 90 deletions

View File

@@ -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 } })
);
};