Add prosemirror-mentions plugin #315
Replies: 2 comments
-
|
Thanks @fredmabire This looks great. Would you like to add this to the docs under examples? Feel free to make a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related items and link to relevant comments in the thread. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is related to Comment.
In order to enable prosemirror-mentions, you have to do somme stuff (this example is based from NgxEditor stackblitz demo).
This is just an example. It can probably be optimized.
Import dependencies:
import { nodes as basicNodes, marks as basicMarks } from 'ngx-editor'; import {mentionNode, tagNode} from 'prosemirror-mentions'Declare nodes and marks const like this:
Import dependencies:
update const getPlugins() like this :
You are now done !
Beta Was this translation helpful? Give feedback.
All reactions