move mention filtering to plugin

This commit is contained in:
Philipp Kühn
2018-09-27 11:35:32 +02:00
parent 55ee1b20d6
commit 56316476a9
3 changed files with 50 additions and 34 deletions

View File

@@ -54,10 +54,12 @@ export default class MentionNode extends Node {
allowSpaces: true,
startOfLine: false,
}),
items: this.options.items,
onEnter: this.options.onEnter,
onChange: this.options.onChange,
onExit: this.options.onExit,
onKeyDown: this.options.onKeyDown,
onFilter: this.options.onFilter,
}),
]
}