[TASK] EXT:form - Add HTML4 / HTML5 attributes for FILEUPLOAD to wizard 90/43790/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 15:28:41 +0000 (17:28 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 6 Oct 2015 21:05:16 +0000 (23:05 +0200)
Add new attributes to the wizard element FILEUPLOAD.

Resolves: #70345
Releases: master
Change-Id: Iafd5627c3557a5eed6ab2ff3520b24fca823312d
Reviewed-on: http://review.typo3.org/43790
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/FileuploadJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Fileupload.js

index 133bd98..fe27d14 100644 (file)
@@ -50,18 +50,30 @@ class FileuploadJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJs
         */
        protected $allowedAttributes = array(
                'accesskey',
-               'alt',
                'class',
+               'contenteditable',
+               'contextmenu',
                'dir',
-               'disabled',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
-               'name',
-               'size',
+               'spellcheck',
                'style',
                'tabindex',
                'title',
-               'type'
+               'translate',
+               /* element specific attributes */
+               'accept',
+               'autofocus',
+               'disabled',
+               'multiple',
+               'name',
+               'readonly',
+               'required',
+               'type',
+               'value'
        );
 
 }
index 90a42f0..9c65d00 100644 (file)
@@ -70,19 +70,31 @@ TYPO3.Form.Wizard.Elements.Basic.Fileupload = Ext.extend(TYPO3.Form.Wizard.Eleme
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       accesskey: '',
-                                       alt: '',
-                                       "class": '',
-                                       dir: '',
-                                       disabled: '',
-                                       id: '',
-                                       lang: '',
-                                       name: '',
-                                       size: '',
-                                       style: '',
-                                       tabindex: '',
-                                       title: '',
-                                       type: 'file'
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'accept': '',
+                                       'autofocus': '',
+                                       'disabled': '',
+                                       'multiple': '',
+                                       'name': '',
+                                       'readonly': '',
+                                       'required': '',
+                                       'type': 'file',
+                                       'value': ''
                                },
                                filters: {},
                                label: {