Re: Text_Wiki link targets?

From: Date: Wed, 14 Mar 2007 07:21:48 +0000
Subject: Re: Text_Wiki link targets?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26854@lists.php.net to get a copy of this message
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" ... I'll do that in the next once I'm set back lead in Text_Wiki. -- toggg

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