1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-14 03:03:58 +02:00

render void spacer in readonly mode (#4840)

This commit is contained in:
Eric Meier
2022-02-17 12:57:30 +01:00
committed by GitHub
parent b8020ee6fc
commit 100448d55c
2 changed files with 6 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ const Element = (props: {
const Tag = isInline ? 'span' : 'div'
const [[text]] = Node.texts(element)
children = readOnly ? null : (
children = (
<Tag
data-slate-spacer
style={{