{"_id":"@abdelilah/react-rich-text","_rev":"1-750427a7114e3eb626718f58f82af074","name":"@abdelilah/react-rich-text","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@abdelilah/react-rich-text","version":"0.0.1","description":"A rich text editor for React JS","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"start":"parcel serve ./examples/*.html","build":"tsc && ./node_modules/.bin/typedoc --out docs ./src && npm run scss","format":"prettier --write \"src/**/*.ts\" \"src/**/*.tsx\" \"src/**/*.js\"","lint":"tslint -p tsconfig.json","scss":"node-sass ./src/*.scss -o ./lib/","test":"jest --config jestconfig.json","prepare":"npm run build","prepublishOnly":"npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/abdelilah/react-rich-text.git"},"keywords":["react","editor","rich","text","markdown","wysiwyg"],"author":{"name":"Abdelilah Sawab"},"license":"MIT","bugs":{"url":"https://github.com/abdelilah/react-rich-text/issues"},"homepage":"https://github.com/abdelilah/react-rich-text#readme","devDependencies":{"@types/draft-js":"^0.10.32","@types/jest":"^24.0.15","@types/react":"^16.8.21","@types/react-dom":"^16.8.4","jest":"^24.8.0","node-sass":"^4.12.0","parcel-bundler":"^1.12.3","prettier":"^1.18.2","sass":"^1.21.0","ts-jest":"^24.0.2","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","typedoc":"^0.14.2","typescript":"^3.5.2"},"dependencies":{"@fortawesome/fontawesome-svg-core":"^1.2.19","@fortawesome/free-solid-svg-icons":"^5.9.0","@fortawesome/react-fontawesome":"^0.1.4","draft-js":"^0.10.5","markdown-draft-js":"^1.5.0"},"peerDependencies":{"react":"^16.8.6","react-dom":"^16.8.6"},"gitHead":"7835959b5d03e0461b429f16e994f55f333a5df5","_id":"@abdelilah/react-rich-text@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.16.0","_npmUser":{"name":"abdelilah","email":"a.sawab@gmail.com"},"dist":{"integrity":"sha512-eheEhkJUGw7ntYwsBA75ThOhd6nYy0J1FVOAzfuFbCd9X2eqhsIXyz6jUHzl7KDpWnIp3f/C13DY93TQciYrwg==","shasum":"d3abfc31a21777df801fed0f7def406896733f08","tarball":"https://registry.npmjs.org/@abdelilah/react-rich-text/-/react-rich-text-0.0.1.tgz","fileCount":17,"unpackedSize":17467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFH4bCRA9TVsSAnZWagAABcwQAJoLJPVyiSmFxJECjxgr\nLp7gxHyOvxUyoehXGfLuH2GXNEc5wuZGVvaPLE85pG/zpMJ2wrg8y5j8aaKP\n05PgYG110lI/l2KyU1PydiWJXWJ3YWBiG9L75gpLssshYIbYahemi2zX1C3p\n2V4W4xTPND73PoA4Al8Q+nnq7ISF/2O2iBnBxrmk2JOau4XpDdvFzbdu10uP\nrDvg5klh6Ry2x5JiCLrwTV0EbMNgOUAijzpXVUex3C7hjMRwTAWLci9rHfSH\nSB53b6RvpVttzDKfhNONUxjVBifgvtaKs4hfteApIYd7M/5EfOQ9SrQAkn1S\nfyGb4J5OZV4NqSts1krvAlP/5PQa3S1enVWiGlpZe3zs2JWhITc2NcdpYEcX\nITFd2ZDpsgJIs7tf6XseIFWwmYN2ODQ8bV7QxWjyIWit7jgX3kPOtZ/7LZ/a\nPnTms+u6+xPvZk/4KcuzQKbb9fOU4dacLN1glaKo3LMgg5yJN6gCt7NNo0Wk\nIOouDAi1gkipTxi2WLiRVnAjuXEdCL0ZTVEuc6bJgGt1T1M20OM8Z9iwysm6\nrv/Ab+60sWk/ZCQwlJspZmQk1+bqTyuz5A+FszarfWkhbE7qSdjUp3wwg/pY\nsS2nl7Dvd+6t5fElh+WJue893gxe4PkU6fDvnsiKHZvbSXf8JYUCYYWklwka\ngPQt\r\n=Z1vS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqiqCSOWuUVYaxTda3wJWzdRtYc8ljM3BgKC1RnMqx6gIgTN5vG+lBVeWk0UJzqzS5Me0itpTYRc2xy75t7Upw0U8="}]},"maintainers":[{"name":"abdelilah","email":"a.sawab@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-rich-text_0.0.1_1561624090912_0.2717821778874492"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-27T08:28:10.884Z","0.0.1":"2019-06-27T08:28:11.074Z","modified":"2022-04-04T10:58:22.599Z"},"maintainers":[{"name":"abdelilah","email":"a.sawab@gmail.com"}],"description":"A rich text editor for React JS","homepage":"https://github.com/abdelilah/react-rich-text#readme","keywords":["react","editor","rich","text","markdown","wysiwyg"],"repository":{"type":"git","url":"git+https://github.com/abdelilah/react-rich-text.git"},"author":{"name":"Abdelilah Sawab"},"bugs":{"url":"https://github.com/abdelilah/react-rich-text/issues"},"license":"MIT","readme":"## ! This is a work in progress !\n\nreact-rich-text is a simple and ready to use WYSIWYG text editor based on draft-js.\n\n# Installation\n\n```shell\nnpm install --save react-rich-text\n```\n\n\n# Usage\n\n```javascript\n<RichText\n\tplaceholder={'Enter some text'}\n\tvalue={value}\n\tonChange={(value) => console.log('New value', value)}\n\tbuttons={[\n\t\t'H1',\n\t\t'H2',\n\t\t'H3',\n\t\t'BOLD',\n\t\t'ITALIC',\n\t\t'UNDERLINE',\n\t\t'STRIKETHROUGH',\n\t\t'BLOCKQUOTE',\n\t\t'UL',\n\t\t// Custom button\n\t\t{\n\t\t\tlabel: 'Lorem Ipsum',\n\t\t\tonToggle: context => {\n\t\t\t\tconst { editorState, onChange } = context;\n\t\t\t\tconst contentState = Modifier.insertText(\n\t\t\t\teditorState.getCurrentContent(),\n\t\t\t\teditorState.getSelection(),\n\t\t\t\t'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut congue ligula eget arcu egestas bibendum.\\n',\n\t\t\t\t);\n\n\t\t\t\tonChange(EditorState.push(editorState, contentState, 'insert-characters'));\n\t\t\t},\n\t\t},\n\t]}\n/>\n```\n\n# Documentation\n\nDocumentation is generated with typedoc can be found in the [./docs](/docs) folder","readmeFilename":"README.md"}