mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +02:00
fix embed example to not clobber edits, closes #301
This commit is contained in:
@@ -22,7 +22,8 @@ class Video extends React.Component {
|
||||
data: { video }
|
||||
}
|
||||
|
||||
const next = state
|
||||
const next = editor
|
||||
.getState()
|
||||
.transform()
|
||||
.setNodeByKey(node.key, properties)
|
||||
.apply()
|
||||
|
Reference in New Issue
Block a user