Iframe content not displaying

If you have configured JCE and Joomla correctly but the content of your iframe is not displaying, this may be due to new iframe sandbox restrictions introduced in JCE Pro 2.9.70.

Sandbox Attribute Overview

The sandbox attribute increases the security of the iframe tag by restricting script access to the content in the iframe. This attribute is enabled by default. Content from some Media Providers (YouTube, Vimeo, Dailymotion, Scribd, Slideshare, SoundCloud, Spotify, TED, Twitch, Google Maps, Codepen, Giphy, and Apple Music) is exempt, as are local URLs.

Solution Options

If the content of your iframe does not originate from a local source or from one of these Media Providers, then you need to either disable the sandbox restriction or set a specific exclusion for your iframe URL.

Disabling Sandbox Restrictions

  1. Navigate to Editor Profiles: Go to Editor Profiles -> Plugin Parameters -> Media Support.
  2. Set Sandbox IFrames Option to No: Change the "Sandbox IFrames" option to No. This action is only recommended where content is being created by trusted users.
Disable Iframe Sandbox
Disable the Iframe Sandbox attribute

Setting Sandbox URL Exclusions

  1. Go to Editor Profiles -> Plugin Parameters -> Media Support.
  2. Enter the URL in the empty field under the "Sandbox URL Exclusions" parameter.
  3. To Add or Remove URLs:
    - Click the Plus sign to create a new field for entering another URL.
    - Click the Trash button to remove an existing URL you have added.
Add an iframe sandbox exclusion
Add an iframe sandbox exclusion

By following these steps, you can ensure that your iframe content displays correctly while maintaining the security of your site.