1
0
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:
Ian Storm Taylor
2018-10-29 17:30:24 -07:00
parent 8eb8e26958
commit 4a2d7845ba

View File

@@ -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)
) )
} }