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 { 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: '@',

View File

@ -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,