0.2.3 • Published 7 years ago

react-text-edit v0.2.3

Weekly downloads
18
License
MIT
Repository
github
Last release
7 years ago

React-Text-Edit

NPM Version License

A text editor components written with React.

Installation

NPM

$ npm install react-text-edit --save

Usage

import React, {Component} from 'react';
import ReactTextEdit from 'react-text-edit';

export default class MyComponent extends Component {

    constructor(props) {

        super(props);

        this.state = {
            data: ''
        };

        this.onChange = this::this.onChange;

    }

    onChange(data) {
        this.setState({
            data
        });
    }

    // ...

    render() {
        return (
            <ReactTextEdit data={this.state.data}
                           onChange={this.onChange}/>
        );
    }

}

Examples

Examples can be found in the examples folder.

Run Demo

$ npm run demo

License

This project is licensed under the terms of the MIT license

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.25

7 years ago

0.1.24

7 years ago

0.1.23

7 years ago

0.1.22

7 years ago

0.1.21

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago