tiny_mce 皮肤的问题

发布于 2024-10-18 14:20:00 字数 1629 浏览 1 评论 0原文

我的博客有这个控制器,我在那里使用tiny_mce。

我的应用程序由部落组成,属于部落设计,这个部落设计有一个列 clandesign.tinymce_skin 博客属于_部落

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'

});
//]]>

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

http://pastie.org/1599354

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不疑不惑不回忆 2024-10-25 14:20:00

您可能需要将皮肤放置在 /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 using theme: "my_custom_skin",.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文