Target Attributes Filter
97 sites
Security covered
Drupal 9–11
This module allows administrators to control the `target` attribute for hyperlinks within specific text formats. You can choose the desired `target` value and specify whether it applies to all links, only internal links, or only external links.
Override the hyperlink target attribute using text formats. Choose the target attribute value and whether it applies to all links, only internal, or only external links.
Usage
- Download and install the module. Recommended install method is composer:
composer require drupal/target_attributes_filter - Go to the "Text formats and editors" configuration page (/admin/config/content/formats).
- Edit the desired text format.
- Enable the "Add target attribute to links" filter.
- Review available configurations under filter settings and save changes.
Depends on
Dependencies of the latest stable release
- filter Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.9 | Stable | 9–11 | Dec 10, 2024 |