如何覆盖 stfalcon/tinymce-bundle 的 document_base_url 配置?
How to overwrite document_base_url configuration of stfalcon/tinymce-bundle?
这是代码
stfalcon_tinymce:
include_jquery: true
tinymce_jquery: true
selector: ".tinymce"
language: %locale%
theme:
advanced:
relative_urls: false
remove_script_host: false
convert_urls: true
document_base_url: 'http://yourdomain.com'
plugins:
- "advlist autolink lists link image charmap print preview hr anchor pagebreak"
- "searchreplace wordcount visualblocks visualchars code fullscreen"
- "insertdatetime media nonbreaking save table contextmenu directionality"
- "emoticons template paste textcolor"
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
toolbar2: "print preview media | forecolor backcolor emoticons | stfalcon | example"
image_advtab: true
我有子域系统,我想覆盖document_base_url:“http://yourdomain.com' where 'http://yourdomain.com”将是动态的。
找到解决方案
{{ tinymce_init({
theme: {
'mailtemplate':
{
'document_base_url': baseUrlName
}
}
})}}
baseUrlName 将来自控制器
这是代码
stfalcon_tinymce:
include_jquery: true
tinymce_jquery: true
selector: ".tinymce"
language: %locale%
theme:
advanced:
relative_urls: false
remove_script_host: false
convert_urls: true
document_base_url: 'http://yourdomain.com'
plugins:
- "advlist autolink lists link image charmap print preview hr anchor pagebreak"
- "searchreplace wordcount visualblocks visualchars code fullscreen"
- "insertdatetime media nonbreaking save table contextmenu directionality"
- "emoticons template paste textcolor"
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
toolbar2: "print preview media | forecolor backcolor emoticons | stfalcon | example"
image_advtab: true
我有子域系统,我想覆盖document_base_url:“http://yourdomain.com' where 'http://yourdomain.com”将是动态的。
找到解决方案
{{ tinymce_init({
theme: {
'mailtemplate':
{
'document_base_url': baseUrlName
}
}
})}}
baseUrlName 将来自控制器