ruby on rails - Problems with tiny_mce skins -


i having controller blogs , im using tiny_mce there.

my app consists of clans, belongs_to clandesigns, clandesigns have column clandesign.tinymce_skin blogs belong_to clan

http://pastie.org/1599354

my problem is, use setting in controller: current_user.nick, get:

//<![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'  }); //]]> 

skin : '{current_user.nick}'

it feels tried every combination of #{}, ", ', : , there 2 options, indefined method error or tiny_mce loads string skin name

maybe can help/give me code replace current_user.nick . in end wanna have there find_clan.clandesign.tinymce_skin

you may want place skin under /tiny_mce/themes/my_custom_skin , adress using theme: "my_custom_skin",.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -