{"id":15290747,"url":"https://github.com/swapnalshahil/richtext-editor","last_synced_at":"2026-02-24T21:32:56.301Z","repository":{"id":247439490,"uuid":"825824047","full_name":"swapnalshahil/richtext-editor","owner":"swapnalshahil","description":"npm package for Rich Text Editor","archived":false,"fork":false,"pushed_at":"2024-08-08T13:02:47.000Z","size":255,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T01:01:55.051Z","etag":null,"topics":["npm","npm-package","rich-text-editor","richtexteditor"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@eulersgamma/richtext-editor","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swapnalshahil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-08T15:11:38.000Z","updated_at":"2024-08-08T13:02:51.000Z","dependencies_parsed_at":"2025-03-30T14:25:01.284Z","dependency_job_id":"6387fdf1-c119-4370-a7d9-925ee7b9d258","html_url":"https://github.com/swapnalshahil/richtext-editor","commit_stats":null,"previous_names":["swapnalshahil/richtext-editor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swapnalshahil/richtext-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnalshahil%2Frichtext-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnalshahil%2Frichtext-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnalshahil%2Frichtext-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnalshahil%2Frichtext-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swapnalshahil","download_url":"https://codeload.github.com/swapnalshahil/richtext-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnalshahil%2Frichtext-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29801021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T21:02:39.706Z","status":"ssl_error","status_checked_at":"2026-02-24T21:02:21.834Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["npm","npm-package","rich-text-editor","richtexteditor"],"created_at":"2024-09-30T16:09:18.211Z","updated_at":"2026-02-24T21:32:56.280Z","avatar_url":"https://github.com/swapnalshahil.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌟 Rich Text Editor\n\nCreate stunning and customizable Rich Text Editors effortlessly with our `richtext-editor` npm package! Using `draft-js`, this package brings a robust and versatile text editing experience to your project.\n\n## ✨ Features\n\n- **Rich Text Formatting**: Bold, italic, underline, monospace, and heading levels H1 to H6.\n- **Hyperlinks**: Easily add and manage links.\n- **Media Uploads**: Upload images, videos, PDFs, docs, and .txt files.\n- **Mentions**: Integrate user mentions with the `@` character.\n\n## 📦 Installation\n\nGet started by installing the package via npm:\n\n```bash\nnpm install @eulersgamma/richtext-editor\n\n```\n\n# 🚀 Usage\n\nSeamlessly integrate the Rich Text Editor into your project:\n\n```bash\n  import { RichTextEditor } from '@eulersgamma/richtext-editor';\n\n  \u003cRichTextEditor\n    rawJson={rawJson}\n    mentionmembers={mentionmembers}\n    dropDownAPI={dropDownAPI}\n    onSubmit={onSubmit}\n    getUrlforMedia={getUrlforMedia}\n    style={{height: '140px'}}\n  /\u003e\n```\n\n## 🔧 Props\n\n- **rawJson**: The JSON structure of the editor's content, necessary for re-rendering and editing existing content.\n- **mentionmembers**: An array of objects representing mentioned users for a specific note ID.\n- **dropDownAPI**: A function `dropDownAPI(searchedText)` that returns an array of objects in the format \n  ```json\n  [\n    { \"label\": \"Thomas\", \"id\": \"12348287236824\" },\n    { \"label\": \"Swapnal\", \"id\": \"4398534858935935\" }\n  ]\n  ```\n- **onSubmit**: A callback function that receives an object containing\n  ```bash\n  {\n    \"html\": get the content in html format,\n    \"rawJson\": this rawJSON you will need to reconfigure Editor to edit pre-existing content,\n    \"mentions\": all the mentions,\n    \"text\": get raw text content\n  }\n  ```\n- **getUrlforMedia**: An API function for saving images in the database and providing URLs for the media.\n\n## 🛠️ Running Locally\n\nTo run the project locally and start development, follow these steps:\n\n### Install Dependencies\n\n```bash\n  npm install\n  # or\n  yarn\n```\n### Start the Project\n\n```bash\n  npm run start\n  # or\n  yarn start\n```\n## 🤝 Contributing\nWe welcome contributions! Feel free to open issues, submit pull requests, or suggest enhancements.\n\n## 📄 License\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/swapnalshahil/richtext-editor/blob/main/LICENSE) file for details.\n\nElevate your text editing experience with the richtext-editor! Enjoy rich features, easy integration, and endless possibilities.\n\n# Happy Coding! 🎉","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnalshahil%2Frichtext-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswapnalshahil%2Frichtext-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnalshahil%2Frichtext-editor/lists"}