draft-textedit
v0.2.1
Published
A rich text editor built using React, Draft.js and styled-components.
Downloads
4
Readme
Draft TextEdit
A rich text editor built using React, Draft.js and styled-components.
Demo
https://draft-textedit.netlify.com/#!/Editor
Installation
Using npm
$ npm i draft-textedit
Using DraftTextEdit
Import Editor
component.
import React from 'react';
import ReactDOM from 'react-dom';
import Editor from 'draft-textedit';
import './App.css';
class App extends Component.Component {
render() {
return (
<div className="App">
<div className="App-editor">
<Editor placeholder="Write something..." />
</div>
</div>
);
}
}
ReactDOM.render(<App />, document.getElementById('root'));