Skip to content
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

Getting error when code is deployed in Dev environment - [Parchment] Unable to create mention blot #347

Open
akshaya-a-p opened this issue Oct 8, 2023 · 1 comment

Comments

@akshaya-a-p
Copy link

akshaya-a-p commented Oct 8, 2023

Selected mention item is not getting inserted into the editor.

I' working in a React17 app, using react-quill and quill-mention library.
Selected mention item is being inserted into the editor as expected when the code running in local setup, but the same is not working once it is deployed in higher environments like dev and test.

Error: [Parchment] Unable to create mention blot

I used

import mention from 'quill-mention';

Quill.register({
     'modules/mention': mention,
});

and added mention in formats list in ReactQill props.

Im trying to insert the item with onSelect funtion's insertItem .
Even without onSelect ,the selected mention should be inserted. which is also working fine in local but not in dev.

Can someone please let me know how to resolve this issue.

@csculley
Copy link
Collaborator

I think this might be related to #362 since that might be something you'd see if you're trying to use the currently-unsupported 2.0.0 quills, but I'd need to get more information before I could see for sure. Do you know which quill version is being used in your project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants