123456789101112131415161718192021222324252627 |
- var React = require('react');
- var ReactDOM = require('react-dom');
- var SimpleMDEReact = require('../../src/index');
- module.exports = React.createClass({
- getMarkdownOptions() {
- return {
- autofocus: false,
- spellChecker: true,
- initialValue: this.props.value
- }
- },
- render() {
- return (
- <SimpleMDEReact
- onChange={this.props.handleEditorChange}
- options={this.getMarkdownOptions()}
- label={this.props.label}
- value={this.props.value}
- extraKeys={this.props.extraKeys}
- />
- );
- }
- });
|