[TASK] EXT:form - Add HTML4 / HTML5 attributes for TEXTLINE to wizard 91/43791/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 15:33:31 +0000 (17:33 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 6 Oct 2015 20:03:14 +0000 (22:03 +0200)
Add new attributes to the wizard element TEXTLINE.

Resolves: #70347
Releases: master
Change-Id: I7eb49c42160f6d0e6b57359c32bc5b6e9c042ec5
Reviewed-on: http://review.typo3.org/43791
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/TextlineJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Textline.js

index 6ec726d..b5fe8cf 100644 (file)
@@ -50,20 +50,34 @@ class TextlineJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJson
         */
        protected $allowedAttributes = array(
                'accesskey',
-               'alt',
                'class',
+               'contenteditable',
+               'contextmenu',
                'dir',
-               'disabled',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
+               'spellcheck',
+               'style',
+               'tabindex',
+               'title',
+               'translate',
+               /* element specific attributes */
+               'autocomplete',
+               'autofocus',
+               'disabled',
+               'inputmode',
+               'list',
                'maxlength',
+               'minlength',
                'name',
+               'pattern',
                'placeholder',
                'readonly',
+               'required',
                'size',
-               'style',
-               'tabindex',
-               'title',
                'type',
                'value'
        );
index 3511b90..523f040 100644 (file)
@@ -70,23 +70,37 @@ TYPO3.Form.Wizard.Elements.Basic.Textline = Ext.extend(TYPO3.Form.Wizard.Element
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       accesskey: '',
-                                       alt: '',
-                                       "class": '',
-                                       dir: '',
-                                       disabled: '',
-                                       id: '',
-                                       lang: '',
-                                       maxlength: '',
-                                       name: '',
-                                       placeholder: '',
-                                       readonly: '',
-                                       size: '',
-                                       style: '',
-                                       tabindex: '',
-                                       title: '',
-                                       type: 'text',
-                                       value: ''
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'autocomplete': '',
+                                       'autofocus': '',
+                                       'disabled': '',
+                                       'inputmode': '',
+                                       'list': '',
+                                       'maxlength': '',
+                                       'minlength': '',
+                                       'name': '',
+                                       'pattern': '',
+                                       'placeholder': '',
+                                       'readonly': '',
+                                       'required': '',
+                                       'size': '',
+                                       'type': 'text',
+                                       'value': ''
                                },
                                filters: {},
                                label: {