diff --git a/packages/tiptap-extensions/src/nodes/Mention.js b/packages/tiptap-extensions/src/nodes/Mention.js index f01bdebc7..828e0b5ef 100644 --- a/packages/tiptap-extensions/src/nodes/Mention.js +++ b/packages/tiptap-extensions/src/nodes/Mention.js @@ -1,6 +1,6 @@ import { Node } from 'tiptap' import { replaceText } from 'tiptap-commands' -import { suggestionsPlugin } from '../plugins/suggestions' +import SuggestionsPlugin from '../plugins/Suggestions' export default class MentionNode extends Node { @@ -41,7 +41,7 @@ export default class MentionNode extends Node { get plugins() { return [ - suggestionsPlugin({ + SuggestionsPlugin({ suggestionClass: 'mention-suggestion', matcher: { char: '@', diff --git a/packages/tiptap-extensions/src/plugins/Ssuggestions.js b/packages/tiptap-extensions/src/plugins/Suggestions.js similarity index 99% rename from packages/tiptap-extensions/src/plugins/Ssuggestions.js rename to packages/tiptap-extensions/src/plugins/Suggestions.js index d435337f1..583ff5d03 100644 --- a/packages/tiptap-extensions/src/plugins/Ssuggestions.js +++ b/packages/tiptap-extensions/src/plugins/Suggestions.js @@ -8,7 +8,7 @@ import { Decoration, DecorationSet } from 'prosemirror-view'; * @param {Boolean} allowSpaces * @returns {function(*)} */ -export function triggerCharacter({ +function triggerCharacter({ char = '@', allowSpaces = false, startOfLine = false, @@ -67,7 +67,7 @@ export function triggerCharacter({ /** * @returns {Plugin} */ -export function suggestionsPlugin({ +export default function SuggestionsPlugin({ matcher = { char: '@', allowSpaces: false,