@@ -52,13 +52,13 @@ export default class Mention extends Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
commands({ schema }) {
|
commands({ schema }) {
|
||||||
return attrs => replaceText(null, schema.nodes.mention, attrs)
|
return attrs => replaceText(null, schema.nodes[this.name], attrs)
|
||||||
}
|
}
|
||||||
|
|
||||||
get plugins() {
|
get plugins() {
|
||||||
return [
|
return [
|
||||||
SuggestionsPlugin({
|
SuggestionsPlugin({
|
||||||
command: ({ range, attrs, schema }) => replaceText(range, schema.nodes.mention, attrs),
|
command: ({ range, attrs, schema }) => replaceText(range, schema.nodes[this.name], attrs),
|
||||||
appendText: ' ',
|
appendText: ' ',
|
||||||
matcher: this.options.matcher,
|
matcher: this.options.matcher,
|
||||||
items: this.options.items,
|
items: this.options.items,
|
||||||
|
|||||||
Reference in New Issue
Block a user