use ckeditor in custom type

This commit is contained in:
2021-03-22 13:45:16 +01:00
parent 7a0f7a4933
commit 28a2c0ea0b
6 changed files with 57 additions and 57 deletions

View File

@@ -36,6 +36,7 @@ use Chill\CustomFieldsBundle\Form\Type\CustomFieldType;
use Chill\PersonBundle\Form\Type\Select2MaritalStatusType;
use Chill\PersonBundle\Config\ConfigPersonAltNamesHelper;
use Chill\PersonBundle\Form\Type\PersonAltNameType;
use Chill\MainBundle\Form\Type\ChillTextareaType;
class PersonType extends AbstractType
{
@@ -89,7 +90,7 @@ class PersonType extends AbstractType
if ($this->config['memo'] === 'visible') {
$builder
->add('memo', TextareaType::class, array('required' => false))
->add('memo', ChillTextareaType::class, array('required' => false))
;
}
@@ -98,7 +99,7 @@ class PersonType extends AbstractType
}
if ($this->config['contact_info'] === 'visible') {
$builder->add('contactInfo', TextareaType::class, array('required' => false));
$builder->add('contactInfo', ChillTextareaType::class, array('required' => false));
}
if ($this->config['phonenumber'] === 'visible') {

View File

@@ -53,15 +53,6 @@ This view should receive those arguments:
{% apply markdown_to_html %}
{{ person.memo }}
{% endapply %}<br>
{% apply markdown_to_html %}
## Marc est down
**michel** _ça va_
> une citation
Sit amet nisl ~~purus~~ in mollis.
{% endapply %}
</div>
{% endif %}