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:
parent
58c70f98d4
commit
c997c96bcb
|
@ -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]);
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue