Skip to content

utkarshx/tiptap-multi-mention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Tiptap Multi Mention


This is a [Tiptap](https://tiptap.dev/) extension that allows you to use multiple mention instances of the plugin.

## Usage

Use the `createMention` function to create a mention extension.

```ts
import { createMention } from 'tiptap-multi-mention'

const MentionSlash = createMention({
  name: 'mentionSlash',
  HTMLAttributes: {
    class: 'cbSlash',
  },
  suggestion: {
    ...SlashSuggestion,
    char: '/',
  },
})

const MentionAt = createMention({
  name: 'mentionAt',
  HTMLAttributes: {
    class: 'mention',
  },
  suggestion: {
    ...suggestion,
    char: '@',
  },
})


const extensions = [
  MentionSlash,
  MenntionAt,
]

```

Releases

No releases published

Packages

No packages published