Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rricard/draft-md

React/Draft.js-based Markdown editor inspired by iA Writer
https://github.com/rricard/draft-md

Last synced: about 14 hours ago
JSON representation

React/Draft.js-based Markdown editor inspired by iA Writer

Awesome Lists containing this project

README

        

# DraftMD

React/Draft.js-based Markdown editor inspired by iA Writer

## Installation

npm install draft-md

or consume the bundled file in the `dist/` directory

## Usage

### Using React

If you use react already, it's very straightforward:

import {MDEditor} from "draft-md"
import React from "react"
import ReactDOM from "react-dom"
ReactDOM.render(
,
document.getElementById("editor")
)

### Without React - Global object in Bundle

DraftMD.mountMDEditor(
{initialValue: "# Hello!"},
document.getElementById("editor")
)