Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lizhengnacl/wrap-md-editor

React Component Based on Editor.md
https://github.com/lizhengnacl/wrap-md-editor

component markdown markdown-editor react

Last synced: about 1 month ago
JSON representation

React Component Based on Editor.md

Awesome Lists containing this project

README

        

### React Component Based on [Editor.md](https://github.com/pandao/editor.md)

#### The html template should includes the following tags.

##### css
```

```
##### js
```

```

### Install
```
npm install wrap-md-editor -S
```

#### Example

##### the edit mode

```
import React, {Component} from 'react';
import {render} from 'react-dom';
import Editor from 'wrap-md-editor';

render(
{
let md = editor.getMarkdown();
let html = editor.getHTML();
debugger
}
}
}/>,
document.querySelector('#root')
);
```

##### the show mode

```
import React, {Component} from 'react';
import {render} from 'react-dom';
import Editor from 'wrap-md-editor';

render(
,
document.querySelector('#root')
);
```

#### Doc
Read the [document](https://pandao.github.io/editor.md/examples/full.html) for detail.