Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Highlighter Tooltip

6 sites Security covered
View on drupal.org

This module allows users to highlight text on a webpage and generate a shareable link for that highlighted passage. It enables websites to offer a quote selection and sharing feature.

About

This module adds simple highlighter or quote selection share link functionality to a website.

Usage (not )

Connect the files ./dist/highlighter-tooltip.js and ./dist/highlighter-tooltip.css to your HTML.
The code is initialized with the following code after the DOM ready event, and attached to either the global window or drupalSettings objects.

HighlighterTooltipListener();

In Drupal, this is done for you. The code is connected to the drupalSettings object like so:

drupalSettings.highlighterTooltipListener = new HighlighterTooltipListener({
  ...settings,
});

Options

new HighlighterTooltipListener({
  // The error message when the text fails to copy
  context: // OPTIONAL:  Defaults to document.body
  // The copy to clipboard message
  shareMessage = // OPTIONAL:  This is the default
  // The success message when the text is coppied
  successMessage = // OPTIONAL:  This is the default
  // The error message when the text fails to copy
  errorMessage = // OPTIONAL:  This is the default
  // The URL for shortening URLs
  urlShortener: // OPTIONAL: The URL that returns a shortened version of the URL
});

Development

Run yarn to install the repository.
Run yarn dev to work on files within ./src.

Activity

Total releases
3
First release
Jan 2026
Latest release
1 week ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.14 Stable Jul 3, 2026
1.0.13 Stable Jul 3, 2026
1.0.12 Stable Jan 14, 2026