[BUGFIX] Fix "Enable tab" for textareas inside inline elements 30/35430/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 13 Dec 2014 19:07:03 +0000 (20:07 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 14 Dec 2014 19:51:39 +0000 (20:51 +0100)
If a field is configured in the TCA by using
"'defaultExtras' => 'fixed-font : enable-tab'", the textarea
behaves different (pressing the tab produces a tab).

Since inline elements use AJAX, the js method which changes the behaviour
of the textarea needs to be reapplied.

Resolves: #33731
Releases: master, 6.2
Change-Id: Idbab5092f20675c9b912b80299059a8a0d05c3cb
Reviewed-on: http://review.typo3.org/35430
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Element/InlineElement.php

index 280108d..99b5e8b 100644 (file)
@@ -1155,6 +1155,8 @@ class InlineElement {
                if ($this->fObj->extJSCODE) {
                        $jsonArray['scriptCall'][] = $this->fObj->extJSCODE;
                }
+               // activate "enable tabs" for textareas
+               $jsonArray['scriptCall'][] = 'changeTextareaElements();';
        }
 
        /**