[BUGFIX] RTE: Correct behavior on empty textfield in Firefox 09/49209/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 21 Jul 2016 12:14:31 +0000 (14:14 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 26 Jul 2016 14:50:53 +0000 (16:50 +0200)
commit16b8dd5bcb558146b260aff8938741459c649547
tree8fb642f2eb840ec75c901fe74a9f49b7e0644c66
parentc5a9f7ff38ecadf3ecd9865adac64e16d0dde6ff
[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: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/DOM/DOM.js
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/DOM/Selection.js
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/BlockElements.js
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/DefinitionList.js
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/MicrodataSchema.js