refactoring

This commit is contained in:
Philipp Kühn
2018-09-29 13:11:00 +02:00
parent 33d9972110
commit 965aacc9e6

View File

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