TextformatterIframeEmbed by Teppo

Converts iframe URLs prefixed with "iframe/" within paragraph tags into HTML iframe elements.

Textformatter Iframe Embed ProcessWire module


Once enabled, this textformatter looks for iframe embed URLs and converts those to HTML <iframe> elements. Works best with RTE (CKEditor, TinyMCE) inputs.

Note that URLs need to be the only content within a paragraph tag. You can use an absolute URL or a relative URL, but in the case of relative URLs the path must point to a file within /site/assets/files/:

<!-- valid -->
<p>iframe/https://www.domain.tld/path/</p>
<p>iframe//site/assets/files/1/example.pdf</p>

<!-- invalid -->
<p>iframe/Dude, where's my https://www.domain.tld/car/</p>
<p>iframe/site/assets/files/1/example.pdf</p>
<p>iframe//some/other/path/example.pdf</p>

Embed tag (default: iframe/) and iframe tag can be customized via module configuration settings. Default iframe tag is <iframe class="TextformatterIframeEmbed" src="{url}"></iframe>; {url} is used as a placeholder for the provided source URL.

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #520
    In the 520th issue of ProcessWire Weekly we'll check out some of the latest additions to the ProcessWire module's directory, share some highlights from the latest weekly update from Ryan, and more. Read on!
    Weekly.pw / 27 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits