KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
wrap-md-editor
★ 9
Open GitHub ↗
React Component Based on Editor.md
Download README (.md)
Explore Similar Repositories
ADDA-PyTorch
:
Implementation of Adverserial Discriminative Domain Adaptation from https://arxiv.org/abs/1702.05464
gitpatch
:
Mail git patch in emacs
Code-Coverage
:
Java Code Coverage Tools
vk_stream_to_telegram
:
vk stream api send news to telegram
HeliosTableViewAnimal
:
简单的翻转 缩放的tableView动画 扩展性好
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
wrap-md-editor
?
Download (.md)
### React Component Based on [Editor.md](https://github.com/pandao/editor.md) #### The html template should includes the following tags. ##### css ``` <link rel="stylesheet" href="https://s0.meituan.net/xm/open-platform-static/editormd/css/editormd.css" /> ``` ##### js ``` <script src="//s0.meituan.net/xm/static/jquery/1.11.3/jquery.min.js"></script> <script src="https://s0.meituan.net/xm/open-platform-static/editormd/editormd.js"></script> ``` ### Install ``` npm install wrap-md-editor -S ``` #### Example ##### the edit mode <img src="http://7ximbf.com1.z0.glb.clouddn.com/FpaB-GQqpGZe2FMgq7kYTd1kv0By" width="850px"/> ``` import React, {Component} from 'react'; import {render} from 'react-dom'; import Editor from 'wrap-md-editor'; render( <Editor config={ { markdown: // testEditor.getMarkdown().replace(/`/g, '\\`') `## Test \`\`\` console.log('what can i do for you') \`\`\` # 123123`, onload: (editor, func) => { let md = editor.getMarkdown(); let html = editor.getHTML(); debugger } } }/>, document.querySelector('#root') ); ``` ##### the show mode <img src="http://7ximbf.com1.z0.glb.clouddn.com/FqaUzavIAfRaoEH_JubArv6fCn3I" width="850px"/> ``` import React, {Component} from 'react'; import {render} from 'react-dom'; import Editor from 'wrap-md-editor'; render( <Editor.EditorShow config={ { markdown: // testEditor.getMarkdown().replace(/`/g, '\\`') `## Test \`\`\` console.log('what can i do for you') \`\`\` # 123123` } }/>, document.querySelector('#root') ); ``` #### Doc Read the [document](https://pandao.github.io/editor.md/examples/full.html) for detail.