mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 20:24:01 +02:00
Merge branch 'master' of github.com:ianstormtaylor/slate
This commit is contained in:
@@ -284,8 +284,10 @@ class Content extends React.Component {
|
||||
|
||||
throw err
|
||||
}
|
||||
|
||||
const allowEdit = el.isContentEditable || el.closest('[data-slate-void]')
|
||||
return (
|
||||
el.isContentEditable &&
|
||||
allowEdit &&
|
||||
(el === element || el.closest('[data-slate-editor]') === element)
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user