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.
Ask your assistant about Target Attributes Filter
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.