-
Notifications
You must be signed in to change notification settings - Fork 489
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
Bug in RichText field Headers option #537
Comments
Going to try to work on this! (Amber Caldwell) |
Hello 👋 I did some work here. I'd like to get some direction before opening a PR. The problem here is the below line is completely useless and has no effect on the editor's UI styling: rowy/src/components/RichTextEditor.tsx Lines 126 to 128 in 57e758d
As this does nothing, we alter the color to rowy/src/components/RichTextEditor.tsx Lines 136 to 139 in 57e758d
I implemented a tricky solution by importing both const OxideTheme = lazy(() => import("@src/theme/RichTextUIDark"));
const OxideDarkTheme = lazy(() => import("@src/theme/RichTextUILight"));
{theme.palette.mode === "dark" ? <OxideDarkTheme /> : <OxideTheme />} Lastly, this still causes the same problem on theme switches because it has loaded both stylings. I guess there's no easy workaround without customizing the styles. Of course, there's a costly solution over this to destroy and reinitialize the editor when theme changed. Let me know if I miss something here ❤️ |
Hi @htuerker, thanks for your interest in Rowy!
I haven’t checked it in a while, but if I recall correctly, removing that part of Using To solve the theme switching issue, it may be helpful to force the tinymce editor to re-mount with the |
This issue has been resolved. |
Is your feature request related to a problem? Please describe.
Currently, when someone tries to edit a RichText field in the side drawer, the headers drop down list has a CSS color issue where it is all white in light and dark mode. Needs to fixed
The text was updated successfully, but these errors were encountered: