Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- import TinyMCE from 'react-tinymce';
- class Textarea extends Component {
- constructor(props) {
- //...
- }
- render() {
- return (
- <TinyMCE
- name={this.props.name}
- content={this.props.value}
- onChange={this.handleFieldChange}
- config={{
- plugins: 'autolink link image lists print preview code',
- toolbar: 'undo redo | bold italic | alignleft aligncenter alignright | code'
- }}
- />
- )
- }
- }
- <Textarea value={data.body} />
Add Comment
Please, Sign In to add comment