{"_id":"@artemiomorales/react-draft-wysiwyg","_rev":"1-0c218c3918d8c7db76afd6152af4c9a2","name":"@artemiomorales/react-draft-wysiwyg","dist-tags":{"latest":"1.14.6"},"versions":{"1.14.6":{"name":"@artemiomorales/react-draft-wysiwyg","version":"1.14.6","description":"A wysiwyg on top of DraftJS.","main":"dist/react-draft-wysiwyg.js","repository":{"type":"git","url":"git+https://github.com/artemiomorales/react-draft-wysiwyg.git"},"author":{"name":"Jyoti Puri"},"devDependencies":{"@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","@babel/preset-react":"^7.7.4","@babel/register":"^7.7.4","@storybook/react":"^5.2.8","autoprefixer":"^9.7.3","babel-eslint":"^10.0.3","babel-loader":"^8.0.6","babel-plugin-transform-flow-strip-types":"^6.22.0","chai":"^4.2.0","cross-env":"^6.0.3","css-loader":"^3.2.1","draft-js":"^0.11.2","draftjs-to-html":"^0.9.0","draftjs-to-markdown":"^0.6.0","embed-video":"^2.0.4","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.15.1","eslint":"^6.7.2","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-mocha":"^6.2.2","eslint-plugin-react":"^7.17.0","file-loader":"^5.0.2","flow-bin":"^0.113.0","immutable":"^4.0.0-rc.12","jsdom":"^15.2.1","mini-css-extract-plugin":"^0.8.0","mocha":"^6.2.2","postcss-loader":"^3.0.0","precss":"^4.0.0","react":"^16.12.0","react-addons-test-utils":"^15.6.2","react-dom":"^16.12.0","react-test-renderer":"^16.12.0","rimraf":"^3.0.0","sinon":"^7.5.0","style-loader":"^1.0.1","uglifyjs-webpack-plugin":"^2.2.0","url-loader":"^3.0.0","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.6.0","webpack-cli":"^3.3.10"},"dependencies":{"classnames":"^2.2.6","draftjs-utils":"^0.10.2","html-to-draftjs":"^1.5.0","linkify-it":"^2.2.0","prop-types":"^15.7.2"},"peerDependencies":{"draft-js":"^0.10.x || ^0.11.x","immutable":"3.x.x || 4.x.x","react":"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x","react-dom":"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x"},"scripts":{"clean":"rimraf dist","build:webpack":"cross-env NODE_ENV=production webpack  --mode production --config config/webpack.config.js","build":"npm run clean && npm run build:webpack","test":"cross-env BABEL_ENV=test mocha --require config/test-compiler.js config/test-setup.js src/**/*Test.js","lint":"eslint src","lintdocs":"eslint docs/src","flow":"flow; test $? -eq 0 -o $? -eq 2","check":"npm run lint && npm run flow","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"license":"MIT","gitHead":"94dccb0b8a0b53ed0e9349d1c039c5a8b7a346e9","bugs":{"url":"https://github.com/artemiomorales/react-draft-wysiwyg/issues"},"homepage":"https://github.com/artemiomorales/react-draft-wysiwyg#readme","_id":"@artemiomorales/react-draft-wysiwyg@1.14.6","_nodeVersion":"15.2.0","_npmVersion":"7.0.8","dist":{"integrity":"sha512-A0Qdgq8A1D/AA72WQ0UhvG0ypPsbGz1Ee08thdPF7zeLkld22lQjcs3VpJfmziFGPfN6VBpzbqwGLyVYlvj/mQ==","shasum":"c57d251f2f952b3977863ab34a1c20b4fd902a59","tarball":"https://registry.npmjs.org/@artemiomorales/react-draft-wysiwyg/-/react-draft-wysiwyg-1.14.6.tgz","fileCount":8,"unpackedSize":293759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgg0OACRA9TVsSAnZWagAAmoAP/2KkqCxDdBfmIX7PdNbW\ncCnFjdrR4QUUpIs7R9j+yOqhJx9koD1RODdodSeYObxD5dDvXQlTY7WoLFdb\noJDvvU2QqAiUqKaGCatmOznioA0LCLOpXhuddU9lbwMIf3nfgU7J89brrHUj\nAcWObLTfue4Kh+KH51V4UI0nOAEKyR0qSRL3WprS2hC/EHg3A2N8C/UNh1Lu\nwjO6p/etzoBjKY8aEMd8VV2jR13ZY5kEcWdaH8/uVWb9kTsc1AXHPsLwmtvE\nG4m9HfXguuOckUt8K4xixeCGxlBOx2+TZmgms36tmXl/Sn7hDtU63qF2txBp\nerW4g2lkanLmoW6sPGQ6T3T4zTXj5kVso6m766s4RaRnkB1cbTHrwuul3DXL\nOjUoAefxcBstdhQGK4xCEBNhezmNtY7CGeUnFpZ95Di1YVGzfa6R3HkO7Q69\n9BtUNqGiUySPwnz7ZCWilxBlc1FRtd6ZVKnIkYcs9SOxMNmyeJsu+ItH+JTn\nL3ruSDd/ZAnPeR2RjgIQNzuYOJZ29jkeajTpcBznZcgfxQIiWatUDrx7sSSB\nWvfAp5oXIQJWE1GCsMcxpATpyTCWMtU9RL6DtzjCwS68uTkfqVzrrXy5om7n\nQjDwb4qTV9xSfCe5ekvK378kv0yboJFI1hjW0uPDLitsfuVWM/couiOajnIv\nc8g1\r\n=pYPG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN2UWXQbFzYPNUDEAxtNwDG/s424ayJY1pIY//PgHkvwIhAOsnx0YW1Mo5/DUA5uZ6miqIMuqUmLqYLL2Xu0PL3qvp"}]},"_npmUser":{"name":"artemiomorales","email":"artemio@altsalt.com"},"directories":{},"maintainers":[{"name":"artemiomorales","email":"artemio@altsalt.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-draft-wysiwyg_1.14.6_1619215232177_0.016553478894084428"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-23T22:00:32.120Z","1.14.6":"2021-04-23T22:00:32.342Z","modified":"2022-04-04T15:36:36.417Z"},"maintainers":[{"name":"artemiomorales","email":"artemio@altsalt.com"}],"description":"A wysiwyg on top of DraftJS.","homepage":"https://github.com/artemiomorales/react-draft-wysiwyg#readme","repository":{"type":"git","url":"git+https://github.com/artemiomorales/react-draft-wysiwyg.git"},"author":{"name":"Jyoti Puri"},"bugs":{"url":"https://github.com/artemiomorales/react-draft-wysiwyg/issues"},"license":"MIT","readme":"# React Draft Wysiwyg\n\nA Wysiwyg editor built using ReactJS and DraftJS libraries.\n[Demo Page](https://jpuri.github.io/react-draft-wysiwyg).\n\n[![Build Status](https://travis-ci.org/jpuri/react-draft-wysiwyg.svg?branch=master)](https://travis-ci.org/jpuri/react-draft-wysiwyg)\n\n![](http://i.imgur.com/tU7kJ6i.gif)\n\n## Features\n\n- Configurable toolbar with option to add/remove controls.\n- Option to change the order of the controls in the toolbar.\n- Option to add custom controls to the toolbar.\n- Option to change styles and icons in the toolbar.\n- Option to show toolbar only when editor is focused.\n- Support for inline styles: Bold, Italic, Underline, StrikeThrough, Code, Subscript, Superscript.\n- Support for block types: Paragraph, H1 - H6, Blockquote, Code.\n- Support for setting font-size and font-family.\n- Support for ordered / unordered lists and indenting.\n- Support for text-alignment.\n- Support for coloring text or background.\n- Support for adding / editing links\n- Choice of more than 150 emojis.\n- Support for mentions.\n- Support for hashtags.\n- Support for adding / uploading images.\n- Support for aligning images, setting height, width.\n- Support for Embedded links, flexibility to set height and width.\n- Option provided to remove added styling.\n- Option of undo and redo.\n- Configurable behavior for RTL and Spellcheck.\n- Support for placeholder.\n- Support for WAI-ARIA Support attributes\n- Using editor as controlled or un-controlled React component.\n- Support to convert Editor Content to HTML, JSON, Markdown.\n- Support to convert the HTML generated by the editor back to editor content.\n- Support for internationalization.\n\n## Installing\n\nThe package can be installed from npm `react-draft-wysiwyg`\n\n```\n$ npm install --save react-draft-wysiwyg draft-js\n```\n\n## Getting started\n\nEditor can be used as simple React Component:\n\n```js\nimport { Editor } from \"react-draft-wysiwyg\";\nimport \"react-draft-wysiwyg/dist/react-draft-wysiwyg.css\";\n<Editor\n  editorState={editorState}\n  toolbarClassName=\"toolbarClassName\"\n  wrapperClassName=\"wrapperClassName\"\n  editorClassName=\"editorClassName\"\n  onEditorStateChange={this.onEditorStateChange}\n/>;\n```\n\n## Docs\n\nFor more documentation check [here](https://jpuri.github.io/react-draft-wysiwyg/#/docs?_k=jjqinp).\n\n## Questions Discussions\n\nFor discussions join public channel #rd_wysiwyg in [DraftJS Slack Organization](https://draftjs.herokuapp.com/).\n\n## Fund\n\nYou can fund project at [Patreon](https://www.patreon.com/jyotipuri).\n\n## Thanks\n\nOriginal motivation and sponsorship for this work came from [iPaoo](http://www.ipaoo.com/). I am thankful to them for allowing the Editor to be open-sourced.\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}