{"_id":"react-texteditor","_rev":"5-7a162768c6ef79e66b9fed0623717cd5","name":"react-texteditor","description":"Rich Text Editor for React","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"react-texteditor","version":"0.1.0","description":"Rich Text Editor for React","main":"dist/TextEditor.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/isuttell/react-texteditor.git"},"keywords":["React","contenteditable","rich","text","editor"],"author":{"name":"Isaac Suttell","email":"isaac@isaacsuttell.com"},"license":"MIT","bugs":{"url":"https://github.com/isuttell/react-texteditor/issues"},"homepage":"https://github.com/isuttell/react-texteditor","devDependencies":{"babel-core":"^5.8.22","babel-eslint":"^4.0.10","babel-loader":"^5.3.2","eslint":"^1.2.1","eslint-loader":"^1.0.0","eslint-plugin-react":"^3.2.3","grunt":"^0.4.5","grunt-babel":"^5.0.1","grunt-webpack":"^1.0.11","package-banner":"^0.1.0","webpack":"^1.11.0","webpack-dev-server":"^1.10.1"},"gitHead":"a1f943de06f58136f4062560d2e6e422016018e5","_id":"react-texteditor@0.1.0","_shasum":"9451e6760ee421a619d8bae66dc001cd2813cb30","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.6","_npmUser":{"name":"isuttell","email":"isaac@isaacsuttell.com"},"dist":{"shasum":"9451e6760ee421a619d8bae66dc001cd2813cb30","tarball":"https://registry.npmjs.org/react-texteditor/-/react-texteditor-0.1.0.tgz","integrity":"sha512-1qDRuKWY5ZNFLYloJqbACdMumL7RtxfBNzjPBFy5w6RjoB1hzDt8CrtR0VAYKH8kX2pAxyEksBuMXl6CxWyXVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOSaIdw7ypYCqQBlucdIiBqsw16zrR6aLYcM4rMRLQqAiEAxVM/MROme+6TpeljBO2YdVvRUVxbP/NL3XagtfcnNOk="}]},"maintainers":[{"name":"isuttell","email":"isaac@isaacsuttell.com"}]},"0.1.1":{"name":"react-texteditor","version":"0.1.1","description":"Rich Text Editor for React","main":"dist/TextEditor.js","scripts":{"build":"grunt build","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/isuttell/react-texteditor.git"},"keywords":["React","contenteditable","rich","text","editor"],"author":{"name":"Isaac Suttell","email":"isaac@isaacsuttell.com"},"license":"MIT","bugs":{"url":"https://github.com/isuttell/react-texteditor/issues"},"homepage":"https://github.com/isuttell/react-texteditor","devDependencies":{"babel-core":"^5.8.22","babel-eslint":"^4.0.10","babel-loader":"^5.3.2","eslint":"^1.2.1","eslint-loader":"^1.0.0","eslint-plugin-react":"^3.2.3","grunt":"^0.4.5","grunt-webpack":"^1.0.11","package-banner":"^0.1.1","react":"^0.14.0-rc1","react-dom":"^0.14.0-rc1","webpack":"^1.11.0","webpack-dev-server":"^1.10.1"},"gitHead":"046a64185b854b8e783735bcfb477560406241ba","_id":"react-texteditor@0.1.1","_shasum":"8e03ca81d79678927150ef58eb791bbac71f8a86","_from":".","_npmVersion":"2.14.6","_nodeVersion":"4.1.2","_npmUser":{"name":"isuttell","email":"isaac@isaacsuttell.com"},"dist":{"shasum":"8e03ca81d79678927150ef58eb791bbac71f8a86","tarball":"https://registry.npmjs.org/react-texteditor/-/react-texteditor-0.1.1.tgz","integrity":"sha512-2urrKVK9vFwbVO7i/4cUPlG2WHTIfUh7PhThH2NmU3FTVlawz/wCObvVbJI8fJ1Mk3iOb5TY91vHs+QmGcDEiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDoIMdRmf1XhrIAO4B2XvIBV+iSoX13ig2HeuXQPjDMMAiEAuLbDD8LXbDKasn/2quEEpxXuWPoCxwG2qED9PLTQkTM="}]},"maintainers":[{"name":"isuttell","email":"isaac@isaacsuttell.com"}]}},"readme":"# TextEditor\n\nRich Text Editor for React using contentEditable. Uses ES6 through Babel.\n\n## Installation\n\nRequires react and classnames to installed. They are not bundled in the package.\n\n```shell\nnpm install react classnames react-texteditor --save-dev`\n```\n\n## Usage\n\n```js\nvar React = require('react');\nvar TextEditor = require('react-texteditor');\n\nvar ExampleView = React.createClass({\n    /**\n     * Initial State\n     *\n     * @type    {Object}\n     */\n    getInitialState: {\n        text: ''\n    }\n\n    /**\n     * Handle a change in the editor\n     *\n     * @param     {String}    prop\n     * @param     {Object}    event\n     */\n    handleChange: function(prop, event) {\n        var state = this.state;\n        state[prop] = event.target.value;\n        this.setState(state);\n    },\n\n    /**\n     * Render\n     *\n     * @return    {React}\n     */\n    render: function() {\n        return (\n            <TextEditor\n                  onChange={this.handleChange.bind(this, 'text')}\n                  html={this.state.html} />\n        );\n    }\n});\n\n```\n\n## Development\n\nSource files are located in `src/` and can be built with `grunt build` command after running `npm install`. Transformed files are saved to the `dist/` folder.\n\nIf you're using webpack with the babel loader you can directly require the `src/` folder, e.g.\n\n```js\nvar TextEditor = require('react-texteditor/src');\n```\n","maintainers":[{"name":"isuttell","email":"isaac@isaacsuttell.com"}],"time":{"modified":"2022-06-26T08:36:37.844Z","created":"2015-08-31T19:04:58.225Z","0.1.0":"2015-08-31T19:04:58.225Z","0.1.1":"2015-10-08T22:05:00.297Z"},"homepage":"https://github.com/isuttell/react-texteditor","keywords":["React","contenteditable","rich","text","editor"],"repository":{"type":"git","url":"git+https://github.com/isuttell/react-texteditor.git"},"author":{"name":"Isaac Suttell","email":"isaac@isaacsuttell.com"},"bugs":{"url":"https://github.com/isuttell/react-texteditor/issues"},"license":"MIT","readmeFilename":"README.md","users":{"jeverduzco":true}}