{"_id":"@37bytes/offer-builder-jodit-react-fork","_rev":"3-21faef0d926b16ccc5c7c8236487d395","name":"@37bytes/offer-builder-jodit-react-fork","dist-tags":{"latest":"1.3.13"},"versions":{"1.3.13":{"name":"@37bytes/offer-builder-jodit-react-fork","version":"1.3.13","description":"Jodit is awesome and usefully wysiwyg editor with filebrowser","main":"build/jodit-react.js","author":{"name":"Chupurnov","email":"chupurnov@gmail.com","url":"https://xdsoft.net/"},"keywords":["react","jodit","html","text","editor","wysisyg","rich editor","rich text editor","rte"],"dependencies":{"@37bytes/offer-builder-jodit-fork":"^3.20.4","eslint-plugin-react-hooks":"^4.5.0"},"peerDependencies":{"react":"~0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0","react-dom":"~0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"},"devDependencies":{"@babel/core":"^7.16.0","@babel/eslint-parser":"^7.17.0","@babel/preset-env":"^7.16.0","@babel/preset-react":"^7.16.0","@types/react":"^16.14.2","babel":"^6.23.0","babel-cli":"^6.26.0","babel-loader":"^8.2.2","babel-plugin-transform-class-properties":"^6.24.1","css-loader":"^3.6.0","eslint":"^8.9.0","eslint-config-prettier":"^8.4.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-react":"^7.28.0","husky":"^7.0.4","lint-staged":"^12.3.4","prettier":"^2.5.1","react":"^16.14.0","react-dom":"^16.14.0","style-loader":"^0.20.3","webpack":"^4.44.2","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.0"},"scripts":{"newversion":"npm run lint && npm update && rm -rf build/ && npm run build && npm version patch --no-git-tag-version && npm run github && npm publish ./","lint":"eslint ./","demo":"cd examples && webpack-dev-server --config ./webpack.config.js --mode development --port 4000 --hot --inline","start":"npm run demo","build":"webpack --mode production","github":"git add --all  && git commit -m \"New version $npm_package_version. Read more https://github.com/jodit/jodit-react/releases/tag/$npm_package_version \" && git tag $npm_package_version && git push --tags origin HEAD:master"},"repository":{"type":"git","url":"git+https://github.com/jodit/jodit-react.git"},"license":"MIT","bugs":{"url":"https://github.com/jodit/jodit-react/issues"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"**/*.js":["eslint ./ --fix","git add"]},"homepage":"https://xdsoft.net/jodit/","gitHead":"e34f6494960c6e9eb0ff904496b06210706c7e58","_id":"@37bytes/offer-builder-jodit-react-fork@1.3.13","_nodeVersion":"16.7.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-HXW1ToX48QKWiBBeVR7cK+Krz/CGOx9Cb3SBmWOOwKq0c8R8xIKjK+cVoeGCAHEMpVpqNuOhjNPgs/NS6JLH7Q==","shasum":"365bcc65bec6062d6826acad1a9e79be92137e9b","tarball":"https://registry.npmjs.org/@37bytes/offer-builder-jodit-react-fork/-/offer-builder-jodit-react-fork-1.3.13.tgz","fileCount":23,"unpackedSize":991097,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNDfiN7wV11AMOQDovnni9M7xVxsij4hgszj9dNi3phgIgctar4NlCzFDzKU3pOiktCc4RqogFh4ztjDB+ZvVqktU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbSdRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtphAAiIrZHho5ckKUpndckgJstKZZtGwWylSy8PVB3cwv5lROs2Kh\r\nxL6yW8Bmop3yxisa1JkwdgV2JLMVFuJ86d+GGmRHIbLWu3uO8NiP/kxYlvL5\r\n+SvehyKM+WEg6HBvCd0GwDHkZoOd0Xw3bFNXh3QZ101nh6plTMqWgNrySlwI\r\ncEjChCnzTktfeHDvEUWrKZ8c2QRF7SU9ihlATiTybsXLJTdta/81MWLyDZUG\r\ndxeZ6KUiKmkfRjtLnoAtMN6roQhbfg2DUBxZRtMWagGo/siaHxRIRgZnANI2\r\nsWKSphUsi/VljqUEp8UM3zv6n4I1EW1ZPnzU+NmpqnJGUs7pJjnAofIEO5z8\r\nDlmm9yTkPMqnqpp8l2iHnLE8bs3XsFYvgGpBcpql15O5qmgE9kUrLToF8FuN\r\nDcKD26tjJVCcA7O9uwzhYK3qcUHwTiLZiwGWZv+3T7ftcwFpYWlrcJsqbK6f\r\n60Nh9+bmbtuOX8xFaIutBTlK9Wl10GlwKUBRF0UaZpo90haktwARqltpKGhv\r\n7RplZ2tpO/H/+VGW7BcevdBnZJ7y9X48z3BCIT4iOhyoewYIMeBV1p8pGbsw\r\nJM9JJZlS4oEC39Pm3a0YHMyzLiRr56/vKzfZVQvXfEH/AuHBPxKbZFydBBkt\r\nnkGUnRcEHIR7CvJvXMwRdOKkTSFaXOoY6Og=\r\n=khEK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},"directories":{},"maintainers":[{"name":"rteslenko","email":"rteslenko@37bytes.com"},{"name":"tnikolaeva","email":"tnikolaeva@37bytes.com"},{"name":"dc.nikolaev","email":"dnikolaev@37bytes.com"},{"name":"mgarmash","email":"ops@37bytes.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/offer-builder-jodit-react-fork_1.3.13_1668097873490_0.8070984080407264"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-10T16:31:13.397Z","1.3.13":"2022-11-10T16:31:13.722Z","modified":"2023-12-21T13:06:50.548Z"},"maintainers":[{"email":"naushev@37bytes.com","name":"arhonist-37b"},{"email":"rispaev@37bytes.com","name":"rispaev"},{"email":"yavavilin@37bytes.com","name":"yar_vav"},{"email":"rteslenko@37bytes.com","name":"rteslenko"},{"email":"tnikolaeva@37bytes.com","name":"tnikolaeva"},{"email":"dnikolaev@37bytes.com","name":"dc.nikolaev"},{"email":"ops@37bytes.com","name":"mgarmash"}],"description":"Jodit is awesome and usefully wysiwyg editor with filebrowser","homepage":"https://xdsoft.net/jodit/","keywords":["react","jodit","html","text","editor","wysisyg","rich editor","rich text editor","rte"],"repository":{"type":"git","url":"git+https://github.com/jodit/jodit-react.git"},"author":{"name":"Chupurnov","email":"chupurnov@gmail.com","url":"https://xdsoft.net/"},"bugs":{"url":"https://github.com/jodit/jodit-react/issues"},"license":"MIT","readme":"# [React Jodit WYSIWYG Editor](https://github.com/jodit/jodit-react) fork\n\nReact wrapper for [@37bytes/offer-builder-jodit-fork](https://github.com/37bytes/jodit/tree/offer-builder-jodit-fork), [jodit](https://xdsoft.net/jodit/) fork.\n\n## Installation\n\n```bash\nnpm install @37bytes/offer-builder-jodit-react-fork --save\n```\n\n## Update editor version\n```bash\nnpm update @37bytes/offer-builder-jodit-react-fork\n```\n\n## Run demo\n```bash\nnpm install --dev\nnpm run demo\n```\n\nand open\n```\nhttp://localhost:4000/\n```\n\n## Usage\n\n### 1. Require and use Jodit-react component inside your application.\n\n```jsx\nimport React, {useState, useRef, useMemo} from 'react';\nimport JoditEditor from \"@37bytes/offer-builder-jodit-react-fork\";\n\nconst Example = ({placeholder}) => {\n\tconst editor = useRef(null)\n\tconst [content, setContent] = useState('')\n\n\tconst config = useMemo({\n\t\treadonly: false // all options from https://xdsoft.net/jodit/doc/,\n\t\tplaceholder: placeholder || 'Start typings...'\n\t}, [placeholder])\n\n\treturn (\n            <JoditEditor\n            \tref={editor}\n                value={content}\n                config={config}\n\t\ttabIndex={1} // tabIndex of textarea\n\t\tonBlur={newContent => setContent(newContent)} // preferred to use only this option to update the content for performance reasons\n                onChange={newContent => {}}\n            />\n        );\n}\n```\n\n\nLicense\n-----\nThis package is available under `MIT` License.\n","readmeFilename":"README.md"}