[Bug]: warning when using multiple mention extensions #5549
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
extension-mention
Version(s)
2.6.6
Bug Description
I want to have multiple instances using the mention plugin for different purposes in the same editor.
To achieve that, I just need to set the
pluginKey: new PluginKey('user'),
option in the suggestion attribute.As far as I can see, it does works fine, but the console will give me the following warning:
This is because the mention extension has its name set to
'mention'
without any wait to customize it.Suggestion of a fix
Allow the user to override the mention extension name by setting their own custom name.
Browser Used
Firefox
Code Example URL
No response
Expected Behavior
The warning is correct, so the behavior is expected, but that means that currently there is no good/supported way to have more than one mention extension in the same editor. Allowing the use to customize that extension name should fix the warning and keep everything working.
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: