{"id":20770463,"url":"https://github.com/codemonauts/craft-redactor-nofollow","last_synced_at":"2025-04-30T13:45:51.663Z","repository":{"id":56980855,"uuid":"187020451","full_name":"codemonauts/craft-redactor-nofollow","owner":"codemonauts","description":"Craft CMS plugin to expand the Redactor's link module with nofollow relationship attribute.","archived":false,"fork":false,"pushed_at":"2022-12-14T16:17:58.000Z","size":21,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T13:45:46.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codemonauts.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-16T12:09:47.000Z","updated_at":"2023-12-10T02:09:34.000Z","dependencies_parsed_at":"2022-08-21T08:40:55.019Z","dependency_job_id":null,"html_url":"https://github.com/codemonauts/craft-redactor-nofollow","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-redactor-nofollow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-redactor-nofollow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-redactor-nofollow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-redactor-nofollow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemonauts","download_url":"https://codeload.github.com/codemonauts/craft-redactor-nofollow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251714080,"owners_count":21631642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-17T12:09:36.844Z","updated_at":"2025-04-30T13:45:51.620Z","avatar_url":"https://github.com/codemonauts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redactor nofollow link plugin for Craft CMS\n\n![Icon](resources/nofollow.png)\n\nPlugin to add a checkbox to Redactor's link module to add the ```rel=\"nofollow\"``` attribute to a link.\n\n## Background\n\nFor a lot of sites it is important to set links to ```rel=\"nofollow\"```. Redactor provides an option to set **all**links\nto *nofollow*. However, this is often not required and also not the usual practice in SEO. With this plugin it is\npossible to enable this attribute for every single link individual within the link's edit modal.\n\n## Requirements\n\n* Craft CMS \u003e= 4.0.0\n* Craft Redactor Plugin \u003e= 3.0.0\n\n## Installation\n\nOpen your terminal and go to your Craft project:\n\n``` shell\ncd /path/to/project\ncomposer require codemonauts/craft-redactor-nofollow\n./craft plugin/install nofollow\n```\n\nYou can also install the plugin via the Plugin Store in the Craft Control Panel.\n\n## Configuration\n\nAdd the new plugin to your Redactor config file:\n\n```json\n{\n  \"plugins\": [\n    \"nofollow\"\n  ]\n}\n```\n\nYou can configure whether the checkbox in the link dialog should be checked by default when adding a new link. Just add the following config to your Redactor config file:\n\n```json\n{\n  \"linkDefaultNoFollow\": true\n}\n```\n\nThe ```nofollow``` will be stripped in all Redactor fields by the HTMLPurifier, which is enabled by default. Instead of disabling the hole HTMLPurifier for a field, you should add the following line to the ```config/htmlpurifier/Default.json```:\n\n```json\n{\n  \"Attr.AllowedRel\": [\n    \"nofollow\"\n  ]\n}\n```\n\nWith ❤ by [codemonauts](https://codemonauts.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonauts%2Fcraft-redactor-nofollow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemonauts%2Fcraft-redactor-nofollow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonauts%2Fcraft-redactor-nofollow/lists"}