add tinymce block type
This commit is contained in:
parent
a12efc5e23
commit
c5db18e05e
1 changed files with 21 additions and 0 deletions
21
src/core/Form/Site/Page/TinymceTextareaBlockType.php
Normal file
21
src/core/Form/Site/Page/TinymceTextareaBlockType.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Core\Form\Site\Page;
|
||||
|
||||
use App\Core\Form\Type\TinymceTextareaType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class TinymceTextareaBlockType extends TextareaBlockType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder->add(
|
||||
'value',
|
||||
TinymceTextareaType::class,
|
||||
array_merge([
|
||||
'required' => false,
|
||||
'label' => false,
|
||||
], $options['options']),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue