1

私はブログ用にこのコントローラーを持っており、そこでtiny_mceを使用しています。

私のアプリは、クランデザインに属するクランで構成されています。このクランデザインには、クランデザインの列があります。

http://pastie.org/1599354

私の問題は、このコントローラーで設定を使用しても、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 のようなものが欲しい

4

1 に答える 1