mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 16:44:22 +02:00
fix issue where inline voids can no longer be selected (#3572)
* fix issue where inline voids can no longer be selected by allowing the zero width space to be an editable target Co-authored-by: damareyoh <chackerman@wsu.edu>
This commit is contained in:
@@ -174,7 +174,9 @@ export const ReactEditor = {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
targetEl.closest(`[data-slate-editor]`) === editorEl &&
|
targetEl.closest(`[data-slate-editor]`) === editorEl &&
|
||||||
(!editable || targetEl.isContentEditable)
|
(!editable ||
|
||||||
|
targetEl.isContentEditable ||
|
||||||
|
!!targetEl.getAttribute('data-slate-zero-width'))
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user