-
Notifications
You must be signed in to change notification settings - Fork 47
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
Table no getting styles when i just: cdm + r MongoDB #309
Comments
Would you be able to provide more details of how to reproduce the issue, as requested in the original bug report template? There isn't enough information here to understand what the problem is. It sounds like it may be related to how you are using external CSS and/or handling the HTML or editor extensions. It does not sound like a mui-tiptap bug. |
This is my personal component that is rendering the editor
This is how I called Im using version 1.15.0 |
I'm afraid I don't understand how to reproduce the issue. I'm not familiar with Mongo Compass or your setup that is appearing without styles. Can you provide a CodeSandbox that demonstrates and reproduces the issue, and/or specific steps to make the editor appear without styles? Side note (unrelated to the styles issue you're reporting) that treating the editor as a controlled component like you have in your example is often not what you want. See https://github.com/sjdemartini/mui-tiptap/blob/dcd2dcf8364629784c10557cce00bfe10748a124/README.md#re-rendering-richtexteditor-when-content-changes |
You were right, its about a controller tiptap. Do you have an example with a cotrolled component? |
I'm suggesting not using it as a controlled component, since that's not going to be very performant and doesn't work well with Tiptap's APIs. But that should be unrelated to your original issue about styles not working. Do you have repro steps for that or any insight as to what's happening? Otherwise I'll go ahead and close this out for now, since it doesn't sound to me like it's caused by mui-tiptap. |
Yep, you can close it, thanks for help |
When i save the text on my Mongo db getting the value like this
rteRef.current?.editor?.getHTML()
everything if fine, en rendering value looks great like in imageThe bug cames when i go to mongo compass and just reload to see the updated text and go back to the editor the styles are gone. Tables, font size, display like this
The text was updated successfully, but these errors were encountered: