[TYPO3-rte] how to eliminate alt="undefined" in link icons?
bernd wilke
t3ng at bernd-wilke.net
Fri Nov 8 08:59:35 CET 2013
Am 08.11.13 08:21, schrieb Stephan Bernhard:
> hi list
>
> nobody seems to answer?!
>
> another attempt to clear my situation (TYPO3 version 4.5.28, rtehtmlarea
> version 2.1.7).
>
> my page TS configuration:
>
> RTE.classesAnchor.internalLinkInNewWindow {
> class = internal-link-new-window
> type = page
> image = fileadmin/.../img/icons/internal_link_new_window.gif
> altText =
> titleText =
> }
>
> and here is a resulting test-link:
>
> <p>
> <a class="internal-link-new-window" target="_self"
> href="testseiten/textformatierung/">
> <img src="fileadmin/.../img/icons/internal_link_new_window.gif"
> alt="undefined"> interner Link neues Fenster
> </a>
> </p>
>
> my question is: why does rtehtmlarea replace an empty altText attribute
> with "undefined"?
>
> thanks again for any hint and help
'undefined' like 'undefined variable'?
I would expect some bug in the javascript where a variable is undefined
instead of empty. or better: where an attribute is written, so the value
is not filled at all.
maybe the condition tests the variable against empty string and the
access to the undefined variable returns (by automatic typecasting) the
string 'undefined' which is inserted afterwards.
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-project-rte
mailing list