New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add and use quill mention modules #322
Comments
you have add .css file from quill-mention? |
I added css to page manually:
but it's not work |
maybe has something missing in "source:" i am use in my project and work's fine, look for inspect dev html if you see any div added |
can you copy your component code in this place |
import {Mention} from './plugins/mention'
Quill.register('modules/mention', Mention);
editorOptions: {
modules: {
mention: {
allowedChars: /^[A-Za-z\sÅÄÖåäö]*$/,
mentionDenotationChars: ['@', '#', '!'],
dataAttributes: ['path', 'label'],
source: this.getMention
}
getMention(searchTerm, renderList, mentionChar) {
if (mentionChar == "@") {
if (!searchTerm) {
this.popoverBlockTreeMetion = true
}else ....
}
´´´
i had import module to my project and change him to show another popover custom , my component is very long to copy&paste all |
I try your code but already get error:
|
You can paste your component code here? Look if u have a import from quill after mention import |
|
put mention objects inside modules object, i guess this import already register the module so comment register and put object mention inside of module: { |
maybe the mention blot has not registered, i don't know how fix this, in my project i dont use this popup |
I solved problem with add
also in Laravel Mix we used
|
I used to vue 2.5.* and wanna to use quill-mention.
By your document I write this code to use mention module:
but when I type
@
mention popover doesn't display. What should I do?The text was updated successfully, but these errors were encountered: