Aggiunto ckeditor full anche per template email

Fix per salvataggio di TUTTI i tag filtrati per il body in template email e newsletter
This commit is contained in:
Luca 2022-07-30 19:49:15 +02:00
parent 58c70f98d4
commit c997c96bcb
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ switch (post('op')) {
'reply_to' => post('reply_to'),
'cc' => post('cc'),
'bcc' => post('bcc'),
'body' => $_POST['body'], // post('body'),
'body' => $_POST['body'], // post('body', true),
'read_notify' => post('read_notify'),
'note_aggiuntive' => post('note_aggiuntive'),
], ['id' => $id_record]);

View File

@ -110,7 +110,7 @@ echo '
<div class="row">
<div class="col-md-12">
{[ "type": "ckeditor", "label": "<?php echo tr('Contenuto'); ?>", "name": "body", "value": "$body$" ]}
{[ "type": "ckeditor", "use_full_ckeditor": 1, "label": "<?php echo tr('Contenuto'); ?>", "name": "body", "value": "$body$" ]}
</div>
</div>

View File

@ -46,7 +46,7 @@ switch (filter('op')) {
$newsletter->completed_at = filter('completed_at');
$newsletter->subject = filter('subject');
$newsletter->content = post('content', true); //filter('content');
$newsletter->content = $_POST['content']; // post('content', true);
$newsletter->save();