Skip to content

Commit

Permalink
Bring back the HTML field on the HTML fieldtype so you can HTML in yo…
Browse files Browse the repository at this point in the history
…ur HTML field.
  • Loading branch information
jackmcdade committed Sep 8, 2021
1 parent d48bd74 commit a3f7caa
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/Fieldtypes/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,13 @@ class Html extends Fieldtype
protected static $title = 'HTML';
protected $icon = 'html';

protected $configFields = [
'html' => [
'display' => 'HTML',
'type' => 'code',
'mode' => 'htmlmixed',
],
];

protected function configFieldItems(): array
{
return [
'default' => [
'display' => __('Default Value'),
'instructions' => __('statamic::messages.fields_default_instructions'),
'type' => 'textarea',
'width' => 100,
'html' => [
'display' => 'HTML',
'type' => 'code',
'mode' => 'htmlmixed',
],
];
}
Expand Down

0 comments on commit a3f7caa

Please sign in to comment.