Open akreienbring opened 3 days ago
Your popups may be rendering below other UI, like a MUI modal. You can see this with Chrome Dev Tools:
It is fixable by specifying the container where the popup should be appended (instead of document.body):
<MenuButtonHighlightColor
PopperProps={{ container: popperContainer }}
swatchColors={highlightColors}
/>
Edit: I noticed @sjdemartini provided this solution here: https://github.com/sjdemartini/mui-tiptap/issues/206#issuecomment-2133851815
Describe the bug
A clear and concise description of what the bug is.
Before filing a bug, please confirm that you have:
Set up your extensions correctly.
a. Installed the necessary Tiptap extensions for whatever functionality you are trying to use (e.g.
Color
extension for using theMenuButtonTextColor
).b. Passed the extensions you need to the
extensions
field ofRichTextEditor
/useEditor
See README info here for more details.
Confirmed there isn't CSS external to mui-tiptap that is causing a problem with appearance/layout.
To Reproduce
Please include a CodeSandbox demo of the problem if possible. (You can fork this CodeSandbox.)
Steps to reproduce the behavior:
1. 2. 3.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System (please complete the following information)
mui-tiptap
version: [e.g. 1.1.0]tiptap
version: 2.9.1@mui/material
: 6.1.2@mui/icons-material
version: Not installed by me!Additional context
The MenuButtons: MenuButtonEditLink, MenuButtonTextColor, MenuButtonHighlightColor, don't open the popup dialogs. As I took / compared my code from / with your CodeSandBox I can only imagine that I missed some important npm package or MUI / TipTap had some breaking changes.
Despite I have not installed @mui/icons-material (guess that's not the cause) I can't see anything in your provided package.json that I missed. For clarity, here is the relevant part of mine:
All other MenuButtons work as expected. BTW: Thanks for this helpful library!
Edit: I'm running this with Reactjs and Javascript