add SimpleMdTextareaType::class
This commit is contained in:
parent
7c1fc9d693
commit
559afad7d3
|
@ -21,6 +21,7 @@ use Symfony\Component\Validator\Constraints\Image;
|
|||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
use Symfony\Component\Validator\Constraints\Range;
|
||||
use Symfony\Component\Validator\Constraints\Url;
|
||||
use App\Form\Type\SimpleMdTextareaType;
|
||||
|
||||
class PostType extends AbstractType
|
||||
{
|
||||
|
@ -57,14 +58,10 @@ class PostType extends AbstractType
|
|||
|
||||
$builder->add(
|
||||
'content',
|
||||
TextareaType::class,
|
||||
SimpleMdTextareaType::class,
|
||||
[
|
||||
'label' => 'Contenu',
|
||||
'required' => false,
|
||||
'attr' => [
|
||||
'data-simplemde' => '',
|
||||
'rows' => 20,
|
||||
],
|
||||
'constraints' => [
|
||||
],
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue