close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Anchors in HTML Editor putting target="_blank" on every anchor link!

Thread began 5/25/2010 1:23 pm by sandy170299 | Last modified 5/27/2010 1:51 pm by Jason Byrnes | 1685 views | 10 replies |

sandy170299

Anchors in HTML Editor putting target="_blank" on every anchor link!

One of my clients is inserting anchors into his HTML editor and he's doing it correctly. However, it's putting a target="_blank" tag on every anchor! I went into his admin area and tried it myself and the exact same thing is happening. Why is a target="_blank" appearing on every anchor link?

Sign in to reply to this post

neilo

Hiya Sandy,

That is unusual, - does this happen even when you specify '_self' or '_parent' in the dialogue box? (See image attached).

When you look at the editor instance in 'Source' view (if you have that as part of your menu group) does it show your selection correctly - i.e. '<p><a href="#testanchor" target="_self">testlink</a></p>'?

Sign in to reply to this post

sandy170299

There is no option to specify a target when choosing "Link to anchor in the text." But, yes, it is putting target="_blank" there as a default. I can make this go away, of course, but my client is not savvy enough to do this on his own, nor will he want to have to go into the code.

When I view source, this is what I see: <a target="_blank" href="#top">

Sign in to reply to this post

neilo

Hi Sandy,

Yes - I see what you mean.

I have not come accross that, because I just use insert link, and enter a hash (#) followed by the name of the anchor. (You don't need to select Protocol <other> - it will do this automatically)

That would be a work-around until someone posts a solution.

Sign in to reply to this post

sandy170299

It is very strange that an anchor should default to a new window. Doesn't make sense to me.... Okay - I'll offer the client the workaround. Thanks!

Sign in to reply to this post

sandy170299

Please keep me updated as to when a solution will be found for this, okay?

Sign in to reply to this post

Jason ByrnesWebAssist

the only way I have been able to recreate this behavior is to open the link dialog box, Go to the target tab, an select Blank for the list, then back to Link Info and change the Link type to Link to Anchor in the text.

When you go to the target tab, is Blank selected by default?

the default target can be set in the fckconfig.js file ion the HTMLEditor folder.

find the following line:
FCKConfig.DefaultLinkTarget = '' ;


and change it to:
FCKConfig.DefaultLinkTarget = '_self' ;

Sign in to reply to this post

sandy170299

This is only happening with bookmarks - not external links. Once I select <other> there is no longer an option to specify a target. My client is not savvy enough to go into the code and change this on his own.

Sign in to reply to this post

Jason ByrnesWebAssist

I understand that.

What I was trying to say is:
I cannot reproduce the error unless I follow these steps:
1) Click the Link button in the toolbar

2) Click on the Target Tab, and set the target to _blank

3) Go back to the Link Info tab and change the Link Type to Link to anchor in the text.

In other words, if I dont change the target on the target tab, before changing the link type, the links are created with the target set to self.

did you try the change for the default target setting I suggested?

Sign in to reply to this post

sandy170299

Jason, I understand what you mean now. I will just have to tell my client to check his Target BEFORE he enters the link. Thanks!

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...