* Use editor widget.

This commit is contained in:
dingguodong
2023-09-14 17:25:23 +08:00
parent dcd4f3edb4
commit e46674742f
+14
View File
@@ -47,6 +47,20 @@ foreach($fields as $field => $attr)
),
);
}
elseif($control['type'] == 'editor')
{
$formGroup = formGroup
(
set::width($attr['width']),
set::label($attr['title']),
set::required($attr['required']),
editor
(
set::name($fieldName),
html($attr['default'])
),
);
}
else
{
$formGroup = formGroup