Skip to content
Snippets Groups Projects
Commit 16b8dd5b authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Jigal van Hemert
Browse files

[BUGFIX] RTE: Correct behavior on empty textfield in Firefox

With Firefox, the RTE produces several JavaScript errors if the textfield
is empty. The issue is that on Firefox it's tried to access the parent
node of the html tag which is nonsense.

Some regular expressions and an additional 'undefined' check are added
to fix this wrong behavior.

Resolves: #77191
Releases: master, 7.6
Change-Id: I617bdb6415c0468894aee08101c9d26cb790a077
Reviewed-on: https://review.typo3.org/49209


Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: default avatarJigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: default avatarJigal van Hemert <jigal.van.hemert@typo3.org>
parent c5a9f7ff
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment