Skip to content
Snippets Groups Projects
Commit ca726493 authored by Ralf Zimmermann's avatar Ralf Zimmermann Committed by Wouter Wolters
Browse files

[TASK] EXT:form - Add HTML4 / HTML5 attributes for FORM to wizard

Add new attributes to the wizard element FORM.

Resolves: #70337
Releases: master
Change-Id: I41a62cf5d68c9c69ec104bc9127f09a215e8c98c
Reviewed-on: http://review.typo3.org/43778


Reviewed-by: default avatarBjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: default avatarBjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent abace50a
Branches
Tags
No related merge requests found
......@@ -44,17 +44,29 @@ class FormJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\ContainerJsonEle
* @var array
*/
protected $allowedAttributes = array(
'accept',
'accept-charset',
'action',
'accesskey',
'class',
'contenteditable',
'contextmenu',
'dir',
'enctype',
'draggable',
'dropzone',
'hidden',
'id',
'lang',
'method',
'spellcheck',
'style',
'title'
'tabindex',
'title',
'translate',
/* element specific attributes */
'accept',
'accept-charset',
'action',
'autocomplete',
'enctype',
'method',
'novalidate'
);
/**
......
......@@ -71,17 +71,29 @@ TYPO3.Form.Wizard.Elements.Basic.Form = Ext.extend(TYPO3.Form.Wizard.Elements, {
Ext.apply(this, {
configuration: {
attributes: {
accept: '',
acceptcharset: '',
action: '',
"class": '',
dir: '',
enctype: 'application/x-www-form-urlencoded',
id: '',
lang: '',
method: 'post',
style: '',
title: ''
'accesskey': '',
'class': '',
'contenteditable': '',
'contextmenu': '',
'dir': '',
'draggable': '',
'dropzone': '',
'hidden': '',
'id': '',
'lang': '',
'spellcheck': '',
'style': '',
'tabindex': '',
'title': '',
'translate': '',
'accept': '',
'accept-charset': '',
'action': '',
'autocomplete': '',
'enctype': 'application/x-www-form-urlencoded',
'method': 'post',
'novalidate': ''
},
prefix: 'tx_form',
confirmation: true,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment