add mention command

This commit is contained in:
Philipp Kühn
2018-11-22 22:48:06 +01:00
parent 2bbfab2f8f
commit 06b7446f2a

View File

@@ -51,6 +51,10 @@ export default class Mention extends Node {
} }
} }
commands({ schema }) {
return attrs => replaceText(null, schema.nodes.mention, attrs)
}
get plugins() { get plugins() {
return [ return [
SuggestionsPlugin({ SuggestionsPlugin({