Changing what the URL button in entry edit inserts

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Melanieofsydney
Regular
Posts: 21
Joined: Tue Mar 20, 2007 10:50 am

Changing what the URL button in entry edit inserts

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Changing what the URL button in entry edit inserts

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Melanieofsydney
Regular
Posts: 21
Joined: Tue Mar 20, 2007 10:50 am

Post by Melanieofsydney »

Thanks, the javascript one was all i needed.
Post Reply