0.2.3 • Published 8 years ago
react-text-edit v0.2.3
React-Text-Edit
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
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.25
8 years ago
0.1.24
8 years ago
0.1.23
8 years ago
0.1.22
8 years ago
0.1.21
8 years ago
0.1.19
8 years ago
0.1.18
8 years ago
0.1.17
8 years ago
0.1.16
8 years ago
0.1.15
8 years ago
0.1.14
8 years ago
0.1.13
8 years ago
0.1.12
8 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.9
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.5
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago