{"_id":"@aaruhi/editor","_rev":"3-a6b0dd7473c1bc878ea5a060814a4235","name":"@aaruhi/editor","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@aaruhi/editor","version":"1.0.0","_id":"@aaruhi/editor@1.0.0","maintainers":[{"name":"aaruhi","email":"ashutoshmaurya22346@gmail.com"}],"dist":{"shasum":"2b1e7c5b51a6c97576f0cdb1635f38dc7d5119b4","tarball":"https://registry.npmjs.org/@aaruhi/editor/-/editor-1.0.0.tgz","fileCount":6,"integrity":"sha512-H6rJdNcn2esqZggofGWosKIfw1id+XE6MxkUL9rHa+SSfP81OsRTL8N9CqLKnQFWaqeRoyMUxkoYdtFI6I9r1Q==","signatures":[{"sig":"MEUCIQCgQFqsqYRgtpkXCwCBdSPo6sL9aL163e3qwHYfUvWv7AIgRF6frOh7C03ODZN4AZKvpjtl+PGB/eiO5H3l7pPV02g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":151837},"main":"dist/aaruhi-editor.umd.js","style":"dist/editor.css","types":"dist/index.d.ts","module":"dist/aaruhi-editor.es.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/aaruhi-editor.es.js","require":"./dist/aaruhi-editor.umd.js"},"./dist/editor.css":"./dist/editor.css"},"scripts":{"dev":"vite build --watch","build":"vite build","preview":"vite preview"},"_npmUser":{"name":"aaruhi","email":"ashutoshmaurya22346@gmail.com"},"_npmVersion":"10.8.2","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.8","@vitejs/plugin-react":"^4.3.3"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/editor_1.0.0_1775536135968_0.9464978737210752","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@aaruhi/editor","version":"1.1.1","keywords":["rich-text-editor","wysiwyg","react-editor","format-painter","text-editor","editor","aaruhi","react-editor"],"author":{"name":"Ashutosh Maurya","email":"ashutoshmaurya22346@gmail.com"},"license":"MIT","_id":"@aaruhi/editor@1.1.1","maintainers":[{"name":"aaruhi","email":"ashutoshmaurya22346@gmail.com"}],"dist":{"shasum":"75f5836d1444218f04aaadcc35ca95a8df8fc92c","tarball":"https://registry.npmjs.org/@aaruhi/editor/-/editor-1.1.1.tgz","fileCount":7,"integrity":"sha512-S2sTjpmr2KjFFADdGNB5eDOaoPURHegiAyc3AY9SAsEJZeQ5g4TMqcZLuXYnl+NygdMLwA4Mb7bYXc1wHCxtNg==","signatures":[{"sig":"MEUCIBmyTFpuEQEbz8UvDICFeT4aiDG+YGiuL0VZxlTdz+CPAiEA25SmhjB8WPr+3HXGsxf434rTe9ly3CYpVrC0OiCeFgg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":209369},"main":"dist/aaruhi-editor.umd.js","style":"dist/editor.css","types":"dist/index.d.ts","module":"dist/aaruhi-editor.es.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/aaruhi-editor.es.js","require":"./dist/aaruhi-editor.umd.js"},"./dist/editor.css":"./dist/editor.css"},"scripts":{"dev":"vite build --watch","build":"vite build","preview":"vite preview"},"_npmUser":{"name":"aaruhi","email":"ashutoshmaurya22346@gmail.com"},"_npmVersion":"10.8.2","description":" Professional React Rich Text Editor with Format Painter, Colors, Font Sizes","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"vite":"^5.4.8","@vitejs/plugin-react":"^4.3.3"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/editor_1.1.1_1775906793013_0.35157915078090607","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@aaruhi/editor","version":"1.1.2","license":"MIT","description":" Professional React Rich Text Editor with Format Painter, Colors, Font Sizes","author":{"name":"Ashutosh Maurya","email":"ashutoshmaurya22346@gmail.com"},"main":"dist/aaruhi-editor.umd.js","module":"dist/aaruhi-editor.es.js","types":"dist/index.d.ts","style":"dist/editor.css","keywords":["rich-text-editor","wysiwyg","react-editor","format-painter","text-editor","editor","aaruhi","react-editor"],"exports":{".":{"import":"./dist/aaruhi-editor.es.js","require":"./dist/aaruhi-editor.umd.js","types":"./dist/index.d.ts"},"./dist/editor.css":"./dist/editor.css"},"scripts":{"dev":"vite build --watch","build":"vite build","preview":"vite preview"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0","react-dom":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"},"devDependencies":{"@vitejs/plugin-react":"^4.3.3","react":"^18.3.1","react-dom":"^18.3.1","vite":"^5.4.8"},"_id":"@aaruhi/editor@1.1.2","_nodeVersion":"20.19.5","_npmVersion":"11.17.0","dist":{"integrity":"sha512-iP4S5Qfgz1/Tx9bSRPm64Q1mBXjKyovHUREzwT9Y+MvbYWvRBkuuxsWxTBTRAzC1AqObY2SyTvCJbYnvmDIxUg==","shasum":"bc75edb22dd4bcb8b2fe181059d34a7746e4b8c7","tarball":"https://registry.npmjs.org/@aaruhi/editor/-/editor-1.1.2.tgz","fileCount":8,"unpackedSize":152119,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDZCgZuihGo95sS0LyJTU4eGvWiY1aRuXYcJfRWa6Q0iwIhANL+903z9xvppYvmtEieVaEZcdNSBmKg2jMpC58odpAn"}]},"_npmUser":{"name":"aaruhi","email":"ashutoshmaurya22346@gmail.com"},"directories":{},"maintainers":[{"name":"aaruhi","email":"ashutoshmaurya22346@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/editor_1.1.2_1787338550198_0.826532489847883"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-07T04:28:55.853Z","modified":"2026-08-21T18:55:50.518Z","1.0.0":"2026-04-07T04:28:56.123Z","1.1.1":"2026-04-11T11:26:33.155Z","1.1.2":"2026-08-21T18:55:50.368Z"},"author":{"name":"Ashutosh Maurya","email":"ashutoshmaurya22346@gmail.com"},"license":"MIT","keywords":["rich-text-editor","wysiwyg","react-editor","format-painter","text-editor","editor","aaruhi","react-editor"],"description":" Professional React Rich Text Editor with Format Painter, Colors, Font Sizes","maintainers":[{"name":"aaruhi","email":"ashutoshmaurya22346@gmail.com"}],"readme":"\r\n#  Aaruhi Editor\r\n\r\nA powerful and customizable **React Rich Text Editor** inspired by MS Word.\r\nBuilt using modern web APIs (Range + Selection) for better control and flexibility.\r\n\r\n---\r\n\r\n##  Features\r\n\r\n*  Rich Text Editing (Bold, Italic, Underline)\r\n*  Text Color & Background Highlight\r\n*  Font Size Control\r\n*  Format Painter (Copy & Apply Styles)\r\n*  Undo / Redo Support\r\n*  Keyboard Shortcuts (Ctrl + B, I, U)\r\n*  Fast & Lightweight (No heavy dependencies)\r\n\r\n---\r\n\r\n##  Installation\r\n\r\n```bash\r\nnpm install @aaruhi/editor\r\n```\r\n\r\n---\r\n\r\n##  Usage\r\n## method 1\r\n```jsx\r\nimport React from \"react\";\r\nimport Editor  from \"@aaruhi/editor\";\r\nimport '@aaruhi/editor/dist/editor.css';\r\n\r\nfunction App() {\r\n  return (\r\n    <div>\r\n      <Editor />\r\n    </div>\r\n  );\r\n}\r\n\r\nexport default App;\r\n```\r\n---\r\n## method 2\r\n```jsx\r\nimport React from \"react\";\r\nimport AaruhiEditor  from \"@aaruhi/editor\";\r\nimport '@aaruhi/editor/dist/editor.css';\r\n\r\nfunction App() {\r\n   return (\r\n     <div>\r\n       <AaruhiEditor />\r\n     </div>\r\n   );\r\n}\r\nexport default App;\r\n\r\n\r\n## 🧠 How It Works\r\n\r\nAaruhi Editor uses:\r\n\r\n* **Selection API** → to detect selected text\r\n* **Range API** → to apply styles precisely\r\n* **Custom Span Wrapping** → for accurate formatting\r\n\r\nThis allows better control compared to traditional `execCommand`.\r\n\r\n---\r\n\r\n## 🎯 Commands Supported\r\n\r\n| Command   | Description       |\r\n| --------- | ----------------- |\r\n| bold      | Make text bold    |\r\n| italic    | Italic text       |\r\n| underline | Underline text    |\r\n| foreColor | Change text color |\r\n| backColor | Highlight text    |\r\n| fontSize  | Change font size  |\r\n\r\n---\r\n\r\n## Format Painter\r\n\r\nCopy styles from one text and apply them to another — just like MS Word.\r\n\r\n---\r\n\r\n## ⚙️ Customization\r\n\r\nYou can customize:\r\n\r\n* Editor size\r\n* Toolbar (Ribbon)\r\n* Styles & themes\r\n* Commands behavior\r\n\r\n---\r\n\r\n## Note\r\n\r\n* `document.execCommand` is partially used for compatibility\r\n* Future versions will fully migrate to modern APIs\r\n\r\n---\r\n\r\n## Future Scope\r\n\r\n*  Export to PDF / DOCX\r\n*  Advanced color picker\r\n* Smart formatting engine\r\n* Copy-paste clean HTML\r\n* Plugin system\r\n\r\n---\r\n\r\n##  Contributing\r\n\r\nContributions are welcome!\r\nFeel free to fork the repo and submit a pull request.\r\n\r\n---\r\n\r\n##  License\r\n\r\nMIT License © Ashutosh Maurya\r\n\r\n---\r\n\r\n##  Author\r\n\r\n**Ashutosh Maurya**\r\n\r\n---\r\n\r\n## Support\r\n\r\nIf you like this project, please give it a  on GitHub!\r\n\r\n>>>>>>> 0689998 (Initial commit - Aaruhi Editor)\r\n","readmeFilename":"README.md"}