material-ui-html-field
Html WYSIWYG editor based on react & material-ui & simditor.
Installation
material-ui-html-field is available as an npm package.
npm i material-ui-html-field
;; Component { superprops; thisstate= html:'' htmlError:'' ; } { let editorConfig= //simditor configure return <HtmlField floatingLabelText="Html Editor" value=thisstatehtml errorText=thisstatehtmlError ...editorConfig /> }
Example
git clone https://github.com/maichong/material-ui-html-field.git cd material-ui-html-field/example npm install npm start // see http://localhost:3000
Props
className
errorStyle
errorText
floatingLabelStyle
floatingLabelText
ref
style
value
hintText
locale en-US
or zh-CN
toolbar
toolbarFloat
toolbarFloatOffset
toolbarHidden
defaultImage
tabIndent
params
upload
pasteImage
cleanPaste
imageButton
allowedTags
allowedAttributes
allowedStyles
codeLanguages
Methods
getValue()
focus()
blur()
Events
onBlur
onChange
onFocus
Contribute
License
This project is licensed under the terms of the MIT license