Issue Bug Closed

#75789RTE link inserter does no longer show styles

Andreas Bigger 04/19/16, 16:59 updated 04/19/16, 17:07

Description

After the Update from TYPO3 6.2.19 to 6.2.21 (we skipped 6.2.20 here) in rtehtmlarea, inside the Popup for inserting links the dropdown for style selection does not work anymore (view attached image).

Strangely enough, all the needed code seems to be still there, but it seems to be escaped:

In my Firefox Webdeveloper Toolkit the respective row shows as such:




<select name="anchor_class" onchange="<br /> if (document.ltargetform.anchor_class) {<br /> document.ltargetform.anchor_class.value = document.ltargetform.anchor_class.options[document.ltargetform.anchor_class.selectedIndex].value;<br /> if (document.ltargetform.anchor_class.value &amp;&amp; HTMLArea.classesAnchorSetup) {<br /> for (var i = HTMLArea.classesAnchorSetup.length; --i >= 0;) {<br /> var anchorClass = HTMLArea.classesAnchorSetup[i];<br /> if (anchorClass['name'] document.ltargetform.anchor_class.value) {<br /> if (anchorClass['titleText'] &amp;&amp; document.ltargetform.anchor_title) {<br /> document.ltargetform.anchor_title.value = anchorClass['titleText'];<br /> document.getElementById('rtehtmlarea-browse-links-title-readonly').innerHTML = anchorClass['titleText'];<br /> browse_links_setTitle(anchorClass['titleText']);<br /> }<br /> if (anchorClass['target']) {<br /> if (document.ltargetform.ltarget) {<br /> document.ltargetform.ltarget.value = anchorClass['target'];<br /> }<br /> browse_links_setTarget(anchorClass['target']);<br /> } else if (document.ltargetform.ltarget &amp;&amp; document.getElementById('ltargetrow').style.display 'none') {<br /> // Reset target to default if field is not displayed and class has no configured target<br /> document.ltargetform.ltarget.value = '_self';<br /> browse_links_setTarget(document.ltargetform.ltarget.value);<br /> }<br /> break;<br /> }<br /> }<br /> }<br /> browse_links_setClass(document.ltargetform.anchor_class.value);<br /> }<br /> "><br> &lt;option value=""&gt;&lt;/option&gt;&lt;option selected="selected" value="external-link"&gt;external-link&lt;/option&gt;&lt;option value="internal-link"&gt;internal-link&lt;/option&gt;&lt;option value="bereichsstartseite-link"&gt;bereichsstartseite-link&lt;/option&gt;&lt;option value="anchor"&gt;anchor&lt;/option&gt;<br> </select>

—> i.e. in the JS ampersands looks as if escaped and the following <option>-Tag gets escaped as well.</option>

Checked with Firefox 38.7.1 and IE 11

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.