<?php
namespace App\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use FOS\CKEditorBundle\Form\Type\CKEditorType;

class ChatType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
        ->add("message",CKEditorType::class,[
            'config_name' => 'small_config',    
            'label' => "Message",
            'mapped'=> false,
            'required' => false,
            'attr' => array("class" => "form-control"),
            'config' => ["height" => "100px"],
        ]);
        
        $builder
        ->add("messagemail",CKEditorType::class,[
            'config_name' => 'small_config',
            'label' => "Message",
            'mapped'=> false,
            'required' => false,
            'attr' => array("class" => "form-control"),
            'config' => ["height" => "150px"]
        ]);
    }

    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefaults([]);
    }
}
