mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 06:31:28 +02:00
Fix inline void inside an inline node
This commit is contained in:
@@ -137,6 +137,7 @@ const INLINE_VOID_TEXT_RULE = {
|
|||||||
const INLINE_VOID_TEXTS_AROUND_RULE = {
|
const INLINE_VOID_TEXTS_AROUND_RULE = {
|
||||||
match: (object) => {
|
match: (object) => {
|
||||||
return object.kind == 'block'
|
return object.kind == 'block'
|
||||||
|
return object.kind == 'block' || object.kind == 'inline'
|
||||||
},
|
},
|
||||||
validate: (block) => {
|
validate: (block) => {
|
||||||
const invalids = block.nodes.reduce((accu, child, index) => {
|
const invalids = block.nodes.reduce((accu, child, index) => {
|
||||||
|
@@ -12,4 +12,4 @@ nodes:
|
|||||||
type: image
|
type: image
|
||||||
isVoid: true
|
isVoid: true
|
||||||
- kind: text
|
- kind: text
|
||||||
text: " "
|
text: ""
|
||||||
|
Reference in New Issue
Block a user