mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 17:09:53 +02:00
@@ -30,7 +30,7 @@ class Video extends React.Component {
|
||||
onChange = (e) => {
|
||||
const video = e.target.value
|
||||
const { node, editor } = this.props
|
||||
editor.transform(t => t.setNodeByKey(node.key, { data: { video }}))
|
||||
editor.change(c => c.setNodeByKey(node.key, { data: { video }}))
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user