我的博客有这个控制器,我在那里使用 tiny_mce。
我的应用程序由部落组成,属于_to 部落设计,这个部落设计有一个列 clandesign.tinymce_skin 博客belong_to 部落
我的问题是,即使我使用此控制器中的设置:current_user.nick,我也只能得到:
//<![CDATA[
tinyMCE.init({
editor_selector : 'mceEditor',
language : 'en',
mode : 'textareas',
plugins : "spellchecker,pagebreak,layer,table,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
skin : '{current_user.nick}',
spellchecker_rpc_url : '/blogs/spellchecker',
theme : 'advanced',
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "search,replace,bullist,numlist,outdent,indent,blockquote,undo,redo,link,unlink,image,cleanup,preview,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,hr,removeformat,visualaid,sub,sup,charmap,iespell,media,advhr",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,styleprops,spellchecker",
theme_advanced_resizing : true,
theme_advanced_statusbar_location : 'bottom',
theme_advanced_toolbar_align : 'left',
theme_advanced_toolbar_location : 'top'
});
//]]>
皮肤:'{current_user.nick}'
感觉就像我尝试了 #{}、"、'、: 的每种组合,并且有 2 个选项,我得到一个未定义的方法错误或 tiny_mce 只是将字符串加载为皮肤名称
也许有人可以帮助/给我替换 current_user.nick 的代码。最后我想有像 find_clan.clandesign.tinymce_skin 这样的东西