-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Floating menu shows when editor.isEditable == false
#2715
Comments
If you need an urgent fix, try removing the suggestion props, this seems to be rid of the menu Mention.configure( {
HTMLAttributes: {
class: 'mention',
},
} ) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, is anyone here ? |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Hey @nitipit I'll take a look at this issue asap. Sorry for the long wait time! |
@bdbch Thanks |
@bdbch I'm having a great time with tiptap and appreciate all the hardwork you guys have put into it. Unfortunately this fix has broken a feature in my build. Is there now any way to show the bubble menu if you do want to display it while the editor is not editable? Seems like the kind of feature that would be useful in many situations, not just while editing. |
@Nicolas-Dolan not really - could you create an issue so we can reimplement this as an option? |
What’s the bug you are facing?
Floating menu shows when
editor.isEditable == false
Which browser was this experienced in? Are any special extensions installed?
Google Chrome v100
How can we reproduce the bug on our side?
Call
editor.setEditable(false)
then click on empty content, then the floating-menu will show up.Can you provide a CodeSandbox?
Condition check here in
public shouldShow
tiptap/packages/extension-floating-menu/src/floating-menu-plugin.ts
Line 44 in c9eb6a6
Should add
|| !editor.isEditable
What did you expect to happen?
Floating menu should not show when
editor.isEditable == false
Anything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: