[TASK] EXT:form - Add HTML4 / HTML5 attributes for BUTTON to wizard 79/43779/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 14:32:01 +0000 (16:32 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 7 Oct 2015 09:55:12 +0000 (11:55 +0200)
Add new attributes to the wizard element BUTTON.

Resolves: #70338
Releases: master
Change-Id: I504e6fd3b6890fda9d2563c58a4f850d4ca80cd2
Reviewed-on: http://review.typo3.org/43779
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/ButtonJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Button.js

index 1f8f0e0..a7a9fa9 100644 (file)
@@ -50,16 +50,24 @@ class ButtonJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonEl
         */
        protected $allowedAttributes = array(
                'accesskey',
-               'alt',
                'class',
+               'contenteditable',
+               'contextmenu',
                'dir',
-               'disabled',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
-               'name',
+               'spellcheck',
                'style',
                'tabindex',
                'title',
+               'translate',
+               /* element specific attributes */
+               'autofocus',
+               'disabled',
+               'name',
                'type',
                'value'
        );
index 2b487a8..338abfe 100644 (file)
@@ -70,19 +70,27 @@ TYPO3.Form.Wizard.Elements.Basic.Button = Ext.extend(TYPO3.Form.Wizard.Elements,
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       accesskey: '',
-                                       alt: '',
-                                       "class": '',
-                                       dir: '',
-                                       disabled: '',
-                                       id: '',
-                                       lang: '',
-                                       name: '',
-                                       style: '',
-                                       tabindex: '',
-                                       title: '',
-                                       type: 'button',
-                                       value: TYPO3.l10n.localize('tx_form_domain_model_element_button.value')
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'autofocus': '',
+                                       'disabled': '',
+                                       'name': '',
+                                       'type': 'button',
+                                       'value': TYPO3.l10n.localize('tx_form_domain_model_element_button.value')
                                },
                                filters: {},
                                label: {