FCKEditor里面添加链接默认在新窗口打开
在 1KG.org 上添加 FCKEditor 之后用户添加链接, 需要自己设置链接的打开方式, 但是对用户来说多了两三步操作, 不爽!
今天搜索了一下解决, 比想象的简单, 山寨方式搞定之:
- 打开 fckeditor\editor\dialog\fck_link.html
- 查找 id=”cmbTarget” 的 select 标签, 添加 selected=”selected” 属性
- 查找 id=”txtTargetFrame” 的 input 标签, 添加 value=”_blank” 属性
完成!
Tags: fckeditor
This entry was posted
on Monday, April 27th, 2009 at 9:01 am and is filed under Ruby and Rails.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.