Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

iframe_resizer

582 sites Security covered
View on drupal.org

Introduction

This module makes the iFrame Resizer javascript library available on your Drupal site. With it enabled, you can "keep same and cross domain iFrames sized to their content with support for window/content resizing, in page links, nesting and multiple iFrames."

In other words, if you're sick of seeing scrollbars on content iFramed into your site, this module will help you by dynamically resizing iFrames so that no scrollbars are present.

See the library's homepage for information on its capabilities: http://davidjbradshaw.github.io/iframe-resizer/

Requirements

This module requires the iFrame Resizer javascript library to be installed in Drupal's "libraries" directory.

Important Note: The 5.x library version is not supported as it requires a commercial license for commercial environments. Please use version 4.x.

To install the required library via composer (recommended):

  1. Enable usage of third-party libraries using composer, see here for an explanation.
  2. Run composer require bower-asset/iframe-resizer:^4

Installation

  1. Download the library or install via Composer (see Requirements above).
  2. If installing manually, unpack and rename the resulting directory "iframe-resizer" and place it in your Drupal installation's "libraries" directory.
  3. Install as you would normally install a contributed Drupal module. See: https://drupal.org/documentation/install/modules-themes/modules-7 for further information.
  4. If your site will be hosting resizable iFrames, the page your site will be iFraming in must include the content window file from the iFrame Resizer library (i.e. The iFramed page must contain the js/iframeResizer.contentWindow.js or js/iframeResizer.contentWindow.min.js file), and the 'This site will host resizable iFrames.' checkbox must be checked on your site's configuration page (admin/config/user-interface/iframe_resizer).
  5. If your site will be hosted within a resizable iFrame, the page hosting your site must include the main file from the iFrame Resizer library (i.e. The page iFraming in your site must contain the js/iframeResizer.js or js/iframeResizer.min.js file), and the 'Pages from this site will be hosted within iFrames that have been made resizable by the iFrame Resizer JavaScript library.' checkbox must be checked on your site's configuration page (admin/config/user-interface/iframe_resizer).

Configuration

  • Configure user permissions in Administration » People » Permissions:

    • Administer the iFrame Resizer module Users in roles with the "Administer the iFrame Resizer module" permission will be able to configure the behavior of the iFrame Resizer module.
  • Customize the module settings in Administration » Configuration » User interface » iFrame Resizer:

    • The iFrame Resizer Usage fieldset At least one of the checkboxes in this fieldset should be checked, otherwise the module won't do anything.

    • The Advanced Options for Hosting Resizable iFrames fieldset This fieldset will appear if the 'This site will host resizable iFrames.' checkbox is checked. It will allow you to override the library's default behavior.

    • The Advanced Options for Hosted Resizable iFrames fieldset This fieldset will appear if the 'Pages from this site will be hosted within iFrames that have been made resizable by the iFrame Resizer JavaScript library.' checkbox is checked. It will allow you to override the library's default behavior.

Activity

Total releases
2
First release
Feb 2026
Latest release
2 months ago
Release cadence
1 day
Stability
100% stable

Releases

Version Type Release date
2.0.6 Stable Feb 11, 2026
2.0.5 Stable Feb 10, 2026