1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-20 13:22:04 +02:00

docs(concepts): fix code example on the Editor page (#5377)

This commit is contained in:
Alexey Volkov 2023-04-03 21:01:50 +03:00 committed by GitHub
parent 3c3ea29a2d
commit 26ace0db28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ If you have void "mention" elements that can accept marks like bold or italic:
const { isVoid, markableVoid } = editor
editor.isVoid = element => {
return element.type === 'mention' ? true : isInline(element)
return element.type === 'mention' ? true : isVoid(element)
}
editor.markableVoid = element => {