FCKeditor is an open source web visualization editor, because the software is small, easy to use, easy to be welcomed by everyone, many of the domestic CMS has adopted the FCK editor, recently a lot of netizens cloud habitat community reflects about FCK added hyperlinks can not be opened in a new window, you need another setting to be able to So, can you default the link to a new window?
The effect is as shown in the figure:
Open fckeditor\editor\dialog\fck_link.html
Find the Select label for Id= "Cmbtarget" and add Selected= "selected" Property
Copy Code code as follows:
<select id= "Cmbtarget" onchange= "settarget (this.value);" >
<option value= "" fcklang= "Dlggennotset" selected= "selected" ><not set></option>
<option value= "Frame" fcklang= "Dlglnktargetframe" ><frame></option>
<option value= "Popup" fcklang= "Dlglnktargetpopup" ><popup window></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>
Find the input label for id= "Txttargetframe" and add value= "_blank" property
Copy Code code as follows:
<input id= "Txttargetframe" style= "width:100%" type= "text" onkeyup= "Ontargetnamechange ();"
Onchange= "Ontargetnamechange ();" value= "_blank"/>
Save the file, upload and replace the original file, clear IE cache, try again.