refactoring
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user