Issue Bug Closed

#61943Fix JavaScript error that prevents links to anchor tags in RTE

Michael Schams 09/29/14, 11:48 updated 10/02/18, 11:50

Description

If you try to create a link to an anchor tag (<a name="..."></a>) in the RTE, a JavaScript errors prevents the creation of the link.

SyntaxError: missing ) after argument list
return link_typo3Page('11','#test';

How to reproduce:

  1. create/edit a “text” content element
  2. add two sentences
  3. make the second one an anchor tag (screenshot0001.png shows the HTML source code view)
  4. highlight one or two words in the first sentence
  5. click “insert link” icon (see screenshot0002.png)
  6. popup appears (see screenshot0003.png)
  7. click the little arrow to show content elements of a page (1)
  8. content elements of selected page appear right-hand-side
  9. select the anchor tag (‘test’) (2)
  10. JavaScript error appears (see screenshot0004.png)

As a consequence, no link is created.

It seems that this issue is a RTE issue. However, the bug is in EXT:recordlist (system extension).

Reviews 4