kinglozzer/htmleditorscripts
最新稳定版本:1.0.1
Composer 安装命令:
composer require kinglozzer/htmleditorscripts
包简介
Enable <script> tags in SilverStripe’s HtmlEditorField
README 文档
README
Enable <script> tags in SilverStripe’s HtmlEditorField. An implementation of this PR to enable this functionality in 3.1.
Installation
composer require kinglozzer/htmleditorscripts
No extra setup is needed as this module adds <script> tags to extended_valid_elements.
Notes
- Only set up to work with the default CMS
HtmlEditorConfiginstance. Copy the approach in_config.phpto enable it in other config instances; - Prevents other
editor.onSaveContentplugin events firing: as we can’t remove the SilverStripe event that strips the<script>tags (as we don’t have a variable to reference ined.onSaveContent.remove()), we have to simply stop other events from running.
统计信息
- 总下载量: 1.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-04-29