---
title: "Problem mit dem RTE"
url: "https://www.typo3.net/d/60834-problem-mit-dem-rte"
source: "typo3.net"
tags: ["Backend","RTE & CKEditor","Frage"]
created: "2007-04-11"
last_reply: "2007-04-17"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Problem mit dem RTE

Backend › RTE & CKEditor · 1 Antwort · gestartet 2007-04-11

## Eröffnungsbeitrag

**thedon** · 2007-04-11 · [Beitrag #1](https://www.typo3.net/d/60834-problem-mit-dem-rte/1)

Hallo,

ihr habt das Problem ja schon x-mal gehört. Links werden im <link />-tag ausgegeben. Also ich benutzt Version 3.8.

Alle Versuche das Problem zulösen schlugen fehl. Egal, ich suchte weiter nach einer Lösung. Nun habe ich die Datei "class.t3lib_parsehtml_proc.php" im Ordner t3lib gefunden. Hier wird der <a>-tag zum <link />-tag umgewandelt. In Zeile 615 steht die Anweisung:

```php
					// Check options:
				$attribArray_copy = $attribArray;
				unset($attribArray_copy['href']);
				unset($attribArray_copy['target']);
				unset($attribArray_copy['class']);
				if ($attribArray_copy['rteerror'])	{	// Unset "rteerror" and "style" attributes if "rteerror" is set!
					unset($attribArray_copy['style']);
					unset($attribArray_copy['rteerror']);
				}
				if (!count($attribArray_copy))	{	// Only if href, target and class are the only attributes, we can alter the link!
						// Creating the TYPO3 pseudo-tag "<link />" for the link (includes href/url, target and class attributes):
					$bTag='<link info="" urlattribarraytarget="" attribarray="" target:attribarrayclass="" -:attribarrayclass="" class:="" />';
					$eTag='</link>';
					$blockSplit[$k] = $bTag.$this->TS_links_db($this->removeFirstAndLastTag($blockSplit[$k])).$eTag;
				} else {	// ... otherwise store the link as a-tag.
						// Unsetting 'rtekeep' attribute if that had been set.
					unset($attribArray['rtekeep']);
						// If the url is local, remove url-prefix
					$siteURL = $this->siteUrl();
					if ($siteURL && substr($attribArray['href'],0,strlen($siteURL))==$siteURL)	{
						$attribArray['href']=$this->relBackPath.substr($attribArray['href'],strlen($siteURL));
					}
					$bTag='<a t3lib_div::implodeattributesattribarray1="">';
					$eTag='</a>';
					$blockSplit[$k] = $bTag.$this->TS_links_db($this->removeFirstAndLastTag($blockSplit[$k])).$eTag;
				}
			}
		}
		return implode('',$blockSplit);
	}
```

Nach meinem Verständniss müsste man doch nur "unset($attribArray_copy['target']);" und "unset($attribArray_copy['class']);" ausklammern, da er dann doch nur noch überprüft ob der href-Befehl vorhanden ist. Klammere ich diesen Befehl aus, passiert nichts bzw. er setzt weiter links im <link />-tag.

Habt ihr eine Ahnung was man noch tun kann?

## Antworten

### [#2](https://www.typo3.net/d/60834-problem-mit-dem-rte/2) · thedon · 2007-04-17

Moin moin,

ich hab eine Lösung gefunden. Hier für alle die das gleiche Problem haben:

Man muss im Verzeichnis "t3lib" und in "typo3/t3lib" die Datei "class.t3lib_parsehtml_proc.php" bearbeiten. In dieser Datei steht in ca. Zeile 615:

```php
	// Check options:
				$attribArray_copy = $attribArray;
				unset($attribArray_copy['href']);
				unset($attribArray_copy['target']);
				unset($attribArray_copy['class']);
```

ändert das in:

```php
					// Check options:
				$attribArray_copy = $attribArray;
				unset($attribArray_copy['href']);
```

Dann wird nicht mehr überprüft, ob mindestens drei Attribute im A-Tag gesetzt sind.

Hoffe jemand kann das gebrauchen.

Gruß thedon

---

Quelle: „Problem mit dem RTE“, typo3.net, https://www.typo3.net/d/60834-problem-mit-dem-rte
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
