Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Supporting organizations:
Project information
- Module categories: Accessibility, Content Editing Experience, Content Display
- 21 sites report using this module
- Created by robphillips on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
1.0.7
released 10 July 2023
Works with Drupal: ^9 || ^10
✓ Recommended by the project’s maintainer.
Install: