Skip to content

mehulcse/material-ui-markdown-editor

Repository files navigation

Material UI Markdown Editor

JavaScript Style Guide

Example

Example

Installation

npm install material-ui-markdown-editor

Usage

import Editor from 'material-ui-markdown-editor'

// ...

render() {
  return (
    <div>
      //...
      <Editor content={"<h1>Lorem Ipsum</h1>"}
              onChange={(content)=>{}}/>
    </div>
  )
}

Material UI Image Properties

Name Type Default Description
content string '' HTML or a text string as an input
onChange* func onChange handler of the Editor.
editorStyle object { minHeight: 300, maxHeight: 350, overflowY: 'scroll', outline: 'none' } Override the editorStyle style.

* required property

License

The files included in this repository are licensed under the MIT license.

About

Material ui markdown editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published