Revert "[BUGFIX] Fix JavaScript error that prevents links to anchor tags in RTE"

This reverts commit 9bcebec002224bbc2a0dcd38cff032a14f2e075e.

The commit message of the original patch references a wrong
issue number and the target versions seem to be wrong too.

Change-Id: I9d910e6ad046d8864ef6c03594b632349f84b50b
Resolves: #61968
Reverts: #61943
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/33058
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>