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