Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rricard/draft-md
- Owner: rricard
- License: mit
- Created: 2016-05-31T09:34:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-31T13:11:32.000Z (over 8 years ago)
- Last Synced: 2024-10-13T03:19:59.813Z (about 1 month ago)
- Language: JavaScript
- Homepage: http://rricard.github.io/draft-md
- Size: 439 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
)