Project

General

Profile

Actions

Bug #61943

closed

Fix JavaScript error that prevents links to anchor tags in RTE

Added by Michael Schams over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2014-09-29
Due date:
% Done:

100%

Estimated time:
1.00 h
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

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).


Files

screenshot0001.png (31.4 KB) screenshot0001.png Michael Schams, 2014-09-29 11:48
screenshot0002.png (28.8 KB) screenshot0002.png Michael Schams, 2014-09-29 11:48
screenshot0003.png (38.6 KB) screenshot0003.png Michael Schams, 2014-09-29 11:48
screenshot0004.png (31.5 KB) screenshot0004.png Michael Schams, 2014-09-29 11:48

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #41413: link title got urlencoded in link-wizardClosed2012-09-27

Actions
Related to TYPO3 Core - Bug #61968: Revert #61943Closed2014-09-30

Actions
Actions

Also available in: Atom PDF