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:
parent
3c3ea29a2d
commit
26ace0db28
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user