Skip to content

Commit

Permalink
docs(concepts): fix code example on the Editor page (#5377)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosko committed Apr 3, 2023
1 parent 3c3ea29 commit 26ace0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/07-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 26ace0d

Please sign in to comment.