Package Exports
- react-tinymce
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-tinymce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-tinymce
React TinyMCE component
Installing
$ npm install react-tinymceDemo
http://mzabriskie.github.io/react-tinymce/
Example
import React from 'react';
import ReactDOM from 'react-dom';
import TinyMCE from 'react-tinymce';
const App = React.createClass({
handleEditorChange(e) {
console.log(e.target.getContent());
},
render() {
return (
<TinyMCE
content="<p>This is the initial content of the editor</p>"
config={{
plugins: 'autolink link image lists print preview',
toolbar: 'undo redo | bold italic | alignleft aligncenter alignright'
}}
onChange={this.handleEditorChange}
/>
);
}
});
ReactDOM.render(<App/>, document.getElementById('container'));License
MIT