![]() See more information in 'Custom Controls' below.ĭefines an array of user custom decorators. Current available values are: "title", "bold", "italic", "underline", "strikethrough", "highlight", "undo", "redo", "link", "media", "numberList", "bulletList", "quote", "code", "clear", "save".ĭefines an array of user custom inline styles, blocks and callbacks. If not provided, all controls will be rendered. List of controls to display in the main toolbar. The toolbar is disabled by default.ĭefault content to load. Sets a reference instance of the editor component. Import MUIRichTextEditor from 'mui-rte' import TableChartIcon from const MyBlock = ( props ) => ) APIīase Id name for the component HTML elements. This sample adds a control to change the background color and font color of the typed or selected text: Just select an icon from or create your own FunctionComponent and define your rules. You can define your custom inline styles, blocks, atomic blocks and callback actions to the editor. ExamplesĬheck the examples directory for more. Current code using mui-rte version 1.x should be compatible with version 2.x, the only breaking change is that it requires to be wrapped on a ThemeProvider as shown in the examples. You can still use version 1.x for Material-UI v4. Mui-rte version 2.x is compatible with MUI (v5) only. getElementById ( "root" ) ) Material-UI v4 compatibility Import MUIRichTextEditor from 'mui-rte' const data = getContentStateAsStringFromSomewhere ( ) ReactDOM.
0 Comments
Leave a Reply. |