/PrivacyEmbed

A Silverstripe iframe embedding module that asks for consent before loading the content

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Privacy Embed for Silverstripe

Packagist Version GitHub

Introduction

Allows iframes to be embedded into TinyMCE in a way that asks users for permission before loading.

Requirements

  • silverstripe/framework ^4.0
  • silverstripe/admin ^1.0

This module was only tested on >= 4.9.

Installation

composer require wakeworks/privacyembed

Then dev/build?flush=1.

How does it work? / Setup

An icon will appear in TinyMCE which will open a modal with a textarea for the iframe.
The iframe will be parsed on insertion and its src will be renamed to data-privacy-embed-src.
This way, the iframe won't load until the user clicked the button which will be inserted into the frontend.

You can customize the text and image in your SiteConfig.

You can use $Host in your text

Screenshots

Screenshot Screenshot Screenshot