我在Rich Editor中使用Activeadmin。 当我在编辑器的窗口中添加指向我的文本的链接时,我无法设置链接的打开方式 - 无论是在新选项卡还是新窗口中。
我了解Rich编辑器派生自CKEditor,某些功能被禁用,并且可以重新启用这些功能。 我也知道,这个特殊功能是在行中配置的
config.linkShowTargetTab = true我只是不确定在哪里准确地把它全局启用。
感谢您对此提出的任何建议。
I am using Activeadmin with Rich Editor. When I add a link to my text within the window of the editor i cannot set how the link is being opened - wether it is in a new tab or a new window ..
I understand that the Rich editor derives from CKEditor with certain features being disabled and that these features can be reenabled. Also I know, that this particular feature is set in the config by the line
config.linkShowTargetTab = trueI am just not sure on where to put it exactly so that it is enabled globally.
Thanks for any advice on this.
最满意答案
在gem source(lib / rich.rb)中,您可以看到@@ editor [:toolbar]中定义的默认按钮:
@@editor = { ... :removeDialogTabs => 'link:advanced;link:target', ...}
如果我删除“; link:target”,则Tab会显示在我的应用中。
In the gem source (lib/rich.rb) you can see the default buttons defined in @@editor[:toolbar]:
@@editor = { ... :removeDialogTabs => 'link:advanced;link:target', ...}
If I delete ";link:target" the Tab is shown in my app.
更多推荐
Rich,config,电脑培训,计算机培训,IT培训"/> <meta name="description"
发布评论