{"_id":"@ogauk/react-tiny-editor","_rev":"27-1d4fe35cb3fd84b92c78336c437140af","name":"@ogauk/react-tiny-editor","dist-tags":{"latest":"0.1.16"},"versions":{"0.1.11":{"name":"@ogauk/react-tiny-editor","version":"0.1.11","description":"A tiny HTML rich text editor for React","type":"module","main":"index.js","types":"lib/index.d.ts","scripts":{"pretest":"eslint src","test":"NODE_OPTIONS=--experimental-vm-modules npx jest","build":"rm -r lib && tsc && cp src/index.css lib","start":"webpack-dev-server --open","postversion":"git push && git push --tags && npm publish","prepublish":"build"},"repository":{"type":"git","url":"git+ssh://git@github.com/jcable/react-tiny-editor.git"},"keywords":["tiny","editor","wysiwyg","html","react","javascript"],"author":{"name":"jcable"},"license":"MIT","bugs":{"url":"https://github.com/jcable/react-tiny-editor/issues"},"devDependencies":{"@testing-library/jest-dom":"^6.1.2","@testing-library/react":"^14.0.0","@types/react":"^18.2.21","@types/sanitize-html":"^2.9.0","css-loader":"^6.8.1","eslint":"^8.48.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-react":"^7.33.2","jest":"^29.6.4","jest-environment-jsdom":"^29.6.4","react":"^18.2.0","react-dom":"^18.2.0","style-loader":"^3.3.3","ts-jest":"^29.1.1","ts-loader":"^9.4.4","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"dependencies":{"@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0"},"optionalDependencies":{"sanitize-html":"^2.11.0"},"_id":"@ogauk/react-tiny-editor@0.1.11","gitHead":"38541380650b38d66625ed5de866427acccb4140","homepage":"https://github.com/jcable/react-tiny-editor#readme","_nodeVersion":"16.20.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-gRkjYmHYolw1mI+I1hVd/D2Zt5FAK5QGuvq6+q8M2jqYegriNeWZ7HZSfQuonmifJ1cZtAXU1X8Pmbzj0L3ZUQ==","shasum":"a5ffebddc2ced3419d03b330d6c18d76774c4cbb","tarball":"https://registry.npmjs.org/@ogauk/react-tiny-editor/-/react-tiny-editor-0.1.11.tgz","fileCount":41,"unpackedSize":29510,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECtrUxdZFabhJS7ah7HD1KLgoqaia6Iti8WcQTZQcwXAiEAgeeec8tC/fkZIO5heKGaQOQi0idhk2SIwn3H4VYmN58="}]},"_npmUser":{"name":"jcable","email":"julian.cable@yahoo.com"},"directories":{},"maintainers":[{"name":"jcable","email":"julian.cable@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-tiny-editor_0.1.11_1693597383781_0.2926014427370758"},"_hasShrinkwrap":false},"0.1.12":{"name":"@ogauk/react-tiny-editor","version":"0.1.12","description":"A tiny HTML rich text editor for React","type":"module","main":"index.js","types":"lib/index.d.ts","scripts":{"pretest":"eslint src","test":"NODE_OPTIONS=--experimental-vm-modules npx jest","build":"rm -r lib && tsc && cp src/index.css lib","start":"webpack-dev-server --open","postversion":"git push && git push --tags && npm publish","prepublish":"build"},"repository":{"type":"git","url":"git+ssh://git@github.com/jcable/react-tiny-editor.git"},"keywords":["tiny","editor","wysiwyg","html","react","javascript"],"author":{"name":"jcable"},"license":"MIT","bugs":{"url":"https://github.com/jcable/react-tiny-editor/issues"},"devDependencies":{"@testing-library/jest-dom":"^6.1.2","@testing-library/react":"^14.0.0","@types/react":"^18.2.21","@types/sanitize-html":"^2.9.0","css-loader":"^6.8.1","eslint":"^8.48.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-react":"^7.33.2","jest":"^29.6.4","jest-environment-jsdom":"^29.6.4","react":"^18.2.0","react-dom":"^18.2.0","style-loader":"^3.3.3","ts-jest":"^29.1.1","ts-loader":"^9.4.4","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"dependencies":{"@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0"},"optionalDependencies":{"sanitize-html":"^2.11.0"},"_id":"@ogauk/react-tiny-editor@0.1.12","gitHead":"0e79dac42562b60a1132d21faf5eedd6c6465ca7","homepage":"https://github.com/jcable/react-tiny-editor#readme","_nodeVersion":"16.20.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-fV/iDOEAmyoo5DK4VUxmB4D8TDfRLdsIn9wz7Q/Jw3DozUBIc/BiuskCEGwzsGGipgh3KDxYpsFGVgyvqXw05A==","shasum":"9068a962f27b7ca356b877db61074b8a553bb286","tarball":"https://registry.npmjs.org/@ogauk/react-tiny-editor/-/react-tiny-editor-0.1.12.tgz","fileCount":41,"unpackedSize":29473,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBPSbLP/codd45uEAfZT+TCYW9Nus8b1wfZHkpv4jRrMAiAiyqT0DxJ2Pk7xt3kBjcoBoZleDoBWcDx5EyyfG/fzEw=="}]},"_npmUser":{"name":"jcable","email":"julian.cable@yahoo.com"},"directories":{},"maintainers":[{"name":"jcable","email":"julian.cable@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-tiny-editor_0.1.12_1693598487965_0.06024220613223141"},"_hasShrinkwrap":false},"0.1.13":{"name":"@ogauk/react-tiny-editor","version":"0.1.13","description":"A tiny HTML rich text editor for React","type":"module","main":"index.js","types":"lib/index.d.ts","scripts":{"pretest":"eslint src","test":"NODE_OPTIONS=--experimental-vm-modules npx jest","build":"rm -r lib && tsc && cp src/index.css lib","start":"webpack-dev-server --open","postversion":"git push && git push --tags && npm publish","prepublish":"build"},"repository":{"type":"git","url":"git+ssh://git@github.com/jcable/react-tiny-editor.git"},"keywords":["tiny","editor","wysiwyg","html","react","javascript"],"author":{"name":"jcable"},"license":"MIT","bugs":{"url":"https://github.com/jcable/react-tiny-editor/issues"},"devDependencies":{"@testing-library/jest-dom":"^6.1.2","@testing-library/react":"^14.0.0","@types/react":"^18.2.21","@types/sanitize-html":"^2.9.0","css-loader":"^6.8.1","eslint":"^8.48.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-react":"^7.33.2","jest":"^29.6.4","jest-environment-jsdom":"^29.6.4","react":"^18.2.0","react-dom":"^18.2.0","style-loader":"^3.3.3","ts-jest":"^29.1.1","ts-loader":"^9.4.4","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"dependencies":{"@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","sanitize-html":"^2.11.0"},"optionalDependencies":{"sanitize-html":"^2.11.0"},"gitHead":"36fd0dcf392a49ada66a2556d2f671e8f3ac7fe5","homepage":"https://github.com/jcable/react-tiny-editor#readme","_id":"@ogauk/react-tiny-editor@0.1.13","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-nJGrjI3Ny7dm9CjLs5fvTICd+0sKBHWgPhrR7BvIL+Sm60Dc9sPONHOsA3WZbeCbAyLC2z8vwm2fCAp5F9Z2OQ==","shasum":"fdd63bbdd0db024b4bee4b19a5e3453b8ae8a491","tarball":"https://registry.npmjs.org/@ogauk/react-tiny-editor/-/react-tiny-editor-0.1.13.tgz","fileCount":41,"unpackedSize":29473,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJAVPprby7Ux+QQx+RyWtLuYrxXGLUJ0NPr33+blovmQIgJPuZoNhECnXEXHOisU6YelLGsMQ9lLHiBR6i+6uLpjk="}]},"_npmUser":{"name":"jcable","email":"julian.cable@yahoo.com"},"directories":{},"maintainers":[{"name":"jcable","email":"julian.cable@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-tiny-editor_0.1.13_1703330681712_0.9714826286720384"},"_hasShrinkwrap":false},"0.1.14":{"name":"@ogauk/react-tiny-editor","version":"0.1.14","description":"A tiny HTML rich text editor for React","type":"module","main":"index.js","types":"lib/index.d.ts","scripts":{"pretest":"eslint src","test":"NODE_OPTIONS=--experimental-vm-modules npx jest","build":"rm -r lib && tsc && cp src/index.css lib","start":"webpack-dev-server --open","postversion":"git push && git push --tags && npm publish","prepublish":"build"},"repository":{"type":"git","url":"git+ssh://git@github.com/jcable/react-tiny-editor.git"},"keywords":["tiny","editor","wysiwyg","html","react","javascript"],"author":{"name":"jcable"},"license":"MIT","bugs":{"url":"https://github.com/jcable/react-tiny-editor/issues"},"devDependencies":{"@testing-library/jest-dom":"^6.1.2","@testing-library/react":"^14.0.0","@types/react":"^18.2.21","@types/sanitize-html":"^2.9.0","css-loader":"^6.8.1","eslint":"^8.48.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-react":"^7.33.2","jest":"^29.6.4","jest-environment-jsdom":"^29.6.4","react":"^18.2.0","react-dom":"^18.2.0","style-loader":"^3.3.3","ts-jest":"^29.1.1","ts-loader":"^9.4.4","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"dependencies":{"@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","sanitize-html":"^2.11.0"},"optionalDependencies":{"sanitize-html":"^2.11.0"},"gitHead":"e1aa51e5abddbfcc781092a56e88824f0626b84f","homepage":"https://github.com/jcable/react-tiny-editor#readme","_id":"@ogauk/react-tiny-editor@0.1.14","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-X/mnDrMBvaDnS1AmCi+QenKlJ6pRmUv/zw7/+pXsEDXzxHEMmtNzmL164qOOLtAPGWrfWS2kX8I16G1+0uAENg==","shasum":"4400d4cadfbdfb7bd462ecc24eedd3dbf9c1b4df","tarball":"https://registry.npmjs.org/@ogauk/react-tiny-editor/-/react-tiny-editor-0.1.14.tgz","fileCount":41,"unpackedSize":29473,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRXp0a0OV+4vfGiu91B1KPfkJY72bRCcPqvy6D1ySq1AiEA6EHHAvFnyq13gvDQIBEGBZzZVIQDYxivS4eLIwHxs7g="}]},"_npmUser":{"name":"jcable","email":"julian.cable@yahoo.com"},"directories":{},"maintainers":[{"name":"jcable","email":"julian.cable@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-tiny-editor_0.1.14_1703331184516_0.023772459725597272"},"_hasShrinkwrap":false},"0.1.15":{"name":"@ogauk/react-tiny-editor","version":"0.1.15","description":"A tiny HTML rich text editor for React","type":"module","main":"index.js","types":"lib/index.d.ts","scripts":{"pretest":"eslint src","test":"NODE_OPTIONS=--experimental-vm-modules npx jest","build":"rm -rf lib && tsc && cp src/index.css lib","start":"webpack-dev-server --open","postversion":"git push && git push --tags && npm publish","prepublish":"build"},"repository":{"type":"git","url":"git+ssh://git@github.com/jcable/react-tiny-editor.git"},"keywords":["tiny","editor","wysiwyg","html","react","javascript"],"author":{"name":"jcable"},"license":"MIT","bugs":{"url":"https://github.com/jcable/react-tiny-editor/issues"},"devDependencies":{"@testing-library/jest-dom":"^6.1.2","@testing-library/react":"^14.0.0","@types/react":"^18.2.21","@types/sanitize-html":"^2.9.0","css-loader":"^6.8.1","eslint":"^8.48.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-react":"^7.33.2","jest":"^29.6.4","jest-environment-jsdom":"^29.6.4","react":"^18.2.0","react-dom":"^18.2.0","style-loader":"^3.3.3","ts-jest":"^29.1.1","ts-loader":"^9.4.4","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"dependencies":{"@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","sanitize-html":"^2.11.0"},"optionalDependencies":{"sanitize-html":"^2.11.0"},"gitHead":"5896be644d57774bd0e13378d8f0d864c341ae49","homepage":"https://github.com/jcable/react-tiny-editor#readme","_id":"@ogauk/react-tiny-editor@0.1.15","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-S9Au10NgfsvIqHETfpPknn7Siorbf+F4OSy1+P/WrJgamvrylUYSIjBQ+5ZU2HcDk4Fg9I2Lc8+ZxupBlMtOrg==","shasum":"415e14ad7e5099b3d5587ec82e104eca307c1b85","tarball":"https://registry.npmjs.org/@ogauk/react-tiny-editor/-/react-tiny-editor-0.1.15.tgz","fileCount":41,"unpackedSize":29740,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBqyjFVbHQMSroNGZucKYYH+gCubZ8KNd/NoXWk53ESPAiEA89Ft44lM3BsV4lQqFV1AUeBc+4o3N1U+ZKJHpPG3eyA="}]},"_npmUser":{"name":"jcable","email":"julian.cable@yahoo.com"},"directories":{},"maintainers":[{"name":"jcable","email":"julian.cable@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-tiny-editor_0.1.15_1703331615435_0.10044121375856685"},"_hasShrinkwrap":false},"0.1.16":{"name":"@ogauk/react-tiny-editor","version":"0.1.16","description":"A tiny HTML rich text editor for React","type":"module","main":"index.js","types":"lib/index.d.ts","scripts":{"pretest":"eslint src","test":"NODE_OPTIONS=--experimental-vm-modules npx jest","build":"rm -rf lib && tsc && cp src/index.css lib","start":"webpack-dev-server --open","postversion":"git push && git push --tags && npm publish","prepublish":"build"},"repository":{"type":"git","url":"git+ssh://git@github.com/jcable/react-tiny-editor.git"},"keywords":["tiny","editor","wysiwyg","html","react","javascript"],"author":{"name":"jcable"},"license":"MIT","bugs":{"url":"https://github.com/jcable/react-tiny-editor/issues"},"devDependencies":{"@testing-library/jest-dom":"^6.1.2","@testing-library/react":"^14.0.0","@types/react":"^18.2.21","@types/sanitize-html":"^2.9.0","css-loader":"^6.8.1","eslint":"^8.48.0","eslint-config-standard-with-typescript":"^39.0.0","eslint-plugin-react":"^7.33.2","jest":"^29.6.4","jest-environment-jsdom":"^29.6.4","react":"^18.2.0","react-dom":"^18.2.0","style-loader":"^3.3.3","ts-jest":"^29.1.1","ts-loader":"^9.4.4","webpack-cli":"^5.1.4","webpack-dev-server":"^4.15.1"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"dependencies":{"@fortawesome/fontawesome-svg-core":"^6.4.2","@fortawesome/free-solid-svg-icons":"^6.4.2","@fortawesome/react-fontawesome":"^0.2.0","sanitize-html":"^2.11.0"},"optionalDependencies":{"sanitize-html":"^2.11.0"},"gitHead":"f2e49cf8ab7ccf8794365988d7026993c9178715","homepage":"https://github.com/jcable/react-tiny-editor#readme","_id":"@ogauk/react-tiny-editor@0.1.16","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-cufPVwMA3dCaANoYyLpWO/e8JLE3YEJbFC75Z9sQLnZhQU/QMrIlp6NbRZHX9smZoX4YM4E58nxab7wuLtplZg==","shasum":"db1d41eb07c406b7a99a766746bc94d7b154f4c9","tarball":"https://registry.npmjs.org/@ogauk/react-tiny-editor/-/react-tiny-editor-0.1.16.tgz","fileCount":41,"unpackedSize":29756,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcEgxlw04PStDKZawt6DWtGP/hIT9236r/a2afJyNEiwIhALZpD0Br7WaLbVgwdpEiuG22IrfMO7Z+MnpLQ/ubJBh4"}]},"_npmUser":{"name":"jcable","email":"julian.cable@yahoo.com"},"directories":{},"maintainers":[{"name":"jcable","email":"julian.cable@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-tiny-editor_0.1.16_1703332366556_0.2220561155513363"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-28T22:10:19.136Z","0.1.0":"2023-08-28T22:10:19.618Z","modified":"2023-12-23T11:52:46.937Z","0.1.1":"2023-08-29T05:23:21.580Z","0.1.2":"2023-08-29T05:57:48.261Z","0.1.3":"2023-08-29T06:02:39.864Z","0.1.4":"2023-08-29T06:07:52.411Z","0.1.5":"2023-08-29T06:08:56.252Z","0.1.6":"2023-08-29T07:42:39.932Z","0.1.7":"2023-08-29T21:12:13.779Z","0.1.8":"2023-08-30T19:52:11.088Z","0.1.9":"2023-08-31T07:01:48.720Z","0.1.10":"2023-08-31T07:27:41.992Z","0.1.11":"2023-09-01T19:43:03.970Z","0.1.12":"2023-09-01T20:01:28.121Z","0.1.13":"2023-12-23T11:24:41.924Z","0.1.14":"2023-12-23T11:33:04.711Z","0.1.15":"2023-12-23T11:40:15.627Z","0.1.16":"2023-12-23T11:52:46.726Z"},"maintainers":[{"name":"jcable","email":"julian.cable@yahoo.com"}],"description":"A tiny HTML rich text editor for React","homepage":"https://github.com/jcable/react-tiny-editor#readme","keywords":["tiny","editor","wysiwyg","html","react","javascript"],"repository":{"type":"git","url":"git+ssh://git@github.com/jcable/react-tiny-editor.git"},"author":{"name":"jcable"},"bugs":{"url":"https://github.com/jcable/react-tiny-editor/issues"},"license":"MIT","readme":"# react-tiny-editor\n\nA tiny HTML rich text editor for React, based on Fabian Vilers tiny-editor and Ophir Lojkine's react-contenteditable.\n\nA complete rewrite of the above projects as React functional components.\n\nThe toolbar is based directly on tiny-editor. The ContentEditable component is a subset of react-contenteditable hard-coded to use a DIV element.\n\n## How to install\n\n```\nnpm install @ogauk/react-tiny-editor\n```\n\n## How to use (Typescript)\n\n```\nimport React, { type FC } from 'react'\nimport ReactTinyEditor from '@ogauk/react-tiny-editor'\n\nconst App: FC<null> = () => {\n  return <ReactTinyEditor html='A <b>test</b> message' onChange={(html) => { console.log('app on change', html) }}/>\n}\n\nexport default App\n```\nIf you want a smaller bundle and don't mind sanitising the html yourself you can:\n\nimport { ReactReallyTinyEditor as ReactTinyEditor } from '@ogauk/react-tiny-editor'\n\n## How to use (Javascript)\n\n```\nimport React from 'react'\nimport ReactTinyEditor from '@ogauk/react-tiny-editor'\n\nexport default function App() {\n  return <ReactTinyEditor html='A <b>test</b> message' onChange={(html) => { console.log('app on change', html) }}/>\n}\n```\n\n### Options\n\n  The toolbar can be customised. The default toolbar is:\n\n    style font bold italic underline | justifyleft justifycenter justifyright | bullist numlist outdent indent | clear\n\n  Pass a string to the options property of the editor to re-order or omit some tool items or to add/remove separators\n\n  You can also pass an onBlur callback to the editor.\n","readmeFilename":"README.md"}