wakeworks/privacyembed
最新稳定版本:3.0.0
Composer 安装命令:
composer require wakeworks/privacyembed
包简介
An iframe embedding module that asks for consent before loading the content
README 文档
README
Introduction
Allows iframes to be embedded into TinyMCE in a way that asks users for permission before loading.
Requirements
- silverstripe/framework ^6
- silverstripe/admin ^3
For Silverstripe 5, check out version/branch 2 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
统计信息
- 总下载量: 101
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-04-04