欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

FCKEditor超級鏈接默認新窗口打開的修改方法

 更新時間:2010年06月20日 20:31:33   作者:  
經(jīng)常在后臺編輯超鏈接的朋友,希望將頁面鏈接,默認是新窗口打開,因為這樣用戶體驗好點,所以將FCKEditor簡單的修改下。
Fckeditor是一款開源的WEB可視化編輯器,因為該軟件小巧、易用、方便受到大家的歡迎,國內(nèi)很多CMS都采用了FCK編輯器,最近有很多網(wǎng)友向腳本之家反映關(guān)于FCK添加的超級鏈接不能在新窗口中打開,需要另外設(shè)置才可以,那么,能不能將鏈接默認為新窗口呢?

效果如圖所示:

打開 fckeditor\editor\dialog\fck_link.html

查找 id="cmbTarget" 的 select 標(biāo)簽, 添加 selected=”selected” 屬性
復(fù)制代碼 代碼如下:

<select id="cmbTarget" onChange="SetTarget(this.value);">
<option value="" fckLang="DlgGenNotSet" selected="selected">&lt;not set&gt;</option>
<option value="frame" fckLang="DlgLnkTargetFrame">&lt;frame&gt;</option>
<option value="popup" fckLang="DlgLnkTargetPopup">&lt;popup window&gt;</option>
<option value="_blank" fckLang="DlgLnkTargetBlank" selected="selected">New Window (_blank)</option>
<option value="_top" fckLang="DlgLnkTargetTop">Topmost Window (_top)</option>
<option value="_self" fckLang="DlgLnkTargetSelf">Same Window (_self)</option>
<option value="_parent" fckLang="DlgLnkTargetParent">Parent Window (_parent)</option>
</select>

查找 id=”txtTargetFrame” 的 input 標(biāo)簽, 添加 value=”_blank” 屬性
復(fù)制代碼 代碼如下:

<input id="txtTargetFrame" style="WIDTH: 100%" type="text" onKeyUp="OnTargetNameChange();"
onchange="OnTargetNameChange();" value="_blank" />

保存文件,上傳替換原文件,清除IE緩存,再試試看。

相關(guān)文章

最新評論