[TYPO3-english] Problem with lib.parseFunc_RTE

Attilio attilio.monti at gmail.com
Wed Mar 20 12:10:48 CET 2013


Hi all,

i try to set a new attribute (onclick) on tag "A" with lib.parseFunc_RTE, i scripting this:

lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.nonWrappedTag = A
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.A.onclick= javascriptfunc(this);

but this script works fine only with the first tag "A" in the RTE content
eg.:

in RTE I insert this link:
<a href="#">link 1</a>
<a href="#">link 2</a>

in FE the HTML is:

<a href="#" onclick="javascriptfunc(this)">link 1</a>
<a href="#">link 2</a>

Thanks

Attilio


More information about the TYPO3-english mailing list