FCKeditor hyperlink default New Window open modification Method _ Web page Editor

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.