Allows iframes to be embedded into TinyMCE in a way that asks users for permission before loading.
- silverstripe/framework ^5
- silverstripe/admin ^2
For Silverstripe 4, check out version/branch 1 of the module.
composer require wakeworks/privacyembed
Then dev/build?flush=1.
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