Skip to content

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

License

Notifications You must be signed in to change notification settings

wakeworks/PrivacyEmbed

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 ^5
  • silverstripe/admin ^2

For Silverstripe 4, check out version/branch 1 of the module.

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published