FCK Editor "new window"

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/9/2008 8:59:46 AM
Gravatar
Total Posts 48

FCK Editor "new window"

Hi there,

I'm looking for the feature to open links, that are created in fckeditor, in a new window. I found the following post that says it has been implemented using the "rel" attribute as "target" has been depreciated, but I can't find any info on how to use it. Can any point me in the right direction?

As a quick fix I've manually added back in "dialog.AddTab( 'Target', FCKLang.DlgLnkTargetTab ) ;" in the "fck_link.js" file, which gives access to the "target" attribute, however I'd lke to do it the advised way.

Thanks for any help,

Reiss

6/9/2008 2:41:49 PM
Gravatar
Total Posts 18439

Re: FCK Editor "new window"

There may be some setting for fckeditor to tell it not to enforce strict xhtml which might allow it to use the target attribute though the content will be invaldi as far as the w3c validator is concerned. In the post you linked I was talking about the links module feature not links directly created in fckeditor. For that feature I implemented support for new windows using the onclick event of the link and a little javascript like this:

onclick="window.open(this.href,'_blank');return false;"

You could do that also using the source view of the editor though its rather awkward for non technical users.

Myself, I prefer to follow the standards and not open in new windows but instead train my users that they can be and should be in control over opening new windows. All they have to do is right click the link and they get an option to open in a new window or new tab. This is the reason they deprecated the target attribute is because all browsers support opening links in new windows and its better to empower users to be in control rather than taking control away by opening windows for them automatically.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.