mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +02:00
@@ -30,7 +30,7 @@ class Video extends React.Component {
|
|||||||
onChange = (e) => {
|
onChange = (e) => {
|
||||||
const video = e.target.value
|
const video = e.target.value
|
||||||
const { node, editor } = this.props
|
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