1
0
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:
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 = { 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) => {