Re: Re: Text_Wiki link targets?

From: Date: Thu, 15 Mar 2007 00:12:25 +0000
Subject: Re: Re: Text_Wiki link targets?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26862@lists.php.net to get a copy of this message
On 3/14/07, bertrand Gugger <toggg@php.net> wrote:
Bonjour, Jocke Selin wrote: Hi, I'm trying to remove the target for the URLs generated by [http://example.com Example Link]. This WiKi markup code generates a link like this: ==== <a href="http://example.com" onclick="window.open(this.href, '_blank'); return false;">Example Link</a> ==== I'd like to remove the onClick element. Or is my only option to set it to "_self"? Try $wiki =& new Text_Wiki(...); $wiki->setRenderConf('Xhtml', 'Url', 'target', ''); this should remove any target attribute and this onclick popup, you should fall on the default target for <A> : "_self" see http://wiki.ciaweb.net/yawiki/index.php?area=Text_Wiki&page=MethodSetRenderConf http://wiki.ciaweb.net/yawiki/index.php?area=Text_Wiki&page=RuleUrl#toc2 In the last, this is a bit buggy as any non blank value will do the popup, why you have to set it to "". The code should be corrected as to not build it for "_self"
Fixed in CVS. Thanks for helping make PEAR better. In the future please create a bug in our bug system for any problems that you find.
... I'll do that in the next once I'm set back lead in Text_Wiki.
I don't trust you to be a responsible lead. Please submit bugs and patches if you wish to make changes to packages you don't have karma for. -- Justin Patrin

« previous php.pear.general (#26862) next »