TinyMCE + DaisyUi #2758
-
Hello, DaisyUi can overcome the css of the skin TinyMCE or i will need to put the Any help would be loved thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
TinyMCE has its own styles, from browser devtools you can find how colors are applied and then you can set daisyUI colors for those selectors in your CSS. .tox .tox-toolbar__primary {
background-color: #fff;
} You can change it to daisyUI color .tox .tox-toolbar__primary {
background-color: oklch(var(--b1));
} Or for icons in toolbar, you can set daisyUI color .tox .tox-tbtn svg {
fill: #222f3e;
} .tox .tox-tbtn svg {
fill: oklch(var(--bc));
} Same method for other colors… Let me know if you have a question. This way, TinyMCE components can use daisyUI colors and it will change color based on your daisyUI theme |
Beta Was this translation helpful? Give feedback.
TinyMCE has its own styles, from browser devtools you can find how colors are applied and then you can set daisyUI colors for those selectors in your CSS.
For example, I see there's a selector like
You can change it to daisyUI color
base-100
like this:Or for icons in toolbar, you can set daisyUI color
base-content
Same method for other colors…
Let me know if you have a question.
This way, TinyMCE components can use daisyUI colors and it will change color based on your daisyUI …