{"_id":"@duyndawing/react-draft-wysiwyg","_rev":"1-d8ad8602f48e46b537f0568fcc161255","name":"@duyndawing/react-draft-wysiwyg","dist-tags":{"latest":"1.14.5"},"versions":{"1.14.5":{"name":"@duyndawing/react-draft-wysiwyg","version":"1.14.5","description":"A wysiwyg on top of DraftJS.","main":"dist/react-draft-wysiwyg.js","repository":{"type":"git","url":"git+https://github.com/jpuri/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":"a48de567030f42eea9f75499db94beca9ac83c76","bugs":{"url":"https://github.com/jpuri/react-draft-wysiwyg/issues"},"homepage":"https://github.com/jpuri/react-draft-wysiwyg#readme","_id":"@duyndawing/react-draft-wysiwyg@1.14.5","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-I4vMjAKfEbwdHuVgc2utYRH3ZgnIxqHVee9yPvhupGWY85yF0g88LY+thwoPqkqCoCuDHimeJH+KbWRjaLjJGg==","shasum":"23f3eb07f1148540c7e89cf822da2cdea6b412be","tarball":"https://registry.npmjs.org/@duyndawing/react-draft-wysiwyg/-/react-draft-wysiwyg-1.14.5.tgz","fileCount":7,"unpackedSize":290994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHncQCRA9TVsSAnZWagAAzFMQAIT/1uGXUzfrs7akUzV8\nTA65XXw0SrvoCi6sJRBmV5OmB8b5PGVCcyFqKVRL38JdfMHs7xJaGXtiQvk8\n2+HtZDcebZwEdieejFPrvDl+AcjT4IbOlnr0EwK5KtEBB9wHBLE8odVNAHEN\nitNF0hbwfCmYCrrT70++PxeEGVWpQ4QahIf1rSwNazVsKi4D7wA2S9olet5p\nFTdqhhhILpkWnvi3zaJN9asIdpo6kzrla53wAWYGl5kzeHcuCpLXyRuLV95P\n2fER2BeYSP0h8+Qu2pB4+4lrNS7XuCLE2yiwiObirWL+ARRJn/WA8yzXh9F1\nuARnBV/asnR0LFUbUieb8TwnijaHA4rTet2hqhpFvmXlvGHsIFBuAvsw3VuP\nXed++i/5P1lSZ6ItNGgbAtANYXyhEat1eAauwQz68iax5e+RR3WmJaHy1rKn\nRcZCeBb27HqGJxflElURWACTzmeVQ6omnw2DEobHn/9svfqMfNixab6KK2S7\n4qYcZaH5I0+DhPYpAhw01fCxl8qTC+8u1N3LJwJtmGZUiCNYnlz/GuyCt9pF\nova3JqMhbvvvhqG+gNUpyh6dhNvVXJsAx8RCsX8ro/nF/toM548p0i0oi9P0\nQmmo3riIVERuWQwoGvre5Po9UZVYakhrqaQPB8JIxsI0ELL6MPj7ofpjddDm\nS1+t\r\n=F4oK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwPeIqBOkZp82fSCFldu/0Y6d5SE8KDDfqDyEChS/0KwIhAPJmmurhCqN1O/GNXBXDeJAgpbJFXGdD/OSqWwcF/3B3"}]},"maintainers":[{"name":"duyndawing","email":"duynd@awing.vn"}],"_npmUser":{"name":"duyndawing","email":"duynd@awing.vn"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-draft-wysiwyg_1.14.5_1595832079906_0.7276398438856375"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-27T06:41:19.861Z","1.14.5":"2020-07-27T06:41:20.060Z","modified":"2022-04-05T06:09:44.613Z"},"maintainers":[{"name":"duyndawing","email":"duynd@awing.vn"}],"description":"A wysiwyg on top of DraftJS.","homepage":"https://github.com/jpuri/react-draft-wysiwyg#readme","repository":{"type":"git","url":"git+https://github.com/jpuri/react-draft-wysiwyg.git"},"author":{"name":"Jyoti Puri"},"bugs":{"url":"https://github.com/jpuri/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- 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\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\nEditor can be used as simple React Component:\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\nFor more documentation check [here](https://jpuri.github.io/react-draft-wysiwyg/#/docs?_k=jjqinp).\n\n## Questions Discussions\nFor discussions join public channel #rd_wysiwyg in [DraftJS Slack Organization](https://draftjs.herokuapp.com/).\n\n## Thanks\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\nMIT.\n","readmeFilename":"README.md"}