add appendText option for suggestions

This commit is contained in:
Philipp Kühn
2018-10-02 23:02:07 +02:00
parent 4a31f8f1ca
commit 0a3b235bca
2 changed files with 7 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ export default class MentionNode extends Node {
return [
SuggestionsPlugin({
command: ({ range, attrs, schema }) => replaceText(range, schema.nodes.mention, attrs),
appendText: ' ',
matcher: this.options.matcher,
items: this.options.items,
onEnter: this.options.onEnter,