niuware / mui-rte

Material-UI Rich Text Editor and Viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MUI theming no longer working

chrishj59 opened this issue · comments

Checklist

Description

I have migrated MUI to V5 using Nextjs 12.0.3

It is not possible to use V2 as this results ' expected export' error so I am using 1.29.0

Write here your issue description.
The theme styling no longer works
`MUIRichTextEditor: {
styleOverrides: {
root: {
marginTop: 20,
marginBottom: 100,
},
editor: {
borderBottom: '1px solid gray',
height: '10rem',
maxHeight: '8rem',
overflow: 'auto',

				},
			},
		},`

Since the PR #292 was created I am able create the styling using using the new MUI styling structure.
MUIRichTextEditor: { styleOverrides: { root: { marginTop: 20, marginBottom: 20, }, editor: { borderBottom: '1px solid gray', height: '10rem', maxHeight: '8rem', overflow: 'auto', // minHeight: '8rem', }, }, },