fix suggestion plugin export

This commit is contained in:
Philipp Kühn
2018-09-29 12:00:16 +02:00
parent 1ad2b6aa78
commit d1df0fcc9c
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import { Node } from 'tiptap' import { Node } from 'tiptap'
import { replaceText } from 'tiptap-commands' import { replaceText } from 'tiptap-commands'
import { suggestionsPlugin } from '../plugins/suggestions' import SuggestionsPlugin from '../plugins/Suggestions'
export default class MentionNode extends Node { export default class MentionNode extends Node {
@@ -41,7 +41,7 @@ export default class MentionNode extends Node {
get plugins() { get plugins() {
return [ return [
suggestionsPlugin({ SuggestionsPlugin({
suggestionClass: 'mention-suggestion', suggestionClass: 'mention-suggestion',
matcher: { matcher: {
char: '@', char: '@',

View File

@@ -8,7 +8,7 @@ import { Decoration, DecorationSet } from 'prosemirror-view';
* @param {Boolean} allowSpaces * @param {Boolean} allowSpaces
* @returns {function(*)} * @returns {function(*)}
*/ */
export function triggerCharacter({ function triggerCharacter({
char = '@', char = '@',
allowSpaces = false, allowSpaces = false,
startOfLine = false, startOfLine = false,
@@ -67,7 +67,7 @@ export function triggerCharacter({
/** /**
* @returns {Plugin} * @returns {Plugin}
*/ */
export function suggestionsPlugin({ export default function SuggestionsPlugin({
matcher = { matcher = {
char: '@', char: '@',
allowSpaces: false, allowSpaces: false,