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:
@@ -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={{
|
||||
|
Reference in New Issue
Block a user