Topic: CKEditor link targets

Hi

Has anyone been able to successfully change the CKEditor default link target window to _blank so when you click the add link button, enter an URL and move to the select target, _blank is already selected as default?

If so please post your method.

I have changed the following in \core\ckeditor\plugins\link\dialogs\links.js

type:'select',id:'linkTargetType',label:D.target,'default':'notSet'
to
type:'select',id:'linkTargetType',label:D.target,'default':'_blank'

and
type:'text',id:'linkTargetName',label:E.targetFrameName,'default':''
to
{type:'text',id:'linkTargetName',label:E.targetFrameName,'default':'_blank'

and
[D.targetNew,'notSet']
to
[D.targetNew,'_blank']

as recommended elsewhere but this does not work in CuteNews - the default link target remains <notSet>


Any help would be greatly appreciated.

Rgds

2 (edited by 2013-08-28 10:11:24)

Re: CKEditor link targets

Config.DefaultLinkTarget = '_blank'   was implemented in Fckeditor but not in ckeditor.
If it was you would need to add the change in
cutenews/skins/base_skin/addnews/index_cke.tpl
not the .js file.

(I have tested and it does not work)

Re: CKEditor link targets

Not fully tested but when I changed
D.target,'default':'notSet'
to D.target,'default':'_blank'
It did work.

4 (edited by 2013-09-01 01:19:25)

Re: CKEditor link targets

Not fully tested but when I changed
D.target,'default':'notSet'
to D.target,'default':'_blank'
It did work.


<strike>
Thanks for your response Damoor - still doesn't work for me with the targets set as above.

I can't see any likely place to add changes in the template file...</strike>

Most strange - as my Preview button never worked I changed the code 'preview_hmtl' to 'preview_html' to see if it made any difference.

It didn't - the Preview still doesn't function but when I opened up the admin panel to test it, I found the link default target was showing as '_blank'

..... mysterious
Rgds
K

Re: CKEditor link targets

<strike>
Thanks for your response Damoor - still doesn't work for me with the targets set as above.

I can't see any likely place to add changes in the template file...</strike>

Most strange - as my Preview button never worked I changed the code 'preview_hmtl' to 'preview_html' to see if it made any difference.

It didn't - the Preview still doesn't function but when I opened up the admin panel to test it, I found the link default target was showing as '_blank'

..... mysterious
Rgds
K

Managed now to set default target to _blank.

News Preview still does not function though.