{"id":16403662,"url":"https://github.com/coderdiaz/strapi-rich-text","last_synced_at":"2026-05-13T20:33:47.323Z","repository":{"id":172382350,"uuid":"648835792","full_name":"coderdiaz/strapi-rich-text","owner":"coderdiaz","description":"A Strapi v4 custom fields to add richness and emphasis to short and long texts.","archived":false,"fork":false,"pushed_at":"2023-06-07T18:03:37.000Z","size":662,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T23:56:31.877Z","etag":null,"topics":["react","strapi","strapi-cms","strapi-custom-field","strapi-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/coderdiaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-06-03T00:19:36.000Z","updated_at":"2024-05-15T15:46:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"1cff7041-dc61-4a84-ac3f-47a8dec313d6","html_url":"https://github.com/coderdiaz/strapi-rich-text","commit_stats":null,"previous_names":["coderdiaz/strapi-rich-text"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/coderdiaz/strapi-rich-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderdiaz%2Fstrapi-rich-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderdiaz%2Fstrapi-rich-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderdiaz%2Fstrapi-rich-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderdiaz%2Fstrapi-rich-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderdiaz","download_url":"https://codeload.github.com/coderdiaz/strapi-rich-text/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderdiaz%2Fstrapi-rich-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: 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":["react","strapi","strapi-cms","strapi-custom-field","strapi-plugin"],"created_at":"2024-10-11T05:49:59.715Z","updated_at":"2026-05-13T20:33:47.307Z","avatar_url":"https://github.com/coderdiaz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Strapi Rich Text\n\nA Strapi v4 custom fields to add richness and emphasis to short and long texts.\n\n![Blueprint](./blueprint.jpg)\n\n### ⚡ Features\n\n- [New] Custom fields: Enable capturing of a formatted text value (bold, clear formatting).\n\n### ✨ Install\n\n```sh\n# Using yarn\nyarn add strapi-rich-text\n\n# Or using npm\nnpm i -S strapi-rich-text\n```\n\nThen, you'll need to build your admin panel.\n\n```sh\n# Using yarn\nyarn build\n\n# Or using npm\nnpm run build\n```\n\n### Usage\n\nThe `value` is stored in `HTML` format by default, allowing it to be injected into any element. The HTML code is sanitized to ensure that no malicious JavaScript code can be executed, providing peace of mind.\n\n#### React/Next.js\n\n```tsx\n\u003ch1 dangerouslySetInnerHTML={{ __html: yourFieldName }} /\u003e\n\u003cdiv dangerouslySetInnerHTML={{ __html: yourFieldName }} /\u003e\n```\n\n#### Vue\n\n```html\n\u003ch1 v-html=\"yourFieldName\" /\u003e\n\u003cdiv v-html=\"yourFieldName\" /\u003e\n```\n\n#### Svelte\n\n```html\n\u003ch1\u003e{@html yourFieldName}\u003c/h1\u003e\n\u003cdiv\u003e{@html yourFieldName}\u003c/div\u003e\n```\n\n### Roadmap\n\n- [ ] Replace the deprecated `execCommand` method with the `Selection` and `Range` APIs for improved functionality.\n- [ ] Add new translations for the available languages in Strapi to ensure users have access to a localized version of the platform..\n- [ ] Add functionality to enable content to be saved in Markdown format..\n- [ ] Migrate to TypeScript.\n\n### How to contribute\n1. Clone the repository in the `src/plugins` folder within Strapi..\n2. Enable the plugin in your configuration file `config/plugins.js` by adding the next code.\n```js\nexport default {\n  'strapi-rich-text': {\n    enabled: true,\n    resolve: './src/plugins/strapi-rich-text',\n  },\n};\n```\n3. To test the plugin in development mode, you can use the `--watch-admin` command.\n```sh\nyarn develop --watch-admin\n```\n4. Head over to the URL and have a great time!\n\nCopyright \u0026copy; 2023 Javier Diaz Chamorro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderdiaz%2Fstrapi-rich-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderdiaz%2Fstrapi-rich-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderdiaz%2Fstrapi-rich-text/lists"}