mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 20:51:20 +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 = {
|
||||
match: (object) => {
|
||||
return object.kind == 'block'
|
||||
return object.kind == 'block' || object.kind == 'inline'
|
||||
},
|
||||
validate: (block) => {
|
||||
const invalids = block.nodes.reduce((accu, child, index) => {
|
||||
|
@@ -12,4 +12,4 @@ nodes:
|
||||
type: image
|
||||
isVoid: true
|
||||
- kind: text
|
||||
text: " "
|
||||
text: ""
|
||||
|
Reference in New Issue
Block a user