1
0
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:
Samy Pesse
2016-10-23 23:53:01 +02:00
parent 4d0f067250
commit 4f1fc842a8
2 changed files with 2 additions and 1 deletions

View File

@@ -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) => {

View File

@@ -12,4 +12,4 @@ nodes:
type: image
isVoid: true
- kind: text
text: " "
text: ""