mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 22:36:14 +08:00
fix suggestion plugin export
This commit is contained in:
parent
1ad2b6aa78
commit
d1df0fcc9c
@ -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: '@',
|
||||
|
@ -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,
|
Loading…
Reference in New Issue
Block a user