[TASK] EXT:form - Add HTML4 / HTML5 attributes for TEXTAREA to wizard 81/43781/5
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 14:49:26 +0000 (16:49 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 6 Oct 2015 20:23:38 +0000 (22:23 +0200)
Add new attributes to the wizard element TEXTAREA.

Resolves: #70340
Releases: master
Change-Id: Ib6b21a15418950215c6846e45516475de77b770e
Reviewed-on: http://review.typo3.org/43781
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/form/Classes/Domain/Model/Json/TextareaJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Textarea.js

index bf436a7..d719cbd 100644 (file)
@@ -52,18 +52,35 @@ class TextareaJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJson
        protected $allowedAttributes = array(
                'accesskey',
                'class',
-               'cols',
+               'contenteditable',
+               'contextmenu',
                'dir',
-               'disabled',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
+               'spellcheck',
+               'style',
+               'tabindex',
+               'title',
+               'translate',
+               /* element specific attributes */
+               'autofocus',
+               'cols',
+               'disabled',
+               'inputmode',
+               'maxlength',
+               'minlength',
                'name',
                'placeholder',
                'readonly',
+               'required',
                'rows',
-               'style',
-               'tabindex',
-               'title'
+               'selectionDirection',
+               'selectionEnd',
+               'selectionStart',
+               'wrap'
        );
 
 }
index 8b3d917..e1df261 100644 (file)
@@ -70,20 +70,37 @@ TYPO3.Form.Wizard.Elements.Basic.Textarea = Ext.extend(TYPO3.Form.Wizard.Element
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       accesskey: '',
-                                       "class": '',
-                                       cols: '40',
-                                       dir: '',
-                                       disabled: '',
-                                       id: '',
-                                       lang: '',
-                                       name: '',
-                                       placeholder: '',
-                                       readonly: '',
-                                       rows: '5',
-                                       style: '',
-                                       tabindex: '',
-                                       title: ''
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'autofocus': '',
+                                       'cols': '40',
+                                       'disabled': '',
+                                       'inputmode': '',
+                                       'maxlength': '',
+                                       'minlength': '',
+                                       'name': '',
+                                       'placeholder': '',
+                                       'readonly': '',
+                                       'required': '',
+                                       'rows': '5',
+                                       'selectionDirection': '',
+                                       'selectionEnd': '',
+                                       'selectionStart': '',
+                                       'wrap': ''
                                },
                                data: '',
                                filters: {},