teppokoivula/textformatter-iframe-embed
最新稳定版本:0.1.1
Composer 安装命令:
composer require teppokoivula/textformatter-iframe-embed
包简介
TextformatterIframeEmbed is a ProcessWire CMS/CMF module for embedding iframe elements into page content.
关键字:
README 文档
README
Once enabled, this textformatter looks for iframe embed URLs and converts those to HTML <iframe> elements. Works best with RTE (CKEditor, TinyMCE) inputs.
Note that URLs need to be the only content within a paragraph tag. You can use an absolute URL or a relative URL, but in the case of relative URLs the path must point to a file within /site/assets/files/:
<!-- valid --> <p>iframe/https://www.domain.tld/path/</p> <p>iframe//site/assets/files/1/example.pdf</p> <!-- invalid --> <p>iframe/Dude, where's my https://www.domain.tld/car/</p> <p>iframe/site/assets/files/1/example.pdf</p> <p>iframe//some/other/path/example.pdf</p>
Embed tag (default: iframe/) and iframe tag can be customized via module configuration settings. Default iframe tag is <iframe class="TextformatterIframeEmbed" src="{url}"></iframe>; {url} is used as a placeholder for the provided source URL.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MPL-2.0
- 更新时间: 2023-08-19