[TYPO3-RTE] Click-enlarge image: Adding a css class to the link

Moreno Feltscher moreno.feltscher at gmail.com
Tue Oct 28 23:42:37 CET 2008


2008/10/25 Stanislas Rolland <typo3 at sjbr.ca>:
> Moreno Feltscher a écrit :
>>
>> On Sat, Oct 25, 2008 at 1:56 AM, Stanislas Rolland <typo3 at sjbr.ca> wrote:
>>>
>>> To what element do you want to apply the class? The enlarged image? the
>>> link that closes the window? the body of the window?
>>
>> None of them. I want to add the class to the a-tag which encloses the
>> small image in the content. Or in other words: the link you have to
>> click to enlarge the image should have this class.
>>
>> Would be brilliant if there is a way to do that!
>>
> This is not currently possible.
>
> Please try the attached patch and set:
>
> lib.parseFunc_RTE.tags.img.postUserFunc.stdWrap.addParams.class = enlargeImg
>
> Regards,
> Stanislas
>
>
> Index: typo3/sysext/rtehtmlarea/pi3/class.tx_rtehtmlarea_pi3.php
> ===================================================================
> --- typo3/sysext/rtehtmlarea/pi3/class.tx_rtehtmlarea_pi3.php   (révision
> 4349)
> +++ typo3/sysext/rtehtmlarea/pi3/class.tx_rtehtmlarea_pi3.php   (copie de
> travail)
> @@ -82,6 +82,7 @@
>                                if ($this->cObj->parameters['title'])
> $conf['imageLinkWrap.']['title'] = $this->cObj->parameters['title'];
>                                if ($this->cObj->parameters['alt'])
> $conf['imageLinkWrap.']['alt'] = $this->cObj->parameters['alt'];
>                                $content =
> $this->cObj->imageLinkWrap($content,$theImage,$conf['imageLinkWrap.']);
> +                               $content =
> $this->cObj->stdWrap($content,$conf['stdWrap.']);
>                        }
>                }
>                return $content;
>
> _______________________________________________
> TYPO3-project-rte mailing list
> TYPO3-project-rte at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-rte
>

Thanks for your patch!
I tested it and it didn't work.. I'm a bit confused because just by
reading I also thought it should solve my problem..

Anyway.. another idea, Stan? :)

Cheers


More information about the TYPO3-project-rte mailing list