Project

General

Profile

Actions

Bug #75789

closed

RTE link inserter does no longer show styles

Added by Andreas Bigger over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2016-04-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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:

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

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

Checked with Firefox 38.7.1 and IE 11


Files

missing-style-dropdown.PNG (8.14 KB) missing-style-dropdown.PNG Andreas Bigger, 2016-04-19 16:59

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #74586: RTE default link style doesn't work correctlyClosedMarkus Klein2016-03-09

Actions
Is duplicate of TYPO3 Core - Bug #75548: RTE lacks dropdown content after updating to 6.2.21ClosedMarkus Klein2016-04-12

Actions
Actions

Also available in: Atom PDF