Main navigation
Product navigation
Main content
CKEditor 4
Overview
Demo
Accessibility Checker
Add-ons
Documentation
Download
Pricing
More
Home
WYSIWYG Editors
CKEditor 4
CKEditor 5
Image upload
CKFinder
Easy Image
Collaboration
Comments
New
Track changes
New
Collaborative editing
Pricing
Case studies
New
Documentation
Help center
Blog
Contact us
The forum operates in
read-only
mode. Please head to
StackOverflow
for support.
Forums
CKEditor
FCKeditor 2
Last post
Mon, 09/14/2009 - 16:50
#1
scoobiest
Joined:
18/11/2007
Posts:
12
Set link default target to _blank
Hi,
Does anyone know of a way to set links to be added with the target attribute set to _blank by default?
Many thanks.
Mark
Tue, 09/15/2009 - 07:27
#2
goatwriter
Joined:
15/09/2009
Posts:
4
Re: Set link default target to _blank
I would really like this too. It was in the fckeditor but not this one, which is a shame.
I'd also like LinkBrowser and LinkUpload back too.
Fri, 09/18/2009 - 13:39
#3
scoobiest
Joined:
18/11/2007
Posts:
12
Re: Set link default target to _blank
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/DefaultLinkTarget
Tue, 09/22/2009 - 05:50
#4
goatwriter
Joined:
15/09/2009
Posts:
4
Re: Set link default target to _blank
Yep - would be nice to have it in the CKEditor too.
Thu, 10/29/2009 - 19:19
#5
laurin1
Joined:
12/05/2009
Posts:
9
Re: Set link default target to _blank
This is only for the Link dialog box. Is there a way to do it for ALL links?
Mon, 08/09/2010 - 09:28
#6
romanegloo
Joined:
09/08/2010
Posts:
1
Re: Set link default target to _blank
To set the default target to '_blank', I have touched the following script a little. I'm using CKE.
/ckeditor/plugins/link/dialogs/link.js
Changes
label:a.lang.common.target,'default':
'notSet'
--> label:a.lang.common.target,'default':
'_blank'
label:a.lang.link.targetFrameName,'default':
''
--> label:a.lang.link.targetFrameName,'default':
'_blank'
If this approach does not work for any reason, please let me know.
Mon, 10/11/2010 - 15:21
#7
laurin1
Joined:
12/05/2009
Posts:
9
Re: Set link default target to _blank
Thanks, but that's for CKEditor. We still use FCKEditor.
Fri, 08/24/2012 - 14:00
#8
andvla
Joined:
24/08/2012
Posts:
1
Re: Set link default target to _blank
For CKEditor version 3.6.3:
Find:
label:D.target,'default':'notSet'
Replace by:
label:D.target,'default':'_blank'
Find:
label:E.targetFrameName,'default':''
Replace by:
label:E.targetFrameName,'default':'_blank'
Fri, 08/24/2012 - 14:26
#9
laurin1
Joined:
12/05/2009
Posts:
9
Re: Set link default target to _blank
We did finally move to CKEditor, but instead of worrying about how they were submitted, we just use HTMLPurifier to convert them all to blank on display.
Twitter
Facebook
Facebook
Instagram
Medium
Linkedin
GitHub
Arrow down
Phone
Menu
Close icon
Check
Re: Set link default target to _blank
I'd also like LinkBrowser and LinkUpload back too.
Re: Set link default target to _blank
http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/DefaultLinkTarget
Re: Set link default target to _blank
Re: Set link default target to _blank
Re: Set link default target to _blank
/ckeditor/plugins/link/dialogs/link.js
Changes
label:a.lang.common.target,'default':'notSet' --> label:a.lang.common.target,'default':'_blank'
label:a.lang.link.targetFrameName,'default':'' --> label:a.lang.link.targetFrameName,'default':'_blank'
If this approach does not work for any reason, please let me know.
Re: Set link default target to _blank
Re: Set link default target to _blank
Find: label:D.target,'default':'notSet'
Replace by: label:D.target,'default':'_blank'
Find: label:E.targetFrameName,'default':''
Replace by: label:E.targetFrameName,'default':'_blank'
Re: Set link default target to _blank