1
我有这个控制器为我的博客和即时通讯使用tiny_mce那里。tiny_mce皮肤问题
我的应用程序由氏族,这belongs_to的clandesigns,这clandesigns有clandesign.tinymce_skin 博客列belong_to氏族
我的问题是,即使我用这个控制器的设置:CURRENT_USER。千钧一发之际,我只得到:
//<![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个选项,我得到一个indefined方法错误或tiny_mce只是用来加载字符串作为皮肤名称
也许有人可以帮助/给我代码来取代current_user.nick。最后我想在那里找到像find_clan.clandesign.tinymce_skin
亚工作,这个问题是,忘了在我的第一篇文章中提到它。博客嵌套在氏族之后。所以我想访问一个皮肤,该名称存储在clandesigns表中,属于特定设计 – malice 2011-02-24 14:49:51
sry,在这种情况下我不知道这是否可能 – Thariama 2011-02-24 15:46:44