mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-03-05 21:49:06 +01:00
rollback isInEditor check for void nodes
This commit is contained in:
parent
8eb8e26958
commit
4a2d7845ba
@ -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)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user