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.
For our sites we need all PDF links in the page text to use pdfjs. Here's a patch that creates a Drupal text filter.
To use, go to /config/content/formats/ and turn on the filter "Open PDF links with pdf.js"
If you're using file_entity links like ckeditor_link_filter makes, this filter must be placed after CKEditor Link Filter .
Comment | File | Size | Author |
---|---|---|---|
#2 | pdf-text_filter-2867904-2.patch | 1.89 KB | bwaindwain |
Comments
Comment #2
bwaindwain CreditAttribution: bwaindwain as a volunteer commented