1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

Added support for html5 'wrap' attribute on textarea form elements. Example added to FAQs 'ask a question'.

This commit is contained in:
Cameron
2015-06-15 22:20:30 -07:00
parent e5c768a532
commit c98f6a2fdf
2 changed files with 8 additions and 3 deletions

View File

@@ -2339,7 +2339,10 @@ class e_form
case 'placeholder':
if($optval) $ret .= " placeholder='{$optval}'";
break;
case 'wrap':
if($optval) $ret .= " wrap='{$optval}'";
break;
case 'autocomplete':
if($optval) $ret .= " autocomplete='{$optval}'";
@@ -2460,7 +2463,9 @@ class e_form
'pattern' => '',
'other' => '',
'autocomplete' => '',
'maxlength' => ''
'maxlength' => '',
'wrap' => '',
'maxlength' => ''
// 'multiple' => false, - see case 'select'
);