在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):JedWatson/react-md-editor开源软件地址(OpenSource Url):https://github.com/JedWatson/react-md-editor开源编程语言(OpenSource Language):JavaScript 80.0%开源软件介绍(OpenSource Introduction):React Markdown EditorA Markdown Editor for React.js, built with CodeMirror. This is a work in progress. Format application and removal is not very robust, some formats are missing. Demo & ExamplesLive demo: JedWatson.github.io/react-md-editor To build the examples locally, run:
Then open InstallationThe easiest way to use codemirror is to install it from NPM and include it in your own React build process (using Browserify, Webpack, etc). You can also use the standalone build by including
Usagevar React = require('react'),
Editor = require('react-md-editor');
var App = React.createClass({
getInitialState: function() {
return {
code: "# Markdown"
};
},
updateCode: function(newCode) {
this.setState({
code: newCode
});
},
render: function() {
return <Editor value={this.state.code} onChange={this.updateCode} />
}
});
React.render(<App />, document.getElementById('app')); Properties
See the CodeMirror API Docs for the available options. LicenseMIT. Copyright (c) 2016 Jed Watson. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论