zazama/privacyembed

This package is abandoned and no longer maintained. The author suggests using the wakeworks/privacyembed package instead.

An iframe embedding module that asks for consent before loading the content

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 2

Language:JavaScript

Type:silverstripe-vendormodule

1.0.2 2022-05-17 08:59 UTC

This package is auto-updated.

Last update: 2023-02-15 21:59:01 UTC


README

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