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