mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 13:11:17 +02:00
rollback isInEditor check for void nodes
This commit is contained in:
@@ -291,9 +291,8 @@ class Content extends React.Component {
|
|||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
|
||||||
const allowEdit = el.isContentEditable || el.closest('[data-slate-void]')
|
|
||||||
return (
|
return (
|
||||||
allowEdit &&
|
el.isContentEditable &&
|
||||||
(el === element || el.closest('[data-slate-editor]') === element)
|
(el === element || el.closest('[data-slate-editor]') === element)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user