niuware / mui-rte

Material-UI Rich Text Editor and Viewer
MIT License
432 stars 168 forks source link

How to style the editor when it gains focus? #322

Open lecoqlibre opened 2 years ago

lecoqlibre commented 2 years ago

How do we change the style applied to the editor when it gains focus? I did not find the solution in the exemples.

Can we change the theme passed to the <ThemeProvider /> ?

Thanks!

DurivetMatthias commented 1 year ago

Looking to do the same. I tried building around this myself.

In my case the Editor needs to be wrapped in a React.memo() to avoid infinite re-renders But that is also stopping the style changes from applying

galdahan commented 7 months ago

Looking to do the same.