34 lines
656 B
PHP
34 lines
656 B
PHP
|
<?php
|
|||
|
|
|||
|
namespace Trinity\Bundle\ContentManagerBundle\Form\Type;
|
|||
|
|
|||
|
use Symfony\Component\Form\FormBuilderInterface;
|
|||
|
|
|||
|
class TinymceMediumBlockType extends BlockType
|
|||
|
{
|
|||
|
/**
|
|||
|
* {@inheritdoc}
|
|||
|
*/
|
|||
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|||
|
{
|
|||
|
$builder->add(
|
|||
|
'value',
|
|||
|
'textarea',
|
|||
|
array(
|
|||
|
'attr' => array(
|
|||
|
'class' => 'tinymce',
|
|||
|
'data-theme' => 'medium',
|
|||
|
)
|
|||
|
)
|
|||
|
);
|
|||
|
}
|
|||
|
|
|||
|
/**
|
|||
|
* {@inheritdoc}
|
|||
|
*/
|
|||
|
public function getName()
|
|||
|
{
|
|||
|
return 'tinymce';
|
|||
|
}
|
|||
|
}
|