tiny_mce 皮肤的问题
我的博客有这个控制器,我在那里使用tiny_mce。
我的应用程序由部落组成,属于部落设计,这个部落设计有一个列 clandesign.tinymce_skin 博客属于_部落
我的问题是,即使我使用此控制器中的设置: 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'
});
//]]>
skin : '{current_user.nick}'
感觉就像我尝试了 #{}, ", ', : 的每种组合,有 2 个选项,我得到一个indefined 方法错误或 tiny_mce 只是加载字符串作为皮肤名称
也许有人可以帮助/给我替换 current_user.nick 的代码最后我想要有类似 find_clan.clandesign.tinymce_skin 的东西。
i having this controller for my blogs and im using tiny_mce there.
my app consists of clans, which belongs_to clandesigns, this clandesigns have a column clandesign.tinymce_skin
blogs belong_to clan
my problem is, even i use the setting in this controller: current_user.nick, i only 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 like i tried every combination of #{}, ", ', : and there are 2 options, i get an indefined method error or tiny_mce just loads the string as skin name
maybe someone can help/give me the code to replace current_user.nick . in the end i wanna have there something like find_clan.clandesign.tinymce_skin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要将皮肤放置在
/tiny_mce/themes/my_custom_skin
下,并使用theme: "my_custom_skin",
进行定位。You may want to place your skin under
/tiny_mce/themes/my_custom_skin
and adress it usingtheme: "my_custom_skin",
.