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:
@@ -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 => {
|
||||||
|
Reference in New Issue
Block a user