[wp-hackers] small change to link editor in post editor
travis at travisnorthcutt.com
Wed Feb 2 19:24:41 UTC 2011
This also has the advantage of not overriding link behavior when it is
explicitly set to open in the current window. Using JS to do this would
override this behavior, wouldn't it?
On Wed, Feb 2, 2011 at 11:52 AM, Chris Williams <chris at clwill.com> wrote:
> I just put: <base target='_blank'/> in the <head> element of the site, and
> then open in new tab/window is the default behavior for all links. You
> have to explicitly turn it the other way to get it to not open a new link.
> Works like a charm, no JS involved.
> On 2/2/11 9:14 AM, "Rich Pedley" <elfin at elfden.co.uk> wrote:
> >On 02/02/2011 16:44, Andrew Gray wrote:
> >> All,
> >> One of my clients is trying to change the default behavior of the
> >> editor.
> >> Here is their request "All I am wanting is to have you pre-set any
> >> hyperlinks to open in a new window. In other words, instead of
> >> having the default target set to "Not set" like it currently is,
> >> please have it default to "Open Link a New Window" so that we do
> >> not have to make that extra step every time we hyperlink text"
> >> Is this possible with a plugin or do I have to hack the core.
> >wouldn't this be better achieved by some jQuery to open all links
> >within the content area in a new window?
> >then you don't have to worry about what they enter.
> >Though I assume you have already told them why it is a bad idea?
> >wp-hackers mailing list
> >wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers