Material-UI Rich Text Editor and Viewer
main
path for the package.json
(Mentioned on https://github.com/niuware/mui-rte/issues/275).scripts
on package.json
.The code implementing mui-rte
version 1.x
should be compatible with version 2.x
, it only requires to wrap instances of the text editor with a ThemeProvider
from MUI which in most of the cases this is already added. For further explanation check the updated examples.
This release bumped the major version to explicitly distinguish the version 1.x from 2.x as the dependencies used are completely different. With that said, no further changes in functionality were added at this time.
react
version 17.0.x
to be used as a peer dependency for this package.src
directory on example files.Typescript
projects.⚠ Note: This version could break builds if using previous provided types in typescript source files. In general this should not be the case, as all necessary typings in the official documentation are provided.
TPosition
type on getEditorBounds
from utils
instead of a dependency type.editor
property of the editorRef
reference. (#208)active
state to false when the editor is not focused.