Page 1 of 1

Changing what the URL button in entry edit inserts

Posted: Wed Apr 18, 2007 2:50 am
by Melanieofsydney
I want to alter the code that is automatically put in when you use the URL button for making a link within an entry. I want it to also put in target="_blank" as generally I want the links launched in new windows or tabs depending on how peoples browsers are set up.

I don't know which file i need to edit to whack this part into it. Could someone please tell me?

Thanks.

Re: Changing what the URL button in entry edit inserts

Posted: Wed Apr 18, 2007 10:14 am
by garvinhicking
Hi!

That code can be found in the Javascript file "serendipity_editor.js". Search for "<a" or "href" to get close to it. There are multiple occurences, also the links for images are there.

Also, normal link insertion code should be found in include/functions_entries_admin.inc.php, search for "wysiwyg" that should get you close to it.

HTH,
Garvin

Posted: Fri Apr 20, 2007 8:53 pm
by Melanieofsydney
Thanks, the javascript one was all i needed.