1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 04:20:26 +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

View File

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