【发布时间】:2019-10-28 13:41:43
【问题描述】:
我希望我的 SilverStripe 网站上的所有外部链接都使用 https。
在 silverstripe 中,我正在使用 HTMLEditorFields,我想配置外部链接的选项。默认情况下,外部链接的链接字段将显示 http://
我想:
- 将此更改为 https://
- 创建一个 onBeforeWrite() 函数,我可以在其中检查链接中是否存在 https 协议(因为可以删除最初在文本字段中的 http://)
在不更改原始代码的情况下,我可以在哪里进行这些更改?我正在使用 SilverStripe 3。
【问题讨论】:
标签: php tinymce silverstripe