0
我已經在我的Symfony 2.8項目中安裝了TinymceBundle,它工作正常。但是,如果我用它來發送電子郵件和捆綁生成相關的網址。與TinymceBundle和Symfony2的鏈接中的絕對URL
我試圖
{{ tinymce_init({
relative_urls : false,
remove_script_host : false,
convert_urls : true,})}}
但這並沒有工作。
你能幫我嗎?
以下是我的配置:
stfalcon_tinymce:
selector: ".tinymce"
# Get current language from the parameters.ini
language: %locale%
# Custom buttons
tinymce_buttons:
stfalcon: # Id of the first button
title: "Stfalcon"
image: "http://stfalcon.com/favicon.ico"
theme:
# Simple theme: same as default theme
simple: ~
# Advanced theme with almost all enabled plugins
advanced:
plugins:
- "advlist lists link image charmap print preview hr pagebreak"
- "searchreplace wordcount visualblocks visualchars code fullscreen"
- "insertdatetime media nonbreaking save table contextmenu directionality"
- "emoticons paste textcolor"
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
toolbar2: "print preview | forecolor backcolor emoticons"
您是否使用了捆綁使用TinyMCE的?如果是這樣,請告訴我們哪一個。如果不是,那麼'tinymce_init'宏在做什麼? –
這就是TinyMCE如何集成到Symfony2項目中(在Twig視圖中)。 https://github.com/stfalcon/TinymceBundle 這個宏獲取ressources文件。 – Eraseth